Add -Wstrict-null-sentinel to gdbsupport/warning.m4
[deliverable/binutils-gdb.git] / gdbsupport / configure
CommitLineData
01027315
TT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for gdbsupport 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='gdbsupport'
579PACKAGE_TARNAME='gdbsupport'
580PACKAGE_VERSION='1.0'
581PACKAGE_STRING='gdbsupport 1.0'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="common-defs.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600# include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
05ea2a05 622ac_header_list=
01027315
TT
623ac_subst_vars='am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
626LIBOBJS
629c2962
SM
627WERROR_CFLAGS
628WARN_CFLAGS
01027315
TT
629SELFTEST_FALSE
630SELFTEST_TRUE
05ea2a05
TT
631LTLIBIPT
632LIBIPT
633HAVE_LIBIPT
01027315
TT
634PTHREAD_CFLAGS
635PTHREAD_LIBS
636PTHREAD_CC
637ax_pthread_config
638SED
639ALLOCA
640CATOBJEXT
641GENCAT
642INSTOBJEXT
643DATADIRNAME
644CATALOGS
645POSUB
646GMSGFMT
647XGETTEXT
648INCINTL
649LIBINTL_DEP
650LIBINTL
651USE_NLS
652CXX_DIALECT
653HAVE_CXX11
654EGREP
655GREP
656CPP
657RANLIB
658am__fastdepCXX_FALSE
659am__fastdepCXX_TRUE
660CXXDEPMODE
661ac_ct_CXX
662CXXFLAGS
663CXX
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667am__nodep
668AMDEPBACKSLASH
669AMDEP_FALSE
670AMDEP_TRUE
671am__quote
672am__include
673DEPDIR
674OBJEXT
675EXEEXT
676ac_ct_CC
677CPPFLAGS
678LDFLAGS
679CFLAGS
680CC
681AM_BACKSLASH
682AM_DEFAULT_VERBOSITY
683AM_DEFAULT_V
684AM_V
685am__untar
686am__tar
687AMTAR
688am__leading_dot
689SET_MAKE
690AWK
691mkdir_p
692MKDIR_P
693INSTALL_STRIP_PROGRAM
694STRIP
695install_sh
696MAKEINFO
697AUTOHEADER
698AUTOMAKE
699AUTOCONF
700ACLOCAL
701VERSION
702PACKAGE
703CYGPATH_W
704am__isrc
705INSTALL_DATA
706INSTALL_SCRIPT
707INSTALL_PROGRAM
708MAINT
709MAINTAINER_MODE_FALSE
710MAINTAINER_MODE_TRUE
711target_os
712target_vendor
713target_cpu
714target
715host_os
716host_vendor
717host_cpu
718host
719build_os
720build_vendor
721build_cpu
722build
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_maintainer_mode
765enable_silent_rules
766enable_dependency_tracking
767enable_plugins
768enable_largefile
05ea2a05
TT
769with_intel_pt
770with_gnu_ld
771enable_rpath
772with_libipt_prefix
01027315 773enable_unit_tests
629c2962
SM
774enable_werror
775enable_build_warnings
776enable_gdb_build_warnings
01027315
TT
777'
778 ac_precious_vars='build_alias
779host_alias
780target_alias
781CC
782CFLAGS
783LDFLAGS
784LIBS
785CPPFLAGS
786CXX
787CXXFLAGS
788CCC
789CPP'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
839
840ac_prev=
841ac_dashdash=
842for ac_option
843do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904"enable_$ac_useropt"
905"*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134"with_$ac_useropt"
1135"*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
1322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330\`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383_ACEOF
1384
1385 cat <<\_ACEOF
1386
1387Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of gdbsupport 1.0:";;
1402 esac
1403 cat <<\_ACEOF
1404
1405Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-maintainer-mode
1410 enable make rules and dependencies not useful (and
1411 sometimes confusing) to the casual installer
1412 --enable-silent-rules less verbose build output (undo: "make V=1")
1413 --disable-silent-rules verbose build output (undo: "make V=0")
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --enable-plugins Enable support for plugins
1419 --disable-largefile omit support for large files
05ea2a05 1420 --disable-rpath do not hardcode runtime library paths
01027315
TT
1421 --enable-unit-tests Enable the inclusion of unit tests when compiling
1422 GDB
629c2962
SM
1423 --enable-werror treat compile warnings as errors
1424 --enable-build-warnings enable build-time compiler warnings if gcc is used
1425 --enable-gdb-build-warnings
1426 enable GDB specific build-time compiler warnings if
1427 gcc is used
01027315 1428
05ea2a05
TT
1429Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1433 --with-gnu-ld assume the C compiler uses GNU ld default=no
1434 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1435 --without-libipt-prefix don't search for libipt in includedir and libdir
1436
01027315
TT
1437Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CXX C++ compiler command
1446 CXXFLAGS C++ compiler flags
1447 CPP C preprocessor
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
1451
1452Report bugs to the package provider.
1453_ACEOF
1454ac_status=$?
1455fi
1456
1457if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1464
1465case "$ac_dir" in
1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467*)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475esac
1476ac_abs_top_builddir=$ac_pwd
1477ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478# for backward compatibility:
1479ac_top_builddir=$ac_top_build_prefix
1480
1481case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494esac
1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510fi
1511
1512test -n "$ac_init_help" && exit $ac_status
1513if $ac_init_version; then
1514 cat <<\_ACEOF
1515gdbsupport configure 1.0
1516generated by GNU Autoconf 2.69
1517
1518Copyright (C) 2012 Free Software Foundation, Inc.
1519This configure script is free software; the Free Software Foundation
1520gives unlimited permission to copy, distribute and modify it.
1521_ACEOF
1522 exit
1523fi
1524
1525## ------------------------ ##
1526## Autoconf initialization. ##
1527## ------------------------ ##
1528
1529# ac_fn_c_try_compile LINENO
1530# --------------------------
1531# Try to compile conftest.$ac_ext, and return whether this succeeded.
1532ac_fn_c_try_compile ()
1533{
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556else
1557 $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=1
1561fi
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1564
1565} # ac_fn_c_try_compile
1566
1567# ac_fn_cxx_try_compile LINENO
1568# ----------------------------
1569# Try to compile conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_cxx_try_compile ()
1571{
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext
1574 if { { ac_try="$ac_compile"
1575case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1587 fi
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_cxx_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.$ac_objext; then :
1593 ac_retval=0
1594else
1595 $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599fi
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1602
1603} # ac_fn_cxx_try_compile
1604
1605# ac_fn_c_try_cpp LINENO
1606# ----------------------
1607# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_cpp ()
1609{
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_cpp conftest.$ac_ext"
1612case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } > conftest.i && {
1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 }; then :
1630 ac_retval=0
1631else
1632 $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636fi
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1639
1640} # ac_fn_c_try_cpp
1641
1642# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1643# -------------------------------------------------------
1644# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1645# the include files in INCLUDES and setting the cache variable VAR
1646# accordingly.
1647ac_fn_c_check_header_mongrel ()
1648{
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if eval \${$3+:} false; then :
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652$as_echo_n "checking for $2... " >&6; }
1653if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1655fi
1656eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658$as_echo "$ac_res" >&6; }
1659else
1660 # Is the header compilable?
1661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1662$as_echo_n "checking $2 usability... " >&6; }
1663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664/* end confdefs.h. */
1665$4
1666#include <$2>
1667_ACEOF
1668if ac_fn_c_try_compile "$LINENO"; then :
1669 ac_header_compiler=yes
1670else
1671 ac_header_compiler=no
1672fi
1673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1675$as_echo "$ac_header_compiler" >&6; }
1676
1677# Is the header present?
1678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1679$as_echo_n "checking $2 presence... " >&6; }
1680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681/* end confdefs.h. */
1682#include <$2>
1683_ACEOF
1684if ac_fn_c_try_cpp "$LINENO"; then :
1685 ac_header_preproc=yes
1686else
1687 ac_header_preproc=no
1688fi
1689rm -f conftest.err conftest.i conftest.$ac_ext
1690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1691$as_echo "$ac_header_preproc" >&6; }
1692
1693# So? What about this header?
1694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1695 yes:no: )
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1697$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 ;;
1701 no:yes:* )
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1703$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1705$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1707$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1709$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 ;;
1713esac
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715$as_echo_n "checking for $2... " >&6; }
1716if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718else
1719 eval "$3=\$ac_header_compiler"
1720fi
1721eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723$as_echo "$ac_res" >&6; }
1724fi
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726
1727} # ac_fn_c_check_header_mongrel
1728
1729# ac_fn_c_try_run LINENO
1730# ----------------------
1731# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732# that executables *can* be run.
1733ac_fn_c_try_run ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=$ac_status
1764fi
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769} # ac_fn_c_try_run
1770
1771# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772# -------------------------------------------------------
1773# Tests whether HEADER exists and can be compiled using the include files in
1774# INCLUDES, setting the cache variable VAR accordingly.
1775ac_fn_c_check_header_compile ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779$as_echo_n "checking for $2... " >&6; }
1780if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h. */
1785$4
1786#include <$2>
1787_ACEOF
1788if ac_fn_c_try_compile "$LINENO"; then :
1789 eval "$3=yes"
1790else
1791 eval "$3=no"
1792fi
1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794fi
1795eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800} # ac_fn_c_check_header_compile
1801
1802# ac_fn_c_try_link LINENO
1803# -----------------------
1804# Try to link conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_link ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1810case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 test -x conftest$ac_exeext
1830 }; then :
1831 ac_retval=0
1832else
1833 $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=1
1837fi
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1845
1846} # ac_fn_c_try_link
1847
1848# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1849# -------------------------------------------
1850# Tests whether TYPE exists after having included INCLUDES, setting cache
1851# variable VAR accordingly.
1852ac_fn_c_check_type ()
1853{
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
1857if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859else
1860 eval "$3=no"
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h. */
1863$4
1864int
1865main ()
1866{
1867if (sizeof ($2))
1868 return 0;
1869 ;
1870 return 0;
1871}
1872_ACEOF
1873if ac_fn_c_try_compile "$LINENO"; then :
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h. */
1876$4
1877int
1878main ()
1879{
1880if (sizeof (($2)))
1881 return 0;
1882 ;
1883 return 0;
1884}
1885_ACEOF
1886if ac_fn_c_try_compile "$LINENO"; then :
1887
1888else
1889 eval "$3=yes"
1890fi
1891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900} # ac_fn_c_check_type
1901
1902# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1903# --------------------------------------------
1904# Tries to find the compile-time value of EXPR in a program that includes
1905# INCLUDES, setting VAR accordingly. Returns whether the value could be
1906# computed
1907ac_fn_c_compute_int ()
1908{
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if test "$cross_compiling" = yes; then
1911 # Depending upon the size, compute the lo and hi bounds.
1912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914$4
1915int
1916main ()
1917{
1918static int test_array [1 - 2 * !(($2) >= 0)];
1919test_array [0] = 0;
1920return test_array [0];
1921
1922 ;
1923 return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_lo=0 ac_mid=0
1928 while :; do
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931$4
1932int
1933main ()
1934{
1935static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1936test_array [0] = 0;
1937return test_array [0];
1938
1939 ;
1940 return 0;
1941}
1942_ACEOF
1943if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_hi=$ac_mid; break
1945else
1946 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1947 if test $ac_lo -le $ac_mid; then
1948 ac_lo= ac_hi=
1949 break
1950 fi
1951 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 done
1955else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957/* end confdefs.h. */
1958$4
1959int
1960main ()
1961{
1962static int test_array [1 - 2 * !(($2) < 0)];
1963test_array [0] = 0;
1964return test_array [0];
1965
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_hi=-1 ac_mid=-1
1972 while :; do
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h. */
1975$4
1976int
1977main ()
1978{
1979static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1980test_array [0] = 0;
1981return test_array [0];
1982
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987if ac_fn_c_try_compile "$LINENO"; then :
1988 ac_lo=$ac_mid; break
1989else
1990 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1991 if test $ac_mid -le $ac_hi; then
1992 ac_lo= ac_hi=
1993 break
1994 fi
1995 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 done
1999else
2000 ac_lo= ac_hi=
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005# Binary search between lo and hi bounds.
2006while test "x$ac_lo" != "x$ac_hi"; do
2007 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h. */
2010$4
2011int
2012main ()
2013{
2014static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2015test_array [0] = 0;
2016return test_array [0];
2017
2018 ;
2019 return 0;
2020}
2021_ACEOF
2022if ac_fn_c_try_compile "$LINENO"; then :
2023 ac_hi=$ac_mid
2024else
2025 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028done
2029case $ac_lo in #((
2030?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2031'') ac_retval=1 ;;
2032esac
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h. */
2036$4
2037static long int longval () { return $2; }
2038static unsigned long int ulongval () { return $2; }
2039#include <stdio.h>
2040#include <stdlib.h>
2041int
2042main ()
2043{
2044
2045 FILE *f = fopen ("conftest.val", "w");
2046 if (! f)
2047 return 1;
2048 if (($2) < 0)
2049 {
2050 long int i = longval ();
2051 if (i != ($2))
2052 return 1;
2053 fprintf (f, "%ld", i);
2054 }
2055 else
2056 {
2057 unsigned long int i = ulongval ();
2058 if (i != ($2))
2059 return 1;
2060 fprintf (f, "%lu", i);
2061 }
2062 /* Do not output a trailing newline, as this causes \r\n confusion
2063 on some platforms. */
2064 return ferror (f) || fclose (f) != 0;
2065
2066 ;
2067 return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_run "$LINENO"; then :
2071 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2072else
2073 ac_retval=1
2074fi
2075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2076 conftest.$ac_objext conftest.beam conftest.$ac_ext
2077rm -f conftest.val
2078
2079 fi
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 as_fn_set_status $ac_retval
2082
2083} # ac_fn_c_compute_int
2084
2085# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2086# ---------------------------------------------
2087# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2088# accordingly.
2089ac_fn_c_check_decl ()
2090{
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 as_decl_name=`echo $2|sed 's/ *(.*//'`
2093 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2095$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2096if eval \${$3+:} false; then :
2097 $as_echo_n "(cached) " >&6
2098else
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h. */
2101$4
2102int
2103main ()
2104{
2105#ifndef $as_decl_name
2106#ifdef __cplusplus
2107 (void) $as_decl_use;
2108#else
2109 (void) $as_decl_name;
2110#endif
2111#endif
2112
2113 ;
2114 return 0;
2115}
2116_ACEOF
2117if ac_fn_c_try_compile "$LINENO"; then :
2118 eval "$3=yes"
2119else
2120 eval "$3=no"
2121fi
2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123fi
2124eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126$as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129} # ac_fn_c_check_decl
2130
2131# ac_fn_c_check_func LINENO FUNC VAR
2132# ----------------------------------
2133# Tests whether FUNC exists, setting the cache variable VAR accordingly
2134ac_fn_c_check_func ()
2135{
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138$as_echo_n "checking for $2... " >&6; }
2139if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2141else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h. */
2144/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2146#define $2 innocuous_$2
2147
2148/* System header to define __stub macros and hopefully few prototypes,
2149 which can conflict with char $2 (); below.
2150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2151 <limits.h> exists even on freestanding compilers. */
2152
2153#ifdef __STDC__
2154# include <limits.h>
2155#else
2156# include <assert.h>
2157#endif
2158
2159#undef $2
2160
2161/* Override any GCC internal prototype to avoid an error.
2162 Use char because int might match the return type of a GCC
2163 builtin and then its argument prototype would still apply. */
2164#ifdef __cplusplus
2165extern "C"
2166#endif
2167char $2 ();
2168/* The GNU C library defines this for functions which it implements
2169 to always fail with ENOSYS. Some functions are actually named
2170 something starting with __ and the normal name is an alias. */
2171#if defined __stub_$2 || defined __stub___$2
2172choke me
2173#endif
2174
2175int
2176main ()
2177{
2178return $2 ();
2179 ;
2180 return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_link "$LINENO"; then :
2184 eval "$3=yes"
2185else
2186 eval "$3=no"
2187fi
2188rm -f core conftest.err conftest.$ac_objext \
2189 conftest$ac_exeext conftest.$ac_ext
2190fi
2191eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193$as_echo "$ac_res" >&6; }
2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195
2196} # ac_fn_c_check_func
2197
05ea2a05
TT
2198# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2199# ----------------------------------------------------
2200# Tries to find if the field MEMBER exists in type AGGR, after including
2201# INCLUDES, setting cache variable VAR accordingly.
2202ac_fn_c_check_member ()
2203{
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2206$as_echo_n "checking for $2.$3... " >&6; }
2207if eval \${$4+:} false; then :
2208 $as_echo_n "(cached) " >&6
2209else
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h. */
2212$5
2213int
2214main ()
2215{
2216static $2 ac_aggr;
2217if (ac_aggr.$3)
2218return 0;
2219 ;
2220 return 0;
2221}
2222_ACEOF
2223if ac_fn_c_try_compile "$LINENO"; then :
2224 eval "$4=yes"
2225else
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h. */
2228$5
2229int
2230main ()
2231{
2232static $2 ac_aggr;
2233if (sizeof ac_aggr.$3)
2234return 0;
2235 ;
2236 return 0;
2237}
2238_ACEOF
2239if ac_fn_c_try_compile "$LINENO"; then :
2240 eval "$4=yes"
2241else
2242 eval "$4=no"
2243fi
2244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245fi
2246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247fi
2248eval ac_res=\$$4
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250$as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252
2253} # ac_fn_c_check_member
2254
01027315
TT
2255# ac_fn_cxx_try_link LINENO
2256# -------------------------
2257# Try to link conftest.$ac_ext, and return whether this succeeded.
2258ac_fn_cxx_try_link ()
2259{
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 rm -f conftest.$ac_objext conftest$ac_exeext
2262 if { { ac_try="$ac_link"
2263case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266esac
2267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268$as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_link") 2>conftest.err
2270 ac_status=$?
2271 if test -s conftest.err; then
2272 grep -v '^ *+' conftest.err >conftest.er1
2273 cat conftest.er1 >&5
2274 mv -f conftest.er1 conftest.err
2275 fi
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; } && {
2278 test -z "$ac_cxx_werror_flag" ||
2279 test ! -s conftest.err
2280 } && test -s conftest$ac_exeext && {
2281 test "$cross_compiling" = yes ||
2282 test -x conftest$ac_exeext
2283 }; then :
2284 ac_retval=0
2285else
2286 $as_echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
2288
2289 ac_retval=1
2290fi
2291 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2292 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2293 # interfere with the next link command; also delete a directory that is
2294 # left behind by Apple's compiler. We do this before executing the actions.
2295 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 as_fn_set_status $ac_retval
2298
2299} # ac_fn_cxx_try_link
2300
2301# ac_fn_cxx_check_func LINENO FUNC VAR
2302# ------------------------------------
2303# Tests whether FUNC exists, setting the cache variable VAR accordingly
2304ac_fn_cxx_check_func ()
2305{
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308$as_echo_n "checking for $2... " >&6; }
2309if eval \${$3+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311else
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313/* end confdefs.h. */
2314/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2316#define $2 innocuous_$2
2317
2318/* System header to define __stub macros and hopefully few prototypes,
2319 which can conflict with char $2 (); below.
2320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2321 <limits.h> exists even on freestanding compilers. */
2322
2323#ifdef __STDC__
2324# include <limits.h>
2325#else
2326# include <assert.h>
2327#endif
2328
2329#undef $2
2330
2331/* Override any GCC internal prototype to avoid an error.
2332 Use char because int might match the return type of a GCC
2333 builtin and then its argument prototype would still apply. */
2334#ifdef __cplusplus
2335extern "C"
2336#endif
2337char $2 ();
2338/* The GNU C library defines this for functions which it implements
2339 to always fail with ENOSYS. Some functions are actually named
2340 something starting with __ and the normal name is an alias. */
2341#if defined __stub_$2 || defined __stub___$2
2342choke me
2343#endif
2344
2345int
2346main ()
2347{
2348return $2 ();
2349 ;
2350 return 0;
2351}
2352_ACEOF
2353if ac_fn_cxx_try_link "$LINENO"; then :
2354 eval "$3=yes"
2355else
2356 eval "$3=no"
2357fi
2358rm -f core conftest.err conftest.$ac_objext \
2359 conftest$ac_exeext conftest.$ac_ext
2360fi
2361eval ac_res=\$$3
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363$as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365
2366} # ac_fn_cxx_check_func
2367cat >config.log <<_ACEOF
2368This file contains any messages produced by compilers while
2369running configure, to aid debugging if configure makes a mistake.
2370
2371It was created by gdbsupport $as_me 1.0, which was
2372generated by GNU Autoconf 2.69. Invocation command line was
2373
2374 $ $0 $@
2375
2376_ACEOF
2377exec 5>>config.log
2378{
2379cat <<_ASUNAME
2380## --------- ##
2381## Platform. ##
2382## --------- ##
2383
2384hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2385uname -m = `(uname -m) 2>/dev/null || echo unknown`
2386uname -r = `(uname -r) 2>/dev/null || echo unknown`
2387uname -s = `(uname -s) 2>/dev/null || echo unknown`
2388uname -v = `(uname -v) 2>/dev/null || echo unknown`
2389
2390/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2391/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2392
2393/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2394/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2395/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2396/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2397/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2398/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2399/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2400
2401_ASUNAME
2402
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 $as_echo "PATH: $as_dir"
2409 done
2410IFS=$as_save_IFS
2411
2412} >&5
2413
2414cat >&5 <<_ACEOF
2415
2416
2417## ----------- ##
2418## Core tests. ##
2419## ----------- ##
2420
2421_ACEOF
2422
2423
2424# Keep a trace of the command line.
2425# Strip out --no-create and --no-recursion so they do not pile up.
2426# Strip out --silent because we don't want to record it for future runs.
2427# Also quote any args containing shell meta-characters.
2428# Make two passes to allow for proper duplicate-argument suppression.
2429ac_configure_args=
2430ac_configure_args0=
2431ac_configure_args1=
2432ac_must_keep_next=false
2433for ac_pass in 1 2
2434do
2435 for ac_arg
2436 do
2437 case $ac_arg in
2438 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440 | -silent | --silent | --silen | --sile | --sil)
2441 continue ;;
2442 *\'*)
2443 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2444 esac
2445 case $ac_pass in
2446 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2447 2)
2448 as_fn_append ac_configure_args1 " '$ac_arg'"
2449 if test $ac_must_keep_next = true; then
2450 ac_must_keep_next=false # Got value, back to normal.
2451 else
2452 case $ac_arg in
2453 *=* | --config-cache | -C | -disable-* | --disable-* \
2454 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2455 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2456 | -with-* | --with-* | -without-* | --without-* | --x)
2457 case "$ac_configure_args0 " in
2458 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2459 esac
2460 ;;
2461 -* ) ac_must_keep_next=true ;;
2462 esac
2463 fi
2464 as_fn_append ac_configure_args " '$ac_arg'"
2465 ;;
2466 esac
2467 done
2468done
2469{ ac_configure_args0=; unset ac_configure_args0;}
2470{ ac_configure_args1=; unset ac_configure_args1;}
2471
2472# When interrupted or exit'd, cleanup temporary files, and complete
2473# config.log. We remove comments because anyway the quotes in there
2474# would cause problems or look ugly.
2475# WARNING: Use '\'' to represent an apostrophe within the trap.
2476# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2477trap 'exit_status=$?
2478 # Save into config.log some information that might help in debugging.
2479 {
2480 echo
2481
2482 $as_echo "## ---------------- ##
2483## Cache variables. ##
2484## ---------------- ##"
2485 echo
2486 # The following way of writing the cache mishandles newlines in values,
2487(
2488 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489 eval ac_val=\$$ac_var
2490 case $ac_val in #(
2491 *${as_nl}*)
2492 case $ac_var in #(
2493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2495 esac
2496 case $ac_var in #(
2497 _ | IFS | as_nl) ;; #(
2498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499 *) { eval $ac_var=; unset $ac_var;} ;;
2500 esac ;;
2501 esac
2502 done
2503 (set) 2>&1 |
2504 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505 *${as_nl}ac_space=\ *)
2506 sed -n \
2507 "s/'\''/'\''\\\\'\'''\''/g;
2508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2509 ;; #(
2510 *)
2511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2512 ;;
2513 esac |
2514 sort
2515)
2516 echo
2517
2518 $as_echo "## ----------------- ##
2519## Output variables. ##
2520## ----------------- ##"
2521 echo
2522 for ac_var in $ac_subst_vars
2523 do
2524 eval ac_val=\$$ac_var
2525 case $ac_val in
2526 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527 esac
2528 $as_echo "$ac_var='\''$ac_val'\''"
2529 done | sort
2530 echo
2531
2532 if test -n "$ac_subst_files"; then
2533 $as_echo "## ------------------- ##
2534## File substitutions. ##
2535## ------------------- ##"
2536 echo
2537 for ac_var in $ac_subst_files
2538 do
2539 eval ac_val=\$$ac_var
2540 case $ac_val in
2541 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2542 esac
2543 $as_echo "$ac_var='\''$ac_val'\''"
2544 done | sort
2545 echo
2546 fi
2547
2548 if test -s confdefs.h; then
2549 $as_echo "## ----------- ##
2550## confdefs.h. ##
2551## ----------- ##"
2552 echo
2553 cat confdefs.h
2554 echo
2555 fi
2556 test "$ac_signal" != 0 &&
2557 $as_echo "$as_me: caught signal $ac_signal"
2558 $as_echo "$as_me: exit $exit_status"
2559 } >&5
2560 rm -f core *.core core.conftest.* &&
2561 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2562 exit $exit_status
2563' 0
2564for ac_signal in 1 2 13 15; do
2565 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2566done
2567ac_signal=0
2568
2569# confdefs.h avoids OS command line length limits that DEFS can exceed.
2570rm -f -r conftest* confdefs.h
2571
2572$as_echo "/* confdefs.h */" > confdefs.h
2573
2574# Predefined preprocessor variables.
2575
2576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_NAME "$PACKAGE_NAME"
2578_ACEOF
2579
2580cat >>confdefs.h <<_ACEOF
2581#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2582_ACEOF
2583
2584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE_VERSION "$PACKAGE_VERSION"
2586_ACEOF
2587
2588cat >>confdefs.h <<_ACEOF
2589#define PACKAGE_STRING "$PACKAGE_STRING"
2590_ACEOF
2591
2592cat >>confdefs.h <<_ACEOF
2593#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2594_ACEOF
2595
2596cat >>confdefs.h <<_ACEOF
2597#define PACKAGE_URL "$PACKAGE_URL"
2598_ACEOF
2599
2600
2601# Let the site file select an alternate cache file if it wants to.
2602# Prefer an explicitly selected file to automatically selected ones.
2603ac_site_file1=NONE
2604ac_site_file2=NONE
2605if test -n "$CONFIG_SITE"; then
2606 # We do not want a PATH search for config.site.
2607 case $CONFIG_SITE in #((
2608 -*) ac_site_file1=./$CONFIG_SITE;;
2609 */*) ac_site_file1=$CONFIG_SITE;;
2610 *) ac_site_file1=./$CONFIG_SITE;;
2611 esac
2612elif test "x$prefix" != xNONE; then
2613 ac_site_file1=$prefix/share/config.site
2614 ac_site_file2=$prefix/etc/config.site
2615else
2616 ac_site_file1=$ac_default_prefix/share/config.site
2617 ac_site_file2=$ac_default_prefix/etc/config.site
2618fi
2619for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2620do
2621 test "x$ac_site_file" = xNONE && continue
2622 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2624$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2625 sed 's/^/| /' "$ac_site_file" >&5
2626 . "$ac_site_file" \
2627 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629as_fn_error $? "failed to load site script $ac_site_file
2630See \`config.log' for more details" "$LINENO" 5; }
2631 fi
2632done
2633
2634if test -r "$cache_file"; then
2635 # Some versions of bash will fail to source /dev/null (special files
2636 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2637 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2639$as_echo "$as_me: loading cache $cache_file" >&6;}
2640 case $cache_file in
2641 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2642 *) . "./$cache_file";;
2643 esac
2644 fi
2645else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2647$as_echo "$as_me: creating cache $cache_file" >&6;}
2648 >$cache_file
2649fi
2650
05ea2a05
TT
2651as_fn_append ac_header_list " stdlib.h"
2652as_fn_append ac_header_list " unistd.h"
2653as_fn_append ac_header_list " sys/param.h"
01027315
TT
2654# Check that the precious variables saved in the cache have kept the same
2655# value.
2656ac_cache_corrupted=false
2657for ac_var in $ac_precious_vars; do
2658 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2659 eval ac_new_set=\$ac_env_${ac_var}_set
2660 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2661 eval ac_new_val=\$ac_env_${ac_var}_value
2662 case $ac_old_set,$ac_new_set in
2663 set,)
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2665$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2666 ac_cache_corrupted=: ;;
2667 ,set)
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2669$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2670 ac_cache_corrupted=: ;;
2671 ,);;
2672 *)
2673 if test "x$ac_old_val" != "x$ac_new_val"; then
2674 # differences in whitespace do not lead to failure.
2675 ac_old_val_w=`echo x $ac_old_val`
2676 ac_new_val_w=`echo x $ac_new_val`
2677 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2679$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2680 ac_cache_corrupted=:
2681 else
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2683$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2684 eval $ac_var=\$ac_old_val
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2687$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2689$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2690 fi;;
2691 esac
2692 # Pass precious variables to config.status.
2693 if test "$ac_new_set" = set; then
2694 case $ac_new_val in
2695 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2696 *) ac_arg=$ac_var=$ac_new_val ;;
2697 esac
2698 case " $ac_configure_args " in
2699 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2700 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2701 esac
2702 fi
2703done
2704if $ac_cache_corrupted; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2708$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2709 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2710fi
2711## -------------------- ##
2712## Main body of script. ##
2713## -------------------- ##
2714
2715ac_ext=c
2716ac_cpp='$CPP $CPPFLAGS'
2717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720
2721
2722
2723
2724
2725
3684d331 2726ac_config_headers="$ac_config_headers config.h:config.in"
01027315
TT
2727
2728ac_aux_dir=
2729for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2730 if test -f "$ac_dir/install-sh"; then
2731 ac_aux_dir=$ac_dir
2732 ac_install_sh="$ac_aux_dir/install-sh -c"
2733 break
2734 elif test -f "$ac_dir/install.sh"; then
2735 ac_aux_dir=$ac_dir
2736 ac_install_sh="$ac_aux_dir/install.sh -c"
2737 break
2738 elif test -f "$ac_dir/shtool"; then
2739 ac_aux_dir=$ac_dir
2740 ac_install_sh="$ac_aux_dir/shtool install -c"
2741 break
2742 fi
2743done
2744if test -z "$ac_aux_dir"; then
2745 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2746fi
2747
2748# These three variables are undocumented and unsupported,
2749# and are intended to be withdrawn in a future Autoconf release.
2750# They can cause serious problems if a builder's source tree is in a directory
2751# whose full name contains unusual characters.
2752ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2753ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2754ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2755
2756
2757# Make sure we can run config.sub.
2758$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2759 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2760
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2762$as_echo_n "checking build system type... " >&6; }
2763if ${ac_cv_build+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765else
2766 ac_build_alias=$build_alias
2767test "x$ac_build_alias" = x &&
2768 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2769test "x$ac_build_alias" = x &&
2770 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2771ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2772 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2773
2774fi
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2776$as_echo "$ac_cv_build" >&6; }
2777case $ac_cv_build in
2778*-*-*) ;;
2779*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2780esac
2781build=$ac_cv_build
2782ac_save_IFS=$IFS; IFS='-'
2783set x $ac_cv_build
2784shift
2785build_cpu=$1
2786build_vendor=$2
2787shift; shift
2788# Remember, the first character of IFS is used to create $*,
2789# except with old shells:
2790build_os=$*
2791IFS=$ac_save_IFS
2792case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2793
2794
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2796$as_echo_n "checking host system type... " >&6; }
2797if ${ac_cv_host+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799else
2800 if test "x$host_alias" = x; then
2801 ac_cv_host=$ac_cv_build
2802else
2803 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2804 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2805fi
2806
2807fi
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2809$as_echo "$ac_cv_host" >&6; }
2810case $ac_cv_host in
2811*-*-*) ;;
2812*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2813esac
2814host=$ac_cv_host
2815ac_save_IFS=$IFS; IFS='-'
2816set x $ac_cv_host
2817shift
2818host_cpu=$1
2819host_vendor=$2
2820shift; shift
2821# Remember, the first character of IFS is used to create $*,
2822# except with old shells:
2823host_os=$*
2824IFS=$ac_save_IFS
2825case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2826
2827
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2829$as_echo_n "checking target system type... " >&6; }
2830if ${ac_cv_target+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832else
2833 if test "x$target_alias" = x; then
2834 ac_cv_target=$ac_cv_host
2835else
2836 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2837 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2838fi
2839
2840fi
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2842$as_echo "$ac_cv_target" >&6; }
2843case $ac_cv_target in
2844*-*-*) ;;
2845*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2846esac
2847target=$ac_cv_target
2848ac_save_IFS=$IFS; IFS='-'
2849set x $ac_cv_target
2850shift
2851target_cpu=$1
2852target_vendor=$2
2853shift; shift
2854# Remember, the first character of IFS is used to create $*,
2855# except with old shells:
2856target_os=$*
2857IFS=$ac_save_IFS
2858case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2859
2860
2861# The aliases save the names the user supplied, while $host etc.
2862# will get canonicalized.
2863test -n "$target_alias" &&
2864 test "$program_prefix$program_suffix$program_transform_name" = \
2865 NONENONEs,x,x, &&
2866 program_prefix=${target_alias}-
2867
2868
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2870$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2871 # Check whether --enable-maintainer-mode was given.
2872if test "${enable_maintainer_mode+set}" = set; then :
2873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2874else
2875 USE_MAINTAINER_MODE=no
2876fi
2877
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2879$as_echo "$USE_MAINTAINER_MODE" >&6; }
2880 if test $USE_MAINTAINER_MODE = yes; then
2881 MAINTAINER_MODE_TRUE=
2882 MAINTAINER_MODE_FALSE='#'
2883else
2884 MAINTAINER_MODE_TRUE='#'
2885 MAINTAINER_MODE_FALSE=
2886fi
2887
2888 MAINT=$MAINTAINER_MODE_TRUE
2889
2890
2891ac_aux_dir=
2892for ac_dir in .. "$srcdir"/..; do
2893 if test -f "$ac_dir/install-sh"; then
2894 ac_aux_dir=$ac_dir
2895 ac_install_sh="$ac_aux_dir/install-sh -c"
2896 break
2897 elif test -f "$ac_dir/install.sh"; then
2898 ac_aux_dir=$ac_dir
2899 ac_install_sh="$ac_aux_dir/install.sh -c"
2900 break
2901 elif test -f "$ac_dir/shtool"; then
2902 ac_aux_dir=$ac_dir
2903 ac_install_sh="$ac_aux_dir/shtool install -c"
2904 break
2905 fi
2906done
2907if test -z "$ac_aux_dir"; then
2908 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2909fi
2910
2911# These three variables are undocumented and unsupported,
2912# and are intended to be withdrawn in a future Autoconf release.
2913# They can cause serious problems if a builder's source tree is in a directory
2914# whose full name contains unusual characters.
2915ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2916ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2917ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2918
2919
2920am__api_version='1.15'
2921
2922# Find a good install program. We prefer a C program (faster),
2923# so one script is as good as another. But avoid the broken or
2924# incompatible versions:
2925# SysV /etc/install, /usr/sbin/install
2926# SunOS /usr/etc/install
2927# IRIX /sbin/install
2928# AIX /bin/install
2929# AmigaOS /C/install, which installs bootblocks on floppy discs
2930# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2931# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2932# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2933# OS/2's system install, which has a completely different semantic
2934# ./install, which can be erroneously created by make from ./install.sh.
2935# Reject install programs that cannot install multiple files.
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2937$as_echo_n "checking for a BSD-compatible install... " >&6; }
2938if test -z "$INSTALL"; then
2939if ${ac_cv_path_install+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH
2944do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 # Account for people who put trailing slashes in PATH elements.
2948case $as_dir/ in #((
2949 ./ | .// | /[cC]/* | \
2950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2951 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2952 /usr/ucb/* ) ;;
2953 *)
2954 # OSF1 and SCO ODT 3.0 have their own names for install.
2955 # Don't use installbsd from OSF since it installs stuff as root
2956 # by default.
2957 for ac_prog in ginstall scoinst install; do
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2960 if test $ac_prog = install &&
2961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2962 # AIX install. It has an incompatible calling convention.
2963 :
2964 elif test $ac_prog = install &&
2965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2966 # program-specific install script used by HP pwplus--don't use.
2967 :
2968 else
2969 rm -rf conftest.one conftest.two conftest.dir
2970 echo one > conftest.one
2971 echo two > conftest.two
2972 mkdir conftest.dir
2973 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2974 test -s conftest.one && test -s conftest.two &&
2975 test -s conftest.dir/conftest.one &&
2976 test -s conftest.dir/conftest.two
2977 then
2978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2979 break 3
2980 fi
2981 fi
2982 fi
2983 done
2984 done
2985 ;;
2986esac
2987
2988 done
2989IFS=$as_save_IFS
2990
2991rm -rf conftest.one conftest.two conftest.dir
2992
2993fi
2994 if test "${ac_cv_path_install+set}" = set; then
2995 INSTALL=$ac_cv_path_install
2996 else
2997 # As a last resort, use the slow shell script. Don't cache a
2998 # value for INSTALL within a source directory, because that will
2999 # break other packages using the cache if that directory is
3000 # removed, or if the value is a relative name.
3001 INSTALL=$ac_install_sh
3002 fi
3003fi
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3005$as_echo "$INSTALL" >&6; }
3006
3007# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3008# It thinks the first close brace ends the variable substitution.
3009test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3010
3011test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3012
3013test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3014
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3016$as_echo_n "checking whether build environment is sane... " >&6; }
3017# Reject unsafe characters in $srcdir or the absolute working directory
3018# name. Accept space and tab only in the latter.
3019am_lf='
3020'
3021case `pwd` in
3022 *[\\\"\#\$\&\'\`$am_lf]*)
3023 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3024esac
3025case $srcdir in
3026 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3027 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3028esac
3029
3030# Do 'set' in a subshell so we don't clobber the current shell's
3031# arguments. Must try -L first in case configure is actually a
3032# symlink; some systems play weird games with the mod time of symlinks
3033# (eg FreeBSD returns the mod time of the symlink's containing
3034# directory).
3035if (
3036 am_has_slept=no
3037 for am_try in 1 2; do
3038 echo "timestamp, slept: $am_has_slept" > conftest.file
3039 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3040 if test "$*" = "X"; then
3041 # -L didn't work.
3042 set X `ls -t "$srcdir/configure" conftest.file`
3043 fi
3044 if test "$*" != "X $srcdir/configure conftest.file" \
3045 && test "$*" != "X conftest.file $srcdir/configure"; then
3046
3047 # If neither matched, then we have a broken ls. This can happen
3048 # if, for instance, CONFIG_SHELL is bash and it inherits a
3049 # broken ls alias from the environment. This has actually
3050 # happened. Such a system could not be considered "sane".
3051 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3052 alias in your environment" "$LINENO" 5
3053 fi
3054 if test "$2" = conftest.file || test $am_try -eq 2; then
3055 break
3056 fi
3057 # Just in case.
3058 sleep 1
3059 am_has_slept=yes
3060 done
3061 test "$2" = conftest.file
3062 )
3063then
3064 # Ok.
3065 :
3066else
3067 as_fn_error $? "newly created file is older than distributed files!
3068Check your system clock" "$LINENO" 5
3069fi
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3071$as_echo "yes" >&6; }
3072# If we didn't sleep, we still need to ensure time stamps of config.status and
3073# generated files are strictly newer.
3074am_sleep_pid=
3075if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3076 ( sleep 1 ) &
3077 am_sleep_pid=$!
3078fi
3079
3080rm -f conftest.file
3081
3082test "$program_prefix" != NONE &&
3083 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3084# Use a double $ so make ignores it.
3085test "$program_suffix" != NONE &&
3086 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3087# Double any \ or $.
3088# By default was `s,x,x', remove it if useless.
3089ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3090program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3091
3092# Expand $ac_aux_dir to an absolute path.
3093am_aux_dir=`cd "$ac_aux_dir" && pwd`
3094
3095if test x"${MISSING+set}" != xset; then
3096 case $am_aux_dir in
3097 *\ * | *\ *)
3098 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3099 *)
3100 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3101 esac
3102fi
3103# Use eval to expand $SHELL
3104if eval "$MISSING --is-lightweight"; then
3105 am_missing_run="$MISSING "
3106else
3107 am_missing_run=
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3109$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3110fi
3111
3112if test x"${install_sh+set}" != xset; then
3113 case $am_aux_dir in
3114 *\ * | *\ *)
3115 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3116 *)
3117 install_sh="\${SHELL} $am_aux_dir/install-sh"
3118 esac
3119fi
3120
3121# Installed binaries are usually stripped using 'strip' when the user
3122# run "make install-strip". However 'strip' might not be the right
3123# tool to use in cross-compilation environments, therefore Automake
3124# will honor the 'STRIP' environment variable to overrule this program.
3125if test "$cross_compiling" != no; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3128set dummy ${ac_tool_prefix}strip; ac_word=$2
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130$as_echo_n "checking for $ac_word... " >&6; }
3131if ${ac_cv_prog_STRIP+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133else
3134 if test -n "$STRIP"; then
3135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148done
3149 done
3150IFS=$as_save_IFS
3151
3152fi
3153fi
3154STRIP=$ac_cv_prog_STRIP
3155if test -n "$STRIP"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3157$as_echo "$STRIP" >&6; }
3158else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
3161fi
3162
3163
3164fi
3165if test -z "$ac_cv_prog_STRIP"; then
3166 ac_ct_STRIP=$STRIP
3167 # Extract the first word of "strip", so it can be a program name with args.
3168set dummy strip; ac_word=$2
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170$as_echo_n "checking for $ac_word... " >&6; }
3171if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173else
3174 if test -n "$ac_ct_STRIP"; then
3175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3176else
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_ac_ct_STRIP="strip"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188done
3189 done
3190IFS=$as_save_IFS
3191
3192fi
3193fi
3194ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3195if test -n "$ac_ct_STRIP"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3197$as_echo "$ac_ct_STRIP" >&6; }
3198else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200$as_echo "no" >&6; }
3201fi
3202
3203 if test "x$ac_ct_STRIP" = x; then
3204 STRIP=":"
3205 else
3206 case $cross_compiling:$ac_tool_warned in
3207yes:)
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210ac_tool_warned=yes ;;
3211esac
3212 STRIP=$ac_ct_STRIP
3213 fi
3214else
3215 STRIP="$ac_cv_prog_STRIP"
3216fi
3217
3218fi
3219INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3220
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3222$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3223if test -z "$MKDIR_P"; then
3224 if ${ac_cv_path_mkdir+:} false; then :
3225 $as_echo_n "(cached) " >&6
3226else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3229do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_prog in mkdir gmkdir; do
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3235 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3236 'mkdir (GNU coreutils) '* | \
3237 'mkdir (coreutils) '* | \
3238 'mkdir (fileutils) '4.1*)
3239 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3240 break 3;;
3241 esac
3242 done
3243 done
3244 done
3245IFS=$as_save_IFS
3246
3247fi
3248
3249 test -d ./--version && rmdir ./--version
3250 if test "${ac_cv_path_mkdir+set}" = set; then
3251 MKDIR_P="$ac_cv_path_mkdir -p"
3252 else
3253 # As a last resort, use the slow shell script. Don't cache a
3254 # value for MKDIR_P within a source directory, because that will
3255 # break other packages using the cache if that directory is
3256 # removed, or if the value is a relative name.
3257 MKDIR_P="$ac_install_sh -d"
3258 fi
3259fi
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3261$as_echo "$MKDIR_P" >&6; }
3262
3263for ac_prog in gawk mawk nawk awk
3264do
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266set dummy $ac_prog; ac_word=$2
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268$as_echo_n "checking for $ac_word... " >&6; }
3269if ${ac_cv_prog_AWK+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271else
3272 if test -n "$AWK"; then
3273 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_AWK="$ac_prog"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286done
3287 done
3288IFS=$as_save_IFS
3289
3290fi
3291fi
3292AWK=$ac_cv_prog_AWK
3293if test -n "$AWK"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3295$as_echo "$AWK" >&6; }
3296else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299fi
3300
3301
3302 test -n "$AWK" && break
3303done
3304
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3306$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3307set x ${MAKE-make}
3308ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3309if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311else
3312 cat >conftest.make <<\_ACEOF
3313SHELL = /bin/sh
3314all:
3315 @echo '@@@%%%=$(MAKE)=@@@%%%'
3316_ACEOF
3317# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3318case `${MAKE-make} -f conftest.make 2>/dev/null` in
3319 *@@@%%%=?*=@@@%%%*)
3320 eval ac_cv_prog_make_${ac_make}_set=yes;;
3321 *)
3322 eval ac_cv_prog_make_${ac_make}_set=no;;
3323esac
3324rm -f conftest.make
3325fi
3326if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328$as_echo "yes" >&6; }
3329 SET_MAKE=
3330else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333 SET_MAKE="MAKE=${MAKE-make}"
3334fi
3335
3336rm -rf .tst 2>/dev/null
3337mkdir .tst 2>/dev/null
3338if test -d .tst; then
3339 am__leading_dot=.
3340else
3341 am__leading_dot=_
3342fi
3343rmdir .tst 2>/dev/null
3344
3345# Check whether --enable-silent-rules was given.
3346if test "${enable_silent_rules+set}" = set; then :
3347 enableval=$enable_silent_rules;
3348fi
3349
3350case $enable_silent_rules in # (((
3351 yes) AM_DEFAULT_VERBOSITY=0;;
3352 no) AM_DEFAULT_VERBOSITY=1;;
3353 *) AM_DEFAULT_VERBOSITY=1;;
3354esac
3355am_make=${MAKE-make}
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3357$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3358if ${am_cv_make_support_nested_variables+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360else
3361 if $as_echo 'TRUE=$(BAR$(V))
3362BAR0=false
3363BAR1=true
3364V=1
3365am__doit:
3366 @$(TRUE)
3367.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3368 am_cv_make_support_nested_variables=yes
3369else
3370 am_cv_make_support_nested_variables=no
3371fi
3372fi
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3374$as_echo "$am_cv_make_support_nested_variables" >&6; }
3375if test $am_cv_make_support_nested_variables = yes; then
3376 AM_V='$(V)'
3377 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3378else
3379 AM_V=$AM_DEFAULT_VERBOSITY
3380 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3381fi
3382AM_BACKSLASH='\'
3383
3384if test "`cd $srcdir && pwd`" != "`pwd`"; then
3385 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3386 # is not polluted with repeated "-I."
3387 am__isrc=' -I$(srcdir)'
3388 # test to see if srcdir already configured
3389 if test -f $srcdir/config.status; then
3390 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3391 fi
3392fi
3393
3394# test whether we have cygpath
3395if test -z "$CYGPATH_W"; then
3396 if (cygpath --version) >/dev/null 2>/dev/null; then
3397 CYGPATH_W='cygpath -w'
3398 else
3399 CYGPATH_W=echo
3400 fi
3401fi
3402
3403
3404# Define the identity of the package.
3405 PACKAGE='gdbsupport'
3406 VERSION='1.0'
3407
3408
3409cat >>confdefs.h <<_ACEOF
3410#define PACKAGE "$PACKAGE"
3411_ACEOF
3412
3413
3414cat >>confdefs.h <<_ACEOF
3415#define VERSION "$VERSION"
3416_ACEOF
3417
3418# Some tools Automake needs.
3419
3420ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3421
3422
3423AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3424
3425
3426AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3427
3428
3429AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3430
3431
3432MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3433
3434# For better backward compatibility. To be removed once Automake 1.9.x
3435# dies out for good. For more background, see:
3436# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3437# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3438mkdir_p='$(MKDIR_P)'
3439
3440# We need awk for the "check" target (and possibly the TAP driver). The
3441# system "awk" is bad on some platforms.
3442# Always define AMTAR for backward compatibility. Yes, it's still used
3443# in the wild :-( We should find a proper way to deprecate it ...
3444AMTAR='$${TAR-tar}'
3445
3446
3447# We'll loop over all known methods to create a tar archive until one works.
3448_am_tools='gnutar pax cpio none'
3449
3450am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3451
3452
3453
3454
3455
3456
3457# POSIX will say in a future version that running "rm -f" with no argument
3458# is OK; and we want to be able to make that assumption in our Makefile
3459# recipes. So use an aggressive probe to check that the usage we want is
3460# actually supported "in the wild" to an acceptable degree.
3461# See automake bug#10828.
3462# To make any issue more visible, cause the running configure to be aborted
3463# by default if the 'rm' program in use doesn't match our expectations; the
3464# user can still override this though.
3465if rm -f && rm -fr && rm -rf; then : OK; else
3466 cat >&2 <<'END'
3467Oops!
3468
3469Your 'rm' program seems unable to run without file operands specified
3470on the command line, even when the '-f' option is present. This is contrary
3471to the behaviour of most rm programs out there, and not conforming with
3472the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3473
3474Please tell bug-automake@gnu.org about your system, including the value
3475of your $PATH and any error possibly output before this message. This
3476can help us improve future automake versions.
3477
3478END
3479 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3480 echo 'Configuration will proceed anyway, since you have set the' >&2
3481 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3482 echo >&2
3483 else
3484 cat >&2 <<'END'
3485Aborting the configuration process, to ensure you take notice of the issue.
3486
3487You can download and install GNU coreutils to get an 'rm' implementation
3488that behaves properly: <http://www.gnu.org/software/coreutils/>.
3489
3490If you want to complete the configuration process using your problematic
3491'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3492to "yes", and re-run configure.
3493
3494END
3495 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3496 fi
3497fi
3498
3499# Check whether --enable-silent-rules was given.
3500if test "${enable_silent_rules+set}" = set; then :
3501 enableval=$enable_silent_rules;
3502fi
3503
3504case $enable_silent_rules in # (((
3505 yes) AM_DEFAULT_VERBOSITY=0;;
3506 no) AM_DEFAULT_VERBOSITY=1;;
3507 *) AM_DEFAULT_VERBOSITY=0;;
3508esac
3509am_make=${MAKE-make}
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3511$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3512if ${am_cv_make_support_nested_variables+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514else
3515 if $as_echo 'TRUE=$(BAR$(V))
3516BAR0=false
3517BAR1=true
3518V=1
3519am__doit:
3520 @$(TRUE)
3521.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3522 am_cv_make_support_nested_variables=yes
3523else
3524 am_cv_make_support_nested_variables=no
3525fi
3526fi
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3528$as_echo "$am_cv_make_support_nested_variables" >&6; }
3529if test $am_cv_make_support_nested_variables = yes; then
3530 AM_V='$(V)'
3531 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3532else
3533 AM_V=$AM_DEFAULT_VERBOSITY
3534 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3535fi
3536AM_BACKSLASH='\'
3537
3538
3539ac_ext=c
3540ac_cpp='$CPP $CPPFLAGS'
3541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544if test -n "$ac_tool_prefix"; then
3545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3546set dummy ${ac_tool_prefix}gcc; ac_word=$2
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548$as_echo_n "checking for $ac_word... " >&6; }
3549if ${ac_cv_prog_CC+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551else
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC="$CC" # Let the user override the test.
3554else
3555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556for as_dir in $PATH
3557do
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566done
3567 done
3568IFS=$as_save_IFS
3569
3570fi
3571fi
3572CC=$ac_cv_prog_CC
3573if test -n "$CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575$as_echo "$CC" >&6; }
3576else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578$as_echo "no" >&6; }
3579fi
3580
3581
3582fi
3583if test -z "$ac_cv_prog_CC"; then
3584 ac_ct_CC=$CC
3585 # Extract the first word of "gcc", so it can be a program name with args.
3586set dummy gcc; ac_word=$2
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588$as_echo_n "checking for $ac_word... " >&6; }
3589if ${ac_cv_prog_ac_ct_CC+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591else
3592 if test -n "$ac_ct_CC"; then
3593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3594else
3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596for as_dir in $PATH
3597do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_ac_ct_CC="gcc"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606done
3607 done
3608IFS=$as_save_IFS
3609
3610fi
3611fi
3612ac_ct_CC=$ac_cv_prog_ac_ct_CC
3613if test -n "$ac_ct_CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3615$as_echo "$ac_ct_CC" >&6; }
3616else
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618$as_echo "no" >&6; }
3619fi
3620
3621 if test "x$ac_ct_CC" = x; then
3622 CC=""
3623 else
3624 case $cross_compiling:$ac_tool_warned in
3625yes:)
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628ac_tool_warned=yes ;;
3629esac
3630 CC=$ac_ct_CC
3631 fi
3632else
3633 CC="$ac_cv_prog_CC"
3634fi
3635
3636if test -z "$CC"; then
3637 if test -n "$ac_tool_prefix"; then
3638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3639set dummy ${ac_tool_prefix}cc; ac_word=$2
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641$as_echo_n "checking for $ac_word... " >&6; }
3642if ${ac_cv_prog_CC+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644else
3645 if test -n "$CC"; then
3646 ac_cv_prog_CC="$CC" # Let the user override the test.
3647else
3648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649for as_dir in $PATH
3650do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655 ac_cv_prog_CC="${ac_tool_prefix}cc"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659done
3660 done
3661IFS=$as_save_IFS
3662
3663fi
3664fi
3665CC=$ac_cv_prog_CC
3666if test -n "$CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668$as_echo "$CC" >&6; }
3669else
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671$as_echo "no" >&6; }
3672fi
3673
3674
3675 fi
3676fi
3677if test -z "$CC"; then
3678 # Extract the first word of "cc", so it can be a program name with args.
3679set dummy cc; ac_word=$2
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681$as_echo_n "checking for $ac_word... " >&6; }
3682if ${ac_cv_prog_CC+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684else
3685 if test -n "$CC"; then
3686 ac_cv_prog_CC="$CC" # Let the user override the test.
3687else
3688 ac_prog_rejected=no
3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH
3691do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3697 ac_prog_rejected=yes
3698 continue
3699 fi
3700 ac_cv_prog_CC="cc"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704done
3705 done
3706IFS=$as_save_IFS
3707
3708if test $ac_prog_rejected = yes; then
3709 # We found a bogon in the path, so make sure we never use it.
3710 set dummy $ac_cv_prog_CC
3711 shift
3712 if test $# != 0; then
3713 # We chose a different compiler from the bogus one.
3714 # However, it has the same basename, so the bogon will be chosen
3715 # first if we set CC to just the basename; use the full file name.
3716 shift
3717 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3718 fi
3719fi
3720fi
3721fi
3722CC=$ac_cv_prog_CC
3723if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725$as_echo "$CC" >&6; }
3726else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728$as_echo "no" >&6; }
3729fi
3730
3731
3732fi
3733if test -z "$CC"; then
3734 if test -n "$ac_tool_prefix"; then
3735 for ac_prog in cl.exe
3736 do
3737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3738set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740$as_echo_n "checking for $ac_word... " >&6; }
3741if ${ac_cv_prog_CC+:} false; then :
3742 $as_echo_n "(cached) " >&6
3743else
3744 if test -n "$CC"; then
3745 ac_cv_prog_CC="$CC" # Let the user override the test.
3746else
3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH
3749do
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 break 2
3757 fi
3758done
3759 done
3760IFS=$as_save_IFS
3761
3762fi
3763fi
3764CC=$ac_cv_prog_CC
3765if test -n "$CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3767$as_echo "$CC" >&6; }
3768else
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770$as_echo "no" >&6; }
3771fi
3772
3773
3774 test -n "$CC" && break
3775 done
3776fi
3777if test -z "$CC"; then
3778 ac_ct_CC=$CC
3779 for ac_prog in cl.exe
3780do
3781 # Extract the first word of "$ac_prog", so it can be a program name with args.
3782set dummy $ac_prog; ac_word=$2
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784$as_echo_n "checking for $ac_word... " >&6; }
3785if ${ac_cv_prog_ac_ct_CC+:} false; then :
3786 $as_echo_n "(cached) " >&6
3787else
3788 if test -n "$ac_ct_CC"; then
3789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3790else
3791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792for as_dir in $PATH
3793do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798 ac_cv_prog_ac_ct_CC="$ac_prog"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 break 2
3801 fi
3802done
3803 done
3804IFS=$as_save_IFS
3805
3806fi
3807fi
3808ac_ct_CC=$ac_cv_prog_ac_ct_CC
3809if test -n "$ac_ct_CC"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3811$as_echo "$ac_ct_CC" >&6; }
3812else
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814$as_echo "no" >&6; }
3815fi
3816
3817
3818 test -n "$ac_ct_CC" && break
3819done
3820
3821 if test "x$ac_ct_CC" = x; then
3822 CC=""
3823 else
3824 case $cross_compiling:$ac_tool_warned in
3825yes:)
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3828ac_tool_warned=yes ;;
3829esac
3830 CC=$ac_ct_CC
3831 fi
3832fi
3833
3834fi
3835
3836
3837test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839as_fn_error $? "no acceptable C compiler found in \$PATH
3840See \`config.log' for more details" "$LINENO" 5; }
3841
3842# Provide some information about the compiler.
3843$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3844set X $ac_compile
3845ac_compiler=$2
3846for ac_option in --version -v -V -qversion; do
3847 { { ac_try="$ac_compiler $ac_option >&5"
3848case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851esac
3852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853$as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3855 ac_status=$?
3856 if test -s conftest.err; then
3857 sed '10a\
3858... rest of stderr output deleted ...
3859 10q' conftest.err >conftest.er1
3860 cat conftest.er1 >&5
3861 fi
3862 rm -f conftest.er1 conftest.err
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }
3865done
3866
3867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h. */
3869
3870int
3871main ()
3872{
3873
3874 ;
3875 return 0;
3876}
3877_ACEOF
3878ac_clean_files_save=$ac_clean_files
3879ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3880# Try to create an executable without -o first, disregard a.out.
3881# It will help us diagnose broken compilers, and finding out an intuition
3882# of exeext.
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3884$as_echo_n "checking whether the C compiler works... " >&6; }
3885ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3886
3887# The possible output files:
3888ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3889
3890ac_rmfiles=
3891for ac_file in $ac_files
3892do
3893 case $ac_file in
3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3895 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3896 esac
3897done
3898rm -f $ac_rmfiles
3899
3900if { { ac_try="$ac_link_default"
3901case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904esac
3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906$as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_link_default") 2>&5
3908 ac_status=$?
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; then :
3911 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3912# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3913# in a Makefile. We should not override ac_cv_exeext if it was cached,
3914# so that the user can short-circuit this test for compilers unknown to
3915# Autoconf.
3916for ac_file in $ac_files ''
3917do
3918 test -f "$ac_file" || continue
3919 case $ac_file in
3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3921 ;;
3922 [ab].out )
3923 # We found the default executable, but exeext='' is most
3924 # certainly right.
3925 break;;
3926 *.* )
3927 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3928 then :; else
3929 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3930 fi
3931 # We set ac_cv_exeext here because the later test for it is not
3932 # safe: cross compilers may not add the suffix if given an `-o'
3933 # argument, so we may need to know it at that point already.
3934 # Even if this section looks crufty: it has the advantage of
3935 # actually working.
3936 break;;
3937 * )
3938 break;;
3939 esac
3940done
3941test "$ac_cv_exeext" = no && ac_cv_exeext=
3942
3943else
3944 ac_file=''
3945fi
3946if test -z "$ac_file"; then :
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948$as_echo "no" >&6; }
3949$as_echo "$as_me: failed program was:" >&5
3950sed 's/^/| /' conftest.$ac_ext >&5
3951
3952{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954as_fn_error 77 "C compiler cannot create executables
3955See \`config.log' for more details" "$LINENO" 5; }
3956else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3958$as_echo "yes" >&6; }
3959fi
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3961$as_echo_n "checking for C compiler default output file name... " >&6; }
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3963$as_echo "$ac_file" >&6; }
3964ac_exeext=$ac_cv_exeext
3965
3966rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3967ac_clean_files=$ac_clean_files_save
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3969$as_echo_n "checking for suffix of executables... " >&6; }
3970if { { ac_try="$ac_link"
3971case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974esac
3975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976$as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_link") 2>&5
3978 ac_status=$?
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }; then :
3981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3982# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3983# work properly (i.e., refer to `conftest.exe'), while it won't with
3984# `rm'.
3985for ac_file in conftest.exe conftest conftest.*; do
3986 test -f "$ac_file" || continue
3987 case $ac_file in
3988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3990 break;;
3991 * ) break;;
3992 esac
3993done
3994else
3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3998See \`config.log' for more details" "$LINENO" 5; }
3999fi
4000rm -f conftest conftest$ac_cv_exeext
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4002$as_echo "$ac_cv_exeext" >&6; }
4003
4004rm -f conftest.$ac_ext
4005EXEEXT=$ac_cv_exeext
4006ac_exeext=$EXEEXT
4007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008/* end confdefs.h. */
4009#include <stdio.h>
4010int
4011main ()
4012{
4013FILE *f = fopen ("conftest.out", "w");
4014 return ferror (f) || fclose (f) != 0;
4015
4016 ;
4017 return 0;
4018}
4019_ACEOF
4020ac_clean_files="$ac_clean_files conftest.out"
4021# Check that the compiler produces executables we can run. If not, either
4022# the compiler is broken, or we cross compile.
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4024$as_echo_n "checking whether we are cross compiling... " >&6; }
4025if test "$cross_compiling" != yes; then
4026 { { ac_try="$ac_link"
4027case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030esac
4031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032$as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_link") 2>&5
4034 ac_status=$?
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }
4037 if { ac_try='./conftest$ac_cv_exeext'
4038 { { case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041esac
4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043$as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_try") 2>&5
4045 ac_status=$?
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }; }; then
4048 cross_compiling=no
4049 else
4050 if test "$cross_compiling" = maybe; then
4051 cross_compiling=yes
4052 else
4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055as_fn_error $? "cannot run C compiled programs.
4056If you meant to cross compile, use \`--host'.
4057See \`config.log' for more details" "$LINENO" 5; }
4058 fi
4059 fi
4060fi
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4062$as_echo "$cross_compiling" >&6; }
4063
4064rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4065ac_clean_files=$ac_clean_files_save
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4067$as_echo_n "checking for suffix of object files... " >&6; }
4068if ${ac_cv_objext+:} false; then :
4069 $as_echo_n "(cached) " >&6
4070else
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072/* end confdefs.h. */
4073
4074int
4075main ()
4076{
4077
4078 ;
4079 return 0;
4080}
4081_ACEOF
4082rm -f conftest.o conftest.obj
4083if { { ac_try="$ac_compile"
4084case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087esac
4088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089$as_echo "$ac_try_echo"; } >&5
4090 (eval "$ac_compile") 2>&5
4091 ac_status=$?
4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }; then :
4094 for ac_file in conftest.o conftest.obj conftest.*; do
4095 test -f "$ac_file" || continue;
4096 case $ac_file in
4097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4099 break;;
4100 esac
4101done
4102else
4103 $as_echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
4105
4106{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4108as_fn_error $? "cannot compute suffix of object files: cannot compile
4109See \`config.log' for more details" "$LINENO" 5; }
4110fi
4111rm -f conftest.$ac_cv_objext conftest.$ac_ext
4112fi
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4114$as_echo "$ac_cv_objext" >&6; }
4115OBJEXT=$ac_cv_objext
4116ac_objext=$OBJEXT
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4118$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4119if ${ac_cv_c_compiler_gnu+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121else
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h. */
4124
4125int
4126main ()
4127{
4128#ifndef __GNUC__
4129 choke me
4130#endif
4131
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_compiler_gnu=yes
4138else
4139 ac_compiler_gnu=no
4140fi
4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142ac_cv_c_compiler_gnu=$ac_compiler_gnu
4143
4144fi
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4146$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4147if test $ac_compiler_gnu = yes; then
4148 GCC=yes
4149else
4150 GCC=
4151fi
4152ac_test_CFLAGS=${CFLAGS+set}
4153ac_save_CFLAGS=$CFLAGS
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4155$as_echo_n "checking whether $CC accepts -g... " >&6; }
4156if ${ac_cv_prog_cc_g+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158else
4159 ac_save_c_werror_flag=$ac_c_werror_flag
4160 ac_c_werror_flag=yes
4161 ac_cv_prog_cc_g=no
4162 CFLAGS="-g"
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h. */
4165
4166int
4167main ()
4168{
4169
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_prog_cc_g=yes
4176else
4177 CFLAGS=""
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179/* end confdefs.h. */
4180
4181int
4182main ()
4183{
4184
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189if ac_fn_c_try_compile "$LINENO"; then :
4190
4191else
4192 ac_c_werror_flag=$ac_save_c_werror_flag
4193 CFLAGS="-g"
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h. */
4196
4197int
4198main ()
4199{
4200
4201 ;
4202 return 0;
4203}
4204_ACEOF
4205if ac_fn_c_try_compile "$LINENO"; then :
4206 ac_cv_prog_cc_g=yes
4207fi
4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209fi
4210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211fi
4212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 ac_c_werror_flag=$ac_save_c_werror_flag
4214fi
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4216$as_echo "$ac_cv_prog_cc_g" >&6; }
4217if test "$ac_test_CFLAGS" = set; then
4218 CFLAGS=$ac_save_CFLAGS
4219elif test $ac_cv_prog_cc_g = yes; then
4220 if test "$GCC" = yes; then
4221 CFLAGS="-g -O2"
4222 else
4223 CFLAGS="-g"
4224 fi
4225else
4226 if test "$GCC" = yes; then
4227 CFLAGS="-O2"
4228 else
4229 CFLAGS=
4230 fi
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4233$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4234if ${ac_cv_prog_cc_c89+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236else
4237 ac_cv_prog_cc_c89=no
4238ac_save_CC=$CC
4239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h. */
4241#include <stdarg.h>
4242#include <stdio.h>
4243struct stat;
4244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4245struct buf { int x; };
4246FILE * (*rcsopen) (struct buf *, struct stat *, int);
4247static char *e (p, i)
4248 char **p;
4249 int i;
4250{
4251 return p[i];
4252}
4253static char *f (char * (*g) (char **, int), char **p, ...)
4254{
4255 char *s;
4256 va_list v;
4257 va_start (v,p);
4258 s = g (p, va_arg (v,int));
4259 va_end (v);
4260 return s;
4261}
4262
4263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4264 function prototypes and stuff, but not '\xHH' hex character constants.
4265 These don't provoke an error unfortunately, instead are silently treated
4266 as 'x'. The following induces an error, until -std is added to get
4267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4268 array size at least. It's necessary to write '\x00'==0 to get something
4269 that's true only with -std. */
4270int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4271
4272/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4273 inside strings and character constants. */
4274#define FOO(x) 'x'
4275int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4276
4277int test (int i, double x);
4278struct s1 {int (*f) (int a);};
4279struct s2 {int (*f) (double a);};
4280int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4281int argc;
4282char **argv;
4283int
4284main ()
4285{
4286return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4287 ;
4288 return 0;
4289}
4290_ACEOF
4291for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4293do
4294 CC="$ac_save_CC $ac_arg"
4295 if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_cv_prog_cc_c89=$ac_arg
4297fi
4298rm -f core conftest.err conftest.$ac_objext
4299 test "x$ac_cv_prog_cc_c89" != "xno" && break
4300done
4301rm -f conftest.$ac_ext
4302CC=$ac_save_CC
4303
4304fi
4305# AC_CACHE_VAL
4306case "x$ac_cv_prog_cc_c89" in
4307 x)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4309$as_echo "none needed" >&6; } ;;
4310 xno)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4312$as_echo "unsupported" >&6; } ;;
4313 *)
4314 CC="$CC $ac_cv_prog_cc_c89"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4316$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4317esac
4318if test "x$ac_cv_prog_cc_c89" != xno; then :
4319
4320fi
4321
4322ac_ext=c
4323ac_cpp='$CPP $CPPFLAGS'
4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327
4328ac_ext=c
4329ac_cpp='$CPP $CPPFLAGS'
4330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4334$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4335if ${am_cv_prog_cc_c_o+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337else
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339/* end confdefs.h. */
4340
4341int
4342main ()
4343{
4344
4345 ;
4346 return 0;
4347}
4348_ACEOF
4349 # Make sure it works both with $CC and with simple cc.
4350 # Following AC_PROG_CC_C_O, we do the test twice because some
4351 # compilers refuse to overwrite an existing .o file with -o,
4352 # though they will create one.
4353 am_cv_prog_cc_c_o=yes
4354 for am_i in 1 2; do
4355 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4356 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } \
4360 && test -f conftest2.$ac_objext; then
4361 : OK
4362 else
4363 am_cv_prog_cc_c_o=no
4364 break
4365 fi
4366 done
4367 rm -f core conftest*
4368 unset am_i
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4371$as_echo "$am_cv_prog_cc_c_o" >&6; }
4372if test "$am_cv_prog_cc_c_o" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC="$am_aux_dir/compile $CC"
4379fi
4380ac_ext=c
4381ac_cpp='$CPP $CPPFLAGS'
4382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385
4386DEPDIR="${am__leading_dot}deps"
4387
4388ac_config_commands="$ac_config_commands depfiles"
4389
4390
4391am_make=${MAKE-make}
4392cat > confinc << 'END'
4393am__doit:
4394 @echo this is the am__doit target
4395.PHONY: am__doit
4396END
4397# If we don't find an include directive, just comment out the code.
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4399$as_echo_n "checking for style of include used by $am_make... " >&6; }
4400am__include="#"
4401am__quote=
4402_am_result=none
4403# First try GNU make style include.
4404echo "include confinc" > confmf
4405# Ignore all kinds of additional output from 'make'.
4406case `$am_make -s -f confmf 2> /dev/null` in #(
4407*the\ am__doit\ target*)
4408 am__include=include
4409 am__quote=
4410 _am_result=GNU
4411 ;;
4412esac
4413# Now try BSD make style include.
4414if test "$am__include" = "#"; then
4415 echo '.include "confinc"' > confmf
4416 case `$am_make -s -f confmf 2> /dev/null` in #(
4417 *the\ am__doit\ target*)
4418 am__include=.include
4419 am__quote="\""
4420 _am_result=BSD
4421 ;;
4422 esac
4423fi
4424
4425
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4427$as_echo "$_am_result" >&6; }
4428rm -f confinc confmf
4429
4430# Check whether --enable-dependency-tracking was given.
4431if test "${enable_dependency_tracking+set}" = set; then :
4432 enableval=$enable_dependency_tracking;
4433fi
4434
4435if test "x$enable_dependency_tracking" != xno; then
4436 am_depcomp="$ac_aux_dir/depcomp"
4437 AMDEPBACKSLASH='\'
4438 am__nodep='_no'
4439fi
4440 if test "x$enable_dependency_tracking" != xno; then
4441 AMDEP_TRUE=
4442 AMDEP_FALSE='#'
4443else
4444 AMDEP_TRUE='#'
4445 AMDEP_FALSE=
4446fi
4447
4448
4449
4450depcc="$CC" am_compiler_list=
4451
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4453$as_echo_n "checking dependency style of $depcc... " >&6; }
4454if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456else
4457 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4458 # We make a subdir and do the tests there. Otherwise we can end up
4459 # making bogus files that we don't know about and never remove. For
4460 # instance it was reported that on HP-UX the gcc test will end up
4461 # making a dummy file named 'D' -- because '-MD' means "put the output
4462 # in D".
4463 rm -rf conftest.dir
4464 mkdir conftest.dir
4465 # Copy depcomp to subdir because otherwise we won't find it if we're
4466 # using a relative directory.
4467 cp "$am_depcomp" conftest.dir
4468 cd conftest.dir
4469 # We will build objects and dependencies in a subdirectory because
4470 # it helps to detect inapplicable dependency modes. For instance
4471 # both Tru64's cc and ICC support -MD to output dependencies as a
4472 # side effect of compilation, but ICC will put the dependencies in
4473 # the current directory while Tru64 will put them in the object
4474 # directory.
4475 mkdir sub
4476
4477 am_cv_CC_dependencies_compiler_type=none
4478 if test "$am_compiler_list" = ""; then
4479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4480 fi
4481 am__universal=false
4482 case " $depcc " in #(
4483 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4484 esac
4485
4486 for depmode in $am_compiler_list; do
4487 # Setup a source with many dependencies, because some compilers
4488 # like to wrap large dependency lists on column 80 (with \), and
4489 # we should not choose a depcomp mode which is confused by this.
4490 #
4491 # We need to recreate these files for each test, as the compiler may
4492 # overwrite some of them when testing with obscure command lines.
4493 # This happens at least with the AIX C compiler.
4494 : > sub/conftest.c
4495 for i in 1 2 3 4 5 6; do
4496 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4497 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4498 # Solaris 10 /bin/sh.
4499 echo '/* dummy */' > sub/conftst$i.h
4500 done
4501 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4502
4503 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4504 # mode. It turns out that the SunPro C++ compiler does not properly
4505 # handle '-M -o', and we need to detect this. Also, some Intel
4506 # versions had trouble with output in subdirs.
4507 am__obj=sub/conftest.${OBJEXT-o}
4508 am__minus_obj="-o $am__obj"
4509 case $depmode in
4510 gcc)
4511 # This depmode causes a compiler race in universal mode.
4512 test "$am__universal" = false || continue
4513 ;;
4514 nosideeffect)
4515 # After this tag, mechanisms are not by side-effect, so they'll
4516 # only be used when explicitly requested.
4517 if test "x$enable_dependency_tracking" = xyes; then
4518 continue
4519 else
4520 break
4521 fi
4522 ;;
4523 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4524 # This compiler won't grok '-c -o', but also, the minuso test has
4525 # not run yet. These depmodes are late enough in the game, and
4526 # so weak that their functioning should not be impacted.
4527 am__obj=conftest.${OBJEXT-o}
4528 am__minus_obj=
4529 ;;
4530 none) break ;;
4531 esac
4532 if depmode=$depmode \
4533 source=sub/conftest.c object=$am__obj \
4534 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4535 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4536 >/dev/null 2>conftest.err &&
4537 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4539 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4541 # icc doesn't choke on unknown options, it will just issue warnings
4542 # or remarks (even with -Werror). So we grep stderr for any message
4543 # that says an option was ignored or not supported.
4544 # When given -MP, icc 7.0 and 7.1 complain thusly:
4545 # icc: Command line warning: ignoring option '-M'; no argument required
4546 # The diagnosis changed in icc 8.0:
4547 # icc: Command line remark: option '-MP' not supported
4548 if (grep 'ignoring option' conftest.err ||
4549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4550 am_cv_CC_dependencies_compiler_type=$depmode
4551 break
4552 fi
4553 fi
4554 done
4555
4556 cd ..
4557 rm -rf conftest.dir
4558else
4559 am_cv_CC_dependencies_compiler_type=none
4560fi
4561
4562fi
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4564$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4565CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4566
4567 if
4568 test "x$enable_dependency_tracking" != xno \
4569 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4570 am__fastdepCC_TRUE=
4571 am__fastdepCC_FALSE='#'
4572else
4573 am__fastdepCC_TRUE='#'
4574 am__fastdepCC_FALSE=
4575fi
4576
4577
4578ac_ext=cpp
4579ac_cpp='$CXXCPP $CPPFLAGS'
4580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4583if test -z "$CXX"; then
4584 if test -n "$CCC"; then
4585 CXX=$CCC
4586 else
4587 if test -n "$ac_tool_prefix"; then
4588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4589 do
4590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593$as_echo_n "checking for $ac_word... " >&6; }
4594if ${ac_cv_prog_CXX+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596else
4597 if test -n "$CXX"; then
4598 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
4612 done
4613IFS=$as_save_IFS
4614
4615fi
4616fi
4617CXX=$ac_cv_prog_CXX
4618if test -n "$CXX"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4620$as_echo "$CXX" >&6; }
4621else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623$as_echo "no" >&6; }
4624fi
4625
4626
4627 test -n "$CXX" && break
4628 done
4629fi
4630if test -z "$CXX"; then
4631 ac_ct_CXX=$CXX
4632 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4633do
4634 # Extract the first word of "$ac_prog", so it can be a program name with args.
4635set dummy $ac_prog; ac_word=$2
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637$as_echo_n "checking for $ac_word... " >&6; }
4638if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640else
4641 if test -n "$ac_ct_CXX"; then
4642 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4643else
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_CXX="$ac_prog"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655done
4656 done
4657IFS=$as_save_IFS
4658
4659fi
4660fi
4661ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4662if test -n "$ac_ct_CXX"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4664$as_echo "$ac_ct_CXX" >&6; }
4665else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667$as_echo "no" >&6; }
4668fi
4669
4670
4671 test -n "$ac_ct_CXX" && break
4672done
4673
4674 if test "x$ac_ct_CXX" = x; then
4675 CXX="g++"
4676 else
4677 case $cross_compiling:$ac_tool_warned in
4678yes:)
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4681ac_tool_warned=yes ;;
4682esac
4683 CXX=$ac_ct_CXX
4684 fi
4685fi
4686
4687 fi
4688fi
4689# Provide some information about the compiler.
4690$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4691set X $ac_compile
4692ac_compiler=$2
4693for ac_option in --version -v -V -qversion; do
4694 { { ac_try="$ac_compiler $ac_option >&5"
4695case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698esac
4699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700$as_echo "$ac_try_echo"; } >&5
4701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4702 ac_status=$?
4703 if test -s conftest.err; then
4704 sed '10a\
4705... rest of stderr output deleted ...
4706 10q' conftest.err >conftest.er1
4707 cat conftest.er1 >&5
4708 fi
4709 rm -f conftest.er1 conftest.err
4710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4711 test $ac_status = 0; }
4712done
4713
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4715$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4716if ${ac_cv_cxx_compiler_gnu+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718else
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720/* end confdefs.h. */
4721
4722int
4723main ()
4724{
4725#ifndef __GNUC__
4726 choke me
4727#endif
4728
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733if ac_fn_cxx_try_compile "$LINENO"; then :
4734 ac_compiler_gnu=yes
4735else
4736 ac_compiler_gnu=no
4737fi
4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4740
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4743$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4744if test $ac_compiler_gnu = yes; then
4745 GXX=yes
4746else
4747 GXX=
4748fi
4749ac_test_CXXFLAGS=${CXXFLAGS+set}
4750ac_save_CXXFLAGS=$CXXFLAGS
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4752$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4753if ${ac_cv_prog_cxx_g+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755else
4756 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4757 ac_cxx_werror_flag=yes
4758 ac_cv_prog_cxx_g=no
4759 CXXFLAGS="-g"
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h. */
4762
4763int
4764main ()
4765{
4766
4767 ;
4768 return 0;
4769}
4770_ACEOF
4771if ac_fn_cxx_try_compile "$LINENO"; then :
4772 ac_cv_prog_cxx_g=yes
4773else
4774 CXXFLAGS=""
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776/* end confdefs.h. */
4777
4778int
4779main ()
4780{
4781
4782 ;
4783 return 0;
4784}
4785_ACEOF
4786if ac_fn_cxx_try_compile "$LINENO"; then :
4787
4788else
4789 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4790 CXXFLAGS="-g"
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792/* end confdefs.h. */
4793
4794int
4795main ()
4796{
4797
4798 ;
4799 return 0;
4800}
4801_ACEOF
4802if ac_fn_cxx_try_compile "$LINENO"; then :
4803 ac_cv_prog_cxx_g=yes
4804fi
4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806fi
4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808fi
4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4811fi
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4813$as_echo "$ac_cv_prog_cxx_g" >&6; }
4814if test "$ac_test_CXXFLAGS" = set; then
4815 CXXFLAGS=$ac_save_CXXFLAGS
4816elif test $ac_cv_prog_cxx_g = yes; then
4817 if test "$GXX" = yes; then
4818 CXXFLAGS="-g -O2"
4819 else
4820 CXXFLAGS="-g"
4821 fi
4822else
4823 if test "$GXX" = yes; then
4824 CXXFLAGS="-O2"
4825 else
4826 CXXFLAGS=
4827 fi
4828fi
4829ac_ext=c
4830ac_cpp='$CPP $CPPFLAGS'
4831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834
4835depcc="$CXX" am_compiler_list=
4836
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4838$as_echo_n "checking dependency style of $depcc... " >&6; }
4839if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841else
4842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4843 # We make a subdir and do the tests there. Otherwise we can end up
4844 # making bogus files that we don't know about and never remove. For
4845 # instance it was reported that on HP-UX the gcc test will end up
4846 # making a dummy file named 'D' -- because '-MD' means "put the output
4847 # in D".
4848 rm -rf conftest.dir
4849 mkdir conftest.dir
4850 # Copy depcomp to subdir because otherwise we won't find it if we're
4851 # using a relative directory.
4852 cp "$am_depcomp" conftest.dir
4853 cd conftest.dir
4854 # We will build objects and dependencies in a subdirectory because
4855 # it helps to detect inapplicable dependency modes. For instance
4856 # both Tru64's cc and ICC support -MD to output dependencies as a
4857 # side effect of compilation, but ICC will put the dependencies in
4858 # the current directory while Tru64 will put them in the object
4859 # directory.
4860 mkdir sub
4861
4862 am_cv_CXX_dependencies_compiler_type=none
4863 if test "$am_compiler_list" = ""; then
4864 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4865 fi
4866 am__universal=false
4867 case " $depcc " in #(
4868 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4869 esac
4870
4871 for depmode in $am_compiler_list; do
4872 # Setup a source with many dependencies, because some compilers
4873 # like to wrap large dependency lists on column 80 (with \), and
4874 # we should not choose a depcomp mode which is confused by this.
4875 #
4876 # We need to recreate these files for each test, as the compiler may
4877 # overwrite some of them when testing with obscure command lines.
4878 # This happens at least with the AIX C compiler.
4879 : > sub/conftest.c
4880 for i in 1 2 3 4 5 6; do
4881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4882 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4883 # Solaris 10 /bin/sh.
4884 echo '/* dummy */' > sub/conftst$i.h
4885 done
4886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4887
4888 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4889 # mode. It turns out that the SunPro C++ compiler does not properly
4890 # handle '-M -o', and we need to detect this. Also, some Intel
4891 # versions had trouble with output in subdirs.
4892 am__obj=sub/conftest.${OBJEXT-o}
4893 am__minus_obj="-o $am__obj"
4894 case $depmode in
4895 gcc)
4896 # This depmode causes a compiler race in universal mode.
4897 test "$am__universal" = false || continue
4898 ;;
4899 nosideeffect)
4900 # After this tag, mechanisms are not by side-effect, so they'll
4901 # only be used when explicitly requested.
4902 if test "x$enable_dependency_tracking" = xyes; then
4903 continue
4904 else
4905 break
4906 fi
4907 ;;
4908 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4909 # This compiler won't grok '-c -o', but also, the minuso test has
4910 # not run yet. These depmodes are late enough in the game, and
4911 # so weak that their functioning should not be impacted.
4912 am__obj=conftest.${OBJEXT-o}
4913 am__minus_obj=
4914 ;;
4915 none) break ;;
4916 esac
4917 if depmode=$depmode \
4918 source=sub/conftest.c object=$am__obj \
4919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4921 >/dev/null 2>conftest.err &&
4922 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4926 # icc doesn't choke on unknown options, it will just issue warnings
4927 # or remarks (even with -Werror). So we grep stderr for any message
4928 # that says an option was ignored or not supported.
4929 # When given -MP, icc 7.0 and 7.1 complain thusly:
4930 # icc: Command line warning: ignoring option '-M'; no argument required
4931 # The diagnosis changed in icc 8.0:
4932 # icc: Command line remark: option '-MP' not supported
4933 if (grep 'ignoring option' conftest.err ||
4934 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4935 am_cv_CXX_dependencies_compiler_type=$depmode
4936 break
4937 fi
4938 fi
4939 done
4940
4941 cd ..
4942 rm -rf conftest.dir
4943else
4944 am_cv_CXX_dependencies_compiler_type=none
4945fi
4946
4947fi
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4949$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4950CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4951
4952 if
4953 test "x$enable_dependency_tracking" != xno \
4954 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4955 am__fastdepCXX_TRUE=
4956 am__fastdepCXX_FALSE='#'
4957else
4958 am__fastdepCXX_TRUE='#'
4959 am__fastdepCXX_FALSE=
4960fi
4961
4962
4963if test -n "$ac_tool_prefix"; then
4964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4965set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967$as_echo_n "checking for $ac_word... " >&6; }
4968if ${ac_cv_prog_RANLIB+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970else
4971 if test -n "$RANLIB"; then
4972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4973else
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4984 fi
4985done
4986 done
4987IFS=$as_save_IFS
4988
4989fi
4990fi
4991RANLIB=$ac_cv_prog_RANLIB
4992if test -n "$RANLIB"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4994$as_echo "$RANLIB" >&6; }
4995else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
4998fi
4999
5000
5001fi
5002if test -z "$ac_cv_prog_RANLIB"; then
5003 ac_ct_RANLIB=$RANLIB
5004 # Extract the first word of "ranlib", so it can be a program name with args.
5005set dummy ranlib; ac_word=$2
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007$as_echo_n "checking for $ac_word... " >&6; }
5008if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010else
5011 if test -n "$ac_ct_RANLIB"; then
5012 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5013else
5014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH
5016do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_ac_ct_RANLIB="ranlib"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025done
5026 done
5027IFS=$as_save_IFS
5028
5029fi
5030fi
5031ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5032if test -n "$ac_ct_RANLIB"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5034$as_echo "$ac_ct_RANLIB" >&6; }
5035else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037$as_echo "no" >&6; }
5038fi
5039
5040 if test "x$ac_ct_RANLIB" = x; then
5041 RANLIB=":"
5042 else
5043 case $cross_compiling:$ac_tool_warned in
5044yes:)
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047ac_tool_warned=yes ;;
5048esac
5049 RANLIB=$ac_ct_RANLIB
5050 fi
5051else
5052 RANLIB="$ac_cv_prog_RANLIB"
5053fi
5054
5055
5056
5057ac_ext=c
5058ac_cpp='$CPP $CPPFLAGS'
5059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5063$as_echo_n "checking how to run the C preprocessor... " >&6; }
5064# On Suns, sometimes $CPP names a directory.
5065if test -n "$CPP" && test -d "$CPP"; then
5066 CPP=
5067fi
5068if test -z "$CPP"; then
5069 if ${ac_cv_prog_CPP+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071else
5072 # Double quotes because CPP needs to be expanded
5073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5074 do
5075 ac_preproc_ok=false
5076for ac_c_preproc_warn_flag in '' yes
5077do
5078 # Use a header file that comes with gcc, so configuring glibc
5079 # with a fresh cross-compiler works.
5080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5081 # <limits.h> exists even on freestanding compilers.
5082 # On the NeXT, cc -E runs the code through the compiler's parser,
5083 # not just through cpp. "Syntax error" is here to catch this case.
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h. */
5086#ifdef __STDC__
5087# include <limits.h>
5088#else
5089# include <assert.h>
5090#endif
5091 Syntax error
5092_ACEOF
5093if ac_fn_c_try_cpp "$LINENO"; then :
5094
5095else
5096 # Broken: fails on valid input.
5097continue
5098fi
5099rm -f conftest.err conftest.i conftest.$ac_ext
5100
5101 # OK, works on sane cases. Now check whether nonexistent headers
5102 # can be detected and how.
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h. */
5105#include <ac_nonexistent.h>
5106_ACEOF
5107if ac_fn_c_try_cpp "$LINENO"; then :
5108 # Broken: success on invalid input.
5109continue
5110else
5111 # Passes both tests.
5112ac_preproc_ok=:
5113break
5114fi
5115rm -f conftest.err conftest.i conftest.$ac_ext
5116
5117done
5118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119rm -f conftest.i conftest.err conftest.$ac_ext
5120if $ac_preproc_ok; then :
5121 break
5122fi
5123
5124 done
5125 ac_cv_prog_CPP=$CPP
5126
5127fi
5128 CPP=$ac_cv_prog_CPP
5129else
5130 ac_cv_prog_CPP=$CPP
5131fi
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5133$as_echo "$CPP" >&6; }
5134ac_preproc_ok=false
5135for ac_c_preproc_warn_flag in '' yes
5136do
5137 # Use a header file that comes with gcc, so configuring glibc
5138 # with a fresh cross-compiler works.
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140 # <limits.h> exists even on freestanding compilers.
5141 # On the NeXT, cc -E runs the code through the compiler's parser,
5142 # not just through cpp. "Syntax error" is here to catch this case.
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h. */
5145#ifdef __STDC__
5146# include <limits.h>
5147#else
5148# include <assert.h>
5149#endif
5150 Syntax error
5151_ACEOF
5152if ac_fn_c_try_cpp "$LINENO"; then :
5153
5154else
5155 # Broken: fails on valid input.
5156continue
5157fi
5158rm -f conftest.err conftest.i conftest.$ac_ext
5159
5160 # OK, works on sane cases. Now check whether nonexistent headers
5161 # can be detected and how.
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163/* end confdefs.h. */
5164#include <ac_nonexistent.h>
5165_ACEOF
5166if ac_fn_c_try_cpp "$LINENO"; then :
5167 # Broken: success on invalid input.
5168continue
5169else
5170 # Passes both tests.
5171ac_preproc_ok=:
5172break
5173fi
5174rm -f conftest.err conftest.i conftest.$ac_ext
5175
5176done
5177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5178rm -f conftest.i conftest.err conftest.$ac_ext
5179if $ac_preproc_ok; then :
5180
5181else
5182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5184as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5185See \`config.log' for more details" "$LINENO" 5; }
5186fi
5187
5188ac_ext=c
5189ac_cpp='$CPP $CPPFLAGS'
5190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193
5194
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5196$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5197if ${ac_cv_path_GREP+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199else
5200 if test -z "$GREP"; then
5201 ac_path_GREP_found=false
5202 # Loop through the user's path and test for each of PROGNAME-LIST
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_prog in grep ggrep; do
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5211 as_fn_executable_p "$ac_path_GREP" || continue
5212# Check for GNU ac_path_GREP and select it if it is found.
5213 # Check for GNU $ac_path_GREP
5214case `"$ac_path_GREP" --version 2>&1` in
5215*GNU*)
5216 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5217*)
5218 ac_count=0
5219 $as_echo_n 0123456789 >"conftest.in"
5220 while :
5221 do
5222 cat "conftest.in" "conftest.in" >"conftest.tmp"
5223 mv "conftest.tmp" "conftest.in"
5224 cp "conftest.in" "conftest.nl"
5225 $as_echo 'GREP' >> "conftest.nl"
5226 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5228 as_fn_arith $ac_count + 1 && ac_count=$as_val
5229 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5230 # Best one so far, save it but keep looking for a better one
5231 ac_cv_path_GREP="$ac_path_GREP"
5232 ac_path_GREP_max=$ac_count
5233 fi
5234 # 10*(2^10) chars as input seems more than enough
5235 test $ac_count -gt 10 && break
5236 done
5237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5238esac
5239
5240 $ac_path_GREP_found && break 3
5241 done
5242 done
5243 done
5244IFS=$as_save_IFS
5245 if test -z "$ac_cv_path_GREP"; then
5246 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5247 fi
5248else
5249 ac_cv_path_GREP=$GREP
5250fi
5251
5252fi
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5254$as_echo "$ac_cv_path_GREP" >&6; }
5255 GREP="$ac_cv_path_GREP"
5256
5257
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5259$as_echo_n "checking for egrep... " >&6; }
5260if ${ac_cv_path_EGREP+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262else
5263 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5264 then ac_cv_path_EGREP="$GREP -E"
5265 else
5266 if test -z "$EGREP"; then
5267 ac_path_EGREP_found=false
5268 # Loop through the user's path and test for each of PROGNAME-LIST
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5271do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_prog in egrep; do
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5277 as_fn_executable_p "$ac_path_EGREP" || continue
5278# Check for GNU ac_path_EGREP and select it if it is found.
5279 # Check for GNU $ac_path_EGREP
5280case `"$ac_path_EGREP" --version 2>&1` in
5281*GNU*)
5282 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5283*)
5284 ac_count=0
5285 $as_echo_n 0123456789 >"conftest.in"
5286 while :
5287 do
5288 cat "conftest.in" "conftest.in" >"conftest.tmp"
5289 mv "conftest.tmp" "conftest.in"
5290 cp "conftest.in" "conftest.nl"
5291 $as_echo 'EGREP' >> "conftest.nl"
5292 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5294 as_fn_arith $ac_count + 1 && ac_count=$as_val
5295 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5296 # Best one so far, save it but keep looking for a better one
5297 ac_cv_path_EGREP="$ac_path_EGREP"
5298 ac_path_EGREP_max=$ac_count
5299 fi
5300 # 10*(2^10) chars as input seems more than enough
5301 test $ac_count -gt 10 && break
5302 done
5303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5304esac
5305
5306 $ac_path_EGREP_found && break 3
5307 done
5308 done
5309 done
5310IFS=$as_save_IFS
5311 if test -z "$ac_cv_path_EGREP"; then
5312 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5313 fi
5314else
5315 ac_cv_path_EGREP=$EGREP
5316fi
5317
5318 fi
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5321$as_echo "$ac_cv_path_EGREP" >&6; }
5322 EGREP="$ac_cv_path_EGREP"
5323
5324
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5326$as_echo_n "checking for ANSI C header files... " >&6; }
5327if ${ac_cv_header_stdc+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329else
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331/* end confdefs.h. */
5332#include <stdlib.h>
5333#include <stdarg.h>
5334#include <string.h>
5335#include <float.h>
5336
5337int
5338main ()
5339{
5340
5341 ;
5342 return 0;
5343}
5344_ACEOF
5345if ac_fn_c_try_compile "$LINENO"; then :
5346 ac_cv_header_stdc=yes
5347else
5348 ac_cv_header_stdc=no
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351
5352if test $ac_cv_header_stdc = yes; then
5353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h. */
5356#include <string.h>
5357
5358_ACEOF
5359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 $EGREP "memchr" >/dev/null 2>&1; then :
5361
5362else
5363 ac_cv_header_stdc=no
5364fi
5365rm -f conftest*
5366
5367fi
5368
5369if test $ac_cv_header_stdc = yes; then
5370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h. */
5373#include <stdlib.h>
5374
5375_ACEOF
5376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 $EGREP "free" >/dev/null 2>&1; then :
5378
5379else
5380 ac_cv_header_stdc=no
5381fi
5382rm -f conftest*
5383
5384fi
5385
5386if test $ac_cv_header_stdc = yes; then
5387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5388 if test "$cross_compiling" = yes; then :
5389 :
5390else
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
5393#include <ctype.h>
5394#include <stdlib.h>
5395#if ((' ' & 0x0FF) == 0x020)
5396# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5397# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5398#else
5399# define ISLOWER(c) \
5400 (('a' <= (c) && (c) <= 'i') \
5401 || ('j' <= (c) && (c) <= 'r') \
5402 || ('s' <= (c) && (c) <= 'z'))
5403# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5404#endif
5405
5406#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5407int
5408main ()
5409{
5410 int i;
5411 for (i = 0; i < 256; i++)
5412 if (XOR (islower (i), ISLOWER (i))
5413 || toupper (i) != TOUPPER (i))
5414 return 2;
5415 return 0;
5416}
5417_ACEOF
5418if ac_fn_c_try_run "$LINENO"; then :
5419
5420else
5421 ac_cv_header_stdc=no
5422fi
5423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5424 conftest.$ac_objext conftest.beam conftest.$ac_ext
5425fi
5426
5427fi
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5430$as_echo "$ac_cv_header_stdc" >&6; }
5431if test $ac_cv_header_stdc = yes; then
5432
5433$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5434
5435fi
5436
5437# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5438for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5439 inttypes.h stdint.h unistd.h
5440do :
5441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5442ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5443"
5444if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5445 cat >>confdefs.h <<_ACEOF
5446#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447_ACEOF
5448
5449fi
5450
5451done
5452
5453
5454
5455 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5456if test "x$ac_cv_header_minix_config_h" = xyes; then :
5457 MINIX=yes
5458else
5459 MINIX=
5460fi
5461
5462
5463 if test "$MINIX" = yes; then
5464
5465$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5466
5467
5468$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5469
5470
5471$as_echo "#define _MINIX 1" >>confdefs.h
5472
5473 fi
5474
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5477$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5478if ${ac_cv_safe_to_define___extensions__+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480else
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h. */
5483
5484# define __EXTENSIONS__ 1
5485 $ac_includes_default
5486int
5487main ()
5488{
5489
5490 ;
5491 return 0;
5492}
5493_ACEOF
5494if ac_fn_c_try_compile "$LINENO"; then :
5495 ac_cv_safe_to_define___extensions__=yes
5496else
5497 ac_cv_safe_to_define___extensions__=no
5498fi
5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500fi
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5502$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5503 test $ac_cv_safe_to_define___extensions__ = yes &&
5504 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5505
5506 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5507
5508 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5509
5510 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5511
5512 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5513
5514
5515
5516# The tests for host and target for $enable_largefile require
5517# canonical names.
5518
5519
5520
5521# As the $enable_largefile decision depends on --enable-plugins we must set it
5522# even in directories otherwise not depending on the $plugins option.
5523
5524
5525 maybe_plugins=no
5526 for ac_header in dlfcn.h
5527do :
5528 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5529"
5530if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5531 cat >>confdefs.h <<_ACEOF
5532#define HAVE_DLFCN_H 1
5533_ACEOF
5534 maybe_plugins=yes
5535fi
5536
5537done
5538
5539 for ac_header in windows.h
5540do :
5541 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5542"
5543if test "x$ac_cv_header_windows_h" = xyes; then :
5544 cat >>confdefs.h <<_ACEOF
5545#define HAVE_WINDOWS_H 1
5546_ACEOF
5547 maybe_plugins=yes
5548fi
5549
5550done
5551
5552
5553 # Check whether --enable-plugins was given.
5554if test "${enable_plugins+set}" = set; then :
5555 enableval=$enable_plugins; case "${enableval}" in
5556 no) plugins=no ;;
5557 *) plugins=yes
5558 if test "$maybe_plugins" != "yes" ; then
5559 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5560 fi ;;
5561 esac
5562else
5563 plugins=$maybe_plugins
5564
5565fi
5566
5567 if test "$plugins" = "yes"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5569$as_echo_n "checking for library containing dlsym... " >&6; }
5570if ${ac_cv_search_dlsym+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572else
5573 ac_func_search_save_LIBS=$LIBS
5574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575/* end confdefs.h. */
5576
5577/* Override any GCC internal prototype to avoid an error.
5578 Use char because int might match the return type of a GCC
5579 builtin and then its argument prototype would still apply. */
5580#ifdef __cplusplus
5581extern "C"
5582#endif
5583char dlsym ();
5584int
5585main ()
5586{
5587return dlsym ();
5588 ;
5589 return 0;
5590}
5591_ACEOF
5592for ac_lib in '' dl; do
5593 if test -z "$ac_lib"; then
5594 ac_res="none required"
5595 else
5596 ac_res=-l$ac_lib
5597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5598 fi
5599 if ac_fn_c_try_link "$LINENO"; then :
5600 ac_cv_search_dlsym=$ac_res
5601fi
5602rm -f core conftest.err conftest.$ac_objext \
5603 conftest$ac_exeext
5604 if ${ac_cv_search_dlsym+:} false; then :
5605 break
5606fi
5607done
5608if ${ac_cv_search_dlsym+:} false; then :
5609
5610else
5611 ac_cv_search_dlsym=no
5612fi
5613rm conftest.$ac_ext
5614LIBS=$ac_func_search_save_LIBS
5615fi
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5617$as_echo "$ac_cv_search_dlsym" >&6; }
5618ac_res=$ac_cv_search_dlsym
5619if test "$ac_res" != no; then :
5620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5621
5622fi
5623
5624 fi
5625
5626
5627case "${host}" in
5628 sparc-*-solaris*|i[3-7]86-*-solaris*)
5629 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5630 # are mutually exclusive; and without procfs support, the bfd/ elf module
5631 # cannot provide certain routines such as elfcore_write_prpsinfo
5632 # or elfcore_write_prstatus. So unless the user explicitly requested
5633 # large-file support through the --enable-largefile switch, disable
5634 # large-file support in favor of procfs support.
5635 test "${target}" = "${host}" -a "x$plugins" = xno \
5636 && : ${enable_largefile="no"}
5637 ;;
5638esac
5639
5640# Check whether --enable-largefile was given.
5641if test "${enable_largefile+set}" = set; then :
5642 enableval=$enable_largefile;
5643fi
5644
5645if test "$enable_largefile" != no; then
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5648$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5649if ${ac_cv_sys_largefile_CC+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651else
5652 ac_cv_sys_largefile_CC=no
5653 if test "$GCC" != yes; then
5654 ac_save_CC=$CC
5655 while :; do
5656 # IRIX 6.2 and later do not support large files by default,
5657 # so use the C compiler's -n32 option if that helps.
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h. */
5660#include <sys/types.h>
5661 /* Check that off_t can represent 2**63 - 1 correctly.
5662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663 since some C++ compilers masquerading as C compilers
5664 incorrectly reject 9223372036854775807. */
5665#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667 && LARGE_OFF_T % 2147483647 == 1)
5668 ? 1 : -1];
5669int
5670main ()
5671{
5672
5673 ;
5674 return 0;
5675}
5676_ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678 break
5679fi
5680rm -f core conftest.err conftest.$ac_objext
5681 CC="$CC -n32"
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 ac_cv_sys_largefile_CC=' -n32'; break
5684fi
5685rm -f core conftest.err conftest.$ac_objext
5686 break
5687 done
5688 CC=$ac_save_CC
5689 rm -f conftest.$ac_ext
5690 fi
5691fi
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5693$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5694 if test "$ac_cv_sys_largefile_CC" != no; then
5695 CC=$CC$ac_cv_sys_largefile_CC
5696 fi
5697
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5699$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5700if ${ac_cv_sys_file_offset_bits+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702else
5703 while :; do
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h. */
5706#include <sys/types.h>
5707 /* Check that off_t can represent 2**63 - 1 correctly.
5708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5709 since some C++ compilers masquerading as C compilers
5710 incorrectly reject 9223372036854775807. */
5711#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5713 && LARGE_OFF_T % 2147483647 == 1)
5714 ? 1 : -1];
5715int
5716main ()
5717{
5718
5719 ;
5720 return 0;
5721}
5722_ACEOF
5723if ac_fn_c_try_compile "$LINENO"; then :
5724 ac_cv_sys_file_offset_bits=no; break
5725fi
5726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728/* end confdefs.h. */
5729#define _FILE_OFFSET_BITS 64
5730#include <sys/types.h>
5731 /* Check that off_t can represent 2**63 - 1 correctly.
5732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5733 since some C++ compilers masquerading as C compilers
5734 incorrectly reject 9223372036854775807. */
5735#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5737 && LARGE_OFF_T % 2147483647 == 1)
5738 ? 1 : -1];
5739int
5740main ()
5741{
5742
5743 ;
5744 return 0;
5745}
5746_ACEOF
5747if ac_fn_c_try_compile "$LINENO"; then :
5748 ac_cv_sys_file_offset_bits=64; break
5749fi
5750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 ac_cv_sys_file_offset_bits=unknown
5752 break
5753done
5754fi
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5756$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5757case $ac_cv_sys_file_offset_bits in #(
5758 no | unknown) ;;
5759 *)
5760cat >>confdefs.h <<_ACEOF
5761#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5762_ACEOF
5763;;
5764esac
5765rm -rf conftest*
5766 if test $ac_cv_sys_file_offset_bits = unknown; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5768$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5769if ${ac_cv_sys_large_files+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771else
5772 while :; do
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774/* end confdefs.h. */
5775#include <sys/types.h>
5776 /* Check that off_t can represent 2**63 - 1 correctly.
5777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5778 since some C++ compilers masquerading as C compilers
5779 incorrectly reject 9223372036854775807. */
5780#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5782 && LARGE_OFF_T % 2147483647 == 1)
5783 ? 1 : -1];
5784int
5785main ()
5786{
5787
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792if ac_fn_c_try_compile "$LINENO"; then :
5793 ac_cv_sys_large_files=no; break
5794fi
5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797/* end confdefs.h. */
5798#define _LARGE_FILES 1
5799#include <sys/types.h>
5800 /* Check that off_t can represent 2**63 - 1 correctly.
5801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5802 since some C++ compilers masquerading as C compilers
5803 incorrectly reject 9223372036854775807. */
5804#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5806 && LARGE_OFF_T % 2147483647 == 1)
5807 ? 1 : -1];
5808int
5809main ()
5810{
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816if ac_fn_c_try_compile "$LINENO"; then :
5817 ac_cv_sys_large_files=1; break
5818fi
5819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 ac_cv_sys_large_files=unknown
5821 break
5822done
5823fi
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5825$as_echo "$ac_cv_sys_large_files" >&6; }
5826case $ac_cv_sys_large_files in #(
5827 no | unknown) ;;
5828 *)
5829cat >>confdefs.h <<_ACEOF
5830#define _LARGE_FILES $ac_cv_sys_large_files
5831_ACEOF
5832;;
5833esac
5834rm -rf conftest*
5835 fi
5836
5837
5838fi
5839
5840
5841ac_ext=c
5842ac_cpp='$CPP $CPPFLAGS'
5843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5848set dummy ${ac_tool_prefix}gcc; ac_word=$2
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850$as_echo_n "checking for $ac_word... " >&6; }
5851if ${ac_cv_prog_CC+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853else
5854 if test -n "$CC"; then
5855 ac_cv_prog_CC="$CC" # Let the user override the test.
5856else
5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868done
5869 done
5870IFS=$as_save_IFS
5871
5872fi
5873fi
5874CC=$ac_cv_prog_CC
5875if test -n "$CC"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5877$as_echo "$CC" >&6; }
5878else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880$as_echo "no" >&6; }
5881fi
5882
5883
5884fi
5885if test -z "$ac_cv_prog_CC"; then
5886 ac_ct_CC=$CC
5887 # Extract the first word of "gcc", so it can be a program name with args.
5888set dummy gcc; ac_word=$2
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890$as_echo_n "checking for $ac_word... " >&6; }
5891if ${ac_cv_prog_ac_ct_CC+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893else
5894 if test -n "$ac_ct_CC"; then
5895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_ac_ct_CC="gcc"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908done
5909 done
5910IFS=$as_save_IFS
5911
5912fi
5913fi
5914ac_ct_CC=$ac_cv_prog_ac_ct_CC
5915if test -n "$ac_ct_CC"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5917$as_echo "$ac_ct_CC" >&6; }
5918else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920$as_echo "no" >&6; }
5921fi
5922
5923 if test "x$ac_ct_CC" = x; then
5924 CC=""
5925 else
5926 case $cross_compiling:$ac_tool_warned in
5927yes:)
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5930ac_tool_warned=yes ;;
5931esac
5932 CC=$ac_ct_CC
5933 fi
5934else
5935 CC="$ac_cv_prog_CC"
5936fi
5937
5938if test -z "$CC"; then
5939 if test -n "$ac_tool_prefix"; then
5940 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5941set dummy ${ac_tool_prefix}cc; ac_word=$2
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943$as_echo_n "checking for $ac_word... " >&6; }
5944if ${ac_cv_prog_CC+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946else
5947 if test -n "$CC"; then
5948 ac_cv_prog_CC="$CC" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_CC="${ac_tool_prefix}cc"
5958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5960 fi
5961done
5962 done
5963IFS=$as_save_IFS
5964
5965fi
5966fi
5967CC=$ac_cv_prog_CC
5968if test -n "$CC"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5970$as_echo "$CC" >&6; }
5971else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973$as_echo "no" >&6; }
5974fi
5975
5976
5977 fi
5978fi
5979if test -z "$CC"; then
5980 # Extract the first word of "cc", so it can be a program name with args.
5981set dummy cc; ac_word=$2
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983$as_echo_n "checking for $ac_word... " >&6; }
5984if ${ac_cv_prog_CC+:} false; then :
5985 $as_echo_n "(cached) " >&6
5986else
5987 if test -n "$CC"; then
5988 ac_cv_prog_CC="$CC" # Let the user override the test.
5989else
5990 ac_prog_rejected=no
5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5999 ac_prog_rejected=yes
6000 continue
6001 fi
6002 ac_cv_prog_CC="cc"
6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006done
6007 done
6008IFS=$as_save_IFS
6009
6010if test $ac_prog_rejected = yes; then
6011 # We found a bogon in the path, so make sure we never use it.
6012 set dummy $ac_cv_prog_CC
6013 shift
6014 if test $# != 0; then
6015 # We chose a different compiler from the bogus one.
6016 # However, it has the same basename, so the bogon will be chosen
6017 # first if we set CC to just the basename; use the full file name.
6018 shift
6019 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6020 fi
6021fi
6022fi
6023fi
6024CC=$ac_cv_prog_CC
6025if test -n "$CC"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6027$as_echo "$CC" >&6; }
6028else
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030$as_echo "no" >&6; }
6031fi
6032
6033
6034fi
6035if test -z "$CC"; then
6036 if test -n "$ac_tool_prefix"; then
6037 for ac_prog in cl.exe
6038 do
6039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042$as_echo_n "checking for $ac_word... " >&6; }
6043if ${ac_cv_prog_CC+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045else
6046 if test -n "$CC"; then
6047 ac_cv_prog_CC="$CC" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060done
6061 done
6062IFS=$as_save_IFS
6063
6064fi
6065fi
6066CC=$ac_cv_prog_CC
6067if test -n "$CC"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6069$as_echo "$CC" >&6; }
6070else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }
6073fi
6074
6075
6076 test -n "$CC" && break
6077 done
6078fi
6079if test -z "$CC"; then
6080 ac_ct_CC=$CC
6081 for ac_prog in cl.exe
6082do
6083 # Extract the first word of "$ac_prog", so it can be a program name with args.
6084set dummy $ac_prog; ac_word=$2
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086$as_echo_n "checking for $ac_word... " >&6; }
6087if ${ac_cv_prog_ac_ct_CC+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089else
6090 if test -n "$ac_ct_CC"; then
6091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6092else
6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094for as_dir in $PATH
6095do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_ac_ct_CC="$ac_prog"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104done
6105 done
6106IFS=$as_save_IFS
6107
6108fi
6109fi
6110ac_ct_CC=$ac_cv_prog_ac_ct_CC
6111if test -n "$ac_ct_CC"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6113$as_echo "$ac_ct_CC" >&6; }
6114else
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116$as_echo "no" >&6; }
6117fi
6118
6119
6120 test -n "$ac_ct_CC" && break
6121done
6122
6123 if test "x$ac_ct_CC" = x; then
6124 CC=""
6125 else
6126 case $cross_compiling:$ac_tool_warned in
6127yes:)
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130ac_tool_warned=yes ;;
6131esac
6132 CC=$ac_ct_CC
6133 fi
6134fi
6135
6136fi
6137
6138
6139test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6141as_fn_error $? "no acceptable C compiler found in \$PATH
6142See \`config.log' for more details" "$LINENO" 5; }
6143
6144# Provide some information about the compiler.
6145$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6146set X $ac_compile
6147ac_compiler=$2
6148for ac_option in --version -v -V -qversion; do
6149 { { ac_try="$ac_compiler $ac_option >&5"
6150case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6153esac
6154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6155$as_echo "$ac_try_echo"; } >&5
6156 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6157 ac_status=$?
6158 if test -s conftest.err; then
6159 sed '10a\
6160... rest of stderr output deleted ...
6161 10q' conftest.err >conftest.er1
6162 cat conftest.er1 >&5
6163 fi
6164 rm -f conftest.er1 conftest.err
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; }
6167done
6168
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6170$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6171if ${ac_cv_c_compiler_gnu+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173else
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h. */
6176
6177int
6178main ()
6179{
6180#ifndef __GNUC__
6181 choke me
6182#endif
6183
6184 ;
6185 return 0;
6186}
6187_ACEOF
6188if ac_fn_c_try_compile "$LINENO"; then :
6189 ac_compiler_gnu=yes
6190else
6191 ac_compiler_gnu=no
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194ac_cv_c_compiler_gnu=$ac_compiler_gnu
6195
6196fi
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6198$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6199if test $ac_compiler_gnu = yes; then
6200 GCC=yes
6201else
6202 GCC=
6203fi
6204ac_test_CFLAGS=${CFLAGS+set}
6205ac_save_CFLAGS=$CFLAGS
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6207$as_echo_n "checking whether $CC accepts -g... " >&6; }
6208if ${ac_cv_prog_cc_g+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210else
6211 ac_save_c_werror_flag=$ac_c_werror_flag
6212 ac_c_werror_flag=yes
6213 ac_cv_prog_cc_g=no
6214 CFLAGS="-g"
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216/* end confdefs.h. */
6217
6218int
6219main ()
6220{
6221
6222 ;
6223 return 0;
6224}
6225_ACEOF
6226if ac_fn_c_try_compile "$LINENO"; then :
6227 ac_cv_prog_cc_g=yes
6228else
6229 CFLAGS=""
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231/* end confdefs.h. */
6232
6233int
6234main ()
6235{
6236
6237 ;
6238 return 0;
6239}
6240_ACEOF
6241if ac_fn_c_try_compile "$LINENO"; then :
6242
6243else
6244 ac_c_werror_flag=$ac_save_c_werror_flag
6245 CFLAGS="-g"
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247/* end confdefs.h. */
6248
6249int
6250main ()
6251{
6252
6253 ;
6254 return 0;
6255}
6256_ACEOF
6257if ac_fn_c_try_compile "$LINENO"; then :
6258 ac_cv_prog_cc_g=yes
6259fi
6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261fi
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263fi
6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 ac_c_werror_flag=$ac_save_c_werror_flag
6266fi
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6268$as_echo "$ac_cv_prog_cc_g" >&6; }
6269if test "$ac_test_CFLAGS" = set; then
6270 CFLAGS=$ac_save_CFLAGS
6271elif test $ac_cv_prog_cc_g = yes; then
6272 if test "$GCC" = yes; then
6273 CFLAGS="-g -O2"
6274 else
6275 CFLAGS="-g"
6276 fi
6277else
6278 if test "$GCC" = yes; then
6279 CFLAGS="-O2"
6280 else
6281 CFLAGS=
6282 fi
6283fi
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6285$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6286if ${ac_cv_prog_cc_c89+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288else
6289 ac_cv_prog_cc_c89=no
6290ac_save_CC=$CC
6291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h. */
6293#include <stdarg.h>
6294#include <stdio.h>
6295struct stat;
6296/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6297struct buf { int x; };
6298FILE * (*rcsopen) (struct buf *, struct stat *, int);
6299static char *e (p, i)
6300 char **p;
6301 int i;
6302{
6303 return p[i];
6304}
6305static char *f (char * (*g) (char **, int), char **p, ...)
6306{
6307 char *s;
6308 va_list v;
6309 va_start (v,p);
6310 s = g (p, va_arg (v,int));
6311 va_end (v);
6312 return s;
6313}
6314
6315/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6316 function prototypes and stuff, but not '\xHH' hex character constants.
6317 These don't provoke an error unfortunately, instead are silently treated
6318 as 'x'. The following induces an error, until -std is added to get
6319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6320 array size at least. It's necessary to write '\x00'==0 to get something
6321 that's true only with -std. */
6322int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6323
6324/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6325 inside strings and character constants. */
6326#define FOO(x) 'x'
6327int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6328
6329int test (int i, double x);
6330struct s1 {int (*f) (int a);};
6331struct s2 {int (*f) (double a);};
6332int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6333int argc;
6334char **argv;
6335int
6336main ()
6337{
6338return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6339 ;
6340 return 0;
6341}
6342_ACEOF
6343for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6344 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6345do
6346 CC="$ac_save_CC $ac_arg"
6347 if ac_fn_c_try_compile "$LINENO"; then :
6348 ac_cv_prog_cc_c89=$ac_arg
6349fi
6350rm -f core conftest.err conftest.$ac_objext
6351 test "x$ac_cv_prog_cc_c89" != "xno" && break
6352done
6353rm -f conftest.$ac_ext
6354CC=$ac_save_CC
6355
6356fi
6357# AC_CACHE_VAL
6358case "x$ac_cv_prog_cc_c89" in
6359 x)
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6361$as_echo "none needed" >&6; } ;;
6362 xno)
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6364$as_echo "unsupported" >&6; } ;;
6365 *)
6366 CC="$CC $ac_cv_prog_cc_c89"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6368$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6369esac
6370if test "x$ac_cv_prog_cc_c89" != xno; then :
6371
6372fi
6373
6374ac_ext=c
6375ac_cpp='$CPP $CPPFLAGS'
6376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379
6380ac_ext=c
6381ac_cpp='$CPP $CPPFLAGS'
6382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384ac_compiler_gnu=$ac_cv_c_compiler_gnu
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6386$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6387if ${am_cv_prog_cc_c_o+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h. */
6392
6393int
6394main ()
6395{
6396
6397 ;
6398 return 0;
6399}
6400_ACEOF
6401 # Make sure it works both with $CC and with simple cc.
6402 # Following AC_PROG_CC_C_O, we do the test twice because some
6403 # compilers refuse to overwrite an existing .o file with -o,
6404 # though they will create one.
6405 am_cv_prog_cc_c_o=yes
6406 for am_i in 1 2; do
6407 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6408 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } \
6412 && test -f conftest2.$ac_objext; then
6413 : OK
6414 else
6415 am_cv_prog_cc_c_o=no
6416 break
6417 fi
6418 done
6419 rm -f core conftest*
6420 unset am_i
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6423$as_echo "$am_cv_prog_cc_c_o" >&6; }
6424if test "$am_cv_prog_cc_c_o" != yes; then
6425 # Losing compiler, so override with the script.
6426 # FIXME: It is wrong to rewrite CC.
6427 # But if we don't then we get into trouble of one sort or another.
6428 # A longer-term fix would be to have automake use am__CC in this case,
6429 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6430 CC="$am_aux_dir/compile $CC"
6431fi
6432ac_ext=c
6433ac_cpp='$CPP $CPPFLAGS'
6434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6436ac_compiler_gnu=$ac_cv_c_compiler_gnu
6437
6438
6439depcc="$CC" am_compiler_list=
6440
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6442$as_echo_n "checking dependency style of $depcc... " >&6; }
6443if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445else
6446 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6447 # We make a subdir and do the tests there. Otherwise we can end up
6448 # making bogus files that we don't know about and never remove. For
6449 # instance it was reported that on HP-UX the gcc test will end up
6450 # making a dummy file named 'D' -- because '-MD' means "put the output
6451 # in D".
6452 rm -rf conftest.dir
6453 mkdir conftest.dir
6454 # Copy depcomp to subdir because otherwise we won't find it if we're
6455 # using a relative directory.
6456 cp "$am_depcomp" conftest.dir
6457 cd conftest.dir
6458 # We will build objects and dependencies in a subdirectory because
6459 # it helps to detect inapplicable dependency modes. For instance
6460 # both Tru64's cc and ICC support -MD to output dependencies as a
6461 # side effect of compilation, but ICC will put the dependencies in
6462 # the current directory while Tru64 will put them in the object
6463 # directory.
6464 mkdir sub
6465
6466 am_cv_CC_dependencies_compiler_type=none
6467 if test "$am_compiler_list" = ""; then
6468 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6469 fi
6470 am__universal=false
6471 case " $depcc " in #(
6472 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6473 esac
6474
6475 for depmode in $am_compiler_list; do
6476 # Setup a source with many dependencies, because some compilers
6477 # like to wrap large dependency lists on column 80 (with \), and
6478 # we should not choose a depcomp mode which is confused by this.
6479 #
6480 # We need to recreate these files for each test, as the compiler may
6481 # overwrite some of them when testing with obscure command lines.
6482 # This happens at least with the AIX C compiler.
6483 : > sub/conftest.c
6484 for i in 1 2 3 4 5 6; do
6485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6486 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6487 # Solaris 10 /bin/sh.
6488 echo '/* dummy */' > sub/conftst$i.h
6489 done
6490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6491
6492 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6493 # mode. It turns out that the SunPro C++ compiler does not properly
6494 # handle '-M -o', and we need to detect this. Also, some Intel
6495 # versions had trouble with output in subdirs.
6496 am__obj=sub/conftest.${OBJEXT-o}
6497 am__minus_obj="-o $am__obj"
6498 case $depmode in
6499 gcc)
6500 # This depmode causes a compiler race in universal mode.
6501 test "$am__universal" = false || continue
6502 ;;
6503 nosideeffect)
6504 # After this tag, mechanisms are not by side-effect, so they'll
6505 # only be used when explicitly requested.
6506 if test "x$enable_dependency_tracking" = xyes; then
6507 continue
6508 else
6509 break
6510 fi
6511 ;;
6512 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6513 # This compiler won't grok '-c -o', but also, the minuso test has
6514 # not run yet. These depmodes are late enough in the game, and
6515 # so weak that their functioning should not be impacted.
6516 am__obj=conftest.${OBJEXT-o}
6517 am__minus_obj=
6518 ;;
6519 none) break ;;
6520 esac
6521 if depmode=$depmode \
6522 source=sub/conftest.c object=$am__obj \
6523 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6524 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6525 >/dev/null 2>conftest.err &&
6526 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6527 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6528 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6529 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6530 # icc doesn't choke on unknown options, it will just issue warnings
6531 # or remarks (even with -Werror). So we grep stderr for any message
6532 # that says an option was ignored or not supported.
6533 # When given -MP, icc 7.0 and 7.1 complain thusly:
6534 # icc: Command line warning: ignoring option '-M'; no argument required
6535 # The diagnosis changed in icc 8.0:
6536 # icc: Command line remark: option '-MP' not supported
6537 if (grep 'ignoring option' conftest.err ||
6538 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6539 am_cv_CC_dependencies_compiler_type=$depmode
6540 break
6541 fi
6542 fi
6543 done
6544
6545 cd ..
6546 rm -rf conftest.dir
6547else
6548 am_cv_CC_dependencies_compiler_type=none
6549fi
6550
6551fi
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6553$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6554CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6555
6556 if
6557 test "x$enable_dependency_tracking" != xno \
6558 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6559 am__fastdepCC_TRUE=
6560 am__fastdepCC_FALSE='#'
6561else
6562 am__fastdepCC_TRUE='#'
6563 am__fastdepCC_FALSE=
6564fi
6565
6566
6567am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6568
6569
6570# We require a C++11 compiler. Check if one is available, and if
6571# necessary, set CXX_DIALECT to some -std=xxx switch.
6572
6573 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6574 ac_ext=cpp
6575ac_cpp='$CXXCPP $CPPFLAGS'
6576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6579 CXX_DIALECT=""
6580 ac_success=no
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6582$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6583if ${ax_cv_cxx_compile_cxx11+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585else
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587/* end confdefs.h. */
6588
6589
6590// If the compiler admits that it is not ready for C++11, why torture it?
6591// Hopefully, this will speed up the test.
6592
6593#ifndef __cplusplus
6594
6595#error "This is not a C++ compiler"
6596
6597#elif __cplusplus < 201103L
6598
6599#error "This is not a C++11 compiler"
6600
6601#else
6602
6603namespace cxx11
6604{
6605
6606 namespace test_static_assert
6607 {
6608
6609 template <typename T>
6610 struct check
6611 {
6612 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6613 };
6614
6615 }
6616
6617 namespace test_final_override
6618 {
6619
6620 struct Base
6621 {
6622 virtual void f() {}
6623 };
6624
6625 struct Derived : public Base
6626 {
6627 virtual void f() override {}
6628 };
6629
6630 }
6631
6632 namespace test_double_right_angle_brackets
6633 {
6634
6635 template < typename T >
6636 struct check {};
6637
6638 typedef check<void> single_type;
6639 typedef check<check<void>> double_type;
6640 typedef check<check<check<void>>> triple_type;
6641 typedef check<check<check<check<void>>>> quadruple_type;
6642
6643 }
6644
6645 namespace test_decltype
6646 {
6647
6648 int
6649 f()
6650 {
6651 int a = 1;
6652 decltype(a) b = 2;
6653 return a + b;
6654 }
6655
6656 }
6657
6658 namespace test_type_deduction
6659 {
6660
6661 template < typename T1, typename T2 >
6662 struct is_same
6663 {
6664 static const bool value = false;
6665 };
6666
6667 template < typename T >
6668 struct is_same<T, T>
6669 {
6670 static const bool value = true;
6671 };
6672
6673 template < typename T1, typename T2 >
6674 auto
6675 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6676 {
6677 return a1 + a2;
6678 }
6679
6680 int
6681 test(const int c, volatile int v)
6682 {
6683 static_assert(is_same<int, decltype(0)>::value == true, "");
6684 static_assert(is_same<int, decltype(c)>::value == false, "");
6685 static_assert(is_same<int, decltype(v)>::value == false, "");
6686 auto ac = c;
6687 auto av = v;
6688 auto sumi = ac + av + 'x';
6689 auto sumf = ac + av + 1.0;
6690 static_assert(is_same<int, decltype(ac)>::value == true, "");
6691 static_assert(is_same<int, decltype(av)>::value == true, "");
6692 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6693 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6694 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6695 return (sumf > 0.0) ? sumi : add(c, v);
6696 }
6697
6698 }
6699
6700 namespace test_noexcept
6701 {
6702
6703 int f() { return 0; }
6704 int g() noexcept { return 0; }
6705
6706 static_assert(noexcept(f()) == false, "");
6707 static_assert(noexcept(g()) == true, "");
6708
6709 }
6710
6711 namespace test_constexpr
6712 {
6713
6714 template < typename CharT >
6715 unsigned long constexpr
6716 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6717 {
6718 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6719 }
6720
6721 template < typename CharT >
6722 unsigned long constexpr
6723 strlen_c(const CharT *const s) noexcept
6724 {
6725 return strlen_c_r(s, 0UL);
6726 }
6727
6728 static_assert(strlen_c("") == 0UL, "");
6729 static_assert(strlen_c("1") == 1UL, "");
6730 static_assert(strlen_c("example") == 7UL, "");
6731 static_assert(strlen_c("another\0example") == 7UL, "");
6732
6733 }
6734
6735 namespace test_rvalue_references
6736 {
6737
6738 template < int N >
6739 struct answer
6740 {
6741 static constexpr int value = N;
6742 };
6743
6744 answer<1> f(int&) { return answer<1>(); }
6745 answer<2> f(const int&) { return answer<2>(); }
6746 answer<3> f(int&&) { return answer<3>(); }
6747
6748 void
6749 test()
6750 {
6751 int i = 0;
6752 const int c = 0;
6753 static_assert(decltype(f(i))::value == 1, "");
6754 static_assert(decltype(f(c))::value == 2, "");
6755 static_assert(decltype(f(0))::value == 3, "");
6756 }
6757
6758 }
6759
6760 namespace test_uniform_initialization
6761 {
6762
6763 struct test
6764 {
6765 static const int zero {};
6766 static const int one {1};
6767 };
6768
6769 static_assert(test::zero == 0, "");
6770 static_assert(test::one == 1, "");
6771
6772 }
6773
6774 namespace test_lambdas
6775 {
6776
6777 void
6778 test1()
6779 {
6780 auto lambda1 = [](){};
6781 auto lambda2 = lambda1;
6782 lambda1();
6783 lambda2();
6784 }
6785
6786 int
6787 test2()
6788 {
6789 auto a = [](int i, int j){ return i + j; }(1, 2);
6790 auto b = []() -> int { return '0'; }();
6791 auto c = [=](){ return a + b; }();
6792 auto d = [&](){ return c; }();
6793 auto e = [a, &b](int x) mutable {
6794 const auto identity = [](int y){ return y; };
6795 for (auto i = 0; i < a; ++i)
6796 a += b--;
6797 return x + identity(a + b);
6798 }(0);
6799 return a + b + c + d + e;
6800 }
6801
6802 int
6803 test3()
6804 {
6805 const auto nullary = [](){ return 0; };
6806 const auto unary = [](int x){ return x; };
6807 using nullary_t = decltype(nullary);
6808 using unary_t = decltype(unary);
6809 const auto higher1st = [](nullary_t f){ return f(); };
6810 const auto higher2nd = [unary](nullary_t f1){
6811 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6812 };
6813 return higher1st(nullary) + higher2nd(nullary)(unary);
6814 }
6815
6816 }
6817
6818 namespace test_variadic_templates
6819 {
6820
6821 template <int...>
6822 struct sum;
6823
6824 template <int N0, int... N1toN>
6825 struct sum<N0, N1toN...>
6826 {
6827 static constexpr auto value = N0 + sum<N1toN...>::value;
6828 };
6829
6830 template <>
6831 struct sum<>
6832 {
6833 static constexpr auto value = 0;
6834 };
6835
6836 static_assert(sum<>::value == 0, "");
6837 static_assert(sum<1>::value == 1, "");
6838 static_assert(sum<23>::value == 23, "");
6839 static_assert(sum<1, 2>::value == 3, "");
6840 static_assert(sum<5, 5, 11>::value == 21, "");
6841 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6842
6843 }
6844
6845 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6846 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6847 // because of this.
6848 namespace test_template_alias_sfinae
6849 {
6850
6851 struct foo {};
6852
6853 template<typename T>
6854 using member = typename T::member_type;
6855
6856 template<typename T>
6857 void func(...) {}
6858
6859 template<typename T>
6860 void func(member<T>*) {}
6861
6862 void test();
6863
6864 void test() { func<foo>(0); }
6865
6866 }
6867
6868} // namespace cxx11
6869
6870#endif // __cplusplus >= 201103L
6871
6872
6873
6874_ACEOF
6875if ac_fn_cxx_try_compile "$LINENO"; then :
6876 ax_cv_cxx_compile_cxx11=yes
6877else
6878 ax_cv_cxx_compile_cxx11=no
6879fi
6880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881fi
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6883$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6884 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6885 ac_success=yes
6886 fi
6887
6888 if test x$ac_success = xno; then
6889 for alternative in ${ax_cxx_compile_alternatives}; do
6890 switch="-std=gnu++${alternative}"
6891 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6893$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6894if eval \${$cachevar+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896else
6897 ac_save_CXX="$CXX"
6898 CXX="$CXX $switch"
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h. */
6901
6902
6903// If the compiler admits that it is not ready for C++11, why torture it?
6904// Hopefully, this will speed up the test.
6905
6906#ifndef __cplusplus
6907
6908#error "This is not a C++ compiler"
6909
6910#elif __cplusplus < 201103L
6911
6912#error "This is not a C++11 compiler"
6913
6914#else
6915
6916namespace cxx11
6917{
6918
6919 namespace test_static_assert
6920 {
6921
6922 template <typename T>
6923 struct check
6924 {
6925 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6926 };
6927
6928 }
6929
6930 namespace test_final_override
6931 {
6932
6933 struct Base
6934 {
6935 virtual void f() {}
6936 };
6937
6938 struct Derived : public Base
6939 {
6940 virtual void f() override {}
6941 };
6942
6943 }
6944
6945 namespace test_double_right_angle_brackets
6946 {
6947
6948 template < typename T >
6949 struct check {};
6950
6951 typedef check<void> single_type;
6952 typedef check<check<void>> double_type;
6953 typedef check<check<check<void>>> triple_type;
6954 typedef check<check<check<check<void>>>> quadruple_type;
6955
6956 }
6957
6958 namespace test_decltype
6959 {
6960
6961 int
6962 f()
6963 {
6964 int a = 1;
6965 decltype(a) b = 2;
6966 return a + b;
6967 }
6968
6969 }
6970
6971 namespace test_type_deduction
6972 {
6973
6974 template < typename T1, typename T2 >
6975 struct is_same
6976 {
6977 static const bool value = false;
6978 };
6979
6980 template < typename T >
6981 struct is_same<T, T>
6982 {
6983 static const bool value = true;
6984 };
6985
6986 template < typename T1, typename T2 >
6987 auto
6988 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6989 {
6990 return a1 + a2;
6991 }
6992
6993 int
6994 test(const int c, volatile int v)
6995 {
6996 static_assert(is_same<int, decltype(0)>::value == true, "");
6997 static_assert(is_same<int, decltype(c)>::value == false, "");
6998 static_assert(is_same<int, decltype(v)>::value == false, "");
6999 auto ac = c;
7000 auto av = v;
7001 auto sumi = ac + av + 'x';
7002 auto sumf = ac + av + 1.0;
7003 static_assert(is_same<int, decltype(ac)>::value == true, "");
7004 static_assert(is_same<int, decltype(av)>::value == true, "");
7005 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7006 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7007 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7008 return (sumf > 0.0) ? sumi : add(c, v);
7009 }
7010
7011 }
7012
7013 namespace test_noexcept
7014 {
7015
7016 int f() { return 0; }
7017 int g() noexcept { return 0; }
7018
7019 static_assert(noexcept(f()) == false, "");
7020 static_assert(noexcept(g()) == true, "");
7021
7022 }
7023
7024 namespace test_constexpr
7025 {
7026
7027 template < typename CharT >
7028 unsigned long constexpr
7029 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7030 {
7031 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7032 }
7033
7034 template < typename CharT >
7035 unsigned long constexpr
7036 strlen_c(const CharT *const s) noexcept
7037 {
7038 return strlen_c_r(s, 0UL);
7039 }
7040
7041 static_assert(strlen_c("") == 0UL, "");
7042 static_assert(strlen_c("1") == 1UL, "");
7043 static_assert(strlen_c("example") == 7UL, "");
7044 static_assert(strlen_c("another\0example") == 7UL, "");
7045
7046 }
7047
7048 namespace test_rvalue_references
7049 {
7050
7051 template < int N >
7052 struct answer
7053 {
7054 static constexpr int value = N;
7055 };
7056
7057 answer<1> f(int&) { return answer<1>(); }
7058 answer<2> f(const int&) { return answer<2>(); }
7059 answer<3> f(int&&) { return answer<3>(); }
7060
7061 void
7062 test()
7063 {
7064 int i = 0;
7065 const int c = 0;
7066 static_assert(decltype(f(i))::value == 1, "");
7067 static_assert(decltype(f(c))::value == 2, "");
7068 static_assert(decltype(f(0))::value == 3, "");
7069 }
7070
7071 }
7072
7073 namespace test_uniform_initialization
7074 {
7075
7076 struct test
7077 {
7078 static const int zero {};
7079 static const int one {1};
7080 };
7081
7082 static_assert(test::zero == 0, "");
7083 static_assert(test::one == 1, "");
7084
7085 }
7086
7087 namespace test_lambdas
7088 {
7089
7090 void
7091 test1()
7092 {
7093 auto lambda1 = [](){};
7094 auto lambda2 = lambda1;
7095 lambda1();
7096 lambda2();
7097 }
7098
7099 int
7100 test2()
7101 {
7102 auto a = [](int i, int j){ return i + j; }(1, 2);
7103 auto b = []() -> int { return '0'; }();
7104 auto c = [=](){ return a + b; }();
7105 auto d = [&](){ return c; }();
7106 auto e = [a, &b](int x) mutable {
7107 const auto identity = [](int y){ return y; };
7108 for (auto i = 0; i < a; ++i)
7109 a += b--;
7110 return x + identity(a + b);
7111 }(0);
7112 return a + b + c + d + e;
7113 }
7114
7115 int
7116 test3()
7117 {
7118 const auto nullary = [](){ return 0; };
7119 const auto unary = [](int x){ return x; };
7120 using nullary_t = decltype(nullary);
7121 using unary_t = decltype(unary);
7122 const auto higher1st = [](nullary_t f){ return f(); };
7123 const auto higher2nd = [unary](nullary_t f1){
7124 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7125 };
7126 return higher1st(nullary) + higher2nd(nullary)(unary);
7127 }
7128
7129 }
7130
7131 namespace test_variadic_templates
7132 {
7133
7134 template <int...>
7135 struct sum;
7136
7137 template <int N0, int... N1toN>
7138 struct sum<N0, N1toN...>
7139 {
7140 static constexpr auto value = N0 + sum<N1toN...>::value;
7141 };
7142
7143 template <>
7144 struct sum<>
7145 {
7146 static constexpr auto value = 0;
7147 };
7148
7149 static_assert(sum<>::value == 0, "");
7150 static_assert(sum<1>::value == 1, "");
7151 static_assert(sum<23>::value == 23, "");
7152 static_assert(sum<1, 2>::value == 3, "");
7153 static_assert(sum<5, 5, 11>::value == 21, "");
7154 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7155
7156 }
7157
7158 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7159 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7160 // because of this.
7161 namespace test_template_alias_sfinae
7162 {
7163
7164 struct foo {};
7165
7166 template<typename T>
7167 using member = typename T::member_type;
7168
7169 template<typename T>
7170 void func(...) {}
7171
7172 template<typename T>
7173 void func(member<T>*) {}
7174
7175 void test();
7176
7177 void test() { func<foo>(0); }
7178
7179 }
7180
7181} // namespace cxx11
7182
7183#endif // __cplusplus >= 201103L
7184
7185
7186
7187_ACEOF
7188if ac_fn_cxx_try_compile "$LINENO"; then :
7189 eval $cachevar=yes
7190else
7191 eval $cachevar=no
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194 CXX="$ac_save_CXX"
7195fi
7196eval ac_res=\$$cachevar
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7198$as_echo "$ac_res" >&6; }
7199 if eval test x\$$cachevar = xyes; then
7200 CXX_DIALECT="$switch"
7201 ac_success=yes
7202 break
7203 fi
7204 done
7205 fi
7206
7207 if test x$ac_success = xno; then
7208 for alternative in ${ax_cxx_compile_alternatives}; do
7209 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7210 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7212$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7213if eval \${$cachevar+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215else
7216 ac_save_CXX="$CXX"
7217 CXX="$CXX $switch"
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219/* end confdefs.h. */
7220
7221
7222// If the compiler admits that it is not ready for C++11, why torture it?
7223// Hopefully, this will speed up the test.
7224
7225#ifndef __cplusplus
7226
7227#error "This is not a C++ compiler"
7228
7229#elif __cplusplus < 201103L
7230
7231#error "This is not a C++11 compiler"
7232
7233#else
7234
7235namespace cxx11
7236{
7237
7238 namespace test_static_assert
7239 {
7240
7241 template <typename T>
7242 struct check
7243 {
7244 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7245 };
7246
7247 }
7248
7249 namespace test_final_override
7250 {
7251
7252 struct Base
7253 {
7254 virtual void f() {}
7255 };
7256
7257 struct Derived : public Base
7258 {
7259 virtual void f() override {}
7260 };
7261
7262 }
7263
7264 namespace test_double_right_angle_brackets
7265 {
7266
7267 template < typename T >
7268 struct check {};
7269
7270 typedef check<void> single_type;
7271 typedef check<check<void>> double_type;
7272 typedef check<check<check<void>>> triple_type;
7273 typedef check<check<check<check<void>>>> quadruple_type;
7274
7275 }
7276
7277 namespace test_decltype
7278 {
7279
7280 int
7281 f()
7282 {
7283 int a = 1;
7284 decltype(a) b = 2;
7285 return a + b;
7286 }
7287
7288 }
7289
7290 namespace test_type_deduction
7291 {
7292
7293 template < typename T1, typename T2 >
7294 struct is_same
7295 {
7296 static const bool value = false;
7297 };
7298
7299 template < typename T >
7300 struct is_same<T, T>
7301 {
7302 static const bool value = true;
7303 };
7304
7305 template < typename T1, typename T2 >
7306 auto
7307 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7308 {
7309 return a1 + a2;
7310 }
7311
7312 int
7313 test(const int c, volatile int v)
7314 {
7315 static_assert(is_same<int, decltype(0)>::value == true, "");
7316 static_assert(is_same<int, decltype(c)>::value == false, "");
7317 static_assert(is_same<int, decltype(v)>::value == false, "");
7318 auto ac = c;
7319 auto av = v;
7320 auto sumi = ac + av + 'x';
7321 auto sumf = ac + av + 1.0;
7322 static_assert(is_same<int, decltype(ac)>::value == true, "");
7323 static_assert(is_same<int, decltype(av)>::value == true, "");
7324 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7325 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7326 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7327 return (sumf > 0.0) ? sumi : add(c, v);
7328 }
7329
7330 }
7331
7332 namespace test_noexcept
7333 {
7334
7335 int f() { return 0; }
7336 int g() noexcept { return 0; }
7337
7338 static_assert(noexcept(f()) == false, "");
7339 static_assert(noexcept(g()) == true, "");
7340
7341 }
7342
7343 namespace test_constexpr
7344 {
7345
7346 template < typename CharT >
7347 unsigned long constexpr
7348 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7349 {
7350 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7351 }
7352
7353 template < typename CharT >
7354 unsigned long constexpr
7355 strlen_c(const CharT *const s) noexcept
7356 {
7357 return strlen_c_r(s, 0UL);
7358 }
7359
7360 static_assert(strlen_c("") == 0UL, "");
7361 static_assert(strlen_c("1") == 1UL, "");
7362 static_assert(strlen_c("example") == 7UL, "");
7363 static_assert(strlen_c("another\0example") == 7UL, "");
7364
7365 }
7366
7367 namespace test_rvalue_references
7368 {
7369
7370 template < int N >
7371 struct answer
7372 {
7373 static constexpr int value = N;
7374 };
7375
7376 answer<1> f(int&) { return answer<1>(); }
7377 answer<2> f(const int&) { return answer<2>(); }
7378 answer<3> f(int&&) { return answer<3>(); }
7379
7380 void
7381 test()
7382 {
7383 int i = 0;
7384 const int c = 0;
7385 static_assert(decltype(f(i))::value == 1, "");
7386 static_assert(decltype(f(c))::value == 2, "");
7387 static_assert(decltype(f(0))::value == 3, "");
7388 }
7389
7390 }
7391
7392 namespace test_uniform_initialization
7393 {
7394
7395 struct test
7396 {
7397 static const int zero {};
7398 static const int one {1};
7399 };
7400
7401 static_assert(test::zero == 0, "");
7402 static_assert(test::one == 1, "");
7403
7404 }
7405
7406 namespace test_lambdas
7407 {
7408
7409 void
7410 test1()
7411 {
7412 auto lambda1 = [](){};
7413 auto lambda2 = lambda1;
7414 lambda1();
7415 lambda2();
7416 }
7417
7418 int
7419 test2()
7420 {
7421 auto a = [](int i, int j){ return i + j; }(1, 2);
7422 auto b = []() -> int { return '0'; }();
7423 auto c = [=](){ return a + b; }();
7424 auto d = [&](){ return c; }();
7425 auto e = [a, &b](int x) mutable {
7426 const auto identity = [](int y){ return y; };
7427 for (auto i = 0; i < a; ++i)
7428 a += b--;
7429 return x + identity(a + b);
7430 }(0);
7431 return a + b + c + d + e;
7432 }
7433
7434 int
7435 test3()
7436 {
7437 const auto nullary = [](){ return 0; };
7438 const auto unary = [](int x){ return x; };
7439 using nullary_t = decltype(nullary);
7440 using unary_t = decltype(unary);
7441 const auto higher1st = [](nullary_t f){ return f(); };
7442 const auto higher2nd = [unary](nullary_t f1){
7443 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7444 };
7445 return higher1st(nullary) + higher2nd(nullary)(unary);
7446 }
7447
7448 }
7449
7450 namespace test_variadic_templates
7451 {
7452
7453 template <int...>
7454 struct sum;
7455
7456 template <int N0, int... N1toN>
7457 struct sum<N0, N1toN...>
7458 {
7459 static constexpr auto value = N0 + sum<N1toN...>::value;
7460 };
7461
7462 template <>
7463 struct sum<>
7464 {
7465 static constexpr auto value = 0;
7466 };
7467
7468 static_assert(sum<>::value == 0, "");
7469 static_assert(sum<1>::value == 1, "");
7470 static_assert(sum<23>::value == 23, "");
7471 static_assert(sum<1, 2>::value == 3, "");
7472 static_assert(sum<5, 5, 11>::value == 21, "");
7473 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7474
7475 }
7476
7477 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7478 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7479 // because of this.
7480 namespace test_template_alias_sfinae
7481 {
7482
7483 struct foo {};
7484
7485 template<typename T>
7486 using member = typename T::member_type;
7487
7488 template<typename T>
7489 void func(...) {}
7490
7491 template<typename T>
7492 void func(member<T>*) {}
7493
7494 void test();
7495
7496 void test() { func<foo>(0); }
7497
7498 }
7499
7500} // namespace cxx11
7501
7502#endif // __cplusplus >= 201103L
7503
7504
7505
7506_ACEOF
7507if ac_fn_cxx_try_compile "$LINENO"; then :
7508 eval $cachevar=yes
7509else
7510 eval $cachevar=no
7511fi
7512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 CXX="$ac_save_CXX"
7514fi
7515eval ac_res=\$$cachevar
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7517$as_echo "$ac_res" >&6; }
7518 if eval test x\$$cachevar = xyes; then
7519 CXX_DIALECT="$switch"
7520 ac_success=yes
7521 break
7522 fi
7523 done
7524 if test x$ac_success = xyes; then
7525 break
7526 fi
7527 done
7528 fi
7529 ac_ext=c
7530ac_cpp='$CPP $CPPFLAGS'
7531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534
7535 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7536 if test x$ac_success = xno; then
7537 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7538 fi
7539 fi
7540 if test x$ac_success = xno; then
7541 HAVE_CXX11=0
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7543$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7544 else
7545 HAVE_CXX11=1
7546
7547$as_echo "#define HAVE_CXX11 1" >>confdefs.h
7548
7549 fi
7550
7551
7552
7553
7554# If we haven't got the data from the intl directory,
7555# assume NLS is disabled.
7556USE_NLS=no
7557LIBINTL=
7558LIBINTL_DEP=
7559INCINTL=
7560XGETTEXT=
7561GMSGFMT=
7562POSUB=
7563
7564if test -f ../intl/config.intl; then
7565 . ../intl/config.intl
7566fi
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7568$as_echo_n "checking whether NLS is requested... " >&6; }
7569if test x"$USE_NLS" != xyes; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571$as_echo "no" >&6; }
7572else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7574$as_echo "yes" >&6; }
7575
7576$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7577
7578
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7580$as_echo_n "checking for catalogs to be installed... " >&6; }
7581 # Look for .po and .gmo files in the source directory.
7582 CATALOGS=
7583 XLINGUAS=
7584 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7585 # If there aren't any .gmo files the shell will give us the
7586 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7587 # weeded out.
7588 case "$cat" in *\**)
7589 continue;;
7590 esac
7591 # The quadruple backslash is collapsed to a double backslash
7592 # by the backticks, then collapsed again by the double quotes,
7593 # leaving us with one backslash in the sed expression (right
7594 # before the dot that mustn't act as a wildcard).
7595 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7596 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7597 # The user is allowed to set LINGUAS to a list of languages to
7598 # install catalogs for. If it's empty that means "all of them."
7599 if test "x$LINGUAS" = x; then
7600 CATALOGS="$CATALOGS $cat"
7601 XLINGUAS="$XLINGUAS $lang"
7602 else
7603 case "$LINGUAS" in *$lang*)
7604 CATALOGS="$CATALOGS $cat"
7605 XLINGUAS="$XLINGUAS $lang"
7606 ;;
7607 esac
7608 fi
7609 done
7610 LINGUAS="$XLINGUAS"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7612$as_echo "$LINGUAS" >&6; }
7613
7614
7615 DATADIRNAME=share
7616
7617 INSTOBJEXT=.mo
7618
7619 GENCAT=gencat
7620
7621 CATOBJEXT=.gmo
7622
7623fi
7624
7625
7626 # Check for presence and size of long long.
7627 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7628if test "x$ac_cv_type_long_long" = xyes; then :
7629
7630cat >>confdefs.h <<_ACEOF
7631#define HAVE_LONG_LONG 1
7632_ACEOF
7633
7634# The cast to long int works around a bug in the HP C Compiler
7635# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7636# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7637# This bug is HP SR number 8606223364.
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7639$as_echo_n "checking size of long long... " >&6; }
7640if ${ac_cv_sizeof_long_long+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642else
7643 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7644
7645else
7646 if test "$ac_cv_type_long_long" = yes; then
7647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7649as_fn_error 77 "cannot compute sizeof (long long)
7650See \`config.log' for more details" "$LINENO" 5; }
7651 else
7652 ac_cv_sizeof_long_long=0
7653 fi
7654fi
7655
7656fi
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7658$as_echo "$ac_cv_sizeof_long_long" >&6; }
7659
7660
7661
7662cat >>confdefs.h <<_ACEOF
7663#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7664_ACEOF
7665
7666
7667fi
7668
7669
7670 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7671ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7672if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7673 ac_have_decl=1
7674else
7675 ac_have_decl=0
7676fi
7677
7678cat >>confdefs.h <<_ACEOF
7679#define HAVE_DECL_BASENAME $ac_have_decl
7680_ACEOF
7681ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7682if test "x$ac_cv_have_decl_ffs" = xyes; then :
7683 ac_have_decl=1
7684else
7685 ac_have_decl=0
7686fi
7687
7688cat >>confdefs.h <<_ACEOF
7689#define HAVE_DECL_FFS $ac_have_decl
7690_ACEOF
7691ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7692if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7693 ac_have_decl=1
7694else
7695 ac_have_decl=0
7696fi
7697
7698cat >>confdefs.h <<_ACEOF
7699#define HAVE_DECL_ASPRINTF $ac_have_decl
7700_ACEOF
7701ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7702if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7703 ac_have_decl=1
7704else
7705 ac_have_decl=0
7706fi
7707
7708cat >>confdefs.h <<_ACEOF
7709#define HAVE_DECL_VASPRINTF $ac_have_decl
7710_ACEOF
7711ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7712if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7713 ac_have_decl=1
7714else
7715 ac_have_decl=0
7716fi
7717
7718cat >>confdefs.h <<_ACEOF
7719#define HAVE_DECL_SNPRINTF $ac_have_decl
7720_ACEOF
7721ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7722if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7723 ac_have_decl=1
7724else
7725 ac_have_decl=0
7726fi
7727
7728cat >>confdefs.h <<_ACEOF
7729#define HAVE_DECL_VSNPRINTF $ac_have_decl
7730_ACEOF
7731
7732 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7733if test "x$ac_cv_have_decl_strtol" = xyes; then :
7734 ac_have_decl=1
7735else
7736 ac_have_decl=0
7737fi
7738
7739cat >>confdefs.h <<_ACEOF
7740#define HAVE_DECL_STRTOL $ac_have_decl
7741_ACEOF
7742ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7743if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7744 ac_have_decl=1
7745else
7746 ac_have_decl=0
7747fi
7748
7749cat >>confdefs.h <<_ACEOF
7750#define HAVE_DECL_STRTOUL $ac_have_decl
7751_ACEOF
7752ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7753if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7754 ac_have_decl=1
7755else
7756 ac_have_decl=0
7757fi
7758
7759cat >>confdefs.h <<_ACEOF
7760#define HAVE_DECL_STRTOLL $ac_have_decl
7761_ACEOF
7762ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7763if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7764 ac_have_decl=1
7765else
7766 ac_have_decl=0
7767fi
7768
7769cat >>confdefs.h <<_ACEOF
7770#define HAVE_DECL_STRTOULL $ac_have_decl
7771_ACEOF
7772
7773 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7774if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7775 ac_have_decl=1
7776else
7777 ac_have_decl=0
7778fi
7779
7780cat >>confdefs.h <<_ACEOF
7781#define HAVE_DECL_STRVERSCMP $ac_have_decl
7782_ACEOF
7783
7784
7785ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7786if test "x$ac_cv_type_size_t" = xyes; then :
7787
7788else
7789
7790cat >>confdefs.h <<_ACEOF
7791#define size_t unsigned int
7792_ACEOF
7793
7794fi
7795
05ea2a05
TT
7796
7797
7798
7799 for ac_header in $ac_header_list
7800do :
7801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7802ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7803"
7804if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7805 cat >>confdefs.h <<_ACEOF
7806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7807_ACEOF
7808
7809fi
7810
7811done
7812
7813
7814
7815
7816
7817
7818
7819ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7820if test "x$ac_cv_type_pid_t" = xyes; then :
7821
7822else
7823
7824cat >>confdefs.h <<_ACEOF
7825#define pid_t int
7826_ACEOF
7827
7828fi
7829
01027315
TT
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7831$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7832if ${ac_cv_path_SED+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834else
7835 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7836 for ac_i in 1 2 3 4 5 6 7; do
7837 ac_script="$ac_script$as_nl$ac_script"
7838 done
7839 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7840 { ac_script=; unset ac_script;}
7841 if test -z "$SED"; then
7842 ac_path_SED_found=false
7843 # Loop through the user's path and test for each of PROGNAME-LIST
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_prog in sed gsed; do
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7852 as_fn_executable_p "$ac_path_SED" || continue
7853# Check for GNU ac_path_SED and select it if it is found.
7854 # Check for GNU $ac_path_SED
7855case `"$ac_path_SED" --version 2>&1` in
7856*GNU*)
7857 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7858*)
7859 ac_count=0
7860 $as_echo_n 0123456789 >"conftest.in"
7861 while :
7862 do
7863 cat "conftest.in" "conftest.in" >"conftest.tmp"
7864 mv "conftest.tmp" "conftest.in"
7865 cp "conftest.in" "conftest.nl"
7866 $as_echo '' >> "conftest.nl"
7867 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7869 as_fn_arith $ac_count + 1 && ac_count=$as_val
7870 if test $ac_count -gt ${ac_path_SED_max-0}; then
7871 # Best one so far, save it but keep looking for a better one
7872 ac_cv_path_SED="$ac_path_SED"
7873 ac_path_SED_max=$ac_count
7874 fi
7875 # 10*(2^10) chars as input seems more than enough
7876 test $ac_count -gt 10 && break
7877 done
7878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7879esac
7880
7881 $ac_path_SED_found && break 3
7882 done
7883 done
7884 done
7885IFS=$as_save_IFS
7886 if test -z "$ac_cv_path_SED"; then
7887 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7888 fi
7889else
7890 ac_cv_path_SED=$SED
7891fi
7892
7893fi
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7895$as_echo "$ac_cv_path_SED" >&6; }
7896 SED="$ac_cv_path_SED"
7897 rm -f conftest.sed
7898
7899
05ea2a05
TT
7900 if test "X$prefix" = "XNONE"; then
7901 acl_final_prefix="$ac_default_prefix"
7902 else
7903 acl_final_prefix="$prefix"
7904 fi
7905 if test "X$exec_prefix" = "XNONE"; then
7906 acl_final_exec_prefix='${prefix}'
7907 else
7908 acl_final_exec_prefix="$exec_prefix"
7909 fi
7910 acl_save_prefix="$prefix"
7911 prefix="$acl_final_prefix"
7912 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7913 prefix="$acl_save_prefix"
7914
7915
7916# Check whether --with-gnu-ld was given.
7917if test "${with_gnu_ld+set}" = set; then :
7918 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7919else
7920 with_gnu_ld=no
7921fi
7922
7923# Prepare PATH_SEPARATOR.
7924# The user is always right.
7925if test "${PATH_SEPARATOR+set}" != set; then
7926 echo "#! /bin/sh" >conf$$.sh
7927 echo "exit 0" >>conf$$.sh
7928 chmod +x conf$$.sh
7929 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7930 PATH_SEPARATOR=';'
7931 else
7932 PATH_SEPARATOR=:
7933 fi
7934 rm -f conf$$.sh
7935fi
7936ac_prog=ld
7937if test "$GCC" = yes; then
7938 # Check if gcc -print-prog-name=ld gives a path.
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7940$as_echo_n "checking for ld used by GCC... " >&6; }
7941 case $host in
7942 *-*-mingw*)
7943 # gcc leaves a trailing carriage return which upsets mingw
7944 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7945 *)
7946 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7947 esac
7948 case $ac_prog in
7949 # Accept absolute paths.
7950 [\\/]* | [A-Za-z]:[\\/]*)
7951 re_direlt='/[^/][^/]*/\.\./'
7952 # Canonicalize the path of ld
7953 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7954 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7955 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7956 done
7957 test -z "$LD" && LD="$ac_prog"
7958 ;;
7959 "")
7960 # If it fails, then pretend we aren't using GCC.
7961 ac_prog=ld
7962 ;;
7963 *)
7964 # If it is relative, then search for the first ld in PATH.
7965 with_gnu_ld=unknown
7966 ;;
7967 esac
7968elif test "$with_gnu_ld" = yes; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7970$as_echo_n "checking for GNU ld... " >&6; }
7971else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7973$as_echo_n "checking for non-GNU ld... " >&6; }
7974fi
7975if ${acl_cv_path_LD+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977else
7978 if test -z "$LD"; then
7979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7980 for ac_dir in $PATH; do
7981 test -z "$ac_dir" && ac_dir=.
7982 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7983 acl_cv_path_LD="$ac_dir/$ac_prog"
7984 # Check to see if the program is GNU ld. I'd rather use --version,
7985 # but apparently some GNU ld's only accept -v.
7986 # Break only if it was the GNU/non-GNU ld that we prefer.
7987 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7988 test "$with_gnu_ld" != no && break
7989 else
7990 test "$with_gnu_ld" != yes && break
7991 fi
7992 fi
7993 done
7994 IFS="$ac_save_ifs"
7995else
7996 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7997fi
7998fi
7999
8000LD="$acl_cv_path_LD"
8001if test -n "$LD"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8003$as_echo "$LD" >&6; }
8004else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8010$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8011if ${acl_cv_prog_gnu_ld+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013else
8014 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8015if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8016 acl_cv_prog_gnu_ld=yes
8017else
8018 acl_cv_prog_gnu_ld=no
8019fi
8020fi
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8022$as_echo "$acl_cv_prog_gnu_ld" >&6; }
8023with_gnu_ld=$acl_cv_prog_gnu_ld
8024
8025
8026
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8028$as_echo_n "checking for shared library run path origin... " >&6; }
8029if ${acl_cv_rpath+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031else
8032
8033 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8034 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8035 . ./conftest.sh
8036 rm -f ./conftest.sh
8037 acl_cv_rpath=done
8038
8039fi
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8041$as_echo "$acl_cv_rpath" >&6; }
8042 wl="$acl_cv_wl"
8043 libext="$acl_cv_libext"
8044 shlibext="$acl_cv_shlibext"
8045 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8046 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8047 hardcode_direct="$acl_cv_hardcode_direct"
8048 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8049 # Check whether --enable-rpath was given.
8050if test "${enable_rpath+set}" = set; then :
8051 enableval=$enable_rpath; :
8052else
8053 enable_rpath=yes
8054fi
8055
8056
8057
01027315
TT
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8059$as_echo_n "checking for ANSI C header files... " >&6; }
8060if ${ac_cv_header_stdc+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062else
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064/* end confdefs.h. */
8065#include <stdlib.h>
8066#include <stdarg.h>
8067#include <string.h>
8068#include <float.h>
8069
8070int
8071main ()
8072{
8073
8074 ;
8075 return 0;
8076}
8077_ACEOF
8078if ac_fn_c_try_compile "$LINENO"; then :
8079 ac_cv_header_stdc=yes
8080else
8081 ac_cv_header_stdc=no
8082fi
8083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084
8085if test $ac_cv_header_stdc = yes; then
8086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h. */
8089#include <string.h>
8090
8091_ACEOF
8092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8093 $EGREP "memchr" >/dev/null 2>&1; then :
8094
8095else
8096 ac_cv_header_stdc=no
8097fi
8098rm -f conftest*
8099
8100fi
8101
8102if test $ac_cv_header_stdc = yes; then
8103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105/* end confdefs.h. */
8106#include <stdlib.h>
8107
8108_ACEOF
8109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8110 $EGREP "free" >/dev/null 2>&1; then :
8111
8112else
8113 ac_cv_header_stdc=no
8114fi
8115rm -f conftest*
8116
8117fi
8118
8119if test $ac_cv_header_stdc = yes; then
8120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8121 if test "$cross_compiling" = yes; then :
8122 :
8123else
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125/* end confdefs.h. */
8126#include <ctype.h>
8127#include <stdlib.h>
8128#if ((' ' & 0x0FF) == 0x020)
8129# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8130# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8131#else
8132# define ISLOWER(c) \
8133 (('a' <= (c) && (c) <= 'i') \
8134 || ('j' <= (c) && (c) <= 'r') \
8135 || ('s' <= (c) && (c) <= 'z'))
8136# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8137#endif
8138
8139#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8140int
8141main ()
8142{
8143 int i;
8144 for (i = 0; i < 256; i++)
8145 if (XOR (islower (i), ISLOWER (i))
8146 || toupper (i) != TOUPPER (i))
8147 return 2;
8148 return 0;
8149}
8150_ACEOF
8151if ac_fn_c_try_run "$LINENO"; then :
8152
8153else
8154 ac_cv_header_stdc=no
8155fi
8156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8157 conftest.$ac_objext conftest.beam conftest.$ac_ext
8158fi
8159
8160fi
8161fi
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8163$as_echo "$ac_cv_header_stdc" >&6; }
8164if test $ac_cv_header_stdc = yes; then
8165
8166$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8167
8168fi
8169
8170 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8171# for constant arguments. Useless!
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8173$as_echo_n "checking for working alloca.h... " >&6; }
8174if ${ac_cv_working_alloca_h+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176else
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h. */
8179#include <alloca.h>
8180int
8181main ()
8182{
8183char *p = (char *) alloca (2 * sizeof (int));
8184 if (p) return 0;
8185 ;
8186 return 0;
8187}
8188_ACEOF
8189if ac_fn_c_try_link "$LINENO"; then :
8190 ac_cv_working_alloca_h=yes
8191else
8192 ac_cv_working_alloca_h=no
8193fi
8194rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
8196fi
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8198$as_echo "$ac_cv_working_alloca_h" >&6; }
8199if test $ac_cv_working_alloca_h = yes; then
8200
8201$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8202
8203fi
8204
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8206$as_echo_n "checking for alloca... " >&6; }
8207if ${ac_cv_func_alloca_works+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209else
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211/* end confdefs.h. */
8212#ifdef __GNUC__
8213# define alloca __builtin_alloca
8214#else
8215# ifdef _MSC_VER
8216# include <malloc.h>
8217# define alloca _alloca
8218# else
8219# ifdef HAVE_ALLOCA_H
8220# include <alloca.h>
8221# else
8222# ifdef _AIX
8223 #pragma alloca
8224# else
8225# ifndef alloca /* predefined by HP cc +Olibcalls */
8226void *alloca (size_t);
8227# endif
8228# endif
8229# endif
8230# endif
8231#endif
8232
8233int
8234main ()
8235{
8236char *p = (char *) alloca (1);
8237 if (p) return 0;
8238 ;
8239 return 0;
8240}
8241_ACEOF
8242if ac_fn_c_try_link "$LINENO"; then :
8243 ac_cv_func_alloca_works=yes
8244else
8245 ac_cv_func_alloca_works=no
8246fi
8247rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249fi
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8251$as_echo "$ac_cv_func_alloca_works" >&6; }
8252
8253if test $ac_cv_func_alloca_works = yes; then
8254
8255$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8256
8257else
8258 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8259# that cause trouble. Some versions do not even contain alloca or
8260# contain a buggy version. If you still want to use their alloca,
8261# use ar to extract alloca.o from them instead of compiling alloca.c.
8262
8263ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8264
8265$as_echo "#define C_ALLOCA 1" >>confdefs.h
8266
8267
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8269$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8270if ${ac_cv_os_cray+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272else
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274/* end confdefs.h. */
8275#if defined CRAY && ! defined CRAY2
8276webecray
8277#else
8278wenotbecray
8279#endif
8280
8281_ACEOF
8282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8283 $EGREP "webecray" >/dev/null 2>&1; then :
8284 ac_cv_os_cray=yes
8285else
8286 ac_cv_os_cray=no
8287fi
8288rm -f conftest*
8289
8290fi
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8292$as_echo "$ac_cv_os_cray" >&6; }
8293if test $ac_cv_os_cray = yes; then
8294 for ac_func in _getb67 GETB67 getb67; do
8295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8296ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8297if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8298
8299cat >>confdefs.h <<_ACEOF
8300#define CRAY_STACKSEG_END $ac_func
8301_ACEOF
8302
8303 break
8304fi
8305
8306 done
8307fi
8308
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8310$as_echo_n "checking stack direction for C alloca... " >&6; }
8311if ${ac_cv_c_stack_direction+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313else
8314 if test "$cross_compiling" = yes; then :
8315 ac_cv_c_stack_direction=0
8316else
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h. */
8319$ac_includes_default
8320int
8321find_stack_direction (int *addr, int depth)
8322{
8323 int dir, dummy = 0;
8324 if (! addr)
8325 addr = &dummy;
8326 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8327 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8328 return dir + dummy;
8329}
8330
8331int
8332main (int argc, char **argv)
8333{
8334 return find_stack_direction (0, argc + !argv + 20) < 0;
8335}
8336_ACEOF
8337if ac_fn_c_try_run "$LINENO"; then :
8338 ac_cv_c_stack_direction=1
8339else
8340 ac_cv_c_stack_direction=-1
8341fi
8342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8343 conftest.$ac_objext conftest.beam conftest.$ac_ext
8344fi
8345
8346fi
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8348$as_echo "$ac_cv_c_stack_direction" >&6; }
8349cat >>confdefs.h <<_ACEOF
8350#define STACK_DIRECTION $ac_cv_c_stack_direction
8351_ACEOF
8352
8353
8354fi
8355
8356
8357 WIN32APILIBS=
8358 case ${host} in
8359 *mingw32*)
8360
8361$as_echo "#define USE_WIN32API 1" >>confdefs.h
8362
8363 WIN32APILIBS="-lws2_32"
8364 ;;
8365 esac
8366
8367
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8369$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8370if ${am_cv_langinfo_codeset+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372else
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374/* end confdefs.h. */
8375#include <langinfo.h>
8376int
8377main ()
8378{
8379char* cs = nl_langinfo(CODESET);
8380 ;
8381 return 0;
8382}
8383_ACEOF
8384if ac_fn_c_try_link "$LINENO"; then :
8385 am_cv_langinfo_codeset=yes
8386else
8387 am_cv_langinfo_codeset=no
8388fi
8389rm -f core conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391
8392fi
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8394$as_echo "$am_cv_langinfo_codeset" >&6; }
8395 if test $am_cv_langinfo_codeset = yes; then
8396
8397$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8398
8399 fi
8400
8401
05ea2a05 8402 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h sys/procfs.h proc_service.h
01027315
TT
8403do :
8404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8405ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8406if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8407 cat >>confdefs.h <<_ACEOF
8408#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8409_ACEOF
8410
8411fi
8412
8413done
8414
8415
05ea2a05
TT
8416
8417for ac_func in getpagesize
01027315 8418do :
05ea2a05
TT
8419 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8420if test "x$ac_cv_func_getpagesize" = xyes; then :
01027315 8421 cat >>confdefs.h <<_ACEOF
05ea2a05 8422#define HAVE_GETPAGESIZE 1
01027315
TT
8423_ACEOF
8424
8425fi
8426done
8427
05ea2a05
TT
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8429$as_echo_n "checking for working mmap... " >&6; }
8430if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8431 $as_echo_n "(cached) " >&6
01027315 8432else
05ea2a05
TT
8433 if test "$cross_compiling" = yes; then :
8434 ac_cv_func_mmap_fixed_mapped=no
8435else
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437/* end confdefs.h. */
8438$ac_includes_default
8439/* malloc might have been renamed as rpl_malloc. */
8440#undef malloc
8441
8442/* Thanks to Mike Haertel and Jim Avera for this test.
8443 Here is a matrix of mmap possibilities:
8444 mmap private not fixed
8445 mmap private fixed at somewhere currently unmapped
8446 mmap private fixed at somewhere already mapped
8447 mmap shared not fixed
8448 mmap shared fixed at somewhere currently unmapped
8449 mmap shared fixed at somewhere already mapped
8450 For private mappings, we should verify that changes cannot be read()
8451 back from the file, nor mmap's back from the file at a different
8452 address. (There have been systems where private was not correctly
8453 implemented like the infamous i386 svr4.0, and systems where the
8454 VM page cache was not coherent with the file system buffer cache
8455 like early versions of FreeBSD and possibly contemporary NetBSD.)
8456 For shared mappings, we should conversely verify that changes get
8457 propagated back to all the places they're supposed to be.
8458
8459 Grep wants private fixed already mapped.
8460 The main things grep needs to know about mmap are:
8461 * does it exist and is it safe to write into the mmap'd area
8462 * how to use it (BSD variants) */
8463
8464#include <fcntl.h>
8465#include <sys/mman.h>
8466
8467#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8468char *malloc ();
8469#endif
01027315 8470
05ea2a05
TT
8471/* This mess was copied from the GNU getpagesize.h. */
8472#ifndef HAVE_GETPAGESIZE
8473# ifdef _SC_PAGESIZE
8474# define getpagesize() sysconf(_SC_PAGESIZE)
8475# else /* no _SC_PAGESIZE */
8476# ifdef HAVE_SYS_PARAM_H
8477# include <sys/param.h>
8478# ifdef EXEC_PAGESIZE
8479# define getpagesize() EXEC_PAGESIZE
8480# else /* no EXEC_PAGESIZE */
8481# ifdef NBPG
8482# define getpagesize() NBPG * CLSIZE
8483# ifndef CLSIZE
8484# define CLSIZE 1
8485# endif /* no CLSIZE */
8486# else /* no NBPG */
8487# ifdef NBPC
8488# define getpagesize() NBPC
8489# else /* no NBPC */
8490# ifdef PAGESIZE
8491# define getpagesize() PAGESIZE
8492# endif /* PAGESIZE */
8493# endif /* no NBPC */
8494# endif /* no NBPG */
8495# endif /* no EXEC_PAGESIZE */
8496# else /* no HAVE_SYS_PARAM_H */
8497# define getpagesize() 8192 /* punt totally */
8498# endif /* no HAVE_SYS_PARAM_H */
8499# endif /* no _SC_PAGESIZE */
8500
8501#endif /* no HAVE_GETPAGESIZE */
01027315 8502
05ea2a05
TT
8503int
8504main ()
8505{
8506 char *data, *data2, *data3;
8507 const char *cdata2;
8508 int i, pagesize;
8509 int fd, fd2;
01027315 8510
05ea2a05 8511 pagesize = getpagesize ();
01027315 8512
05ea2a05
TT
8513 /* First, make a file with some known garbage in it. */
8514 data = (char *) malloc (pagesize);
8515 if (!data)
8516 return 1;
8517 for (i = 0; i < pagesize; ++i)
8518 *(data + i) = rand ();
8519 umask (0);
8520 fd = creat ("conftest.mmap", 0600);
8521 if (fd < 0)
8522 return 2;
8523 if (write (fd, data, pagesize) != pagesize)
8524 return 3;
8525 close (fd);
8526
8527 /* Next, check that the tail of a page is zero-filled. File must have
8528 non-zero length, otherwise we risk SIGBUS for entire page. */
8529 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8530 if (fd2 < 0)
8531 return 4;
8532 cdata2 = "";
8533 if (write (fd2, cdata2, 1) != 1)
8534 return 5;
8535 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8536 if (data2 == MAP_FAILED)
8537 return 6;
8538 for (i = 0; i < pagesize; ++i)
8539 if (*(data2 + i))
8540 return 7;
8541 close (fd2);
8542 if (munmap (data2, pagesize))
8543 return 8;
8544
8545 /* Next, try to mmap the file at a fixed address which already has
8546 something else allocated at it. If we can, also make sure that
8547 we see the same garbage. */
8548 fd = open ("conftest.mmap", O_RDWR);
8549 if (fd < 0)
8550 return 9;
8551 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8552 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8553 return 10;
8554 for (i = 0; i < pagesize; ++i)
8555 if (*(data + i) != *(data2 + i))
8556 return 11;
8557
8558 /* Finally, make sure that changes to the mapped area do not
8559 percolate back to the file as seen by read(). (This is a bug on
8560 some variants of i386 svr4.0.) */
8561 for (i = 0; i < pagesize; ++i)
8562 *(data2 + i) = *(data2 + i) + 1;
8563 data3 = (char *) malloc (pagesize);
8564 if (!data3)
8565 return 12;
8566 if (read (fd, data3, pagesize) != pagesize)
8567 return 13;
8568 for (i = 0; i < pagesize; ++i)
8569 if (*(data + i) != *(data3 + i))
8570 return 14;
8571 close (fd);
8572 return 0;
8573}
8574_ACEOF
8575if ac_fn_c_try_run "$LINENO"; then :
8576 ac_cv_func_mmap_fixed_mapped=yes
8577else
8578 ac_cv_func_mmap_fixed_mapped=no
8579fi
8580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8581 conftest.$ac_objext conftest.beam conftest.$ac_ext
8582fi
01027315 8583
05ea2a05
TT
8584fi
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8586$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8587if test $ac_cv_func_mmap_fixed_mapped = yes; then
01027315 8588
05ea2a05 8589$as_echo "#define HAVE_MMAP 1" >>confdefs.h
01027315 8590
05ea2a05
TT
8591fi
8592rm -f conftest.mmap conftest.txt
01027315 8593
05ea2a05
TT
8594 for ac_header in vfork.h
8595do :
8596 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8597if test "x$ac_cv_header_vfork_h" = xyes; then :
8598 cat >>confdefs.h <<_ACEOF
8599#define HAVE_VFORK_H 1
8600_ACEOF
01027315 8601
05ea2a05 8602fi
01027315 8603
05ea2a05
TT
8604done
8605
8606for ac_func in fork vfork
8607do :
8608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8609ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8610if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8611 cat >>confdefs.h <<_ACEOF
8612#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8613_ACEOF
01027315 8614
01027315 8615fi
05ea2a05 8616done
01027315 8617
05ea2a05
TT
8618if test "x$ac_cv_func_fork" = xyes; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8620$as_echo_n "checking for working fork... " >&6; }
8621if ${ac_cv_func_fork_works+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623else
8624 if test "$cross_compiling" = yes; then :
8625 ac_cv_func_fork_works=cross
8626else
8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628/* end confdefs.h. */
8629$ac_includes_default
01027315
TT
8630int
8631main ()
8632{
05ea2a05
TT
8633
8634 /* By Ruediger Kuhlmann. */
8635 return fork () < 0;
8636
01027315
TT
8637 ;
8638 return 0;
8639}
8640_ACEOF
05ea2a05
TT
8641if ac_fn_c_try_run "$LINENO"; then :
8642 ac_cv_func_fork_works=yes
8643else
8644 ac_cv_func_fork_works=no
01027315 8645fi
05ea2a05
TT
8646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8647 conftest.$ac_objext conftest.beam conftest.$ac_ext
01027315
TT
8648fi
8649
05ea2a05
TT
8650fi
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8652$as_echo "$ac_cv_func_fork_works" >&6; }
01027315 8653
05ea2a05
TT
8654else
8655 ac_cv_func_fork_works=$ac_cv_func_fork
8656fi
8657if test "x$ac_cv_func_fork_works" = xcross; then
8658 case $host in
8659 *-*-amigaos* | *-*-msdosdjgpp*)
8660 # Override, as these systems have only a dummy fork() stub
8661 ac_cv_func_fork_works=no
8662 ;;
8663 *)
8664 ac_cv_func_fork_works=yes
8665 ;;
8666 esac
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8668$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8669fi
8670ac_cv_func_vfork_works=$ac_cv_func_vfork
8671if test "x$ac_cv_func_vfork" = xyes; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8673$as_echo_n "checking for working vfork... " >&6; }
8674if ${ac_cv_func_vfork_works+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676else
8677 if test "$cross_compiling" = yes; then :
8678 ac_cv_func_vfork_works=cross
8679else
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h. */
8682/* Thanks to Paul Eggert for this test. */
8683$ac_includes_default
8684#include <sys/wait.h>
8685#ifdef HAVE_VFORK_H
8686# include <vfork.h>
8687#endif
8688/* On some sparc systems, changes by the child to local and incoming
8689 argument registers are propagated back to the parent. The compiler
8690 is told about this with #include <vfork.h>, but some compilers
8691 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8692 static variable whose address is put into a register that is
8693 clobbered by the vfork. */
8694static void
8695#ifdef __cplusplus
8696sparc_address_test (int arg)
8697# else
8698sparc_address_test (arg) int arg;
8699#endif
8700{
8701 static pid_t child;
8702 if (!child) {
8703 child = vfork ();
8704 if (child < 0) {
8705 perror ("vfork");
8706 _exit(2);
8707 }
8708 if (!child) {
8709 arg = getpid();
8710 write(-1, "", 0);
8711 _exit (arg);
8712 }
8713 }
8714}
01027315 8715
05ea2a05
TT
8716int
8717main ()
8718{
8719 pid_t parent = getpid ();
8720 pid_t child;
8721
8722 sparc_address_test (0);
8723
8724 child = vfork ();
8725
8726 if (child == 0) {
8727 /* Here is another test for sparc vfork register problems. This
8728 test uses lots of local variables, at least as many local
8729 variables as main has allocated so far including compiler
8730 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8731 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8732 reuse the register of parent for one of the local variables,
8733 since it will think that parent can't possibly be used any more
8734 in this routine. Assigning to the local variable will thus
8735 munge parent in the parent process. */
8736 pid_t
8737 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8738 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8739 /* Convince the compiler that p..p7 are live; otherwise, it might
8740 use the same hardware register for all 8 local variables. */
8741 if (p != p1 || p != p2 || p != p3 || p != p4
8742 || p != p5 || p != p6 || p != p7)
8743 _exit(1);
8744
8745 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8746 from child file descriptors. If the child closes a descriptor
8747 before it execs or exits, this munges the parent's descriptor
8748 as well. Test for this by closing stdout in the child. */
8749 _exit(close(fileno(stdout)) != 0);
8750 } else {
8751 int status;
8752 struct stat st;
8753
8754 while (wait(&status) != child)
8755 ;
8756 return (
8757 /* Was there some problem with vforking? */
8758 child < 0
8759
8760 /* Did the child fail? (This shouldn't happen.) */
8761 || status
8762
8763 /* Did the vfork/compiler bug occur? */
8764 || parent != getpid()
8765
8766 /* Did the file descriptor bug occur? */
8767 || fstat(fileno(stdout), &st) != 0
8768 );
8769 }
8770}
8771_ACEOF
8772if ac_fn_c_try_run "$LINENO"; then :
8773 ac_cv_func_vfork_works=yes
8774else
8775 ac_cv_func_vfork_works=no
8776fi
8777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8778 conftest.$ac_objext conftest.beam conftest.$ac_ext
8779fi
01027315 8780
05ea2a05
TT
8781fi
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8783$as_echo "$ac_cv_func_vfork_works" >&6; }
01027315 8784
05ea2a05
TT
8785fi;
8786if test "x$ac_cv_func_fork_works" = xcross; then
8787 ac_cv_func_vfork_works=$ac_cv_func_vfork
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8789$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8790fi
01027315 8791
05ea2a05 8792if test "x$ac_cv_func_vfork_works" = xyes; then
01027315 8793
05ea2a05 8794$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
01027315 8795
05ea2a05 8796else
01027315 8797
05ea2a05 8798$as_echo "#define vfork fork" >>confdefs.h
01027315 8799
05ea2a05
TT
8800fi
8801if test "x$ac_cv_func_fork_works" = xyes; then
01027315 8802
05ea2a05 8803$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
01027315 8804
05ea2a05 8805fi
01027315 8806
05ea2a05
TT
8807 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction \
8808 ptrace64 sbrk setns sigaltstack sigprocmask \
8809 setpgid setpgrp getrusage getauxval
8810do :
8811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8812ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8813if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8814 cat >>confdefs.h <<_ACEOF
8815#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
01027315 8816_ACEOF
05ea2a05 8817
01027315 8818fi
05ea2a05 8819done
01027315 8820
01027315 8821
05ea2a05
TT
8822 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8823"
8824if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8825 ac_have_decl=1
8826else
8827 ac_have_decl=0
8828fi
01027315 8829
05ea2a05
TT
8830cat >>confdefs.h <<_ACEOF
8831#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8832_ACEOF
01027315 8833
01027315 8834
05ea2a05
TT
8835 if test "$cross_compiling" = yes; then :
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837/* end confdefs.h. */
8838#include <sys/personality.h>
8839int
8840main ()
8841{
01027315 8842
05ea2a05
TT
8843 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8844 # define ADDR_NO_RANDOMIZE 0x0040000
8845 # endif
8846 /* Test the flag could be set and stays set. */
8847 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8848 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8849 return 1
8850 ;
8851 return 0;
8852}
8853_ACEOF
8854if ac_fn_c_try_link "$LINENO"; then :
8855 have_personality=true
8856else
8857 have_personality=false
8858fi
8859rm -f core conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8861else
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863/* end confdefs.h. */
8864#include <sys/personality.h>
8865int
8866main ()
8867{
8868
8869 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8870 # define ADDR_NO_RANDOMIZE 0x0040000
8871 # endif
8872 /* Test the flag could be set and stays set. */
8873 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8874 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8875 return 1
8876 ;
8877 return 0;
8878}
8879_ACEOF
8880if ac_fn_c_try_run "$LINENO"; then :
8881 have_personality=true
8882else
8883 have_personality=false
8884fi
8885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8886 conftest.$ac_objext conftest.beam conftest.$ac_ext
01027315
TT
8887fi
8888
05ea2a05
TT
8889 if $have_personality
8890 then
01027315 8891
05ea2a05 8892$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
01027315 8893
05ea2a05 8894 fi
01027315 8895
05ea2a05
TT
8896 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8897if test "x$ac_cv_have_decl_strstr" = xyes; then :
8898 ac_have_decl=1
01027315 8899else
05ea2a05 8900 ac_have_decl=0
01027315
TT
8901fi
8902
05ea2a05
TT
8903cat >>confdefs.h <<_ACEOF
8904#define HAVE_DECL_STRSTR $ac_have_decl
8905_ACEOF
01027315 8906
05ea2a05
TT
8907
8908 # ----------------------- #
8909 # Checks for structures. #
8910 # ----------------------- #
8911
8912 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8913if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8914
8915cat >>confdefs.h <<_ACEOF
8916#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8917_ACEOF
8918
8919
8920fi
8921ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8922if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8923
8924cat >>confdefs.h <<_ACEOF
8925#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8926_ACEOF
8927
8928
8929fi
8930
8931
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8933$as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8934if ${ac_cv_search_kinfo_getfile+:} false; then :
01027315
TT
8935 $as_echo_n "(cached) " >&6
8936else
05ea2a05
TT
8937 ac_func_search_save_LIBS=$LIBS
8938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 8939/* end confdefs.h. */
01027315 8940
05ea2a05
TT
8941/* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8944#ifdef __cplusplus
8945extern "C"
8946#endif
8947char kinfo_getfile ();
8948int
8949main ()
8950{
8951return kinfo_getfile ();
8952 ;
8953 return 0;
8954}
01027315 8955_ACEOF
05ea2a05
TT
8956for ac_lib in '' util util-freebsd; do
8957 if test -z "$ac_lib"; then
8958 ac_res="none required"
8959 else
8960 ac_res=-l$ac_lib
8961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8962 fi
8963 if ac_fn_c_try_link "$LINENO"; then :
8964 ac_cv_search_kinfo_getfile=$ac_res
01027315 8965fi
05ea2a05
TT
8966rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext
8968 if ${ac_cv_search_kinfo_getfile+:} false; then :
8969 break
8970fi
8971done
8972if ${ac_cv_search_kinfo_getfile+:} false; then :
01027315 8973
05ea2a05
TT
8974else
8975 ac_cv_search_kinfo_getfile=no
8976fi
8977rm conftest.$ac_ext
8978LIBS=$ac_func_search_save_LIBS
8979fi
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8981$as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8982ac_res=$ac_cv_search_kinfo_getfile
8983if test "$ac_res" != no; then :
8984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985
8986$as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
01027315
TT
8987
8988fi
01027315 8989
01027315 8990
05ea2a05
TT
8991 # Check for std::thread. This does not work on some platforms, like
8992 # mingw and DJGPP.
8993 ac_ext=cpp
8994ac_cpp='$CXXCPP $CPPFLAGS'
8995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
01027315 8998
01027315 8999
01027315 9000
01027315 9001
05ea2a05
TT
9002
9003ac_ext=c
9004ac_cpp='$CPP $CPPFLAGS'
9005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008
9009ax_pthread_ok=no
9010
9011# We used to check for pthread.h first, but this fails if pthread.h
9012# requires special compiler flags (e.g. on Tru64 or Sequent).
9013# It gets checked for in the link test anyway.
9014
9015# First of all, check if the user has set any of the PTHREAD_LIBS,
9016# etcetera environment variables, and if threads linking works using
9017# them:
9018if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9019 ax_pthread_save_CC="$CC"
9020 ax_pthread_save_CFLAGS="$CFLAGS"
9021 ax_pthread_save_LIBS="$LIBS"
9022 if test "x$PTHREAD_CC" != "x"; then :
9023 CC="$PTHREAD_CC"
9024fi
9025 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9026 LIBS="$PTHREAD_LIBS $LIBS"
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9028$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030/* end confdefs.h. */
9031
9032/* Override any GCC internal prototype to avoid an error.
9033 Use char because int might match the return type of a GCC
9034 builtin and then its argument prototype would still apply. */
9035#ifdef __cplusplus
9036extern "C"
9037#endif
9038char pthread_join ();
9039int
9040main ()
9041{
9042return pthread_join ();
9043 ;
9044 return 0;
9045}
9046_ACEOF
9047if ac_fn_c_try_link "$LINENO"; then :
9048 ax_pthread_ok=yes
9049fi
9050rm -f core conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9053$as_echo "$ax_pthread_ok" >&6; }
9054 if test "x$ax_pthread_ok" = "xno"; then
9055 PTHREAD_LIBS=""
9056 PTHREAD_CFLAGS=""
9057 fi
9058 CC="$ax_pthread_save_CC"
9059 CFLAGS="$ax_pthread_save_CFLAGS"
9060 LIBS="$ax_pthread_save_LIBS"
9061fi
9062
9063# We must check for the threads library under a number of different
9064# names; the ordering is very important because some systems
9065# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9066# libraries is broken (non-POSIX).
9067
9068# Create a list of thread flags to try. Items starting with a "-" are
9069# C compiler flags, and other items are library names, except for "none"
9070# which indicates that we try without any flags at all, and "pthread-config"
9071# which is a program returning the flags for the Pth emulation library.
9072
9073ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9074
9075# The ordering *is* (sometimes) important. Some notes on the
9076# individual items follow:
9077
9078# pthreads: AIX (must check this before -lpthread)
9079# none: in case threads are in libc; should be tried before -Kthread and
9080# other compiler flags to prevent continual compiler warnings
9081# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9082# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9083# (Note: HP C rejects this with "bad form for `-t' option")
9084# -pthreads: Solaris/gcc (Note: HP C also rejects)
9085# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9086# doesn't hurt to check since this sometimes defines pthreads and
9087# -D_REENTRANT too), HP C (must be checked before -lpthread, which
9088# is present but should not be used directly; and before -mthreads,
9089# because the compiler interprets this as "-mt" + "-hreads")
9090# -mthreads: Mingw32/gcc, Lynx/gcc
9091# pthread: Linux, etcetera
9092# --thread-safe: KAI C++
9093# pthread-config: use pthread-config program (for GNU Pth library)
9094
9095case $host_os in
9096
9097 freebsd*)
9098
9099 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9100 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9101
9102 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9103 ;;
9104
9105 hpux*)
9106
9107 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9108 # multi-threading and also sets -lpthread."
9109
9110 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9111 ;;
9112
9113 openedition*)
9114
9115 # IBM z/OS requires a feature-test macro to be defined in order to
9116 # enable POSIX threads at all, so give the user a hint if this is
9117 # not set. (We don't define these ourselves, as they can affect
9118 # other portions of the system API in unpredictable ways.)
9119
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121/* end confdefs.h. */
9122
9123# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9124 AX_PTHREAD_ZOS_MISSING
9125# endif
9126
9127_ACEOF
9128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9129 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9131$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9132fi
9133rm -f conftest*
9134
9135 ;;
9136
9137 solaris*)
9138
9139 # On Solaris (at least, for some versions), libc contains stubbed
9140 # (non-functional) versions of the pthreads routines, so link-based
9141 # tests will erroneously succeed. (N.B.: The stubs are missing
9142 # pthread_cleanup_push, or rather a function called by this macro,
9143 # so we could check for that, but who knows whether they'll stub
9144 # that too in a future libc.) So we'll check first for the
9145 # standard Solaris way of linking pthreads (-mt -lpthread).
9146
9147 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9148 ;;
9149esac
9150
9151# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9152
9153if test "x$GCC" = "xyes"; then :
9154 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9155fi
9156
9157# The presence of a feature test macro requesting re-entrant function
9158# definitions is, on some systems, a strong hint that pthreads support is
9159# correctly enabled
9160
9161case $host_os in
9162 darwin* | hpux* | linux* | osf* | solaris*)
9163 ax_pthread_check_macro="_REENTRANT"
9164 ;;
9165
9166 aix*)
9167 ax_pthread_check_macro="_THREAD_SAFE"
9168 ;;
9169
9170 *)
9171 ax_pthread_check_macro="--"
9172 ;;
9173esac
9174if test "x$ax_pthread_check_macro" = "x--"; then :
9175 ax_pthread_check_cond=0
9176else
9177 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9178fi
9179
9180# Are we compiling with Clang?
9181
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9183$as_echo_n "checking whether $CC is Clang... " >&6; }
9184if ${ax_cv_PTHREAD_CLANG+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186else
9187 ax_cv_PTHREAD_CLANG=no
9188 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9189 if test "x$GCC" = "xyes"; then
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191/* end confdefs.h. */
9192/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9193# if defined(__clang__) && defined(__llvm__)
9194 AX_PTHREAD_CC_IS_CLANG
9195# endif
9196
9197_ACEOF
9198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9199 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9200 ax_cv_PTHREAD_CLANG=yes
9201fi
9202rm -f conftest*
9203
9204 fi
9205
9206fi
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9208$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9209ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9210
9211ax_pthread_clang_warning=no
9212
9213# Clang needs special handling, because older versions handle the -pthread
9214# option in a rather... idiosyncratic way
9215
9216if test "x$ax_pthread_clang" = "xyes"; then
9217
9218 # Clang takes -pthread; it has never supported any other flag
9219
9220 # (Note 1: This will need to be revisited if a system that Clang
9221 # supports has POSIX threads in a separate library. This tends not
9222 # to be the way of modern systems, but it's conceivable.)
9223
9224 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9225 # to get POSIX threads support; the API is always present and
9226 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9227 # -pthread does define _REENTRANT, and while the Darwin headers
9228 # ignore this macro, third-party headers might not.)
01027315
TT
9229
9230 PTHREAD_CFLAGS="-pthread"
9231 PTHREAD_LIBS=
9232
9233 ax_pthread_ok=yes
9234
9235 # However, older versions of Clang make a point of warning the user
9236 # that, in an invocation where only linking and no compilation is
9237 # taking place, the -pthread option has no effect ("argument unused
9238 # during compilation"). They expect -pthread to be passed in only
9239 # when source code is being compiled.
9240 #
9241 # Problem is, this is at odds with the way Automake and most other
9242 # C build frameworks function, which is that the same flags used in
9243 # compilation (CFLAGS) are also used in linking. Many systems
9244 # supported by AX_PTHREAD require exactly this for POSIX threads
9245 # support, and in fact it is often not straightforward to specify a
9246 # flag that is used only in the compilation phase and not in
9247 # linking. Such a scenario is extremely rare in practice.
9248 #
9249 # Even though use of the -pthread flag in linking would only print
9250 # a warning, this can be a nuisance for well-run software projects
9251 # that build with -Werror. So if the active version of Clang has
9252 # this misfeature, we search for an option to squash it.
9253
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9255$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9256if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9257 $as_echo_n "(cached) " >&6
9258else
9259 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9260 # Create an alternate version of $ac_link that compiles and
9261 # links in two steps (.c -> .o, .o -> exe) instead of one
9262 # (.c -> exe), because the warning occurs only in the second
9263 # step
9264 ax_pthread_save_ac_link="$ac_link"
9265 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9266 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9267 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9268 ax_pthread_save_CFLAGS="$CFLAGS"
9269 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9270 if test "x$ax_pthread_try" = "xunknown"; then :
9271 break
9272fi
9273 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9274 ac_link="$ax_pthread_save_ac_link"
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276/* end confdefs.h. */
9277int main(void){return 0;}
9278_ACEOF
9279if ac_fn_c_try_link "$LINENO"; then :
9280 ac_link="$ax_pthread_2step_ac_link"
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282/* end confdefs.h. */
9283int main(void){return 0;}
9284_ACEOF
9285if ac_fn_c_try_link "$LINENO"; then :
9286 break
9287fi
9288rm -f core conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
9290
9291fi
9292rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294 done
9295 ac_link="$ax_pthread_save_ac_link"
9296 CFLAGS="$ax_pthread_save_CFLAGS"
9297 if test "x$ax_pthread_try" = "x"; then :
9298 ax_pthread_try=no
9299fi
9300 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9301
9302fi
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9304$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9305
9306 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9307 no | unknown) ;;
9308 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9309 esac
9310
9311fi # $ax_pthread_clang = yes
9312
9313if test "x$ax_pthread_ok" = "xno"; then
9314for ax_pthread_try_flag in $ax_pthread_flags; do
9315
9316 case $ax_pthread_try_flag in
9317 none)
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9319$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9320 ;;
9321
9322 -mt,pthread)
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9324$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9325 PTHREAD_CFLAGS="-mt"
9326 PTHREAD_LIBS="-lpthread"
9327 ;;
9328
9329 -*)
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9331$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9332 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9333 ;;
9334
9335 pthread-config)
9336 # Extract the first word of "pthread-config", so it can be a program name with args.
9337set dummy pthread-config; ac_word=$2
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339$as_echo_n "checking for $ac_word... " >&6; }
9340if ${ac_cv_prog_ax_pthread_config+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342else
9343 if test -n "$ax_pthread_config"; then
9344 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9345else
9346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347for as_dir in $PATH
9348do
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9353 ac_cv_prog_ax_pthread_config="yes"
9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 break 2
9356 fi
05ea2a05
TT
9357done
9358 done
9359IFS=$as_save_IFS
9360
9361 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9362fi
9363fi
9364ax_pthread_config=$ac_cv_prog_ax_pthread_config
9365if test -n "$ax_pthread_config"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9367$as_echo "$ax_pthread_config" >&6; }
9368else
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370$as_echo "no" >&6; }
9371fi
9372
9373
9374 if test "x$ax_pthread_config" = "xno"; then :
9375 continue
9376fi
9377 PTHREAD_CFLAGS="`pthread-config --cflags`"
9378 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9379 ;;
9380
9381 *)
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9383$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9384 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9385 ;;
9386 esac
9387
9388 ax_pthread_save_CFLAGS="$CFLAGS"
9389 ax_pthread_save_LIBS="$LIBS"
9390 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9391 LIBS="$PTHREAD_LIBS $LIBS"
9392
9393 # Check for various functions. We must include pthread.h,
9394 # since some functions may be macros. (On the Sequent, we
9395 # need a special flag -Kthread to make this header compile.)
9396 # We check for pthread_join because it is in -lpthread on IRIX
9397 # while pthread_create is in libc. We check for pthread_attr_init
9398 # due to DEC craziness with -lpthreads. We check for
9399 # pthread_cleanup_push because it is one of the few pthread
9400 # functions on Solaris that doesn't have a non-functional libc stub.
9401 # We try pthread_create on general principles.
9402
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h. */
9405#include <pthread.h>
9406# if $ax_pthread_check_cond
9407# error "$ax_pthread_check_macro must be defined"
9408# endif
9409 static void routine(void *a) { a = 0; }
9410 static void *start_routine(void *a) { return a; }
9411int
9412main ()
9413{
9414pthread_t th; pthread_attr_t attr;
9415 pthread_create(&th, 0, start_routine, 0);
9416 pthread_join(th, 0);
9417 pthread_attr_init(&attr);
9418 pthread_cleanup_push(routine, 0);
9419 pthread_cleanup_pop(0) /* ; */
9420 ;
9421 return 0;
9422}
9423_ACEOF
9424if ac_fn_c_try_link "$LINENO"; then :
9425 ax_pthread_ok=yes
9426fi
9427rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429
9430 CFLAGS="$ax_pthread_save_CFLAGS"
9431 LIBS="$ax_pthread_save_LIBS"
9432
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9434$as_echo "$ax_pthread_ok" >&6; }
9435 if test "x$ax_pthread_ok" = "xyes"; then :
9436 break
9437fi
9438
9439 PTHREAD_LIBS=""
9440 PTHREAD_CFLAGS=""
9441done
9442fi
9443
9444# Various other checks:
9445if test "x$ax_pthread_ok" = "xyes"; then
9446 ax_pthread_save_CFLAGS="$CFLAGS"
9447 ax_pthread_save_LIBS="$LIBS"
9448 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9449 LIBS="$PTHREAD_LIBS $LIBS"
9450
9451 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9453$as_echo_n "checking for joinable pthread attribute... " >&6; }
9454if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9455 $as_echo_n "(cached) " >&6
9456else
9457 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9458 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h. */
9461#include <pthread.h>
9462int
9463main ()
9464{
9465int attr = $ax_pthread_attr; return attr /* ; */
9466 ;
9467 return 0;
9468}
9469_ACEOF
9470if ac_fn_c_try_link "$LINENO"; then :
9471 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9472fi
9473rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 done
9476
9477fi
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9479$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9480 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9481 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9482 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9483
9484cat >>confdefs.h <<_ACEOF
9485#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9486_ACEOF
9487
9488 ax_pthread_joinable_attr_defined=yes
9489
9490fi
9491
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9493$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9494if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496else
9497 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9498 case $host_os in
9499 solaris*)
9500 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9501 ;;
9502 esac
9503
9504fi
9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9506$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9507 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9508 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9509 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9510 ax_pthread_special_flags_added=yes
9511fi
9512
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9514$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9515if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9516 $as_echo_n "(cached) " >&6
9517else
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519/* end confdefs.h. */
9520#include <pthread.h>
9521int
9522main ()
9523{
9524int i = PTHREAD_PRIO_INHERIT;
9525 ;
9526 return 0;
9527}
9528_ACEOF
9529if ac_fn_c_try_link "$LINENO"; then :
9530 ax_cv_PTHREAD_PRIO_INHERIT=yes
9531else
9532 ax_cv_PTHREAD_PRIO_INHERIT=no
9533fi
9534rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536
9537fi
9538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9539$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9540 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9541 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9542
9543$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9544
9545 ax_pthread_prio_inherit_defined=yes
9546
9547fi
9548
9549 CFLAGS="$ax_pthread_save_CFLAGS"
9550 LIBS="$ax_pthread_save_LIBS"
9551
9552 # More AIX lossage: compile with *_r variant
9553 if test "x$GCC" != "xyes"; then
9554 case $host_os in
9555 aix*)
9556 case "x/$CC" in #(
9557 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9558 #handle absolute path differently from PATH based program lookup
9559 case "x$CC" in #(
9560 x/*) :
9561 if as_fn_executable_p ${CC}_r; then :
9562 PTHREAD_CC="${CC}_r"
9563fi ;; #(
9564 *) :
9565 for ac_prog in ${CC}_r
9566do
9567 # Extract the first word of "$ac_prog", so it can be a program name with args.
9568set dummy $ac_prog; ac_word=$2
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570$as_echo_n "checking for $ac_word... " >&6; }
9571if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573else
9574 if test -n "$PTHREAD_CC"; then
9575 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9576else
9577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578for as_dir in $PATH
9579do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9584 ac_cv_prog_PTHREAD_CC="$ac_prog"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9587 fi
9588done
9589 done
9590IFS=$as_save_IFS
9591
9592fi
9593fi
9594PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9595if test -n "$PTHREAD_CC"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9597$as_echo "$PTHREAD_CC" >&6; }
9598else
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600$as_echo "no" >&6; }
9601fi
9602
9603
9604 test -n "$PTHREAD_CC" && break
9605done
9606test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9607 ;;
9608esac ;; #(
9609 *) :
9610 ;;
9611esac
9612 ;;
9613 esac
9614 fi
9615fi
9616
9617test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9618
9619
9620
9621
9622
9623# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9624if test "x$ax_pthread_ok" = "xyes"; then
9625 threads=yes
9626 :
9627else
9628 ax_pthread_ok=no
9629 threads=no
9630fi
9631ac_ext=cpp
9632ac_cpp='$CXXCPP $CPPFLAGS'
9633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9636
9637
9638 if test "$threads" = "yes"; then
9639 save_LIBS="$LIBS"
9640 LIBS="$PTHREAD_LIBS $LIBS"
9641 save_CXXFLAGS="$CXXFLAGS"
9642 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9644$as_echo_n "checking for std::thread... " >&6; }
9645if ${gdb_cv_cxx_std_thread+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647else
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649/* end confdefs.h. */
9650#include <thread>
9651 void callback() { }
9652int
9653main ()
9654{
9655std::thread t(callback);
9656 ;
9657 return 0;
9658}
9659_ACEOF
9660if ac_fn_cxx_try_compile "$LINENO"; then :
9661 gdb_cv_cxx_std_thread=yes
9662else
9663 gdb_cv_cxx_std_thread=no
9664fi
9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666fi
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9668$as_echo "$gdb_cv_cxx_std_thread" >&6; }
9669
9670 # This check must be here, while LIBS includes any necessary
9671 # threading library.
9672 for ac_func in pthread_sigmask pthread_setname_np
9673do :
9674 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9675ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9676if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9677 cat >>confdefs.h <<_ACEOF
9678#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9679_ACEOF
9680
9681fi
9682done
9683
9684
9685 LIBS="$save_LIBS"
9686 CXXFLAGS="$save_CXXFLAGS"
9687 fi
9688 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9689
9690$as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9691
9692 fi
9693 ac_ext=c
9694ac_cpp='$CPP $CPPFLAGS'
9695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9697ac_compiler_gnu=$ac_cv_c_compiler_gnu
9698
9699
3684d331 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
05ea2a05
TT
9701$as_echo_n "checking for sigsetjmp... " >&6; }
9702if ${gdb_cv_func_sigsetjmp+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704else
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706/* end confdefs.h. */
9707
3684d331 9708 #include <setjmp.h>
05ea2a05
TT
9709
9710int
9711main ()
9712{
9713sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9714 ;
9715 return 0;
9716}
9717_ACEOF
9718if ac_fn_c_try_compile "$LINENO"; then :
9719 gdb_cv_func_sigsetjmp=yes
9720else
9721 gdb_cv_func_sigsetjmp=no
9722fi
9723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724fi
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9726$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
3684d331 9727 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
05ea2a05
TT
9728
9729$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9730
3684d331 9731 fi
05ea2a05
TT
9732
9733
9734# Check whether --with-intel_pt was given.
9735if test "${with_intel_pt+set}" = set; then :
9736 withval=$with_intel_pt;
9737else
9738 with_intel_pt=auto
9739fi
9740
3684d331 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
05ea2a05 9742$as_echo_n "checking whether to use intel pt... " >&6; }
3684d331 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
05ea2a05
TT
9744$as_echo "$with_intel_pt" >&6; }
9745
3684d331
PA
9746 if test "${with_intel_pt}" = no; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
05ea2a05 9748$as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
3684d331
PA
9749 HAVE_LIBIPT=no
9750 else
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
05ea2a05
TT
9752/* end confdefs.h. */
9753
3684d331
PA
9754 #include <linux/perf_event.h>
9755 #ifndef PERF_ATTR_SIZE_VER5
9756 # error
9757 #endif
05ea2a05
TT
9758
9759_ACEOF
9760if ac_fn_c_try_cpp "$LINENO"; then :
9761 perf_event=yes
9762else
9763 perf_event=no
9764fi
9765rm -f conftest.err conftest.i conftest.$ac_ext
3684d331
PA
9766 if test "$perf_event" != yes; then
9767 if test "$with_intel_pt" = yes; then
9768 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
9769 else
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
05ea2a05 9771$as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
3684d331 9772 fi
05ea2a05 9773 fi
05ea2a05
TT
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783 use_additional=yes
9784
9785 acl_save_prefix="$prefix"
9786 prefix="$acl_final_prefix"
9787 acl_save_exec_prefix="$exec_prefix"
9788 exec_prefix="$acl_final_exec_prefix"
9789
9790 eval additional_includedir=\"$includedir\"
9791 eval additional_libdir=\"$libdir\"
9792
9793 exec_prefix="$acl_save_exec_prefix"
9794 prefix="$acl_save_prefix"
9795
9796
9797# Check whether --with-libipt-prefix was given.
9798if test "${with_libipt_prefix+set}" = set; then :
9799 withval=$with_libipt_prefix;
9800 if test "X$withval" = "Xno"; then
9801 use_additional=no
9802 else
9803 if test "X$withval" = "X"; then
9804
9805 acl_save_prefix="$prefix"
9806 prefix="$acl_final_prefix"
9807 acl_save_exec_prefix="$exec_prefix"
9808 exec_prefix="$acl_final_exec_prefix"
9809
9810 eval additional_includedir=\"$includedir\"
9811 eval additional_libdir=\"$libdir\"
9812
9813 exec_prefix="$acl_save_exec_prefix"
9814 prefix="$acl_save_prefix"
9815
9816 else
9817 additional_includedir="$withval/include"
9818 additional_libdir="$withval/lib"
9819 fi
9820 fi
9821
9822fi
9823
9824 LIBIPT=
9825 LTLIBIPT=
9826 INCIPT=
9827 rpathdirs=
9828 ltrpathdirs=
9829 names_already_handled=
9830 names_next_round='ipt '
9831 while test -n "$names_next_round"; do
9832 names_this_round="$names_next_round"
9833 names_next_round=
9834 for name in $names_this_round; do
9835 already_handled=
9836 for n in $names_already_handled; do
9837 if test "$n" = "$name"; then
9838 already_handled=yes
9839 break
9840 fi
9841 done
9842 if test -z "$already_handled"; then
9843 names_already_handled="$names_already_handled $name"
9844 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9845 eval value=\"\$HAVE_LIB$uppername\"
9846 if test -n "$value"; then
9847 if test "$value" = yes; then
9848 eval value=\"\$LIB$uppername\"
9849 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9850 eval value=\"\$LTLIB$uppername\"
9851 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9852 else
9853 :
9854 fi
9855 else
9856 found_dir=
9857 found_la=
9858 found_so=
9859 found_a=
9860 if test $use_additional = yes; then
9861 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9862 found_dir="$additional_libdir"
9863 found_so="$additional_libdir/lib$name.$shlibext"
9864 if test -f "$additional_libdir/lib$name.la"; then
9865 found_la="$additional_libdir/lib$name.la"
9866 fi
9867 else
9868 if test -f "$additional_libdir/lib$name.$libext"; then
9869 found_dir="$additional_libdir"
9870 found_a="$additional_libdir/lib$name.$libext"
9871 if test -f "$additional_libdir/lib$name.la"; then
9872 found_la="$additional_libdir/lib$name.la"
9873 fi
9874 fi
9875 fi
9876 fi
9877 if test "X$found_dir" = "X"; then
9878 for x in $LDFLAGS $LTLIBIPT; do
9879
9880 acl_save_prefix="$prefix"
9881 prefix="$acl_final_prefix"
9882 acl_save_exec_prefix="$exec_prefix"
9883 exec_prefix="$acl_final_exec_prefix"
9884 eval x=\"$x\"
9885 exec_prefix="$acl_save_exec_prefix"
9886 prefix="$acl_save_prefix"
9887
9888 case "$x" in
9889 -L*)
9890 dir=`echo "X$x" | sed -e 's/^X-L//'`
9891 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9892 found_dir="$dir"
9893 found_so="$dir/lib$name.$shlibext"
9894 if test -f "$dir/lib$name.la"; then
9895 found_la="$dir/lib$name.la"
9896 fi
9897 else
9898 if test -f "$dir/lib$name.$libext"; then
9899 found_dir="$dir"
9900 found_a="$dir/lib$name.$libext"
9901 if test -f "$dir/lib$name.la"; then
9902 found_la="$dir/lib$name.la"
9903 fi
9904 fi
9905 fi
9906 ;;
9907 esac
9908 if test "X$found_dir" != "X"; then
9909 break
9910 fi
9911 done
9912 fi
9913 if test "X$found_dir" != "X"; then
9914 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9915 if test "X$found_so" != "X"; then
9916 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9917 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9918 else
9919 haveit=
9920 for x in $ltrpathdirs; do
9921 if test "X$x" = "X$found_dir"; then
9922 haveit=yes
9923 break
9924 fi
9925 done
9926 if test -z "$haveit"; then
9927 ltrpathdirs="$ltrpathdirs $found_dir"
9928 fi
9929 if test "$hardcode_direct" = yes; then
9930 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9931 else
9932 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9933 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9934 haveit=
9935 for x in $rpathdirs; do
9936 if test "X$x" = "X$found_dir"; then
9937 haveit=yes
9938 break
9939 fi
9940 done
9941 if test -z "$haveit"; then
9942 rpathdirs="$rpathdirs $found_dir"
9943 fi
9944 else
9945 haveit=
9946 for x in $LDFLAGS $LIBIPT; do
9947
9948 acl_save_prefix="$prefix"
9949 prefix="$acl_final_prefix"
9950 acl_save_exec_prefix="$exec_prefix"
9951 exec_prefix="$acl_final_exec_prefix"
9952 eval x=\"$x\"
9953 exec_prefix="$acl_save_exec_prefix"
9954 prefix="$acl_save_prefix"
9955
9956 if test "X$x" = "X-L$found_dir"; then
9957 haveit=yes
9958 break
9959 fi
9960 done
9961 if test -z "$haveit"; then
9962 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9963 fi
9964 if test "$hardcode_minus_L" != no; then
9965 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9966 else
9967 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
9968 fi
9969 fi
9970 fi
9971 fi
9972 else
9973 if test "X$found_a" != "X"; then
9974 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
9975 else
9976 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9977 fi
9978 fi
9979 additional_includedir=
9980 case "$found_dir" in
9981 */lib | */lib/)
9982 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9983 additional_includedir="$basedir/include"
9984 ;;
9985 esac
9986 if test "X$additional_includedir" != "X"; then
9987 if test "X$additional_includedir" != "X/usr/include"; then
9988 haveit=
9989 if test "X$additional_includedir" = "X/usr/local/include"; then
9990 if test -n "$GCC"; then
9991 case $host_os in
9992 linux*) haveit=yes;;
9993 esac
9994 fi
9995 fi
9996 if test -z "$haveit"; then
9997 for x in $CPPFLAGS $INCIPT; do
9998
9999 acl_save_prefix="$prefix"
10000 prefix="$acl_final_prefix"
10001 acl_save_exec_prefix="$exec_prefix"
10002 exec_prefix="$acl_final_exec_prefix"
10003 eval x=\"$x\"
10004 exec_prefix="$acl_save_exec_prefix"
10005 prefix="$acl_save_prefix"
10006
10007 if test "X$x" = "X-I$additional_includedir"; then
10008 haveit=yes
10009 break
10010 fi
10011 done
10012 if test -z "$haveit"; then
10013 if test -d "$additional_includedir"; then
10014 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10015 fi
10016 fi
10017 fi
10018 fi
10019 fi
10020 if test -n "$found_la"; then
10021 save_libdir="$libdir"
10022 case "$found_la" in
10023 */* | *\\*) . "$found_la" ;;
10024 *) . "./$found_la" ;;
10025 esac
10026 libdir="$save_libdir"
10027 for dep in $dependency_libs; do
10028 case "$dep" in
10029 -L*)
10030 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10031 if test "X$additional_libdir" != "X/usr/lib"; then
10032 haveit=
10033 if test "X$additional_libdir" = "X/usr/local/lib"; then
10034 if test -n "$GCC"; then
10035 case $host_os in
10036 linux*) haveit=yes;;
10037 esac
10038 fi
10039 fi
10040 if test -z "$haveit"; then
10041 haveit=
10042 for x in $LDFLAGS $LIBIPT; do
10043
10044 acl_save_prefix="$prefix"
10045 prefix="$acl_final_prefix"
10046 acl_save_exec_prefix="$exec_prefix"
10047 exec_prefix="$acl_final_exec_prefix"
10048 eval x=\"$x\"
10049 exec_prefix="$acl_save_exec_prefix"
10050 prefix="$acl_save_prefix"
10051
10052 if test "X$x" = "X-L$additional_libdir"; then
10053 haveit=yes
10054 break
10055 fi
10056 done
10057 if test -z "$haveit"; then
10058 if test -d "$additional_libdir"; then
10059 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10060 fi
10061 fi
10062 haveit=
10063 for x in $LDFLAGS $LTLIBIPT; do
10064
10065 acl_save_prefix="$prefix"
10066 prefix="$acl_final_prefix"
10067 acl_save_exec_prefix="$exec_prefix"
10068 exec_prefix="$acl_final_exec_prefix"
10069 eval x=\"$x\"
10070 exec_prefix="$acl_save_exec_prefix"
10071 prefix="$acl_save_prefix"
10072
10073 if test "X$x" = "X-L$additional_libdir"; then
10074 haveit=yes
10075 break
10076 fi
10077 done
10078 if test -z "$haveit"; then
10079 if test -d "$additional_libdir"; then
10080 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10081 fi
10082 fi
10083 fi
10084 fi
10085 ;;
10086 -R*)
10087 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10088 if test "$enable_rpath" != no; then
10089 haveit=
10090 for x in $rpathdirs; do
10091 if test "X$x" = "X$dir"; then
10092 haveit=yes
10093 break
10094 fi
10095 done
10096 if test -z "$haveit"; then
10097 rpathdirs="$rpathdirs $dir"
10098 fi
10099 haveit=
10100 for x in $ltrpathdirs; do
10101 if test "X$x" = "X$dir"; then
10102 haveit=yes
10103 break
10104 fi
10105 done
10106 if test -z "$haveit"; then
10107 ltrpathdirs="$ltrpathdirs $dir"
10108 fi
10109 fi
10110 ;;
10111 -l*)
10112 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10113 ;;
10114 *.la)
10115 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10116 ;;
10117 *)
10118 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10119 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10120 ;;
10121 esac
10122 done
10123 fi
10124 else
10125 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10126 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10127 fi
10128 fi
10129 fi
10130 done
10131 done
10132 if test "X$rpathdirs" != "X"; then
10133 if test -n "$hardcode_libdir_separator"; then
10134 alldirs=
10135 for found_dir in $rpathdirs; do
10136 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10137 done
10138 acl_save_libdir="$libdir"
10139 libdir="$alldirs"
10140 eval flag=\"$hardcode_libdir_flag_spec\"
10141 libdir="$acl_save_libdir"
10142 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10143 else
10144 for found_dir in $rpathdirs; do
10145 acl_save_libdir="$libdir"
10146 libdir="$found_dir"
10147 eval flag=\"$hardcode_libdir_flag_spec\"
10148 libdir="$acl_save_libdir"
10149 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10150 done
10151 fi
10152 fi
10153 if test "X$ltrpathdirs" != "X"; then
10154 for found_dir in $ltrpathdirs; do
10155 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10156 done
10157 fi
01027315 10158
01027315 10159
05ea2a05 10160 ac_save_CPPFLAGS="$CPPFLAGS"
01027315 10161
05ea2a05
TT
10162 for element in $INCIPT; do
10163 haveit=
10164 for x in $CPPFLAGS; do
01027315 10165
05ea2a05
TT
10166 acl_save_prefix="$prefix"
10167 prefix="$acl_final_prefix"
10168 acl_save_exec_prefix="$exec_prefix"
10169 exec_prefix="$acl_final_exec_prefix"
10170 eval x=\"$x\"
10171 exec_prefix="$acl_save_exec_prefix"
10172 prefix="$acl_save_prefix"
01027315 10173
05ea2a05
TT
10174 if test "X$x" = "X$element"; then
10175 haveit=yes
10176 break
10177 fi
10178 done
10179 if test -z "$haveit"; then
10180 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10181 fi
10182 done
01027315 10183
01027315 10184
05ea2a05
TT
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10186$as_echo_n "checking for libipt... " >&6; }
10187if ${ac_cv_libipt+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189else
10190
10191 ac_save_LIBS="$LIBS"
10192 LIBS="$LIBS $LIBIPT"
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 10194/* end confdefs.h. */
05ea2a05 10195#include "intel-pt.h"
01027315
TT
10196int
10197main ()
10198{
05ea2a05 10199pt_insn_alloc_decoder (0);
01027315
TT
10200 ;
10201 return 0;
10202}
10203_ACEOF
10204if ac_fn_c_try_link "$LINENO"; then :
05ea2a05
TT
10205 ac_cv_libipt=yes
10206else
10207 ac_cv_libipt=no
01027315
TT
10208fi
10209rm -f core conftest.err conftest.$ac_objext \
10210 conftest$ac_exeext conftest.$ac_ext
05ea2a05 10211 LIBS="$ac_save_LIBS"
01027315 10212
01027315 10213fi
05ea2a05
TT
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10215$as_echo "$ac_cv_libipt" >&6; }
10216 if test "$ac_cv_libipt" = yes; then
10217 HAVE_LIBIPT=yes
01027315 10218
05ea2a05
TT
10219$as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10220
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10222$as_echo_n "checking how to link with libipt... " >&6; }
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10224$as_echo "$LIBIPT" >&6; }
10225 else
10226 HAVE_LIBIPT=no
10227 CPPFLAGS="$ac_save_CPPFLAGS"
10228 LIBIPT=
10229 LTLIBIPT=
10230 fi
10231
10232
10233
10234
10235
10236
3684d331
PA
10237 if test "$HAVE_LIBIPT" != yes; then
10238 if test "$with_intel_pt" = yes; then
10239 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
10240 else
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
05ea2a05 10242$as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
3684d331
PA
10243 fi
10244 else
10245 save_LIBS=$LIBS
10246 LIBS="$LIBS $LIBIPT"
10247 for ac_func in pt_insn_event
05ea2a05
TT
10248do :
10249 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10250if test "x$ac_cv_func_pt_insn_event" = xyes; then :
10251 cat >>confdefs.h <<_ACEOF
10252#define HAVE_PT_INSN_EVENT 1
10253_ACEOF
10254
10255fi
01027315 10256done
05ea2a05 10257
3684d331 10258 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
05ea2a05
TT
10259"
10260if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
10261
10262cat >>confdefs.h <<_ACEOF
10263#define HAVE_STRUCT_PT_INSN_ENABLED 1
10264_ACEOF
10265
10266
01027315 10267fi
05ea2a05
TT
10268ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10269"
10270if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
01027315 10271
05ea2a05
TT
10272cat >>confdefs.h <<_ACEOF
10273#define HAVE_STRUCT_PT_INSN_RESYNCED 1
10274_ACEOF
01027315 10275
05ea2a05
TT
10276
10277fi
10278
3684d331
PA
10279 LIBS=$save_LIBS
10280 fi
05ea2a05 10281 fi
05ea2a05 10282
3684d331
PA
10283 if test "$ac_cv_header_sys_procfs_h" = yes; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
05ea2a05
TT
10285$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10286 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
01027315
TT
10287 $as_echo_n "(cached) " >&6
10288else
05ea2a05 10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 10290/* end confdefs.h. */
05ea2a05
TT
10291
10292#define _SYSCALL32
10293/* Needed for new procfs interface on sparc-solaris. */
10294#define _STRUCTURED_PROC 1
10295#include <sys/procfs.h>
01027315
TT
10296int
10297main ()
10298{
05ea2a05 10299gregset_t avar
01027315
TT
10300 ;
10301 return 0;
10302}
10303_ACEOF
05ea2a05
TT
10304if ac_fn_c_try_compile "$LINENO"; then :
10305 bfd_cv_have_sys_procfs_type_gregset_t=yes
10306else
10307 bfd_cv_have_sys_procfs_type_gregset_t=no
01027315
TT
10308
10309fi
05ea2a05
TT
10310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311fi
01027315 10312
05ea2a05 10313 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
01027315 10314
05ea2a05 10315$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
01027315 10316
05ea2a05
TT
10317 fi
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10319$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
01027315 10320
3684d331 10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
05ea2a05
TT
10322$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10323 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
01027315
TT
10324 $as_echo_n "(cached) " >&6
10325else
05ea2a05
TT
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327/* end confdefs.h. */
10328
10329#define _SYSCALL32
10330/* Needed for new procfs interface on sparc-solaris. */
10331#define _STRUCTURED_PROC 1
10332#include <sys/procfs.h>
10333int
10334main ()
10335{
10336fpregset_t avar
10337 ;
10338 return 0;
10339}
10340_ACEOF
10341if ac_fn_c_try_compile "$LINENO"; then :
10342 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10343else
10344 bfd_cv_have_sys_procfs_type_fpregset_t=no
01027315
TT
10345
10346fi
05ea2a05 10347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315
TT
10348fi
10349
05ea2a05
TT
10350 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10351
10352$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10353
10354 fi
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10356$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10357
3684d331 10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
05ea2a05
TT
10359$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10360 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
01027315
TT
10361 $as_echo_n "(cached) " >&6
10362else
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364/* end confdefs.h. */
05ea2a05
TT
10365
10366#define _SYSCALL32
10367/* Needed for new procfs interface on sparc-solaris. */
10368#define _STRUCTURED_PROC 1
10369#include <sys/procfs.h>
01027315
TT
10370int
10371main ()
10372{
05ea2a05 10373prgregset_t avar
01027315
TT
10374 ;
10375 return 0;
10376}
10377_ACEOF
05ea2a05
TT
10378if ac_fn_c_try_compile "$LINENO"; then :
10379 bfd_cv_have_sys_procfs_type_prgregset_t=yes
01027315 10380else
05ea2a05 10381 bfd_cv_have_sys_procfs_type_prgregset_t=no
01027315
TT
10382
10383fi
05ea2a05
TT
10384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385fi
01027315 10386
05ea2a05 10387 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
01027315 10388
05ea2a05 10389$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
01027315 10390
05ea2a05
TT
10391 fi
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10393$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
01027315 10394
3684d331 10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
05ea2a05
TT
10396$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10397 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
01027315
TT
10398 $as_echo_n "(cached) " >&6
10399else
05ea2a05
TT
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401/* end confdefs.h. */
01027315 10402
05ea2a05
TT
10403#define _SYSCALL32
10404/* Needed for new procfs interface on sparc-solaris. */
10405#define _STRUCTURED_PROC 1
10406#include <sys/procfs.h>
10407int
10408main ()
10409{
10410prfpregset_t avar
10411 ;
10412 return 0;
10413}
10414_ACEOF
10415if ac_fn_c_try_compile "$LINENO"; then :
10416 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
01027315 10417else
05ea2a05 10418 bfd_cv_have_sys_procfs_type_prfpregset_t=no
01027315 10419
05ea2a05
TT
10420fi
10421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315
TT
10422fi
10423
05ea2a05 10424 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
01027315 10425
05ea2a05 10426$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
01027315 10427
05ea2a05
TT
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10430$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
01027315 10431
3684d331 10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
05ea2a05
TT
10433$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10434 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
10435 $as_echo_n "(cached) " >&6
10436else
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h. */
01027315 10439
05ea2a05
TT
10440#define _SYSCALL32
10441/* Needed for new procfs interface on sparc-solaris. */
10442#define _STRUCTURED_PROC 1
10443#include <sys/procfs.h>
10444int
10445main ()
10446{
10447prgregset32_t avar
10448 ;
10449 return 0;
10450}
10451_ACEOF
10452if ac_fn_c_try_compile "$LINENO"; then :
10453 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
01027315 10454else
05ea2a05
TT
10455 bfd_cv_have_sys_procfs_type_prgregset32_t=no
10456
10457fi
10458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315 10459fi
01027315 10460
05ea2a05 10461 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
01027315 10462
05ea2a05
TT
10463$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10464
10465 fi
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10467$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10468
3684d331 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
05ea2a05
TT
10470$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10471 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
01027315
TT
10472 $as_echo_n "(cached) " >&6
10473else
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h. */
05ea2a05
TT
10476
10477#define _SYSCALL32
10478/* Needed for new procfs interface on sparc-solaris. */
10479#define _STRUCTURED_PROC 1
10480#include <sys/procfs.h>
01027315
TT
10481int
10482main ()
10483{
05ea2a05 10484lwpid_t avar
01027315
TT
10485 ;
10486 return 0;
10487}
10488_ACEOF
05ea2a05
TT
10489if ac_fn_c_try_compile "$LINENO"; then :
10490 bfd_cv_have_sys_procfs_type_lwpid_t=yes
01027315 10491else
05ea2a05
TT
10492 bfd_cv_have_sys_procfs_type_lwpid_t=no
10493
01027315
TT
10494fi
10495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496fi
01027315 10497
05ea2a05 10498 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
01027315 10499
05ea2a05 10500$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
01027315 10501
05ea2a05
TT
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10504$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
01027315 10505
3684d331 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
05ea2a05
TT
10507$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10508 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
10509 $as_echo_n "(cached) " >&6
10510else
10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512/* end confdefs.h. */
01027315 10513
05ea2a05
TT
10514#define _SYSCALL32
10515/* Needed for new procfs interface on sparc-solaris. */
10516#define _STRUCTURED_PROC 1
10517#include <sys/procfs.h>
10518int
10519main ()
10520{
10521psaddr_t avar
10522 ;
10523 return 0;
10524}
10525_ACEOF
10526if ac_fn_c_try_compile "$LINENO"; then :
10527 bfd_cv_have_sys_procfs_type_psaddr_t=yes
10528else
10529 bfd_cv_have_sys_procfs_type_psaddr_t=no
01027315 10530
05ea2a05
TT
10531fi
10532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10533fi
01027315 10534
05ea2a05 10535 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
01027315 10536
05ea2a05
TT
10537$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10538
10539 fi
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10541$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10542
3684d331 10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
05ea2a05
TT
10544$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10545 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
01027315
TT
10546 $as_echo_n "(cached) " >&6
10547else
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549/* end confdefs.h. */
10550
05ea2a05
TT
10551#define _SYSCALL32
10552/* Needed for new procfs interface on sparc-solaris. */
10553#define _STRUCTURED_PROC 1
10554#include <sys/procfs.h>
01027315
TT
10555int
10556main ()
10557{
05ea2a05 10558elf_fpregset_t avar
01027315
TT
10559 ;
10560 return 0;
10561}
10562_ACEOF
10563if ac_fn_c_try_compile "$LINENO"; then :
05ea2a05 10564 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
01027315 10565else
05ea2a05
TT
10566 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
10567
01027315
TT
10568fi
10569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570fi
01027315 10571
05ea2a05
TT
10572 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10573
10574$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10575
10576 fi
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10578$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
01027315 10579
3684d331 10580 fi
01027315
TT
10581
10582
10583# Check whether we will enable the inclusion of unit tests when
10584# compiling GDB.
10585#
10586# The default value of this option changes depending whether we're on
10587# development mode (in which case it's "true") or not (in which case
10588# it's "false").
10589# Check whether --enable-unit-tests was given.
10590if test "${enable_unit_tests+set}" = set; then :
10591 enableval=$enable_unit_tests; case "${enableval}" in
10592 yes) enable_unittests=true ;;
10593 no) enable_unittests=false ;;
10594 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10595esac
10596else
10597 enable_unittests=$development
10598fi
10599
10600
10601if $enable_unittests; then
10602
10603$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10604
10605
10606fi
10607
10608 if $enable_unittests; then
10609 SELFTEST_TRUE=
10610 SELFTEST_FALSE='#'
10611else
10612 SELFTEST_TRUE='#'
10613 SELFTEST_FALSE=
10614fi
10615
10616
05ea2a05
TT
10617# Check the return and argument types of ptrace.
10618
10619
10620for ac_header in sys/ptrace.h ptrace.h
10621do :
10622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10623ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10624if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10625 cat >>confdefs.h <<_ACEOF
10626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10627_ACEOF
10628
10629fi
10630
10631done
10632
10633
10634gdb_ptrace_headers='
10635#include <sys/types.h>
10636#if HAVE_SYS_PTRACE_H
10637# include <sys/ptrace.h>
10638#endif
10639#if HAVE_UNISTD_H
10640# include <unistd.h>
10641#endif
10642'
10643# There is no point in checking if we don't have a prototype.
10644ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10645"
10646if test "x$ac_cv_have_decl_ptrace" = xyes; then :
10647 ac_have_decl=1
10648else
10649 ac_have_decl=0
10650fi
10651
10652cat >>confdefs.h <<_ACEOF
10653#define HAVE_DECL_PTRACE $ac_have_decl
10654_ACEOF
10655if test $ac_have_decl = 1; then :
10656
10657else
10658
10659 : ${gdb_cv_func_ptrace_ret='int'}
10660 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10661
10662fi
10663
10664# Check return type. Varargs (used on GNU/Linux) conflict with the
10665# empty argument list, so check for that explicitly.
10666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10667$as_echo_n "checking return type of ptrace... " >&6; }
10668if ${gdb_cv_func_ptrace_ret+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670else
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672/* end confdefs.h. */
10673$gdb_ptrace_headers
10674int
10675main ()
10676{
10677extern long ptrace (enum __ptrace_request, ...);
10678 ;
10679 return 0;
10680}
10681_ACEOF
10682if ac_fn_c_try_compile "$LINENO"; then :
10683 gdb_cv_func_ptrace_ret='long'
10684else
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686/* end confdefs.h. */
10687$gdb_ptrace_headers
10688int
10689main ()
10690{
10691extern int ptrace ();
10692 ;
10693 return 0;
10694}
10695_ACEOF
10696if ac_fn_c_try_compile "$LINENO"; then :
10697 gdb_cv_func_ptrace_ret='int'
10698else
10699 gdb_cv_func_ptrace_ret='long'
10700fi
10701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702fi
10703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704fi
10705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10706$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10707
10708cat >>confdefs.h <<_ACEOF
10709#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10710_ACEOF
10711
10712# Check argument types.
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10714$as_echo_n "checking types of arguments for ptrace... " >&6; }
10715if ${gdb_cv_func_ptrace_args+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717else
10718
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720/* end confdefs.h. */
10721$gdb_ptrace_headers
10722int
10723main ()
10724{
10725extern long ptrace (enum __ptrace_request, ...);
10726 ;
10727 return 0;
10728}
10729_ACEOF
10730if ac_fn_c_try_compile "$LINENO"; then :
10731 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
10732else
10733
10734for gdb_arg1 in 'int' 'long'; do
10735 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10736 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10737 for gdb_arg4 in 'int' 'long' 'void *'; do
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739/* end confdefs.h. */
10740$gdb_ptrace_headers
10741int
10742main ()
10743{
10744
10745extern $gdb_cv_func_ptrace_ret
10746 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10747
10748 ;
10749 return 0;
10750}
10751_ACEOF
10752if ac_fn_c_try_compile "$LINENO"; then :
10753 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10754 break 4;
10755fi
10756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 for gdb_arg5 in 'int *' 'int' 'long'; do
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759/* end confdefs.h. */
10760$gdb_ptrace_headers
10761int
10762main ()
10763{
10764
10765extern $gdb_cv_func_ptrace_ret
10766 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10767
10768 ;
10769 return 0;
10770}
10771_ACEOF
10772if ac_fn_c_try_compile "$LINENO"; then :
10773
10774gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10775 break 5;
10776fi
10777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 done
10779 done
10780 done
10781 done
10782done
10783# Provide a safe default value.
10784: ${gdb_cv_func_ptrace_args='int,int,long,long'}
10785
10786fi
10787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788fi
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10790$as_echo "$gdb_cv_func_ptrace_args" >&6; }
10791ac_save_IFS=$IFS; IFS=','
10792set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10793IFS=$ac_save_IFS
10794shift
10795
10796cat >>confdefs.h <<_ACEOF
10797#define PTRACE_TYPE_ARG1 $1
10798_ACEOF
10799
10800
10801cat >>confdefs.h <<_ACEOF
10802#define PTRACE_TYPE_ARG3 $3
10803_ACEOF
10804
10805
10806cat >>confdefs.h <<_ACEOF
10807#define PTRACE_TYPE_ARG4 $4
10808_ACEOF
10809
10810if test -n "$5"; then
10811
10812cat >>confdefs.h <<_ACEOF
10813#define PTRACE_TYPE_ARG5 $5
10814_ACEOF
10815
10816fi
10817
10818
629c2962
SM
10819# Detect support warning flags.
10820
10821# Check whether --enable-werror was given.
10822if test "${enable_werror+set}" = set; then :
10823 enableval=$enable_werror; case "${enableval}" in
10824 yes | y) ERROR_ON_WARNING="yes" ;;
10825 no | n) ERROR_ON_WARNING="no" ;;
10826 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10827 esac
10828fi
10829
10830
10831# Enable -Werror by default when using gcc. Turn it off for releases.
10832if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10833 ERROR_ON_WARNING=yes
10834fi
10835
10836WERROR_CFLAGS=""
10837if test "${ERROR_ON_WARNING}" = yes ; then
10838 WERROR_CFLAGS="-Werror"
10839fi
10840
10841# The options we'll try to enable.
10842build_warnings="-Wall -Wpointer-arith \
10843-Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10844-Wno-switch -Wno-char-subscripts \
10845-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10846-Wno-sign-compare -Wno-error=maybe-uninitialized \
10847-Wno-mismatched-tags \
10848-Wno-error=deprecated-register \
10849-Wsuggest-override \
10850-Wimplicit-fallthrough=3 \
10851-Wduplicated-cond \
10852-Wshadow=local \
10853-Wdeprecated-copy \
10854-Wdeprecated-copy-dtor \
10855-Wredundant-move \
8ddd8e0e
SM
10856-Wmissing-declarations \
10857-Wstrict-null-sentinel"
629c2962
SM
10858
10859case "${host}" in
10860 *-*-mingw32*)
10861 # Enable -Wno-format by default when using gcc on mingw since many
10862 # GCC versions complain about %I64.
10863 build_warnings="$build_warnings -Wno-format" ;;
10864 *-*-solaris*)
10865 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10866 # doesn't understand.
10867 build_warnings="$build_warnings -Wno-unknown-pragmas"
10868 # Solaris 11 <unistd.h> marks vfork deprecated.
10869 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
10870 *)
10871 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10872 # but there's a special case for this below.
10873 build_warnings="$build_warnings -Wformat-nonliteral" ;;
10874esac
10875
10876# Check whether --enable-build-warnings was given.
10877if test "${enable_build_warnings+set}" = set; then :
10878 enableval=$enable_build_warnings; case "${enableval}" in
10879 yes) ;;
10880 no) build_warnings="-w";;
10881 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10882 build_warnings="${build_warnings} ${t}";;
10883 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10884 build_warnings="${t} ${build_warnings}";;
10885 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10886esac
10887if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10888 echo "Setting compiler warning flags = $build_warnings" 6>&1
10889fi
10890fi
10891# Check whether --enable-gdb-build-warnings was given.
10892if test "${enable_gdb_build_warnings+set}" = set; then :
10893 enableval=$enable_gdb_build_warnings; case "${enableval}" in
10894 yes) ;;
10895 no) build_warnings="-w";;
10896 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10897 build_warnings="${build_warnings} ${t}";;
10898 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10899 build_warnings="${t} ${build_warnings}";;
10900 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10901esac
10902if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10903 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10904fi
10905fi
10906
10907# The set of warnings supported by a C++ compiler is not the same as
10908# of the C compiler.
10909ac_ext=cpp
10910ac_cpp='$CXXCPP $CPPFLAGS'
10911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10914
10915
10916WARN_CFLAGS=""
10917if test "x${build_warnings}" != x -a "x$GCC" = xyes
10918then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10920$as_echo_n "checking compiler warning flags... " >&6; }
10921 # Separate out the -Werror flag as some files just cannot be
10922 # compiled with it enabled.
10923 for w in ${build_warnings}; do
10924 # GCC does not complain about -Wno-unknown-warning. Invert
10925 # and test -Wunknown-warning instead.
10926 case $w in
10927 -Wno-*)
10928 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
10929 -Wformat-nonliteral)
10930 # gcc requires -Wformat before -Wformat-nonliteral
10931 # will work, so stick them together.
10932 w="-Wformat $w"
10933 wtest="$w"
10934 ;;
10935 *)
10936 wtest=$w ;;
10937 esac
10938
10939 case $w in
10940 -Werr*) WERROR_CFLAGS=-Werror ;;
10941 *)
10942 # Check whether GCC accepts it.
10943 saved_CFLAGS="$CFLAGS"
10944 CFLAGS="$CFLAGS -Werror $wtest"
10945 saved_CXXFLAGS="$CXXFLAGS"
10946 CXXFLAGS="$CXXFLAGS -Werror $wtest"
10947 if test "x$w" = "x-Wunused-variable"; then
10948 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
10949 # fixed in GCC 4.9. This test is derived from the gdb
10950 # source code that triggered this bug in GCC.
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952/* end confdefs.h. */
10953struct scoped_restore_base {};
10954 struct scoped_restore_tmpl : public scoped_restore_base {
10955 ~scoped_restore_tmpl() {}
10956 };
10957int
10958main ()
10959{
10960const scoped_restore_base &b = scoped_restore_tmpl();
10961 ;
10962 return 0;
10963}
10964_ACEOF
10965if ac_fn_cxx_try_compile "$LINENO"; then :
10966 WARN_CFLAGS="${WARN_CFLAGS} $w"
10967fi
10968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969 else
10970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971/* end confdefs.h. */
10972
10973int
10974main ()
10975{
10976
10977 ;
10978 return 0;
10979}
10980_ACEOF
10981if ac_fn_cxx_try_compile "$LINENO"; then :
10982 WARN_CFLAGS="${WARN_CFLAGS} $w"
10983fi
10984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 fi
10986 CFLAGS="$saved_CFLAGS"
10987 CXXFLAGS="$saved_CXXFLAGS"
10988 esac
10989 done
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
10991$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
10992fi
10993
10994
10995
10996ac_ext=c
10997ac_cpp='$CPP $CPPFLAGS'
10998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11000ac_compiler_gnu=$ac_cv_c_compiler_gnu
11001
11002
11003
01027315
TT
11004TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
11005
11006cat >>confdefs.h <<_ACEOF
11007#define TARGET_WORD_SIZE $TARGET_WORD_SIZE
11008_ACEOF
11009
11010
11011case ${host} in
11012 *mingw32*)
11013
11014$as_echo "#define USE_WIN32API 1" >>confdefs.h
11015
11016 ;;
11017esac
11018
11019ac_config_files="$ac_config_files Makefile"
11020
11021cat >confcache <<\_ACEOF
11022# This file is a shell script that caches the results of configure
11023# tests run on this system so they can be shared between configure
11024# scripts and configure runs, see configure's option --config-cache.
11025# It is not useful on other systems. If it contains results you don't
11026# want to keep, you may remove or edit it.
11027#
11028# config.status only pays attention to the cache file if you give it
11029# the --recheck option to rerun configure.
11030#
11031# `ac_cv_env_foo' variables (set or unset) will be overridden when
11032# loading this file, other *unset* `ac_cv_foo' will be assigned the
11033# following values.
11034
11035_ACEOF
11036
11037# The following way of writing the cache mishandles newlines in values,
11038# but we know of no workaround that is simple, portable, and efficient.
11039# So, we kill variables containing newlines.
11040# Ultrix sh set writes to stderr and can't be redirected directly,
11041# and sets the high bit in the cache file unless we assign to the vars.
11042(
11043 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11044 eval ac_val=\$$ac_var
11045 case $ac_val in #(
11046 *${as_nl}*)
11047 case $ac_var in #(
11048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11049$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11050 esac
11051 case $ac_var in #(
11052 _ | IFS | as_nl) ;; #(
11053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11054 *) { eval $ac_var=; unset $ac_var;} ;;
11055 esac ;;
11056 esac
11057 done
11058
11059 (set) 2>&1 |
11060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11061 *${as_nl}ac_space=\ *)
11062 # `set' does not quote correctly, so add quotes: double-quote
11063 # substitution turns \\\\ into \\, and sed turns \\ into \.
11064 sed -n \
11065 "s/'/'\\\\''/g;
11066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11067 ;; #(
11068 *)
11069 # `set' quotes correctly as required by POSIX, so do not add quotes.
11070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11071 ;;
11072 esac |
11073 sort
11074) |
11075 sed '
11076 /^ac_cv_env_/b end
11077 t clear
11078 :clear
11079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11080 t end
11081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11082 :end' >>confcache
11083if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11084 if test -w "$cache_file"; then
11085 if test "x$cache_file" != "x/dev/null"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11087$as_echo "$as_me: updating cache $cache_file" >&6;}
11088 if test ! -f "$cache_file" || test -h "$cache_file"; then
11089 cat confcache >"$cache_file"
11090 else
11091 case $cache_file in #(
11092 */* | ?:*)
11093 mv -f confcache "$cache_file"$$ &&
11094 mv -f "$cache_file"$$ "$cache_file" ;; #(
11095 *)
11096 mv -f confcache "$cache_file" ;;
11097 esac
11098 fi
11099 fi
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11102$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11103 fi
11104fi
11105rm -f confcache
11106
11107test "x$prefix" = xNONE && prefix=$ac_default_prefix
11108# Let make expand exec_prefix.
11109test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11110
11111DEFS=-DHAVE_CONFIG_H
11112
11113ac_libobjs=
11114ac_ltlibobjs=
11115for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11116 # 1. Remove the extension, and $U if already installed.
11117 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11118 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11119 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11120 # will be set to the directory where LIBOBJS objects are built.
11121 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11122 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11123done
11124LIBOBJS=$ac_libobjs
11125
11126LTLIBOBJS=$ac_ltlibobjs
11127
11128
11129if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11130 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11131Usually this means the macro was only invoked conditionally." "$LINENO" 5
11132fi
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11134$as_echo_n "checking that generated files are newer than configure... " >&6; }
11135 if test -n "$am_sleep_pid"; then
11136 # Hide warnings about reused PIDs.
11137 wait $am_sleep_pid 2>/dev/null
11138 fi
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11140$as_echo "done" >&6; }
11141 if test -n "$EXEEXT"; then
11142 am__EXEEXT_TRUE=
11143 am__EXEEXT_FALSE='#'
11144else
11145 am__EXEEXT_TRUE='#'
11146 am__EXEEXT_FALSE=
11147fi
11148
11149if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11150 as_fn_error $? "conditional \"AMDEP\" was never defined.
11151Usually this means the macro was only invoked conditionally." "$LINENO" 5
11152fi
11153if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11154 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11155Usually this means the macro was only invoked conditionally." "$LINENO" 5
11156fi
11157if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11158 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11159Usually this means the macro was only invoked conditionally." "$LINENO" 5
11160fi
11161if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11162 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11163Usually this means the macro was only invoked conditionally." "$LINENO" 5
11164fi
11165if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
11166 as_fn_error $? "conditional \"SELFTEST\" was never defined.
11167Usually this means the macro was only invoked conditionally." "$LINENO" 5
11168fi
11169
11170: "${CONFIG_STATUS=./config.status}"
11171ac_write_fail=0
11172ac_clean_files_save=$ac_clean_files
11173ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11174{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11175$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11176as_write_fail=0
11177cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11178#! $SHELL
11179# Generated by $as_me.
11180# Run this file to recreate the current configuration.
11181# Compiler output produced by configure, useful for debugging
11182# configure, is in config.log if it exists.
11183
11184debug=false
11185ac_cs_recheck=false
11186ac_cs_silent=false
11187
11188SHELL=\${CONFIG_SHELL-$SHELL}
11189export SHELL
11190_ASEOF
11191cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11192## -------------------- ##
11193## M4sh Initialization. ##
11194## -------------------- ##
11195
11196# Be more Bourne compatible
11197DUALCASE=1; export DUALCASE # for MKS sh
11198if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11199 emulate sh
11200 NULLCMD=:
11201 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11202 # is contrary to our usage. Disable this feature.
11203 alias -g '${1+"$@"}'='"$@"'
11204 setopt NO_GLOB_SUBST
11205else
11206 case `(set -o) 2>/dev/null` in #(
11207 *posix*) :
11208 set -o posix ;; #(
11209 *) :
11210 ;;
11211esac
11212fi
11213
11214
11215as_nl='
11216'
11217export as_nl
11218# Printing a long string crashes Solaris 7 /usr/bin/printf.
11219as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11221as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11222# Prefer a ksh shell builtin over an external printf program on Solaris,
11223# but without wasting forks for bash or zsh.
11224if test -z "$BASH_VERSION$ZSH_VERSION" \
11225 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11226 as_echo='print -r --'
11227 as_echo_n='print -rn --'
11228elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11229 as_echo='printf %s\n'
11230 as_echo_n='printf %s'
11231else
11232 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11233 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11234 as_echo_n='/usr/ucb/echo -n'
11235 else
11236 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11237 as_echo_n_body='eval
11238 arg=$1;
11239 case $arg in #(
11240 *"$as_nl"*)
11241 expr "X$arg" : "X\\(.*\\)$as_nl";
11242 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11243 esac;
11244 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11245 '
11246 export as_echo_n_body
11247 as_echo_n='sh -c $as_echo_n_body as_echo'
11248 fi
11249 export as_echo_body
11250 as_echo='sh -c $as_echo_body as_echo'
11251fi
11252
11253# The user is always right.
11254if test "${PATH_SEPARATOR+set}" != set; then
11255 PATH_SEPARATOR=:
11256 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11257 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11258 PATH_SEPARATOR=';'
11259 }
11260fi
11261
11262
11263# IFS
11264# We need space, tab and new line, in precisely that order. Quoting is
11265# there to prevent editors from complaining about space-tab.
11266# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11267# splitting by setting IFS to empty value.)
11268IFS=" "" $as_nl"
11269
11270# Find who we are. Look in the path if we contain no directory separator.
11271as_myself=
11272case $0 in #((
11273 *[\\/]* ) as_myself=$0 ;;
11274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11280 done
11281IFS=$as_save_IFS
11282
11283 ;;
11284esac
11285# We did not find ourselves, most probably we were run as `sh COMMAND'
11286# in which case we are not to be found in the path.
11287if test "x$as_myself" = x; then
11288 as_myself=$0
11289fi
11290if test ! -f "$as_myself"; then
11291 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11292 exit 1
11293fi
11294
11295# Unset variables that we do not need and which cause bugs (e.g. in
11296# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11297# suppresses any "Segmentation fault" message there. '((' could
11298# trigger a bug in pdksh 5.2.14.
11299for as_var in BASH_ENV ENV MAIL MAILPATH
11300do eval test x\${$as_var+set} = xset \
11301 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11302done
11303PS1='$ '
11304PS2='> '
11305PS4='+ '
11306
11307# NLS nuisances.
11308LC_ALL=C
11309export LC_ALL
11310LANGUAGE=C
11311export LANGUAGE
11312
11313# CDPATH.
11314(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11315
11316
11317# as_fn_error STATUS ERROR [LINENO LOG_FD]
11318# ----------------------------------------
11319# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11320# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11321# script with STATUS, using 1 if that was 0.
11322as_fn_error ()
11323{
11324 as_status=$1; test $as_status -eq 0 && as_status=1
11325 if test "$4"; then
11326 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11327 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11328 fi
11329 $as_echo "$as_me: error: $2" >&2
11330 as_fn_exit $as_status
11331} # as_fn_error
11332
11333
11334# as_fn_set_status STATUS
11335# -----------------------
11336# Set $? to STATUS, without forking.
11337as_fn_set_status ()
11338{
11339 return $1
11340} # as_fn_set_status
11341
11342# as_fn_exit STATUS
11343# -----------------
11344# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11345as_fn_exit ()
11346{
11347 set +e
11348 as_fn_set_status $1
11349 exit $1
11350} # as_fn_exit
11351
11352# as_fn_unset VAR
11353# ---------------
11354# Portably unset VAR.
11355as_fn_unset ()
11356{
11357 { eval $1=; unset $1;}
11358}
11359as_unset=as_fn_unset
11360# as_fn_append VAR VALUE
11361# ----------------------
11362# Append the text in VALUE to the end of the definition contained in VAR. Take
11363# advantage of any shell optimizations that allow amortized linear growth over
11364# repeated appends, instead of the typical quadratic growth present in naive
11365# implementations.
11366if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11367 eval 'as_fn_append ()
11368 {
11369 eval $1+=\$2
11370 }'
11371else
11372 as_fn_append ()
11373 {
11374 eval $1=\$$1\$2
11375 }
11376fi # as_fn_append
11377
11378# as_fn_arith ARG...
11379# ------------------
11380# Perform arithmetic evaluation on the ARGs, and store the result in the
11381# global $as_val. Take advantage of shells that can avoid forks. The arguments
11382# must be portable across $(()) and expr.
11383if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11384 eval 'as_fn_arith ()
11385 {
11386 as_val=$(( $* ))
11387 }'
11388else
11389 as_fn_arith ()
11390 {
11391 as_val=`expr "$@" || test $? -eq 1`
11392 }
11393fi # as_fn_arith
11394
11395
11396if expr a : '\(a\)' >/dev/null 2>&1 &&
11397 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11398 as_expr=expr
11399else
11400 as_expr=false
11401fi
11402
11403if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11404 as_basename=basename
11405else
11406 as_basename=false
11407fi
11408
11409if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11410 as_dirname=dirname
11411else
11412 as_dirname=false
11413fi
11414
11415as_me=`$as_basename -- "$0" ||
11416$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11417 X"$0" : 'X\(//\)$' \| \
11418 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11419$as_echo X/"$0" |
11420 sed '/^.*\/\([^/][^/]*\)\/*$/{
11421 s//\1/
11422 q
11423 }
11424 /^X\/\(\/\/\)$/{
11425 s//\1/
11426 q
11427 }
11428 /^X\/\(\/\).*/{
11429 s//\1/
11430 q
11431 }
11432 s/.*/./; q'`
11433
11434# Avoid depending upon Character Ranges.
11435as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11436as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11437as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11438as_cr_digits='0123456789'
11439as_cr_alnum=$as_cr_Letters$as_cr_digits
11440
11441ECHO_C= ECHO_N= ECHO_T=
11442case `echo -n x` in #(((((
11443-n*)
11444 case `echo 'xy\c'` in
11445 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11446 xy) ECHO_C='\c';;
11447 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11448 ECHO_T=' ';;
11449 esac;;
11450*)
11451 ECHO_N='-n';;
11452esac
11453
11454rm -f conf$$ conf$$.exe conf$$.file
11455if test -d conf$$.dir; then
11456 rm -f conf$$.dir/conf$$.file
11457else
11458 rm -f conf$$.dir
11459 mkdir conf$$.dir 2>/dev/null
11460fi
11461if (echo >conf$$.file) 2>/dev/null; then
11462 if ln -s conf$$.file conf$$ 2>/dev/null; then
11463 as_ln_s='ln -s'
11464 # ... but there are two gotchas:
11465 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11466 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11467 # In both cases, we have to default to `cp -pR'.
11468 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11469 as_ln_s='cp -pR'
11470 elif ln conf$$.file conf$$ 2>/dev/null; then
11471 as_ln_s=ln
11472 else
11473 as_ln_s='cp -pR'
11474 fi
11475else
11476 as_ln_s='cp -pR'
11477fi
11478rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11479rmdir conf$$.dir 2>/dev/null
11480
11481
11482# as_fn_mkdir_p
11483# -------------
11484# Create "$as_dir" as a directory, including parents if necessary.
11485as_fn_mkdir_p ()
11486{
11487
11488 case $as_dir in #(
11489 -*) as_dir=./$as_dir;;
11490 esac
11491 test -d "$as_dir" || eval $as_mkdir_p || {
11492 as_dirs=
11493 while :; do
11494 case $as_dir in #(
11495 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11496 *) as_qdir=$as_dir;;
11497 esac
11498 as_dirs="'$as_qdir' $as_dirs"
11499 as_dir=`$as_dirname -- "$as_dir" ||
11500$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11501 X"$as_dir" : 'X\(//\)[^/]' \| \
11502 X"$as_dir" : 'X\(//\)$' \| \
11503 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11504$as_echo X"$as_dir" |
11505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11506 s//\1/
11507 q
11508 }
11509 /^X\(\/\/\)[^/].*/{
11510 s//\1/
11511 q
11512 }
11513 /^X\(\/\/\)$/{
11514 s//\1/
11515 q
11516 }
11517 /^X\(\/\).*/{
11518 s//\1/
11519 q
11520 }
11521 s/.*/./; q'`
11522 test -d "$as_dir" && break
11523 done
11524 test -z "$as_dirs" || eval "mkdir $as_dirs"
11525 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11526
11527
11528} # as_fn_mkdir_p
11529if mkdir -p . 2>/dev/null; then
11530 as_mkdir_p='mkdir -p "$as_dir"'
11531else
11532 test -d ./-p && rmdir ./-p
11533 as_mkdir_p=false
11534fi
11535
11536
11537# as_fn_executable_p FILE
11538# -----------------------
11539# Test if FILE is an executable regular file.
11540as_fn_executable_p ()
11541{
11542 test -f "$1" && test -x "$1"
11543} # as_fn_executable_p
11544as_test_x='test -x'
11545as_executable_p=as_fn_executable_p
11546
11547# Sed expression to map a string onto a valid CPP name.
11548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11549
11550# Sed expression to map a string onto a valid variable name.
11551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11552
11553
11554exec 6>&1
11555## ----------------------------------- ##
11556## Main body of $CONFIG_STATUS script. ##
11557## ----------------------------------- ##
11558_ASEOF
11559test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11560
11561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11562# Save the log message, to keep $0 and so on meaningful, and to
11563# report actual input values of CONFIG_FILES etc. instead of their
11564# values after options handling.
11565ac_log="
11566This file was extended by gdbsupport $as_me 1.0, which was
11567generated by GNU Autoconf 2.69. Invocation command line was
11568
11569 CONFIG_FILES = $CONFIG_FILES
11570 CONFIG_HEADERS = $CONFIG_HEADERS
11571 CONFIG_LINKS = $CONFIG_LINKS
11572 CONFIG_COMMANDS = $CONFIG_COMMANDS
11573 $ $0 $@
11574
11575on `(hostname || uname -n) 2>/dev/null | sed 1q`
11576"
11577
11578_ACEOF
11579
11580case $ac_config_files in *"
11581"*) set x $ac_config_files; shift; ac_config_files=$*;;
11582esac
11583
11584case $ac_config_headers in *"
11585"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11586esac
11587
11588
11589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11590# Files that config.status was made for.
11591config_files="$ac_config_files"
11592config_headers="$ac_config_headers"
11593config_commands="$ac_config_commands"
11594
11595_ACEOF
11596
11597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11598ac_cs_usage="\
11599\`$as_me' instantiates files and other configuration actions
11600from templates according to the current configuration. Unless the files
11601and actions are specified as TAGs, all are instantiated by default.
11602
11603Usage: $0 [OPTION]... [TAG]...
11604
11605 -h, --help print this help, then exit
11606 -V, --version print version number and configuration settings, then exit
11607 --config print configuration, then exit
11608 -q, --quiet, --silent
11609 do not print progress messages
11610 -d, --debug don't remove temporary files
11611 --recheck update $as_me by reconfiguring in the same conditions
11612 --file=FILE[:TEMPLATE]
11613 instantiate the configuration file FILE
11614 --header=FILE[:TEMPLATE]
11615 instantiate the configuration header FILE
11616
11617Configuration files:
11618$config_files
11619
11620Configuration headers:
11621$config_headers
11622
11623Configuration commands:
11624$config_commands
11625
11626Report bugs to the package provider."
11627
11628_ACEOF
11629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11630ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11631ac_cs_version="\\
11632gdbsupport config.status 1.0
11633configured by $0, generated by GNU Autoconf 2.69,
11634 with options \\"\$ac_cs_config\\"
11635
11636Copyright (C) 2012 Free Software Foundation, Inc.
11637This config.status script is free software; the Free Software Foundation
11638gives unlimited permission to copy, distribute and modify it."
11639
11640ac_pwd='$ac_pwd'
11641srcdir='$srcdir'
11642INSTALL='$INSTALL'
11643MKDIR_P='$MKDIR_P'
11644AWK='$AWK'
11645test -n "\$AWK" || AWK=awk
11646_ACEOF
11647
11648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11649# The default lists apply if the user does not specify any file.
11650ac_need_defaults=:
11651while test $# != 0
11652do
11653 case $1 in
11654 --*=?*)
11655 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11656 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11657 ac_shift=:
11658 ;;
11659 --*=)
11660 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11661 ac_optarg=
11662 ac_shift=:
11663 ;;
11664 *)
11665 ac_option=$1
11666 ac_optarg=$2
11667 ac_shift=shift
11668 ;;
11669 esac
11670
11671 case $ac_option in
11672 # Handling of the options.
11673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11674 ac_cs_recheck=: ;;
11675 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11676 $as_echo "$ac_cs_version"; exit ;;
11677 --config | --confi | --conf | --con | --co | --c )
11678 $as_echo "$ac_cs_config"; exit ;;
11679 --debug | --debu | --deb | --de | --d | -d )
11680 debug=: ;;
11681 --file | --fil | --fi | --f )
11682 $ac_shift
11683 case $ac_optarg in
11684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11685 '') as_fn_error $? "missing file argument" ;;
11686 esac
11687 as_fn_append CONFIG_FILES " '$ac_optarg'"
11688 ac_need_defaults=false;;
11689 --header | --heade | --head | --hea )
11690 $ac_shift
11691 case $ac_optarg in
11692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11693 esac
11694 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11695 ac_need_defaults=false;;
11696 --he | --h)
11697 # Conflict between --help and --header
11698 as_fn_error $? "ambiguous option: \`$1'
11699Try \`$0 --help' for more information.";;
11700 --help | --hel | -h )
11701 $as_echo "$ac_cs_usage"; exit ;;
11702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11703 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11704 ac_cs_silent=: ;;
11705
11706 # This is an error.
11707 -*) as_fn_error $? "unrecognized option: \`$1'
11708Try \`$0 --help' for more information." ;;
11709
11710 *) as_fn_append ac_config_targets " $1"
11711 ac_need_defaults=false ;;
11712
11713 esac
11714 shift
11715done
11716
11717ac_configure_extra_args=
11718
11719if $ac_cs_silent; then
11720 exec 6>/dev/null
11721 ac_configure_extra_args="$ac_configure_extra_args --silent"
11722fi
11723
11724_ACEOF
11725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11726if \$ac_cs_recheck; then
11727 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11728 shift
11729 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11730 CONFIG_SHELL='$SHELL'
11731 export CONFIG_SHELL
11732 exec "\$@"
11733fi
11734
11735_ACEOF
11736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11737exec 5>>config.log
11738{
11739 echo
11740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11741## Running $as_me. ##
11742_ASBOX
11743 $as_echo "$ac_log"
11744} >&5
11745
11746_ACEOF
11747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11748#
11749# INIT-COMMANDS
11750#
11751AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11752
11753_ACEOF
11754
11755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11756
11757# Handling of arguments.
11758for ac_config_target in $ac_config_targets
11759do
11760 case $ac_config_target in
3684d331 11761 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
01027315
TT
11762 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11763 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11764
11765 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11766 esac
11767done
11768
11769
11770# If the user did not use the arguments to specify the items to instantiate,
11771# then the envvar interface is used. Set only those that are not.
11772# We use the long form for the default assignment because of an extremely
11773# bizarre bug on SunOS 4.1.3.
11774if $ac_need_defaults; then
11775 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11776 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11777 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11778fi
11779
11780# Have a temporary directory for convenience. Make it in the build tree
11781# simply because there is no reason against having it here, and in addition,
11782# creating and moving files from /tmp can sometimes cause problems.
11783# Hook for its removal unless debugging.
11784# Note that there is a small window in which the directory will not be cleaned:
11785# after its creation but before its name has been assigned to `$tmp'.
11786$debug ||
11787{
11788 tmp= ac_tmp=
11789 trap 'exit_status=$?
11790 : "${ac_tmp:=$tmp}"
11791 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11792' 0
11793 trap 'as_fn_exit 1' 1 2 13 15
11794}
11795# Create a (secure) tmp directory for tmp files.
11796
11797{
11798 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11799 test -d "$tmp"
11800} ||
11801{
11802 tmp=./conf$$-$RANDOM
11803 (umask 077 && mkdir "$tmp")
11804} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11805ac_tmp=$tmp
11806
11807# Set up the scripts for CONFIG_FILES section.
11808# No need to generate them if there are no CONFIG_FILES.
11809# This happens for instance with `./config.status config.h'.
11810if test -n "$CONFIG_FILES"; then
11811
11812
11813ac_cr=`echo X | tr X '\015'`
11814# On cygwin, bash can eat \r inside `` if the user requested igncr.
11815# But we know of no other shell where ac_cr would be empty at this
11816# point, so we can use a bashism as a fallback.
11817if test "x$ac_cr" = x; then
11818 eval ac_cr=\$\'\\r\'
11819fi
11820ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11821if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11822 ac_cs_awk_cr='\\r'
11823else
11824 ac_cs_awk_cr=$ac_cr
11825fi
11826
11827echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11828_ACEOF
11829
11830
11831{
11832 echo "cat >conf$$subs.awk <<_ACEOF" &&
11833 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11834 echo "_ACEOF"
11835} >conf$$subs.sh ||
11836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11837ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11838ac_delim='%!_!# '
11839for ac_last_try in false false false false false :; do
11840 . ./conf$$subs.sh ||
11841 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11842
11843 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11844 if test $ac_delim_n = $ac_delim_num; then
11845 break
11846 elif $ac_last_try; then
11847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11848 else
11849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11850 fi
11851done
11852rm -f conf$$subs.sh
11853
11854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11855cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11856_ACEOF
11857sed -n '
11858h
11859s/^/S["/; s/!.*/"]=/
11860p
11861g
11862s/^[^!]*!//
11863:repl
11864t repl
11865s/'"$ac_delim"'$//
11866t delim
11867:nl
11868h
11869s/\(.\{148\}\)..*/\1/
11870t more1
11871s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11872p
11873n
11874b repl
11875:more1
11876s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11877p
11878g
11879s/.\{148\}//
11880t nl
11881:delim
11882h
11883s/\(.\{148\}\)..*/\1/
11884t more2
11885s/["\\]/\\&/g; s/^/"/; s/$/"/
11886p
11887b
11888:more2
11889s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11890p
11891g
11892s/.\{148\}//
11893t delim
11894' <conf$$subs.awk | sed '
11895/^[^""]/{
11896 N
11897 s/\n//
11898}
11899' >>$CONFIG_STATUS || ac_write_fail=1
11900rm -f conf$$subs.awk
11901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11902_ACAWK
11903cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11904 for (key in S) S_is_set[key] = 1
11905 FS = "\a"
11906
11907}
11908{
11909 line = $ 0
11910 nfields = split(line, field, "@")
11911 substed = 0
11912 len = length(field[1])
11913 for (i = 2; i < nfields; i++) {
11914 key = field[i]
11915 keylen = length(key)
11916 if (S_is_set[key]) {
11917 value = S[key]
11918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11919 len += length(value) + length(field[++i])
11920 substed = 1
11921 } else
11922 len += 1 + keylen
11923 }
11924
11925 print line
11926}
11927
11928_ACAWK
11929_ACEOF
11930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11931if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11932 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11933else
11934 cat
11935fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11936 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11937_ACEOF
11938
11939# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11940# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11941# trailing colons and then remove the whole line if VPATH becomes empty
11942# (actually we leave an empty line to preserve line numbers).
11943if test "x$srcdir" = x.; then
11944 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11945h
11946s///
11947s/^/:/
11948s/[ ]*$/:/
11949s/:\$(srcdir):/:/g
11950s/:\${srcdir}:/:/g
11951s/:@srcdir@:/:/g
11952s/^:*//
11953s/:*$//
11954x
11955s/\(=[ ]*\).*/\1/
11956G
11957s/\n//
11958s/^[^=]*=[ ]*$//
11959}'
11960fi
11961
11962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11963fi # test -n "$CONFIG_FILES"
11964
11965# Set up the scripts for CONFIG_HEADERS section.
11966# No need to generate them if there are no CONFIG_HEADERS.
11967# This happens for instance with `./config.status Makefile'.
11968if test -n "$CONFIG_HEADERS"; then
11969cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11970BEGIN {
11971_ACEOF
11972
11973# Transform confdefs.h into an awk script `defines.awk', embedded as
11974# here-document in config.status, that substitutes the proper values into
11975# config.h.in to produce config.h.
11976
11977# Create a delimiter string that does not exist in confdefs.h, to ease
11978# handling of long lines.
11979ac_delim='%!_!# '
11980for ac_last_try in false false :; do
11981 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11982 if test -z "$ac_tt"; then
11983 break
11984 elif $ac_last_try; then
11985 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11986 else
11987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11988 fi
11989done
11990
11991# For the awk script, D is an array of macro values keyed by name,
11992# likewise P contains macro parameters if any. Preserve backslash
11993# newline sequences.
11994
11995ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11996sed -n '
11997s/.\{148\}/&'"$ac_delim"'/g
11998t rset
11999:rset
12000s/^[ ]*#[ ]*define[ ][ ]*/ /
12001t def
12002d
12003:def
12004s/\\$//
12005t bsnl
12006s/["\\]/\\&/g
12007s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12008D["\1"]=" \3"/p
12009s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12010d
12011:bsnl
12012s/["\\]/\\&/g
12013s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12014D["\1"]=" \3\\\\\\n"\\/p
12015t cont
12016s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12017t cont
12018d
12019:cont
12020n
12021s/.\{148\}/&'"$ac_delim"'/g
12022t clear
12023:clear
12024s/\\$//
12025t bsnlc
12026s/["\\]/\\&/g; s/^/"/; s/$/"/p
12027d
12028:bsnlc
12029s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12030b cont
12031' <confdefs.h | sed '
12032s/'"$ac_delim"'/"\\\
12033"/g' >>$CONFIG_STATUS || ac_write_fail=1
12034
12035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12036 for (key in D) D_is_set[key] = 1
12037 FS = "\a"
12038}
12039/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12040 line = \$ 0
12041 split(line, arg, " ")
12042 if (arg[1] == "#") {
12043 defundef = arg[2]
12044 mac1 = arg[3]
12045 } else {
12046 defundef = substr(arg[1], 2)
12047 mac1 = arg[2]
12048 }
12049 split(mac1, mac2, "(") #)
12050 macro = mac2[1]
12051 prefix = substr(line, 1, index(line, defundef) - 1)
12052 if (D_is_set[macro]) {
12053 # Preserve the white space surrounding the "#".
12054 print prefix "define", macro P[macro] D[macro]
12055 next
12056 } else {
12057 # Replace #undef with comments. This is necessary, for example,
12058 # in the case of _POSIX_SOURCE, which is predefined and required
12059 # on some systems where configure will not decide to define it.
12060 if (defundef == "undef") {
12061 print "/*", prefix defundef, macro, "*/"
12062 next
12063 }
12064 }
12065}
12066{ print }
12067_ACAWK
12068_ACEOF
12069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12070 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12071fi # test -n "$CONFIG_HEADERS"
12072
12073
12074eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12075shift
12076for ac_tag
12077do
12078 case $ac_tag in
12079 :[FHLC]) ac_mode=$ac_tag; continue;;
12080 esac
12081 case $ac_mode$ac_tag in
12082 :[FHL]*:*);;
12083 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12084 :[FH]-) ac_tag=-:-;;
12085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12086 esac
12087 ac_save_IFS=$IFS
12088 IFS=:
12089 set x $ac_tag
12090 IFS=$ac_save_IFS
12091 shift
12092 ac_file=$1
12093 shift
12094
12095 case $ac_mode in
12096 :L) ac_source=$1;;
12097 :[FH])
12098 ac_file_inputs=
12099 for ac_f
12100 do
12101 case $ac_f in
12102 -) ac_f="$ac_tmp/stdin";;
12103 *) # Look for the file first in the build tree, then in the source tree
12104 # (if the path is not absolute). The absolute path cannot be DOS-style,
12105 # because $ac_f cannot contain `:'.
12106 test -f "$ac_f" ||
12107 case $ac_f in
12108 [\\/$]*) false;;
12109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12110 esac ||
12111 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12112 esac
12113 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12114 as_fn_append ac_file_inputs " '$ac_f'"
12115 done
12116
12117 # Let's still pretend it is `configure' which instantiates (i.e., don't
12118 # use $as_me), people would be surprised to read:
12119 # /* config.h. Generated by config.status. */
12120 configure_input='Generated from '`
12121 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12122 `' by configure.'
12123 if test x"$ac_file" != x-; then
12124 configure_input="$ac_file. $configure_input"
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12126$as_echo "$as_me: creating $ac_file" >&6;}
12127 fi
12128 # Neutralize special characters interpreted by sed in replacement strings.
12129 case $configure_input in #(
12130 *\&* | *\|* | *\\* )
12131 ac_sed_conf_input=`$as_echo "$configure_input" |
12132 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12133 *) ac_sed_conf_input=$configure_input;;
12134 esac
12135
12136 case $ac_tag in
12137 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12139 esac
12140 ;;
12141 esac
12142
12143 ac_dir=`$as_dirname -- "$ac_file" ||
12144$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12145 X"$ac_file" : 'X\(//\)[^/]' \| \
12146 X"$ac_file" : 'X\(//\)$' \| \
12147 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12148$as_echo X"$ac_file" |
12149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12150 s//\1/
12151 q
12152 }
12153 /^X\(\/\/\)[^/].*/{
12154 s//\1/
12155 q
12156 }
12157 /^X\(\/\/\)$/{
12158 s//\1/
12159 q
12160 }
12161 /^X\(\/\).*/{
12162 s//\1/
12163 q
12164 }
12165 s/.*/./; q'`
12166 as_dir="$ac_dir"; as_fn_mkdir_p
12167 ac_builddir=.
12168
12169case "$ac_dir" in
12170.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12171*)
12172 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12173 # A ".." for each directory in $ac_dir_suffix.
12174 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12175 case $ac_top_builddir_sub in
12176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12178 esac ;;
12179esac
12180ac_abs_top_builddir=$ac_pwd
12181ac_abs_builddir=$ac_pwd$ac_dir_suffix
12182# for backward compatibility:
12183ac_top_builddir=$ac_top_build_prefix
12184
12185case $srcdir in
12186 .) # We are building in place.
12187 ac_srcdir=.
12188 ac_top_srcdir=$ac_top_builddir_sub
12189 ac_abs_top_srcdir=$ac_pwd ;;
12190 [\\/]* | ?:[\\/]* ) # Absolute name.
12191 ac_srcdir=$srcdir$ac_dir_suffix;
12192 ac_top_srcdir=$srcdir
12193 ac_abs_top_srcdir=$srcdir ;;
12194 *) # Relative name.
12195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12196 ac_top_srcdir=$ac_top_build_prefix$srcdir
12197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12198esac
12199ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12200
12201
12202 case $ac_mode in
12203 :F)
12204 #
12205 # CONFIG_FILE
12206 #
12207
12208 case $INSTALL in
12209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12210 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12211 esac
12212 ac_MKDIR_P=$MKDIR_P
12213 case $MKDIR_P in
12214 [\\/$]* | ?:[\\/]* ) ;;
12215 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12216 esac
12217_ACEOF
12218
12219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12220# If the template does not know about datarootdir, expand it.
12221# FIXME: This hack should be removed a few years after 2.60.
12222ac_datarootdir_hack=; ac_datarootdir_seen=
12223ac_sed_dataroot='
12224/datarootdir/ {
12225 p
12226 q
12227}
12228/@datadir@/p
12229/@docdir@/p
12230/@infodir@/p
12231/@localedir@/p
12232/@mandir@/p'
12233case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12234*datarootdir*) ac_datarootdir_seen=yes;;
12235*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12237$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12238_ACEOF
12239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12240 ac_datarootdir_hack='
12241 s&@datadir@&$datadir&g
12242 s&@docdir@&$docdir&g
12243 s&@infodir@&$infodir&g
12244 s&@localedir@&$localedir&g
12245 s&@mandir@&$mandir&g
12246 s&\\\${datarootdir}&$datarootdir&g' ;;
12247esac
12248_ACEOF
12249
12250# Neutralize VPATH when `$srcdir' = `.'.
12251# Shell code in configure.ac might set extrasub.
12252# FIXME: do we really want to maintain this feature?
12253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12254ac_sed_extra="$ac_vpsub
12255$extrasub
12256_ACEOF
12257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12258:t
12259/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12260s|@configure_input@|$ac_sed_conf_input|;t t
12261s&@top_builddir@&$ac_top_builddir_sub&;t t
12262s&@top_build_prefix@&$ac_top_build_prefix&;t t
12263s&@srcdir@&$ac_srcdir&;t t
12264s&@abs_srcdir@&$ac_abs_srcdir&;t t
12265s&@top_srcdir@&$ac_top_srcdir&;t t
12266s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12267s&@builddir@&$ac_builddir&;t t
12268s&@abs_builddir@&$ac_abs_builddir&;t t
12269s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12270s&@INSTALL@&$ac_INSTALL&;t t
12271s&@MKDIR_P@&$ac_MKDIR_P&;t t
12272$ac_datarootdir_hack
12273"
12274eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12275 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12276
12277test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12278 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12279 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12280 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12282which seems to be undefined. Please make sure it is defined" >&5
12283$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12284which seems to be undefined. Please make sure it is defined" >&2;}
12285
12286 rm -f "$ac_tmp/stdin"
12287 case $ac_file in
12288 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12289 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12290 esac \
12291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12292 ;;
12293 :H)
12294 #
12295 # CONFIG_HEADER
12296 #
12297 if test x"$ac_file" != x-; then
12298 {
12299 $as_echo "/* $configure_input */" \
12300 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12301 } >"$ac_tmp/config.h" \
12302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12303 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12305$as_echo "$as_me: $ac_file is unchanged" >&6;}
12306 else
12307 rm -f "$ac_file"
12308 mv "$ac_tmp/config.h" "$ac_file" \
12309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12310 fi
12311 else
12312 $as_echo "/* $configure_input */" \
12313 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12314 || as_fn_error $? "could not create -" "$LINENO" 5
12315 fi
12316# Compute "$ac_file"'s index in $config_headers.
12317_am_arg="$ac_file"
12318_am_stamp_count=1
12319for _am_header in $config_headers :; do
12320 case $_am_header in
12321 $_am_arg | $_am_arg:* )
12322 break ;;
12323 * )
12324 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12325 esac
12326done
12327echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12328$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12329 X"$_am_arg" : 'X\(//\)[^/]' \| \
12330 X"$_am_arg" : 'X\(//\)$' \| \
12331 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12332$as_echo X"$_am_arg" |
12333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12334 s//\1/
12335 q
12336 }
12337 /^X\(\/\/\)[^/].*/{
12338 s//\1/
12339 q
12340 }
12341 /^X\(\/\/\)$/{
12342 s//\1/
12343 q
12344 }
12345 /^X\(\/\).*/{
12346 s//\1/
12347 q
12348 }
12349 s/.*/./; q'`/stamp-h$_am_stamp_count
12350 ;;
12351
12352 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12353$as_echo "$as_me: executing $ac_file commands" >&6;}
12354 ;;
12355 esac
12356
12357
12358 case $ac_file$ac_mode in
12359 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12360 # Older Autoconf quotes --file arguments for eval, but not when files
12361 # are listed without --file. Let's play safe and only enable the eval
12362 # if we detect the quoting.
12363 case $CONFIG_FILES in
12364 *\'*) eval set x "$CONFIG_FILES" ;;
12365 *) set x $CONFIG_FILES ;;
12366 esac
12367 shift
12368 for mf
12369 do
12370 # Strip MF so we end up with the name of the file.
12371 mf=`echo "$mf" | sed -e 's/:.*$//'`
12372 # Check whether this is an Automake generated Makefile or not.
12373 # We used to match only the files named 'Makefile.in', but
12374 # some people rename them; so instead we look at the file content.
12375 # Grep'ing the first line is not enough: some people post-process
12376 # each Makefile.in and add a new line on top of each file to say so.
12377 # Grep'ing the whole file is not good either: AIX grep has a line
12378 # limit of 2048, but all sed's we know have understand at least 4000.
12379 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12380 dirpart=`$as_dirname -- "$mf" ||
12381$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12382 X"$mf" : 'X\(//\)[^/]' \| \
12383 X"$mf" : 'X\(//\)$' \| \
12384 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12385$as_echo X"$mf" |
12386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12387 s//\1/
12388 q
12389 }
12390 /^X\(\/\/\)[^/].*/{
12391 s//\1/
12392 q
12393 }
12394 /^X\(\/\/\)$/{
12395 s//\1/
12396 q
12397 }
12398 /^X\(\/\).*/{
12399 s//\1/
12400 q
12401 }
12402 s/.*/./; q'`
12403 else
12404 continue
12405 fi
12406 # Extract the definition of DEPDIR, am__include, and am__quote
12407 # from the Makefile without running 'make'.
12408 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12409 test -z "$DEPDIR" && continue
12410 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12411 test -z "$am__include" && continue
12412 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12413 # Find all dependency output files, they are included files with
12414 # $(DEPDIR) in their names. We invoke sed twice because it is the
12415 # simplest approach to changing $(DEPDIR) to its actual value in the
12416 # expansion.
12417 for file in `sed -n "
12418 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12419 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12420 # Make sure the directory exists.
12421 test -f "$dirpart/$file" && continue
12422 fdir=`$as_dirname -- "$file" ||
12423$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12424 X"$file" : 'X\(//\)[^/]' \| \
12425 X"$file" : 'X\(//\)$' \| \
12426 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12427$as_echo X"$file" |
12428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12429 s//\1/
12430 q
12431 }
12432 /^X\(\/\/\)[^/].*/{
12433 s//\1/
12434 q
12435 }
12436 /^X\(\/\/\)$/{
12437 s//\1/
12438 q
12439 }
12440 /^X\(\/\).*/{
12441 s//\1/
12442 q
12443 }
12444 s/.*/./; q'`
12445 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12446 # echo "creating $dirpart/$file"
12447 echo '# dummy' > "$dirpart/$file"
12448 done
12449 done
12450}
12451 ;;
12452
12453 esac
12454done # for ac_tag
12455
12456
12457as_fn_exit 0
12458_ACEOF
12459ac_clean_files=$ac_clean_files_save
12460
12461test $ac_write_fail = 0 ||
12462 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12463
12464
12465# configure is writing to config.log, and then calls config.status.
12466# config.status does its own redirection, appending to config.log.
12467# Unfortunately, on DOS this fails, as config.log is still kept open
12468# by configure, so config.status won't be able to write to it; its
12469# output is simply discarded. So we exec the FD to /dev/null,
12470# effectively closing config.log, so it can be properly (re)opened and
12471# appended to by config.status. When coming back to configure, we
12472# need to make the FD available again.
12473if test "$no_create" != yes; then
12474 ac_cs_success=:
12475 ac_config_status_args=
12476 test "$silent" = yes &&
12477 ac_config_status_args="$ac_config_status_args --quiet"
12478 exec 5>/dev/null
12479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12480 exec 5>>config.log
12481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12482 # would make configure fail if this is the last instruction.
12483 $ac_cs_success || as_fn_exit 1
12484fi
12485if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12487$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12488fi
12489
This page took 0.610402 seconds and 4 git commands to generate.