2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: gcc-bugs@gcc.gnu.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='cpplib'
582 PACKAGE_TARNAME
='cpplib'
584 PACKAGE_STRING
='cpplib '
585 PACKAGE_BUGREPORT
='gcc-bugs@gcc.gnu.org'
588 ac_unique_file
="ucnid.h"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
717 program_transform_name
730 enable_option_checking
737 enable_maintainer_mode
739 enable_canonical_system_headers
742 enable_valgrind_annotations
744 ac_precious_vars
='build_alias
758 # Initialize some variables set by options.
760 ac_init_version
=false
761 ac_unrecognized_opts
=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
772 program_transform_name
=s
,x
,x
,
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir
='${exec_prefix}/bin'
787 sbindir
='${exec_prefix}/sbin'
788 libexecdir
='${exec_prefix}/libexec'
789 datarootdir
='${prefix}/share'
790 datadir
='${datarootdir}'
791 sysconfdir
='${prefix}/etc'
792 sharedstatedir
='${prefix}/com'
793 localstatedir
='${prefix}/var'
794 includedir
='${prefix}/include'
795 oldincludedir
='/usr/include'
796 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
797 infodir
='${datarootdir}/info'
802 libdir
='${exec_prefix}/lib'
803 localedir
='${datarootdir}/locale'
804 mandir
='${datarootdir}/man'
810 # If the previous option needs an argument, assign it.
811 if test -n "$ac_prev"; then
812 eval $ac_prev=\
$ac_option
818 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 # Accept the important Cygnus configure options, so we can diagnose typos.
825 case $ac_dashdash$ac_option in
829 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
831 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
834 -build |
--build |
--buil |
--bui |
--bu)
835 ac_prev
=build_alias
;;
836 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
837 build_alias
=$ac_optarg ;;
839 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
840 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
841 ac_prev
=cache_file
;;
842 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
843 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
844 cache_file
=$ac_optarg ;;
847 cache_file
=config.cache
;;
849 -datadir |
--datadir |
--datadi |
--datad)
851 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
852 datadir
=$ac_optarg ;;
854 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
855 |
--dataroo |
--dataro |
--datar)
856 ac_prev
=datarootdir
;;
857 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
858 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
859 datarootdir
=$ac_optarg ;;
861 -disable-* |
--disable-*)
862 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
865 as_fn_error $?
"invalid feature name: $ac_useropt"
866 ac_useropt_orig
=$ac_useropt
867 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
872 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873 ac_unrecognized_sep
=', ';;
875 eval enable_
$ac_useropt=no
;;
877 -docdir |
--docdir |
--docdi |
--doc |
--do)
879 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
882 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
884 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
887 -enable-* |
--enable-*)
888 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
891 as_fn_error $?
"invalid feature name: $ac_useropt"
892 ac_useropt_orig
=$ac_useropt
893 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
898 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899 ac_unrecognized_sep
=', ';;
901 eval enable_
$ac_useropt=\
$ac_optarg ;;
903 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
904 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
905 |
--exec |
--exe |
--ex)
906 ac_prev
=exec_prefix
;;
907 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
908 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
909 |
--exec=* |
--exe=* |
--ex=*)
910 exec_prefix
=$ac_optarg ;;
912 -gas |
--gas |
--ga |
--g)
913 # Obsolete; use --with-gas.
916 -help |
--help |
--hel |
--he |
-h)
918 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
919 ac_init_help
=recursive
;;
920 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
921 ac_init_help
=short
;;
923 -host |
--host |
--hos |
--ho)
924 ac_prev
=host_alias
;;
925 -host=* |
--host=* |
--hos=* |
--ho=*)
926 host_alias
=$ac_optarg ;;
928 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
930 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
932 htmldir
=$ac_optarg ;;
934 -includedir |
--includedir |
--includedi |
--included |
--include \
935 |
--includ |
--inclu |
--incl |
--inc)
936 ac_prev
=includedir
;;
937 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
938 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
939 includedir
=$ac_optarg ;;
941 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
943 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
944 infodir
=$ac_optarg ;;
946 -libdir |
--libdir |
--libdi |
--libd)
948 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
951 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
952 |
--libexe |
--libex |
--libe)
953 ac_prev
=libexecdir
;;
954 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
955 |
--libexe=* |
--libex=* |
--libe=*)
956 libexecdir
=$ac_optarg ;;
958 -localedir |
--localedir |
--localedi |
--localed |
--locale)
960 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
961 localedir
=$ac_optarg ;;
963 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
964 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
965 ac_prev
=localstatedir
;;
966 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
967 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
968 localstatedir
=$ac_optarg ;;
970 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
972 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
976 # Obsolete; use --without-fp.
979 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
980 |
--no-cr |
--no-c |
-n)
983 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
984 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
987 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
988 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
989 |
--oldin |
--oldi |
--old |
--ol |
--o)
990 ac_prev
=oldincludedir
;;
991 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
992 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
993 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
994 oldincludedir
=$ac_optarg ;;
996 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
998 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1001 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1002 |
--program-pre |
--program-pr |
--program-p)
1003 ac_prev
=program_prefix
;;
1004 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1005 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1006 program_prefix
=$ac_optarg ;;
1008 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1009 |
--program-suf |
--program-su |
--program-s)
1010 ac_prev
=program_suffix
;;
1011 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1012 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1013 program_suffix
=$ac_optarg ;;
1015 -program-transform-name |
--program-transform-name \
1016 |
--program-transform-nam |
--program-transform-na \
1017 |
--program-transform-n |
--program-transform- \
1018 |
--program-transform |
--program-transfor \
1019 |
--program-transfo |
--program-transf \
1020 |
--program-trans |
--program-tran \
1021 |
--progr-tra |
--program-tr |
--program-t)
1022 ac_prev
=program_transform_name
;;
1023 -program-transform-name=* |
--program-transform-name=* \
1024 |
--program-transform-nam=* |
--program-transform-na=* \
1025 |
--program-transform-n=* |
--program-transform-=* \
1026 |
--program-transform=* |
--program-transfor=* \
1027 |
--program-transfo=* |
--program-transf=* \
1028 |
--program-trans=* |
--program-tran=* \
1029 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1030 program_transform_name
=$ac_optarg ;;
1032 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1034 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1035 pdfdir
=$ac_optarg ;;
1037 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1039 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1042 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1043 |
-silent |
--silent |
--silen |
--sile |
--sil)
1046 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1048 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1050 sbindir
=$ac_optarg ;;
1052 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1053 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1054 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1056 ac_prev
=sharedstatedir
;;
1057 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1058 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1059 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1061 sharedstatedir
=$ac_optarg ;;
1063 -site |
--site |
--sit)
1065 -site=* |
--site=* |
--sit=*)
1068 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1070 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1071 srcdir
=$ac_optarg ;;
1073 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1074 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1075 ac_prev
=sysconfdir
;;
1076 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1077 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1078 sysconfdir
=$ac_optarg ;;
1080 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1081 ac_prev
=target_alias
;;
1082 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1083 target_alias
=$ac_optarg ;;
1085 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1088 -version |
--version |
--versio |
--versi |
--vers |
-V)
1089 ac_init_version
=: ;;
1092 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1095 as_fn_error $?
"invalid package name: $ac_useropt"
1096 ac_useropt_orig
=$ac_useropt
1097 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103 ac_unrecognized_sep
=', ';;
1105 eval with_
$ac_useropt=\
$ac_optarg ;;
1107 -without-* |
--without-*)
1108 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1111 as_fn_error $?
"invalid package name: $ac_useropt"
1112 ac_useropt_orig
=$ac_useropt
1113 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1118 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119 ac_unrecognized_sep
=', ';;
1121 eval with_
$ac_useropt=no
;;
1124 # Obsolete; use --with-x.
1127 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1128 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1129 ac_prev
=x_includes
;;
1130 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1131 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1132 x_includes
=$ac_optarg ;;
1134 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1135 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1136 ac_prev
=x_libraries
;;
1137 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1138 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1139 x_libraries
=$ac_optarg ;;
1141 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1146 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1147 # Reject names that are not valid shell variable names.
1148 case $ac_envvar in #(
1149 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1150 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1152 eval $ac_envvar=\
$ac_optarg
1153 export $ac_envvar ;;
1156 # FIXME: should be removed in autoconf 3.0.
1157 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1159 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1166 if test -n "$ac_prev"; then
1167 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1168 as_fn_error $?
"missing argument to $ac_option"
1171 if test -n "$ac_unrecognized_opts"; then
1172 case $enable_option_checking in
1174 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 # Check all directory arguments for consistency.
1180 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
1185 eval ac_val
=\$
$ac_var
1186 # Remove trailing slashes.
1189 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190 eval $ac_var=\
$ac_val;;
1192 # Be sure to have absolute directory names.
1194 [\\/$
]* | ?
:[\\/]* ) continue;;
1195 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1197 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1205 target
=$target_alias
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x
; then
1209 if test "x$build_alias" = x
; then
1210 cross_compiling
=maybe
1211 elif test "x$build_alias" != "x$host_alias"; then
1217 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1219 test "$silent" = yes && exec 6>/dev
/null
1222 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di
=`ls -di .` &&
1224 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1225 as_fn_error $?
"working directory cannot be determined"
1226 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1227 as_fn_error $?
"pwd does not report name of working directory"
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232 ac_srcdir_defaulted
=yes
1233 # Try the directory containing this script, then the parent directory.
1234 ac_confdir
=`$as_dirname -- "$as_myself" ||
1235 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$as_myself" : 'X\(//\)[^/]' \| \
1237 X"$as_myself" : 'X\(//\)$' \| \
1238 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239 $as_echo X"$as_myself" |
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1262 ac_srcdir_defaulted
=no
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1266 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1268 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1280 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 for ac_var
in $ac_precious_vars; do
1283 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1284 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1285 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1286 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1290 # Report the --help message.
1292 if test "$ac_init_help" = "long"; then
1293 # Omit some internal or obsolete options to make the list less imposing.
1294 # This message is too long to be a string in the A/UX 3.1 sh.
1296 \`configure' configures cpplib to adapt to many kinds of systems.
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE. See below for descriptions of some of the useful variables.
1303 Defaults for the options are specified in brackets.
1306 -h, --help display this help and exit
1307 --help=short display options specific to this package
1308 --help=recursive display the short help of all the included packages
1309 -V, --version display version information and exit
1310 -q, --quiet, --silent do not print \`checking ...' messages
1311 --cache-file=FILE cache test results in FILE [disabled]
1312 -C, --config-cache alias for \`--cache-file=config.cache'
1313 -n, --no-create do not create output files
1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1316 Installation directories:
1317 --prefix=PREFIX install architecture-independent files in PREFIX
1318 [$ac_default_prefix]
1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1327 For better control, use the options below.
1329 Fine tuning of the installation directories:
1330 --bindir=DIR user executables [EPREFIX/bin]
1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1336 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1344 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1345 --htmldir=DIR html documentation [DOCDIR]
1346 --dvidir=DIR dvi documentation [DOCDIR]
1347 --pdfdir=DIR pdf documentation [DOCDIR]
1348 --psdir=DIR ps documentation [DOCDIR]
1354 --build=BUILD configure
for building on BUILD
[guessed
]
1355 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1356 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive
) echo "Configuration of cpplib :";;
1367 --disable-option-checking ignore unrecognized
--enable/--with options
1368 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1369 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1370 --disable-largefile omit support
for large files
1371 --enable-werror-always enable -Werror despite compiler version
1372 --disable-rpath do not hardcode runtime library paths
1373 --enable-maintainer-mode enable rules only needed by maintainers
1374 --enable-checking[=LIST
]
1375 enable expensive run-time checks. With LIST
, enable
1376 only specific categories of checks. Categories are
:
1377 yes,no
,all
,none
,release. Flags are
: misc
,valgrind or
1379 --enable-canonical-system-headers
1380 enable or disable system headers canonicalization
1381 --enable-host-shared build
host code as shared libraries
1382 --enable-cet enable Intel CET
in host libraries
[default
=auto
]
1383 --enable-valgrind-annotations
1384 enable valgrind runtime interaction
1387 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1388 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1389 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1390 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1391 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1392 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 CXX C++ compiler command
1403 CXXFLAGS C++ compiler flags
1406 Use these variables to override the choices made by `configure' or to
help
1407 it to
find libraries and programs with nonstandard names
/locations.
1409 Report bugs to
<gcc-bugs@gcc.gnu.org
>.
1414 if test "$ac_init_help" = "recursive"; then
1415 # If there are subdirs, report their specific --help.
1416 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1417 test -d "$ac_dir" ||
1418 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1423 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1425 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1426 # A ".." for each directory in $ac_dir_suffix.
1427 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1428 case $ac_top_builddir_sub in
1429 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1430 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1433 ac_abs_top_builddir
=$ac_pwd
1434 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1435 # for backward compatibility:
1436 ac_top_builddir
=$ac_top_build_prefix
1439 .
) # We are building in place.
1441 ac_top_srcdir
=$ac_top_builddir_sub
1442 ac_abs_top_srcdir
=$ac_pwd ;;
1443 [\\/]* | ?
:[\\/]* ) # Absolute name.
1444 ac_srcdir
=$srcdir$ac_dir_suffix;
1445 ac_top_srcdir
=$srcdir
1446 ac_abs_top_srcdir
=$srcdir ;;
1448 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1449 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1450 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1452 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1454 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1455 # Check for guested configure.
1456 if test -f "$ac_srcdir/configure.gnu"; then
1458 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1459 elif test -f "$ac_srcdir/configure"; then
1461 $SHELL "$ac_srcdir/configure" --help=recursive
1463 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1465 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1469 test -n "$ac_init_help" && exit $ac_status
1470 if $ac_init_version; then
1473 generated by GNU Autoconf
2.69
1475 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1476 This configure
script is free software
; the Free Software Foundation
1477 gives unlimited permission to copy
, distribute and modify it.
1482 ## ------------------------ ##
1483 ## Autoconf initialization. ##
1484 ## ------------------------ ##
1486 # ac_fn_c_try_compile LINENO
1487 # --------------------------
1488 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_c_try_compile
()
1491 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1492 rm -f conftest.
$ac_objext
1493 if { { ac_try
="$ac_compile"
1495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_compile") 2>conftest.err
1502 if test -s conftest.err; then
1503 grep -v '^ *+' conftest.err >conftest.er1
1504 cat conftest.er1 >&5
1505 mv -f conftest.er1 conftest.err
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } && {
1509 test -z "$ac_c_werror_flag" ||
1510 test ! -s conftest.err
1511 } && test -s conftest.$ac_objext; then :
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520 as_fn_set_status $ac_retval
1522 } # ac_fn_c_try_compile
1524 # ac_fn_cxx_try_compile LINENO
1525 # ----------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_cxx_try_compile ()
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1534 *) ac_try_echo
=$ac_try;;
1536 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1540 if test -s conftest.err
; then
1541 grep -v '^ *+' conftest.err
>conftest.er1
1542 cat conftest.er1
>&5
1543 mv -f conftest.er1 conftest.err
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_cxx_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.
$ac_objext; then :
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.
$ac_ext >&5
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status
$ac_retval
1560 } # ac_fn_cxx_try_compile
1562 # ac_fn_c_try_cpp LINENO
1563 # ----------------------
1564 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1567 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1568 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } > conftest.i && {
1584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1599 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1600 # -------------------------------------------------------
1601 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1602 # the include files in INCLUDES and setting the cache variable VAR
1604 ac_fn_c_check_header_mongrel ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if eval \${$3+:} false; then :
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609 $as_echo_n "checking for $2... " >&6; }
1610 if eval \${$3+:} false; then :
1611 $as_echo_n "(cached) " >&6
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1615 $as_echo "$ac_res" >&6; }
1617 # Is the header compilable?
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1619 $as_echo_n "checking $2 usability... " >&6; }
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626 ac_header_compiler=yes
1628 ac_header_compiler=no
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1632 $as_echo "$ac_header_compiler" >&6; }
1634 # Is the header present?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1636 $as_echo_n "checking $2 presence... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1641 if ac_fn_c_try_cpp "$LINENO"; then :
1642 ac_header_preproc=yes
1644 ac_header_preproc=no
1646 rm -f conftest.err conftest.i conftest.$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1648 $as_echo "$ac_header_preproc" >&6; }
1650 # So? What about this header?
1651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1654 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1660 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1662 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1664 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1666 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 ( $as_echo "## ----------------------------------- ##
1670 ## Report this to gcc-bugs@gcc.gnu.org ##
1671 ## ----------------------------------- ##"
1672 ) | sed "s/^/$as_me: WARNING: /" >&2
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1680 eval "$3=\$ac_header_compiler"
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 } # ac_fn_c_check_header_mongrel
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1700 *) ac_try_echo
=$ac_try;;
1702 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=$ac_status
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1732 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists and can be compiled using the include files in
1735 # INCLUDES, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1749 if ac_fn_c_try_compile "$LINENO"; then :
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 } # ac_fn_c_check_header_compile
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1773 *) ac_try_echo
=$ac_try;;
1775 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1779 if test -s conftest.err
; then
1780 grep -v '^ *+' conftest.err
>conftest.er1
1781 cat conftest.er1
>&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest
$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 test -x conftest
$ac_exeext
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.
$ac_ext >&5
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status
$ac_retval
1807 } # ac_fn_c_try_link
1809 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1810 # -------------------------------------------
1811 # Tests whether TYPE exists after having included INCLUDES, setting cache
1812 # variable VAR accordingly.
1813 ac_fn_c_check_type
()
1815 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \
${$3+:} false
; then :
1819 $as_echo_n "(cached) " >&6
1822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1834 if ac_fn_c_try_compile
"$LINENO"; then :
1835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1847 if ac_fn_c_try_compile
"$LINENO"; then :
1852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 } # ac_fn_c_check_type
1863 # ac_fn_c_find_uintX_t LINENO BITS VAR
1864 # ------------------------------------
1865 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1867 ac_fn_c_find_uintX_t
()
1869 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1871 $as_echo_n "checking for uint$2_t... " >&6; }
1872 if eval \
${$3+:} false
; then :
1873 $as_echo_n "(cached) " >&6
1876 # Order is important - never check a type that is potentially smaller
1877 # than half of the expected target width.
1878 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
1879 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $ac_includes_default
1886 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1888 return test_array [0];
1894 if ac_fn_c_try_compile
"$LINENO"; then :
1899 eval "$3=\$ac_type" ;;
1902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1903 if eval test \"x\$
"$3"\" = x
"no"; then :
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 } # ac_fn_c_find_uintX_t
1917 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1918 # --------------------------------------------
1919 # Tries to find the compile-time value of EXPR in a program that includes
1920 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1922 ac_fn_c_compute_int
()
1924 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1925 if test "$cross_compiling" = yes; then
1926 # Depending upon the size, compute the lo and hi bounds.
1927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1933 static int test_array [1 - 2 * !(($2) >= 0)];
1935 return test_array [0];
1941 if ac_fn_c_try_compile
"$LINENO"; then :
1944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1950 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1952 return test_array [0];
1958 if ac_fn_c_try_compile
"$LINENO"; then :
1959 ac_hi
=$ac_mid; break
1961 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1962 if test $ac_lo -le $ac_mid; then
1966 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1977 static int test_array [1 - 2 * !(($2) < 0)];
1979 return test_array [0];
1985 if ac_fn_c_try_compile
"$LINENO"; then :
1988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1994 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1996 return test_array [0];
2002 if ac_fn_c_try_compile
"$LINENO"; then :
2003 ac_lo
=$ac_mid; break
2005 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2006 if test $ac_mid -le $ac_hi; then
2010 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2020 # Binary search between lo and hi bounds.
2021 while test "x$ac_lo" != "x$ac_hi"; do
2022 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2029 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2031 return test_array [0];
2037 if ac_fn_c_try_compile
"$LINENO"; then :
2040 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2045 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2052 static long int longval () { return $2; }
2053 static unsigned long int ulongval () { return $2; }
2060 FILE *f = fopen ("conftest.val", "w");
2065 long int i = longval ();
2068 fprintf (f, "%ld", i);
2072 unsigned long int i = ulongval ();
2075 fprintf (f, "%lu", i);
2077 /* Do not output a trailing newline, as this causes \r\n confusion
2078 on some platforms. */
2079 return ferror (f) || fclose (f) != 0;
2085 if ac_fn_c_try_run
"$LINENO"; then :
2086 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 as_fn_set_status
$ac_retval
2098 } # ac_fn_c_compute_int
2100 # ac_fn_c_check_func LINENO FUNC VAR
2101 # ----------------------------------
2102 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2103 ac_fn_c_check_func
()
2105 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval \
${$3+:} false
; then :
2109 $as_echo_n "(cached) " >&6
2111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2115 #define $2 innocuous_$2
2117 /* System header to define __stub macros and hopefully few prototypes,
2118 which can conflict with char $2 (); below.
2119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2120 <limits.h> exists even on freestanding compilers. */
2123 # include <limits.h>
2125 # include <assert.h>
2130 /* Override any GCC internal prototype to avoid an error.
2131 Use char because int might match the return type of a GCC
2132 builtin and then its argument prototype would still apply. */
2137 /* The GNU C library defines this for functions which it implements
2138 to always fail with ENOSYS. Some functions are actually named
2139 something starting with __ and the normal name is an alias. */
2140 #if defined __stub_$2 || defined __stub___$2
2152 if ac_fn_c_try_link
"$LINENO"; then :
2157 rm -f core conftest.err conftest.
$ac_objext \
2158 conftest
$ac_exeext conftest.
$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165 } # ac_fn_c_check_func
2167 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2168 # ---------------------------------------------
2169 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2171 ac_fn_c_check_decl
()
2173 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2174 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2175 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2177 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2178 if eval \
${$3+:} false
; then :
2179 $as_echo_n "(cached) " >&6
2181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2187 #ifndef $as_decl_name
2189 (void) $as_decl_use;
2191 (void) $as_decl_name;
2199 if ac_fn_c_try_compile
"$LINENO"; then :
2204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 $as_echo "$ac_res" >&6; }
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211 } # ac_fn_c_check_decl
2213 # ac_fn_cxx_try_link LINENO
2214 # -------------------------
2215 # Try to link conftest.$ac_ext, and return whether this succeeded.
2216 ac_fn_cxx_try_link
()
2218 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2219 rm -f conftest.
$ac_objext conftest
$ac_exeext
2220 if { { ac_try
="$ac_link"
2222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2226 $as_echo "$ac_try_echo"; } >&5
2227 (eval "$ac_link") 2>conftest.err
2229 if test -s conftest.err; then
2230 grep -v '^ *+' conftest.err >conftest.er1
2231 cat conftest.er1 >&5
2232 mv -f conftest.er1 conftest.err
2234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2235 test $ac_status = 0; } && {
2236 test -z "$ac_cxx_werror_flag" ||
2237 test ! -s conftest.err
2238 } && test -s conftest$ac_exeext && {
2239 test "$cross_compiling" = yes ||
2240 test -x conftest$ac_exeext
2244 $as_echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2249 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2250 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2251 # interfere with the next link command; also delete a directory that is
2252 # left behind by Apple's compiler. We do this before executing the actions.
2253 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 as_fn_set_status $ac_retval
2257 } # ac_fn_cxx_try_link
2258 cat >config.log <<_ACEOF
2259 This file contains any messages produced by compilers while
2260 running configure, to aid debugging if configure makes a mistake.
2262 It was created by cpplib $as_me , which was
2263 generated by GNU Autoconf 2.69. Invocation command line was
2275 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2276 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2277 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2278 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2279 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2281 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2282 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2284 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2285 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2286 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2287 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2288 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2289 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2290 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 $as_echo "PATH: $as_dir"
2315 # Keep a trace of the command line.
2316 # Strip out --no-create and --no-recursion so they do not pile up.
2317 # Strip out --silent because we don't want to record it for future runs.
2318 # Also quote any args containing shell meta-characters.
2319 # Make two passes to allow for proper duplicate-argument suppression.
2323 ac_must_keep_next=false
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2334 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2339 as_fn_append ac_configure_args1 " '$ac_arg'"
2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2352 -* ) ac_must_keep_next=true ;;
2355 as_fn_append ac_configure_args " '$ac_arg'"
2360 { ac_configure_args0=; unset ac_configure_args0;}
2361 { ac_configure_args1=; unset ac_configure_args1;}
2363 # When interrupted or exit'd, cleanup temporary files, and complete
2364 # config.log. We remove comments because anyway the quotes in there
2365 # would cause problems or look ugly.
2366 # WARNING: Use '\'' to represent an apostrophe within the trap.
2367 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368 trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2373 $as_echo "## ---------------- ##
2374 ## Cache variables. ##
2375 ## ---------------- ##"
2377 # The following way of writing the cache mishandles newlines in values,
2379 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2380 eval ac_val=\$$ac_var
2384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2388 _ | IFS | as_nl) ;; #(
2389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390 *) { eval $ac_var=; unset $ac_var;} ;;
2395 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2396 *${as_nl}ac_space=\ *)
2398 "s/'\''/'\''\\\\'\'''\''/g;
2399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2409 $as_echo "## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##"
2413 for ac_var in $ac_subst_vars
2415 eval ac_val=\$$ac_var
2417 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 $as_echo "$ac_var='\''$ac_val'\''"
2423 if test -n "$ac_subst_files"; then
2424 $as_echo "## ------------------- ##
2425 ## File substitutions. ##
2426 ## ------------------- ##"
2428 for ac_var in $ac_subst_files
2430 eval ac_val=\$$ac_var
2432 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2434 $as_echo "$ac_var='\''$ac_val'\''"
2439 if test -s confdefs.h; then
2440 $as_echo "## ----------- ##
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2455 for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2461 rm -f -r conftest* confdefs.h
2463 $as_echo "/* confdefs.h */" > confdefs.h
2465 # Predefined preprocessor variables.
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_NAME "$PACKAGE_NAME"
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_STRING "$PACKAGE_STRING"
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_URL "$PACKAGE_URL"
2492 # Let the site file select an alternate cache file if it wants to.
2493 # Prefer an explicitly selected file to automatically selected ones.
2496 if test -n "$CONFIG_SITE"; then
2497 # We do not want a PATH search for config.site.
2498 case $CONFIG_SITE in #((
2499 -*) ac_site_file1=./$CONFIG_SITE;;
2500 */*) ac_site_file1=$CONFIG_SITE;;
2501 *) ac_site_file1=./$CONFIG_SITE;;
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512 test "x$ac_site_file" = xNONE && continue
2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2518 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 as_fn_error $? "failed to load site
script $ac_site_file
2521 See \
`config.log' for more details" "$LINENO" 5; }
2525 if test -r "$cache_file"; then
2526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530 $as_echo "$as_me: loading cache $cache_file" >&6;}
2532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538 $as_echo "$as_me: creating cache $cache_file" >&6;}
2542 # Check that the precious variables saved in the cache have kept the same
2544 ac_cache_corrupted=false
2545 for ac_var in $ac_precious_vars; do
2546 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2547 eval ac_new_set=\$ac_env_${ac_var}_set
2548 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2549 eval ac_new_val=\$ac_env_${ac_var}_value
2550 case $ac_old_set,$ac_new_set in
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2553 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2554 ac_cache_corrupted=: ;;
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2557 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2558 ac_cache_corrupted=: ;;
2561 if test "x$ac_old_val" != "x$ac_new_val"; then
2562 # differences in whitespace do not lead to failure.
2563 ac_old_val_w=`echo x
$ac_old_val`
2564 ac_new_val_w=`echo x
$ac_new_val`
2565 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2567 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2568 ac_cache_corrupted=:
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2571 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2572 eval $ac_var=\$ac_old_val
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2575 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2577 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2580 # Pass precious variables to config.status.
2581 if test "$ac_new_set" = set; then
2583 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2584 *) ac_arg=$ac_var=$ac_new_val ;;
2586 case " $ac_configure_args " in
2587 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2588 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2592 if $ac_cache_corrupted; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2596 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2597 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2599 ## -------------------- ##
2600 ## Main body of script. ##
2601 ## -------------------- ##
2604 ac_cpp='$CPP $CPPFLAGS'
2605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2614 if test -f "$ac_dir/install-sh"; then
2616 ac_install_sh="$ac_aux_dir/install-sh -c"
2618 elif test -f "$ac_dir/install.sh"; then
2620 ac_install_sh="$ac_aux_dir/install.sh -c"
2622 elif test -f "$ac_dir/shtool"; then
2624 ac_install_sh="$ac_aux_dir/shtool install -c"
2628 if test -z "$ac_aux_dir"; then
2629 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2632 # These three variables are undocumented and unsupported,
2633 # and are intended to be withdrawn in a future Autoconf release.
2634 # They can cause serious problems if a builder's source tree is in a directory
2635 # whose full name contains unusual characters.
2636 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2637 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2638 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2641 # Make sure we can run config.sub.
2642 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2643 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2646 $as_echo_n "checking build system type... " >&6; }
2647 if ${ac_cv_build+:} false; then :
2648 $as_echo_n "(cached) " >&6
2650 ac_build_alias=$build_alias
2651 test "x$ac_build_alias" = x &&
2652 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2653 test "x$ac_build_alias" = x &&
2654 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2655 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2656 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2660 $as_echo "$ac_cv_build" >&6; }
2661 case $ac_cv_build in
2663 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2666 ac_save_IFS=$IFS; IFS='-'
2672 # Remember, the first character of IFS is used to create $*,
2673 # except with old shells:
2676 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2680 $as_echo_n "checking host system type... " >&6; }
2681 if ${ac_cv_host+:} false; then :
2682 $as_echo_n "(cached) " >&6
2684 if test "x$host_alias" = x; then
2685 ac_cv_host=$ac_cv_build
2687 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2688 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2693 $as_echo "$ac_cv_host" >&6; }
2696 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2699 ac_save_IFS=$IFS; IFS='-'
2705 # Remember, the first character of IFS is used to create $*,
2706 # except with old shells:
2709 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2713 $as_echo_n "checking target system type... " >&6; }
2714 if ${ac_cv_target+:} false; then :
2715 $as_echo_n "(cached) " >&6
2717 if test "x$target_alias" = x; then
2718 ac_cv_target=$ac_cv_host
2720 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2721 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2726 $as_echo "$ac_cv_target" >&6; }
2727 case $ac_cv_target in
2729 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2731 target=$ac_cv_target
2732 ac_save_IFS=$IFS; IFS='-'
2738 # Remember, the first character of IFS is used to create $*,
2739 # except with old shells:
2742 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2745 # The aliases save the names the user supplied, while $host etc.
2746 # will get canonicalized.
2747 test -n "$target_alias" &&
2748 test "$program_prefix$program_suffix$program_transform_name" = \
2750 program_prefix=${target_alias}-
2753 # Checks for programs.
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2755 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2757 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2758 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2759 $as_echo_n "(cached) " >&6
2761 cat >conftest.make <<\_ACEOF
2764 @echo '@@@%%%=$(MAKE)=@@@%%%'
2766 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2767 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2769 eval ac_cv_prog_make_${ac_make}_set=yes;;
2771 eval ac_cv_prog_make_${ac_make}_set=no;;
2775 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2777 $as_echo "yes" >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2782 SET_MAKE="MAKE=${MAKE-make}"
2785 # Find a good install program. We prefer a C program (faster),
2786 # so one script is as good as another. But avoid the broken or
2787 # incompatible versions:
2788 # SysV /etc/install, /usr/sbin/install
2789 # SunOS /usr/etc/install
2790 # IRIX /sbin/install
2792 # AmigaOS /C/install, which installs bootblocks on floppy discs
2793 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2794 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2795 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2796 # OS/2's system install, which has a completely different semantic
2797 # ./install, which can be erroneously created by make from ./install.sh.
2798 # Reject install programs that cannot install multiple files.
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2800 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2801 if test -z "$INSTALL"; then
2802 if ${ac_cv_path_install+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 # Account for people who put trailing slashes in PATH elements.
2811 case $as_dir/ in #((
2812 ./ | .// | /[cC]/* | \
2813 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2814 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2817 # OSF1 and SCO ODT 3.0 have their own names for install.
2818 # Don't use installbsd from OSF since it installs stuff as root
2820 for ac_prog in ginstall scoinst install; do
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2823 if test $ac_prog = install &&
2824 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2825 # AIX install. It has an incompatible calling convention.
2827 elif test $ac_prog = install &&
2828 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2829 # program-specific install script used by HP pwplus--don't use.
2832 rm -rf conftest.one conftest.two conftest.dir
2833 echo one > conftest.one
2834 echo two > conftest.two
2836 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2837 test -s conftest.one && test -s conftest.two &&
2838 test -s conftest.dir/conftest.one &&
2839 test -s conftest.dir/conftest.two
2841 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2854 rm -rf conftest.one conftest.two conftest.dir
2857 if test "${ac_cv_path_install+set}" = set; then
2858 INSTALL=$ac_cv_path_install
2860 # As a last resort, use the slow shell script. Don't cache a
2861 # value for INSTALL within a source directory, because that will
2862 # break other packages using the cache if that directory is
2863 # removed, or if the value is a relative name.
2864 INSTALL=$ac_install_sh
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2868 $as_echo "$INSTALL" >&6; }
2870 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2871 # It thinks the first close brace ends the variable substitution.
2872 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2874 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2876 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 if test -n "$ac_tool_prefix"; then
2884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_CC+:} false; then :
2889 $as_echo_n "(cached) " >&6
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 if test -n "$CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2922 if test -z "$ac_cv_prog_CC"; then
2924 # Extract the first word of "gcc", so it can be a program name with args.
2925 set dummy gcc; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2929 $as_echo_n "(cached) " >&6
2931 if test -n "$ac_ct_CC"; then
2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_ac_ct_CC="gcc"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2954 $as_echo "$ac_ct_CC" >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2960 if test "x$ac_ct_CC" = x; then
2963 case $cross_compiling:$ac_tool_warned in
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}cc; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_CC+:} false; then :
2982 $as_echo_n "(cached) " >&6
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_CC="${ac_tool_prefix}cc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 if test -n "$CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007 $as_echo "$CC" >&6; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3016 if test -z "$CC"; then
3017 # Extract the first word of "cc", so it can be a program name with args.
3018 set dummy cc; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_CC+:} false; then :
3022 $as_echo_n "(cached) " >&6
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3036 ac_prog_rejected=yes
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 if test $ac_prog_rejected = yes; then
3048 # We found a bogon in the path, so make sure we never use it.
3049 set dummy $ac_cv_prog_CC
3051 if test $# != 0; then
3052 # We chose a different compiler from the bogus one.
3053 # However, it has the same basename, so the bogon will be chosen
3054 # first if we set CC to just the basename; use the full file name.
3056 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3062 if test -n "$CC"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064 $as_echo "$CC" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3072 if test -z "$CC"; then
3073 if test -n "$ac_tool_prefix"; then
3074 for ac_prog in cl.exe
3076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_CC+:} false; then :
3081 $as_echo_n "(cached) " >&6
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3113 test -n "$CC" && break
3116 if test -z "$CC"; then
3118 for ac_prog in cl.exe
3120 # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3127 if test -n "$ac_ct_CC"; then
3128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_CC="$ac_prog"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148 if test -n "$ac_ct_CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3150 $as_echo "$ac_ct_CC" >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3157 test -n "$ac_ct_CC" && break
3160 if test "x$ac_ct_CC" = x; then
3163 case $cross_compiling:$ac_tool_warned in
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3167 ac_tool_warned=yes ;;
3176 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3179 See \
`config.log' for more details" "$LINENO" 5; }
3181 # Provide some information about the compiler.
3182 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3185 for ac_option in --version -v -V -qversion; do
3186 { { ac_try="$ac_compiler $ac_option >&5"
3188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3189 *) ac_try_echo
=$ac_try;;
3191 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3195 if test -s conftest.err
; then
3197 ... rest of stderr output deleted ...
3198 10q' conftest.err
>conftest.er1
3199 cat conftest.er1
>&5
3201 rm -f conftest.er1 conftest.err
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }
3206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3217 ac_clean_files_save
=$ac_clean_files
3218 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3219 # Try to create an executable without -o first, disregard a.out.
3220 # It will help us diagnose broken compilers, and finding out an intuition
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3223 $as_echo_n "checking whether the C compiler works... " >&6; }
3224 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3226 # The possible output files:
3227 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3230 for ac_file
in $ac_files
3233 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3234 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3239 if { { ac_try
="$ac_link_default"
3241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link_default") 2>&5
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; then :
3250 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3251 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3252 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3253 # so that the user can short-circuit this test for compilers unknown to
3255 for ac_file in $ac_files ''
3257 test -f "$ac_file" || continue
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3262 # We found the default executable, but exeext='' is most
3266 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3268 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270 # We set ac_cv_exeext here because the later test for it is not
3271 # safe: cross compilers may not add the suffix if given an `-o'
3272 # argument, so we may need to know it at that point already.
3273 # Even if this section looks crufty: it has the advantage of
3280 test "$ac_cv_exeext" = no && ac_cv_exeext=
3285 if test -z "$ac_file"; then :
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 $as_echo "$as_me: failed program was:" >&5
3289 sed 's
/^
/|
/' conftest.$ac_ext >&5
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3293 as_fn_error 77 "C compiler cannot create executables
3294 See \`config.log
' for more details" "$LINENO" 5; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3300 $as_echo_n "checking for C compiler default output file name... " >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3302 $as_echo "$ac_file" >&6; }
3303 ac_exeext=$ac_cv_exeext
3305 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3306 ac_clean_files=$ac_clean_files_save
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3308 $as_echo_n "checking for suffix of executables... " >&6; }
3309 if { { ac_try="$ac_link"
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315 $as_echo "$ac_try_echo"; } >&5
3316 (eval "$ac_link") 2>&5
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }; then :
3320 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3321 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3322 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3324 for ac_file
in conftest.exe conftest conftest.
*; do
3325 test -f "$ac_file" ||
continue
3327 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3328 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3337 See \`config.log' for more details" "$LINENO" 5; }
3339 rm -f conftest conftest
$ac_cv_exeext
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3341 $as_echo "$ac_cv_exeext" >&6; }
3343 rm -f conftest.
$ac_ext
3344 EXEEXT
=$ac_cv_exeext
3346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3352 FILE *f = fopen ("conftest.out", "w");
3353 return ferror (f) || fclose (f) != 0;
3359 ac_clean_files
="$ac_clean_files conftest.out"
3360 # Check that the compiler produces executables we can run. If not, either
3361 # the compiler is broken, or we cross compile.
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3363 $as_echo_n "checking whether we are cross compiling... " >&6; }
3364 if test "$cross_compiling" != yes; then
3365 { { ac_try
="$ac_link"
3367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_link") 2>&5
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }
3376 if { ac_try='./conftest$ac_cv_exeext'
3377 { { case "(($ac_try" in
3378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3379 *) ac_try_echo
=$ac_try;;
3381 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_try") 2>&5
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; }; then
3389 if test "$cross_compiling" = maybe
; then
3392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error $?
"cannot run C compiled programs.
3395 If you meant to cross compile, use \`--host'.
3396 See \`config.log' for more details" "$LINENO" 5; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3401 $as_echo "$cross_compiling" >&6; }
3403 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3404 ac_clean_files
=$ac_clean_files_save
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3406 $as_echo_n "checking for suffix of object files... " >&6; }
3407 if ${ac_cv_objext+:} false
; then :
3408 $as_echo_n "(cached) " >&6
3410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3421 rm -f conftest.o conftest.obj
3422 if { { ac_try
="$ac_compile"
3424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_compile") 2>&5
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }; then :
3433 for ac_file in conftest.o conftest.obj conftest.*; do
3434 test -f "$ac_file" || continue;
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3437 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3442 $as_echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3448 See \
`config.log' for more details" "$LINENO" 5; }
3450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3453 $as_echo "$ac_cv_objext" >&6; }
3454 OBJEXT=$ac_cv_objext
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3457 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3458 if ${ac_cv_c_compiler_gnu+:} false; then :
3459 $as_echo_n "(cached) " >&6
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3475 if ac_fn_c_try_compile "$LINENO"; then :
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3485 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3486 if test $ac_compiler_gnu = yes; then
3491 ac_test_CFLAGS=${CFLAGS+set}
3492 ac_save_CFLAGS=$CFLAGS
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3494 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3495 if ${ac_cv_prog_cc_g+:} false; then :
3496 $as_echo_n "(cached) " >&6
3498 ac_save_c_werror_flag=$ac_c_werror_flag
3499 ac_c_werror_flag=yes
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3513 if ac_fn_c_try_compile "$LINENO"; then :
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3528 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_c_werror_flag=$ac_save_c_werror_flag
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3544 if ac_fn_c_try_compile "$LINENO"; then :
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_c_werror_flag=$ac_save_c_werror_flag
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3555 $as_echo "$ac_cv_prog_cc_g" >&6; }
3556 if test "$ac_test_CFLAGS" = set; then
3557 CFLAGS=$ac_save_CFLAGS
3558 elif test $ac_cv_prog_cc_g = yes; then
3559 if test "$GCC" = yes; then
3565 if test "$GCC" = yes; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3572 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3573 if ${ac_cv_prog_cc_c89+:} false; then :
3574 $as_echo_n "(cached) " >&6
3576 ac_cv_prog_cc_c89=no
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3584 struct buf { int x; };
3585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3586 static char *e (p, i)
3592 static char *f (char * (*g) (char **, int), char **p, ...)
3597 s = g (p, va_arg (v,int));
3602 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3603 function prototypes and stuff, but not '\xHH' hex character constants.
3604 These don't provoke an error unfortunately, instead are silently treated
3605 as 'x'. The following induces an error, until -std is added to get
3606 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3607 array size at least. It's necessary to write '\x00'==0 to get something
3608 that's true only with -std. */
3609 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3611 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3612 inside strings and character constants. */
3614 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3616 int test (int i, double x);
3617 struct s1 {int (*f) (int a);};
3618 struct s2 {int (*f) (double a);};
3619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3625 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3630 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3631 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3633 CC="$ac_save_CC $ac_arg"
3634 if ac_fn_c_try_compile "$LINENO"; then :
3635 ac_cv_prog_cc_c89=$ac_arg
3637 rm -f core conftest.err conftest.$ac_objext
3638 test "x$ac_cv_prog_cc_c89" != "xno" && break
3640 rm -f conftest.$ac_ext
3645 case "x$ac_cv_prog_cc_c89" in
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3648 $as_echo "none needed" >&6; } ;;
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3651 $as_echo "unsupported" >&6; } ;;
3653 CC="$CC $ac_cv_prog_cc_c89"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3655 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3657 if test "x$ac_cv_prog_cc_c89" != xno; then :
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 ac_cpp='$CXXCPP $CPPFLAGS'
3669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3672 if test -z "$CXX"; then
3673 if test -n "$CCC"; then
3676 if test -n "$ac_tool_prefix"; then
3677 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if ${ac_cv_prog_CXX+:} false; then :
3684 $as_echo_n "(cached) " >&6
3686 if test -n "$CXX"; then
3687 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 if test -n "$CXX"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3709 $as_echo "$CXX" >&6; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3716 test -n "$CXX" && break
3719 if test -z "$CXX"; then
3721 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3723 # Extract the first word of "$ac_prog", so it can be a program name with args.
3724 set dummy $ac_prog; ac_word=$2
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3728 $as_echo_n "(cached) " >&6
3730 if test -n "$ac_ct_CXX"; then
3731 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_ac_ct_CXX="$ac_prog"
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3751 if test -n "$ac_ct_CXX"; then
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3753 $as_echo "$ac_ct_CXX" >&6; }
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3760 test -n "$ac_ct_CXX" && break
3763 if test "x$ac_ct_CXX" = x; then
3766 case $cross_compiling:$ac_tool_warned in
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3770 ac_tool_warned=yes ;;
3778 # Provide some information about the compiler.
3779 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3782 for ac_option in --version -v -V -qversion; do
3783 { { ac_try="$ac_compiler $ac_option >&5"
3785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3786 *) ac_try_echo
=$ac_try;;
3788 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3792 if test -s conftest.err
; then
3794 ... rest of stderr output deleted ...
3795 10q' conftest.err
>conftest.er1
3796 cat conftest.er1
>&5
3798 rm -f conftest.er1 conftest.err
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3804 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3805 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3806 $as_echo_n "(cached) " >&6
3808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3822 if ac_fn_cxx_try_compile
"$LINENO"; then :
3827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3828 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3832 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3833 if test $ac_compiler_gnu = yes; then
3838 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3839 ac_save_CXXFLAGS
=$CXXFLAGS
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3841 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3842 if ${ac_cv_prog_cxx_g+:} false
; then :
3843 $as_echo_n "(cached) " >&6
3845 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3846 ac_cxx_werror_flag
=yes
3849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3860 if ac_fn_cxx_try_compile
"$LINENO"; then :
3861 ac_cv_prog_cxx_g
=yes
3864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3875 if ac_fn_cxx_try_compile
"$LINENO"; then :
3878 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3891 if ac_fn_cxx_try_compile
"$LINENO"; then :
3892 ac_cv_prog_cxx_g
=yes
3894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3899 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3902 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3903 if test "$ac_test_CXXFLAGS" = set; then
3904 CXXFLAGS
=$ac_save_CXXFLAGS
3905 elif test $ac_cv_prog_cxx_g = yes; then
3906 if test "$GXX" = yes; then
3912 if test "$GXX" = yes; then
3919 ac_cpp
='$CPP $CPPFLAGS'
3920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3924 if test -n "$ac_tool_prefix"; then
3925 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3926 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if ${ac_cv_prog_RANLIB+:} false
; then :
3930 $as_echo_n "(cached) " >&6
3932 if test -n "$RANLIB"; then
3933 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3939 test -z "$as_dir" && as_dir
=.
3940 for ac_exec_ext
in '' $ac_executable_extensions; do
3941 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 RANLIB
=$ac_cv_prog_RANLIB
3953 if test -n "$RANLIB"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3955 $as_echo "$RANLIB" >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3963 if test -z "$ac_cv_prog_RANLIB"; then
3964 ac_ct_RANLIB
=$RANLIB
3965 # Extract the first word of "ranlib", so it can be a program name with args.
3966 set dummy ranlib
; ac_word
=$2
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968 $as_echo_n "checking for $ac_word... " >&6; }
3969 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3970 $as_echo_n "(cached) " >&6
3972 if test -n "$ac_ct_RANLIB"; then
3973 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3979 test -z "$as_dir" && as_dir
=.
3980 for ac_exec_ext
in '' $ac_executable_extensions; do
3981 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3982 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3993 if test -n "$ac_ct_RANLIB"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3995 $as_echo "$ac_ct_RANLIB" >&6; }
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
4001 if test "x$ac_ct_RANLIB" = x
; then
4004 case $cross_compiling:$ac_tool_warned in
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4008 ac_tool_warned
=yes ;;
4010 RANLIB
=$ac_ct_RANLIB
4013 RANLIB
="$ac_cv_prog_RANLIB"
4016 if test -n "$ac_tool_prefix"; then
4017 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4018 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if ${ac_cv_prog_AR+:} false
; then :
4022 $as_echo_n "(cached) " >&6
4024 if test -n "$AR"; then
4025 ac_cv_prog_AR
="$AR" # Let the user override the test.
4027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4031 test -z "$as_dir" && as_dir
=.
4032 for ac_exec_ext
in '' $ac_executable_extensions; do
4033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 if test -n "$AR"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4047 $as_echo "$AR" >&6; }
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4055 if test -z "$ac_cv_prog_AR"; then
4057 # Extract the first word of "ar", so it can be a program name with args.
4058 set dummy
ar; ac_word
=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4062 $as_echo_n "(cached) " >&6
4064 if test -n "$ac_ct_AR"; then
4065 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4071 test -z "$as_dir" && as_dir
=.
4072 for ac_exec_ext
in '' $ac_executable_extensions; do
4073 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_ac_ct_AR
="ar"
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4085 if test -n "$ac_ct_AR"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4087 $as_echo "$ac_ct_AR" >&6; }
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4093 if test "x$ac_ct_AR" = x
; then
4096 case $cross_compiling:$ac_tool_warned in
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100 ac_tool_warned
=yes ;;
4111 ac_cpp
='$CPP $CPPFLAGS'
4112 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4116 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4117 # On Suns, sometimes $CPP names a directory.
4118 if test -n "$CPP" && test -d "$CPP"; then
4121 if test -z "$CPP"; then
4122 if ${ac_cv_prog_CPP+:} false
; then :
4123 $as_echo_n "(cached) " >&6
4125 # Double quotes because CPP needs to be expanded
4126 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4129 for ac_c_preproc_warn_flag
in '' yes
4131 # Use a header file that comes with gcc, so configuring glibc
4132 # with a fresh cross-compiler works.
4133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4134 # <limits.h> exists even on freestanding compilers.
4135 # On the NeXT, cc -E runs the code through the compiler's parser,
4136 # not just through cpp. "Syntax error" is here to catch this case.
4137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4140 # include <limits.h>
4142 # include <assert.h>
4146 if ac_fn_c_try_cpp
"$LINENO"; then :
4149 # Broken: fails on valid input.
4152 rm -f conftest.err conftest.i conftest.
$ac_ext
4154 # OK, works on sane cases. Now check whether nonexistent headers
4155 # can be detected and how.
4156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158 #include <ac_nonexistent.h>
4160 if ac_fn_c_try_cpp
"$LINENO"; then :
4161 # Broken: success on invalid input.
4164 # Passes both tests.
4168 rm -f conftest.err conftest.i conftest.
$ac_ext
4171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4172 rm -f conftest.i conftest.err conftest.
$ac_ext
4173 if $ac_preproc_ok; then :
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4186 $as_echo "$CPP" >&6; }
4188 for ac_c_preproc_warn_flag
in '' yes
4190 # Use a header file that comes with gcc, so configuring glibc
4191 # with a fresh cross-compiler works.
4192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4193 # <limits.h> exists even on freestanding compilers.
4194 # On the NeXT, cc -E runs the code through the compiler's parser,
4195 # not just through cpp. "Syntax error" is here to catch this case.
4196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4199 # include <limits.h>
4201 # include <assert.h>
4205 if ac_fn_c_try_cpp
"$LINENO"; then :
4208 # Broken: fails on valid input.
4211 rm -f conftest.err conftest.i conftest.
$ac_ext
4213 # OK, works on sane cases. Now check whether nonexistent headers
4214 # can be detected and how.
4215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #include <ac_nonexistent.h>
4219 if ac_fn_c_try_cpp
"$LINENO"; then :
4220 # Broken: success on invalid input.
4223 # Passes both tests.
4227 rm -f conftest.err conftest.i conftest.
$ac_ext
4230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4231 rm -f conftest.i conftest.err conftest.
$ac_ext
4232 if $ac_preproc_ok; then :
4235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4237 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4238 See \`config.log' for more details" "$LINENO" 5; }
4242 ac_cpp
='$CPP $CPPFLAGS'
4243 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4249 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4250 if ${ac_cv_path_GREP+:} false
; then :
4251 $as_echo_n "(cached) " >&6
4253 if test -z "$GREP"; then
4254 ac_path_GREP_found
=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4257 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4260 test -z "$as_dir" && as_dir
=.
4261 for ac_prog
in grep ggrep
; do
4262 for ac_exec_ext
in '' $ac_executable_extensions; do
4263 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4264 as_fn_executable_p
"$ac_path_GREP" ||
continue
4265 # Check for GNU ac_path_GREP and select it if it is found.
4266 # Check for GNU $ac_path_GREP
4267 case `"$ac_path_GREP" --version 2>&1` in
4269 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4272 $as_echo_n 0123456789 >"conftest.in"
4275 cat "conftest.in" "conftest.in" >"conftest.tmp"
4276 mv "conftest.tmp" "conftest.in"
4277 cp "conftest.in" "conftest.nl"
4278 $as_echo 'GREP' >> "conftest.nl"
4279 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4280 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4281 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4282 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4283 # Best one so far, save it but keep looking for a better one
4284 ac_cv_path_GREP
="$ac_path_GREP"
4285 ac_path_GREP_max
=$ac_count
4287 # 10*(2^10) chars as input seems more than enough
4288 test $ac_count -gt 10 && break
4290 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4293 $ac_path_GREP_found && break 3
4298 if test -z "$ac_cv_path_GREP"; then
4299 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4302 ac_cv_path_GREP
=$GREP
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4307 $as_echo "$ac_cv_path_GREP" >&6; }
4308 GREP
="$ac_cv_path_GREP"
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4312 $as_echo_n "checking for egrep... " >&6; }
4313 if ${ac_cv_path_EGREP+:} false
; then :
4314 $as_echo_n "(cached) " >&6
4316 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4317 then ac_cv_path_EGREP
="$GREP -E"
4319 if test -z "$EGREP"; then
4320 ac_path_EGREP_found
=false
4321 # Loop through the user's path and test for each of PROGNAME-LIST
4322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4323 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4326 test -z "$as_dir" && as_dir
=.
4327 for ac_prog
in egrep; do
4328 for ac_exec_ext
in '' $ac_executable_extensions; do
4329 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4330 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4331 # Check for GNU ac_path_EGREP and select it if it is found.
4332 # Check for GNU $ac_path_EGREP
4333 case `"$ac_path_EGREP" --version 2>&1` in
4335 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4338 $as_echo_n 0123456789 >"conftest.in"
4341 cat "conftest.in" "conftest.in" >"conftest.tmp"
4342 mv "conftest.tmp" "conftest.in"
4343 cp "conftest.in" "conftest.nl"
4344 $as_echo 'EGREP' >> "conftest.nl"
4345 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4346 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4347 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4348 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4349 # Best one so far, save it but keep looking for a better one
4350 ac_cv_path_EGREP
="$ac_path_EGREP"
4351 ac_path_EGREP_max
=$ac_count
4353 # 10*(2^10) chars as input seems more than enough
4354 test $ac_count -gt 10 && break
4356 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4359 $ac_path_EGREP_found && break 3
4364 if test -z "$ac_cv_path_EGREP"; then
4365 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4368 ac_cv_path_EGREP
=$EGREP
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4374 $as_echo "$ac_cv_path_EGREP" >&6; }
4375 EGREP
="$ac_cv_path_EGREP"
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4379 $as_echo_n "checking for ANSI C header files... " >&6; }
4380 if ${ac_cv_header_stdc+:} false
; then :
4381 $as_echo_n "(cached) " >&6
4383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4398 if ac_fn_c_try_compile
"$LINENO"; then :
4399 ac_cv_header_stdc
=yes
4401 ac_cv_header_stdc
=no
4403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4405 if test $ac_cv_header_stdc = yes; then
4406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 $EGREP "memchr" >/dev
/null
2>&1; then :
4416 ac_cv_header_stdc
=no
4422 if test $ac_cv_header_stdc = yes; then
4423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 $EGREP "free" >/dev
/null
2>&1; then :
4433 ac_cv_header_stdc
=no
4439 if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then :
4444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4448 #if ((' ' & 0x0FF) == 0x020)
4449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4452 # define ISLOWER(c) \
4453 (('a' <= (c) && (c) <= 'i') \
4454 || ('j' <= (c) && (c) <= 'r') \
4455 || ('s' <= (c) && (c) <= 'z'))
4456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4464 for (i = 0; i < 256; i++)
4465 if (XOR (islower (i), ISLOWER (i))
4466 || toupper (i) != TOUPPER (i))
4471 if ac_fn_c_try_run
"$LINENO"; then :
4474 ac_cv_header_stdc
=no
4476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4477 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4483 $as_echo "$ac_cv_header_stdc" >&6; }
4484 if test $ac_cv_header_stdc = yes; then
4486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4491 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4492 inttypes.h stdint.h unistd.h
4494 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4495 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4497 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4498 cat >>confdefs.h
<<_ACEOF
4499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4508 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4509 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4516 if test "$MINIX" = yes; then
4518 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4521 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4524 $as_echo "#define _MINIX 1" >>confdefs.h
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4530 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4531 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4532 $as_echo_n "(cached) " >&6
4534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4537 # define __EXTENSIONS__ 1
4538 $ac_includes_default
4547 if ac_fn_c_try_compile
"$LINENO"; then :
4548 ac_cv_safe_to_define___extensions__
=yes
4550 ac_cv_safe_to_define___extensions__
=no
4552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4555 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4556 test $ac_cv_safe_to_define___extensions__ = yes &&
4557 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4559 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4561 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4563 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4565 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4568 # Check whether --enable-largefile was given.
4569 if test "${enable_largefile+set}" = set; then :
4570 enableval
=$enable_largefile;
4573 if test "$enable_largefile" != no
; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4576 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4577 if ${ac_cv_sys_largefile_CC+:} false
; then :
4578 $as_echo_n "(cached) " >&6
4580 ac_cv_sys_largefile_CC
=no
4581 if test "$GCC" != yes; then
4584 # IRIX 6.2 and later do not support large files by default,
4585 # so use the C compiler's -n32 option if that helps.
4586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4588 #include <sys/types.h>
4589 /* Check that off_t can represent 2**63 - 1 correctly.
4590 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4591 since some C++ compilers masquerading as C compilers
4592 incorrectly reject 9223372036854775807. */
4593 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4595 && LARGE_OFF_T % 2147483647 == 1)
4605 if ac_fn_c_try_compile
"$LINENO"; then :
4608 rm -f core conftest.err conftest.
$ac_objext
4610 if ac_fn_c_try_compile
"$LINENO"; then :
4611 ac_cv_sys_largefile_CC
=' -n32'; break
4613 rm -f core conftest.err conftest.
$ac_objext
4617 rm -f conftest.
$ac_ext
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4621 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4622 if test "$ac_cv_sys_largefile_CC" != no
; then
4623 CC
=$CC$ac_cv_sys_largefile_CC
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4627 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4628 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4629 $as_echo_n "(cached) " >&6
4632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634 #include <sys/types.h>
4635 /* Check that off_t can represent 2**63 - 1 correctly.
4636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4637 since some C++ compilers masquerading as C compilers
4638 incorrectly reject 9223372036854775807. */
4639 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4641 && LARGE_OFF_T % 2147483647 == 1)
4651 if ac_fn_c_try_compile
"$LINENO"; then :
4652 ac_cv_sys_file_offset_bits
=no
; break
4654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 #define _FILE_OFFSET_BITS 64
4658 #include <sys/types.h>
4659 /* Check that off_t can represent 2**63 - 1 correctly.
4660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4661 since some C++ compilers masquerading as C compilers
4662 incorrectly reject 9223372036854775807. */
4663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4665 && LARGE_OFF_T % 2147483647 == 1)
4675 if ac_fn_c_try_compile
"$LINENO"; then :
4676 ac_cv_sys_file_offset_bits
=64; break
4678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4679 ac_cv_sys_file_offset_bits
=unknown
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4684 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4685 case $ac_cv_sys_file_offset_bits in #(
4688 cat >>confdefs.h
<<_ACEOF
4689 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4694 if test $ac_cv_sys_file_offset_bits = unknown
; then
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4696 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4697 if ${ac_cv_sys_large_files+:} false
; then :
4698 $as_echo_n "(cached) " >&6
4701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703 #include <sys/types.h>
4704 /* Check that off_t can represent 2**63 - 1 correctly.
4705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4706 since some C++ compilers masquerading as C compilers
4707 incorrectly reject 9223372036854775807. */
4708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4710 && LARGE_OFF_T % 2147483647 == 1)
4720 if ac_fn_c_try_compile
"$LINENO"; then :
4721 ac_cv_sys_large_files
=no
; break
4723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4726 #define _LARGE_FILES 1
4727 #include <sys/types.h>
4728 /* Check that off_t can represent 2**63 - 1 correctly.
4729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4730 since some C++ compilers masquerading as C compilers
4731 incorrectly reject 9223372036854775807. */
4732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4734 && LARGE_OFF_T % 2147483647 == 1)
4744 if ac_fn_c_try_compile
"$LINENO"; then :
4745 ac_cv_sys_large_files
=1; break
4747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4748 ac_cv_sys_large_files
=unknown
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4753 $as_echo "$ac_cv_sys_large_files" >&6; }
4754 case $ac_cv_sys_large_files in #(
4757 cat >>confdefs.h
<<_ACEOF
4758 #define _LARGE_FILES $ac_cv_sys_large_files
4769 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4770 for ac_prog
in aclocal
4772 # Extract the first word of "$ac_prog", so it can be a program name with args.
4773 set dummy
$ac_prog; ac_word
=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if ${ac_cv_prog_ACLOCAL+:} false
; then :
4777 $as_echo_n "(cached) " >&6
4779 if test -n "$ACLOCAL"; then
4780 ac_cv_prog_ACLOCAL
="$ACLOCAL" # Let the user override the test.
4782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir
=.
4787 for ac_exec_ext
in '' $ac_executable_extensions; do
4788 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_prog_ACLOCAL
="$ac_prog"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 ACLOCAL
=$ac_cv_prog_ACLOCAL
4800 if test -n "$ACLOCAL"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4802 $as_echo "$ACLOCAL" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4809 test -n "$ACLOCAL" && break
4811 test -n "$ACLOCAL" || ACLOCAL
="$MISSING aclocal"
4813 for ac_prog
in autoconf
4815 # Extract the first word of "$ac_prog", so it can be a program name with args.
4816 set dummy
$ac_prog; ac_word
=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if ${ac_cv_prog_AUTOCONF+:} false
; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -n "$AUTOCONF"; then
4823 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
4825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir
=.
4830 for ac_exec_ext
in '' $ac_executable_extensions; do
4831 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_AUTOCONF
="$ac_prog"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 AUTOCONF
=$ac_cv_prog_AUTOCONF
4843 if test -n "$AUTOCONF"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4845 $as_echo "$AUTOCONF" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4852 test -n "$AUTOCONF" && break
4854 test -n "$AUTOCONF" || AUTOCONF
="$MISSING autoconf"
4856 for ac_prog
in autoheader
4858 # Extract the first word of "$ac_prog", so it can be a program name with args.
4859 set dummy
$ac_prog; ac_word
=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if ${ac_cv_prog_AUTOHEADER+:} false
; then :
4863 $as_echo_n "(cached) " >&6
4865 if test -n "$AUTOHEADER"; then
4866 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
4868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir
=.
4873 for ac_exec_ext
in '' $ac_executable_extensions; do
4874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_AUTOHEADER
="$ac_prog"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 AUTOHEADER
=$ac_cv_prog_AUTOHEADER
4886 if test -n "$AUTOHEADER"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4888 $as_echo "$AUTOHEADER" >&6; }
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4895 test -n "$AUTOHEADER" && break
4897 test -n "$AUTOHEADER" || AUTOHEADER
="$MISSING autoheader"
4900 if test -z "$ETAGS"; then
4905 # Figure out what compiler warnings we can enable.
4906 # See config/warnings.m4 for details.
4909 ac_cpp
='$CPP $CPPFLAGS'
4910 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4915 save_CFLAGS
="$CFLAGS"
4916 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings \
4917 -Wmissing-format-attribute; do
4918 # Do the check with the no- prefix removed since gcc silently
4919 # accepts any -Wno-* option on purpose
4920 case $real_option in
4921 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4922 *) option
=$real_option ;;
4924 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4927 $as_echo_n "checking whether $CC supports $option... " >&6; }
4928 if eval \
${$as_acx_Woption+:} false
; then :
4929 $as_echo_n "(cached) " >&6
4932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4943 if ac_fn_c_try_compile
"$LINENO"; then :
4944 eval "$as_acx_Woption=yes"
4946 eval "$as_acx_Woption=no"
4948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4951 eval ac_res
=\$
$as_acx_Woption
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4953 $as_echo "$ac_res" >&6; }
4954 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4955 warn
="$warn${warn:+ }$real_option"
4958 CFLAGS
="$save_CFLAGS"
4960 ac_cpp
='$CPP $CPPFLAGS'
4961 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4967 ac_cpp
='$CPP $CPPFLAGS'
4968 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4973 save_CFLAGS
="$CFLAGS"
4974 for real_option
in -Wstrict-prototypes -Wmissing-prototypes \
4975 -Wold-style-definition -Wc++-compat; do
4976 # Do the check with the no- prefix removed since gcc silently
4977 # accepts any -Wno-* option on purpose
4978 case $real_option in
4979 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4980 *) option
=$real_option ;;
4982 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4985 $as_echo_n "checking whether $CC supports $option... " >&6; }
4986 if eval \
${$as_acx_Woption+:} false
; then :
4987 $as_echo_n "(cached) " >&6
4990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
5001 if ac_fn_c_try_compile
"$LINENO"; then :
5002 eval "$as_acx_Woption=yes"
5004 eval "$as_acx_Woption=no"
5006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5009 eval ac_res
=\$
$as_acx_Woption
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5011 $as_echo "$ac_res" >&6; }
5012 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5013 c_warn
="$c_warn${c_warn:+ }$real_option"
5016 CFLAGS
="$save_CFLAGS"
5018 ac_cpp
='$CPP $CPPFLAGS'
5019 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5025 ac_cpp
='$CPP $CPPFLAGS'
5026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5031 # Do the check with the no- prefix removed from the warning options
5032 # since gcc silently accepts any -Wno-* option on purpose
5033 if test "$GCC" = yes; then :
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5035 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5036 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false
; then :
5037 $as_echo_n "(cached) " >&6
5039 save_CFLAGS
="$CFLAGS"
5040 CFLAGS
="-pedantic -Wlong-long"
5041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5052 if ac_fn_c_try_compile
"$LINENO"; then :
5053 acx_cv_prog_cc_pedantic__Wlong_long
=yes
5055 acx_cv_prog_cc_pedantic__Wlong_long
=no
5057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5058 CFLAGS
="$save_CFLAGS"
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5061 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5062 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5063 WARN_PEDANTIC
="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5068 ac_cpp
='$CPP $CPPFLAGS'
5069 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5075 # Disable exceptions and RTTI if building with g++
5077 ac_cpp
='$CPP $CPPFLAGS'
5078 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5083 save_CFLAGS
="$CFLAGS"
5084 for real_option
in -fno-exceptions -fno-rtti; do
5085 # Do the check with the no- prefix removed since gcc silently
5086 # accepts any -Wno-* option on purpose
5087 case $real_option in
5088 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5089 *) option
=$real_option ;;
5091 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5094 $as_echo_n "checking whether $CC supports $option... " >&6; }
5095 if eval \
${$as_acx_Woption+:} false
; then :
5096 $as_echo_n "(cached) " >&6
5099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5110 if ac_fn_c_try_compile
"$LINENO"; then :
5111 eval "$as_acx_Woption=yes"
5113 eval "$as_acx_Woption=no"
5115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5118 eval ac_res
=\$
$as_acx_Woption
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5120 $as_echo "$ac_res" >&6; }
5121 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5122 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
5125 CFLAGS
="$save_CFLAGS"
5127 ac_cpp
='$CPP $CPPFLAGS'
5128 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5134 # Only enable with --enable-werror-always until existing warnings are
5137 ac_cpp
='$CPP $CPPFLAGS'
5138 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5143 # Check whether --enable-werror-always was given.
5144 if test "${enable_werror_always+set}" = set; then :
5145 enableval
=$enable_werror_always;
5147 enable_werror_always
=no
5150 if test $enable_werror_always = yes; then :
5151 WERROR
="$WERROR${WERROR:+ }-Werror"
5155 ac_cpp
='$CPP $CPPFLAGS'
5156 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5162 # Dependency checking.
5163 rm -rf .tst
2>/dev
/null
5164 mkdir .tst
2>/dev
/null
5165 if test -d .tst
; then
5170 rmdir .tst
2>/dev
/null
5172 DEPDIR
="${am__leading_dot}deps"
5174 ac_config_commands
="$ac_config_commands depdir"
5178 ac_cpp
='$CXXCPP $CPPFLAGS'
5179 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5188 if ac_fn_cxx_try_compile
"$LINENO"; then :
5191 as_fn_error $?
"C++ compiler missing or inoperational" "$LINENO" 5
5193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5195 ac_cpp
='$CPP $CPPFLAGS'
5196 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5200 depcc
="$CXX" am_compiler_list
=
5202 am_depcomp
=$ac_aux_dir/depcomp
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5204 $as_echo_n "checking dependency style of $depcc... " >&6; }
5205 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
5206 $as_echo_n "(cached) " >&6
5208 if test -f "$am_depcomp"; then
5209 # We make a subdir and do the tests there. Otherwise we can end up
5210 # making bogus files that we don't know about and never remove. For
5211 # instance it was reported that on HP-UX the gcc test will end up
5212 # making a dummy file named `D' -- because `-MD' means `put the output
5215 # Copy depcomp to subdir because otherwise we won't find it if we're
5216 # using a relative directory.
5217 cp "$am_depcomp" conftest.dir
5219 # We will build objects and dependencies in a subdirectory because
5220 # it helps to detect inapplicable dependency modes. For instance
5221 # both Tru64's cc and ICC support -MD to output dependencies as a
5222 # side effect of compilation, but ICC will put the dependencies in
5223 # the current directory while Tru64 will put them in the object
5227 am_cv_CXX_dependencies_compiler_type
=none
5228 if test "$am_compiler_list" = ""; then
5229 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5231 for depmode
in $am_compiler_list; do
5232 if test $depmode = none
; then break; fi
5234 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5235 # Setup a source with many dependencies, because some compilers
5236 # like to wrap large dependency lists on column 80 (with \), and
5237 # we should not choose a depcomp mode which is confused by this.
5239 # We need to recreate these files for each test, as the compiler may
5240 # overwrite some of them when testing with obscure command lines.
5241 # This happens at least with the AIX C compiler.
5243 for i
in 1 2 3 4 5 6; do
5244 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5245 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5246 # Solaris 8's {/usr,}/bin/sh.
5247 touch sub
/conftst
$i.h
5249 echo "include sub/conftest.Po" > confmf
5251 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5252 # mode. It turns out that the SunPro C++ compiler does not properly
5253 # handle `-M -o', and we need to detect this.
5254 depcmd
="depmode=$depmode \
5255 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5257 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5258 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5259 if env
$depcmd > conftest.err
2>&1 &&
5260 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5261 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5262 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5263 # icc doesn't choke on unknown options, it will just issue warnings
5264 # or remarks (even with -Werror). So we grep stderr for any message
5265 # that says an option was ignored or not supported.
5266 # When given -MP, icc 7.0 and 7.1 complain thusly:
5267 # icc: Command line warning: ignoring option '-M'; no argument required
5268 # The diagnosis changed in icc 8.0:
5269 # icc: Command line remark: option '-MP' not supported
5270 if (grep 'ignoring option' conftest.err ||
5271 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5272 am_cv_CXX_dependencies_compiler_type
=$depmode
5273 $as_echo "$as_me:$LINENO: success" >&5
5277 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5278 sed -e 's/^/| /' < conftest.err
>&5
5284 am_cv_CXX_dependencies_compiler_type
=none
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5289 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5290 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
5291 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
5292 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5297 # Checks for header files.
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5299 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5300 if ${ac_cv_header_time+:} false
; then :
5301 $as_echo_n "(cached) " >&6
5303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #include <sys/types.h>
5306 #include <sys/time.h>
5312 if ((struct tm *) 0)
5318 if ac_fn_c_try_compile
"$LINENO"; then :
5319 ac_cv_header_time
=yes
5321 ac_cv_header_time
=no
5323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5326 $as_echo "$ac_cv_header_time" >&6; }
5327 if test $ac_cv_header_time = yes; then
5329 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5334 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5335 if ${gcc_cv_header_string+:} false
; then :
5336 $as_echo_n "(cached) " >&6
5338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5341 #include <strings.h>
5350 if ac_fn_c_try_compile
"$LINENO"; then :
5351 gcc_cv_header_string
=yes
5353 gcc_cv_header_string
=no
5355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5358 $as_echo "$gcc_cv_header_string" >&6; }
5359 if test $gcc_cv_header_string = yes; then
5361 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5366 for ac_header
in locale.h fcntl.h limits.h stddef.h \
5367 stdlib.h
strings.h string.h sys
/file.h unistd.h
5369 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5370 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5371 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5372 cat >>confdefs.h
<<_ACEOF
5373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5381 # Checks for typedefs, structures, and compiler characteristics.
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5383 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5384 if ${ac_cv_c_bigendian+:} false
; then :
5385 $as_echo_n "(cached) " >&6
5387 ac_cv_c_bigendian
=unknown
5388 # See if we're dealing with a universal compiler.
5389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #ifndef __APPLE_CC__
5392 not a universal capable compiler
5397 if ac_fn_c_try_compile
"$LINENO"; then :
5399 # Check for potential -arch flags. It is not universal unless
5400 # there are at least two -arch flags with different values.
5403 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5404 if test -n "$ac_prev"; then
5406 i?
86 | x86_64 | ppc | ppc64
)
5407 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5410 ac_cv_c_bigendian
=universal
5416 elif test "x$ac_word" = "x-arch"; then
5421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5422 if test $ac_cv_c_bigendian = unknown
; then
5423 # See if sys/param.h defines the BYTE_ORDER macro.
5424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #include <sys/types.h>
5427 #include <sys/param.h>
5432 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5433 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5442 if ac_fn_c_try_compile
"$LINENO"; then :
5443 # It does; now see whether it defined to BIG_ENDIAN or not.
5444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #include <sys/types.h>
5447 #include <sys/param.h>
5452 #if BYTE_ORDER != BIG_ENDIAN
5460 if ac_fn_c_try_compile
"$LINENO"; then :
5461 ac_cv_c_bigendian
=yes
5463 ac_cv_c_bigendian
=no
5465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5469 if test $ac_cv_c_bigendian = unknown
; then
5470 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5478 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5486 if ac_fn_c_try_compile
"$LINENO"; then :
5487 # It does; now see whether it defined to _BIG_ENDIAN or not.
5488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5503 if ac_fn_c_try_compile
"$LINENO"; then :
5504 ac_cv_c_bigendian
=yes
5506 ac_cv_c_bigendian
=no
5508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5512 if test $ac_cv_c_bigendian = unknown
; then
5513 # Compile a test program.
5514 if test "$cross_compiling" = yes; then :
5515 # Try to guess by grepping values from an object file.
5516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 short int ascii_mm[] =
5519 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5520 short int ascii_ii[] =
5521 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5522 int use_ascii (int i) {
5523 return ascii_mm[i] + ascii_ii[i];
5525 short int ebcdic_ii[] =
5526 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5527 short int ebcdic_mm[] =
5528 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5529 int use_ebcdic (int i) {
5530 return ebcdic_mm[i] + ebcdic_ii[i];
5537 return use_ascii (foo) == use_ebcdic (foo);
5542 if ac_fn_c_try_compile
"$LINENO"; then :
5543 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5544 ac_cv_c_bigendian
=yes
5546 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5547 if test "$ac_cv_c_bigendian" = unknown
; then
5548 ac_cv_c_bigendian
=no
5550 # finding both strings is unlikely to happen, but who knows?
5551 ac_cv_c_bigendian
=unknown
5555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 $ac_includes_default
5564 /* Are we little or big endian? From Harbison&Steele. */
5568 char c[sizeof (long int)];
5571 return u.c[sizeof (long int) - 1] == 1;
5577 if ac_fn_c_try_run
"$LINENO"; then :
5578 ac_cv_c_bigendian
=no
5580 ac_cv_c_bigendian
=yes
5582 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5583 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5589 $as_echo "$ac_cv_c_bigendian" >&6; }
5590 case $ac_cv_c_bigendian in #(
5592 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5598 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5602 as_fn_error $?
"unknown endianness
5603 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5607 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5608 if ${ac_cv_c_const+:} false
; then :
5609 $as_echo_n "(cached) " >&6
5611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5619 /* Ultrix mips cc rejects this sort of thing. */
5620 typedef int charset[2];
5621 const charset cs = { 0, 0 };
5622 /* SunOS 4.1.1 cc rejects this. */
5623 char const *const *pcpcc;
5625 /* NEC SVR4.0.2 mips cc rejects this. */
5626 struct point {int x, y;};
5627 static struct point const zero = {0,0};
5628 /* AIX XL C 1.02.0.0 rejects this.
5629 It does not let you subtract one const X* pointer from another in
5630 an arm of an if-expression whose if-part is not a constant
5632 const char *g = "string";
5633 pcpcc = &g + (g ? g-g : 0);
5634 /* HPUX 7.0 cc rejects these. */
5636 ppc = (char**) pcpcc;
5637 pcpcc = (char const *const *) ppc;
5638 { /* SCO 3.2v4 cc rejects this sort of thing. */
5641 char const *s = 0 ? (char *) 0 : (char const *) 0;
5646 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5648 const int *foo = &x[0];
5651 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5652 typedef const int *iptr;
5656 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5657 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5658 struct s { int j; const int *ap[3]; } bx;
5659 struct s *b = &bx; b->j = 5;
5661 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5665 return !cs[0] && !zero.x;
5672 if ac_fn_c_try_compile
"$LINENO"; then :
5677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5680 $as_echo "$ac_cv_c_const" >&6; }
5681 if test $ac_cv_c_const = no
; then
5683 $as_echo "#define const /**/" >>confdefs.h
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5688 $as_echo_n "checking for inline... " >&6; }
5689 if ${ac_cv_c_inline+:} false
; then :
5690 $as_echo_n "(cached) " >&6
5693 for ac_kw
in inline __inline__ __inline
; do
5694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5698 static $ac_kw foo_t static_foo () {return 0; }
5699 $ac_kw foo_t foo () {return 0; }
5703 if ac_fn_c_try_compile
"$LINENO"; then :
5704 ac_cv_c_inline
=$ac_kw
5706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5707 test "$ac_cv_c_inline" != no
&& break
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5712 $as_echo "$ac_cv_c_inline" >&6; }
5714 case $ac_cv_c_inline in
5717 case $ac_cv_c_inline in
5719 *) ac_val
=$ac_cv_c_inline;;
5721 cat >>confdefs.h
<<_ACEOF
5723 #define inline $ac_val
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5730 $as_echo_n "checking for obstacks... " >&6; }
5731 if ${ac_cv_func_obstack+:} false
; then :
5732 $as_echo_n "(cached) " >&6
5734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 $ac_includes_default
5737 #include "obstack.h"
5742 #define obstack_chunk_alloc malloc
5743 #define obstack_chunk_free free
5744 obstack_init (&mem);
5745 obstack_free (&mem, 0);
5750 if ac_fn_c_try_link
"$LINENO"; then :
5751 ac_cv_func_obstack
=yes
5753 ac_cv_func_obstack
=no
5755 rm -f core conftest.err conftest.
$ac_objext \
5756 conftest
$ac_exeext conftest.
$ac_ext
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5759 $as_echo "$ac_cv_func_obstack" >&6; }
5760 if test $ac_cv_func_obstack = yes; then
5762 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5765 case " $LIBOBJS " in
5766 *" obstack.$ac_objext "* ) ;;
5767 *) LIBOBJS
="$LIBOBJS obstack.$ac_objext"
5773 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5774 if test "x$ac_cv_type_off_t" = xyes
; then :
5778 cat >>confdefs.h
<<_ACEOF
5779 #define off_t long int
5784 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5785 if test "x$ac_cv_type_size_t" = xyes
; then :
5789 cat >>confdefs.h
<<_ACEOF
5790 #define size_t unsigned int
5795 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5796 if test "x$ac_cv_type_ssize_t" = xyes
; then :
5800 cat >>confdefs.h
<<_ACEOF
5807 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5808 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
5810 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5813 for ac_type
in 'unsigned int' 'unsigned long int' \
5814 'unsigned long long int'; do
5815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 $ac_includes_default
5821 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5823 return test_array [0];
5829 if ac_fn_c_try_compile
"$LINENO"; then :
5831 cat >>confdefs.h
<<_ACEOF
5832 #define uintptr_t $ac_type
5837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5838 test -z "$ac_type" && break
5843 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5844 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
5848 cat >>confdefs.h
<<_ACEOF
5849 #define ptrdiff_t int
5854 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5855 case $ac_cv_c_uint64_t in #(
5859 $as_echo "#define _UINT64_T 1" >>confdefs.h
5862 cat >>confdefs.h
<<_ACEOF
5863 #define uint64_t $ac_cv_c_uint64_t
5868 if test x
"$ac_cv_c_uint64_t" = x
"no"; then
5869 as_fn_error $?
"uint64_t not found" "$LINENO" 5
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5872 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5873 if ${ac_cv_struct_tm+:} false
; then :
5874 $as_echo_n "(cached) " >&6
5876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #include <sys/types.h>
5885 int *p = &tm.tm_sec;
5891 if ac_fn_c_try_compile
"$LINENO"; then :
5892 ac_cv_struct_tm
=time.h
5894 ac_cv_struct_tm
=sys
/time.h
5896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5899 $as_echo "$ac_cv_struct_tm" >&6; }
5900 if test $ac_cv_struct_tm = sys
/time.h
; then
5902 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5906 # The cast to long int works around a bug in the HP C Compiler
5907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5909 # This bug is HP SR number 8606223364.
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5911 $as_echo_n "checking size of int... " >&6; }
5912 if ${ac_cv_sizeof_int+:} false
; then :
5913 $as_echo_n "(cached) " >&6
5915 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5918 if test "$ac_cv_type_int" = yes; then
5919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5921 as_fn_error
77 "cannot compute sizeof (int)
5922 See \`config.log' for more details" "$LINENO" 5; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5930 $as_echo "$ac_cv_sizeof_int" >&6; }
5934 cat >>confdefs.h
<<_ACEOF
5935 #define SIZEOF_INT $ac_cv_sizeof_int
5939 # The cast to long int works around a bug in the HP C Compiler
5940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5942 # This bug is HP SR number 8606223364.
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5944 $as_echo_n "checking size of long... " >&6; }
5945 if ${ac_cv_sizeof_long+:} false
; then :
5946 $as_echo_n "(cached) " >&6
5948 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5951 if test "$ac_cv_type_long" = yes; then
5952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5954 as_fn_error
77 "cannot compute sizeof (long)
5955 See \`config.log' for more details" "$LINENO" 5; }
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5963 $as_echo "$ac_cv_sizeof_long" >&6; }
5967 cat >>confdefs.h
<<_ACEOF
5968 #define SIZEOF_LONG $ac_cv_sizeof_long
5973 for ac_func
in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
5975 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5976 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5977 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5978 cat >>confdefs.h
<<_ACEOF
5979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5985 ac_fn_c_check_decl
"$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5986 if test "x$ac_cv_have_decl_abort" = xyes
; then :
5992 cat >>confdefs.h
<<_ACEOF
5993 #define HAVE_DECL_ABORT $ac_have_decl
5995 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5996 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
6002 cat >>confdefs.h
<<_ACEOF
6003 #define HAVE_DECL_ASPRINTF $ac_have_decl
6005 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
6006 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
6007 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
6013 cat >>confdefs.h
<<_ACEOF
6014 #define HAVE_DECL_BASENAME $ac_have_decl
6016 ac_fn_c_check_decl
"$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
6017 if test "x$ac_cv_have_decl_errno" = xyes
; then :
6023 cat >>confdefs.h
<<_ACEOF
6024 #define HAVE_DECL_ERRNO $ac_have_decl
6026 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6027 if test "x$ac_cv_have_decl_getopt" = xyes
; then :
6033 cat >>confdefs.h
<<_ACEOF
6034 #define HAVE_DECL_GETOPT $ac_have_decl
6036 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6037 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
6043 cat >>confdefs.h
<<_ACEOF
6044 #define HAVE_DECL_VASPRINTF $ac_have_decl
6047 ac_fn_c_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
6048 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes
; then :
6054 cat >>confdefs.h
<<_ACEOF
6055 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
6057 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
6058 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
; then :
6064 cat >>confdefs.h
<<_ACEOF
6065 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
6067 ac_fn_c_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
6068 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes
; then :
6074 cat >>confdefs.h
<<_ACEOF
6075 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
6077 ac_fn_c_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
6078 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes
; then :
6084 cat >>confdefs.h
<<_ACEOF
6085 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
6087 ac_fn_c_check_decl
"$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
6088 if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes
; then :
6094 cat >>confdefs.h
<<_ACEOF
6095 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
6097 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
6098 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
; then :
6104 cat >>confdefs.h
<<_ACEOF
6105 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6107 ac_fn_c_check_decl
"$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6108 if test "x$ac_cv_have_decl_fileno_unlocked" = xyes
; then :
6114 cat >>confdefs.h
<<_ACEOF
6115 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6117 ac_fn_c_check_decl
"$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6118 if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes
; then :
6124 cat >>confdefs.h
<<_ACEOF
6125 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6127 ac_fn_c_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6128 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes
; then :
6134 cat >>confdefs.h
<<_ACEOF
6135 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6137 ac_fn_c_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6138 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes
; then :
6144 cat >>confdefs.h
<<_ACEOF
6145 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6147 ac_fn_c_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6148 if test "x$ac_cv_have_decl_fread_unlocked" = xyes
; then :
6154 cat >>confdefs.h
<<_ACEOF
6155 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6157 ac_fn_c_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6158 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes
; then :
6164 cat >>confdefs.h
<<_ACEOF
6165 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6167 ac_fn_c_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6168 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes
; then :
6174 cat >>confdefs.h
<<_ACEOF
6175 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6177 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6178 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
6184 cat >>confdefs.h
<<_ACEOF
6185 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6187 ac_fn_c_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6188 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes
; then :
6194 cat >>confdefs.h
<<_ACEOF
6195 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6197 ac_fn_c_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6198 if test "x$ac_cv_have_decl_putc_unlocked" = xyes
; then :
6204 cat >>confdefs.h
<<_ACEOF
6205 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6209 # Checks for library functions.
6210 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6211 # for constant arguments. Useless!
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6213 $as_echo_n "checking for working alloca.h... " >&6; }
6214 if ${ac_cv_working_alloca_h+:} false
; then :
6215 $as_echo_n "(cached) " >&6
6217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6223 char *p = (char *) alloca (2 * sizeof (int));
6229 if ac_fn_c_try_link
"$LINENO"; then :
6230 ac_cv_working_alloca_h
=yes
6232 ac_cv_working_alloca_h
=no
6234 rm -f core conftest.err conftest.
$ac_objext \
6235 conftest
$ac_exeext conftest.
$ac_ext
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6238 $as_echo "$ac_cv_working_alloca_h" >&6; }
6239 if test $ac_cv_working_alloca_h = yes; then
6241 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6246 $as_echo_n "checking for alloca... " >&6; }
6247 if ${ac_cv_func_alloca_works+:} false
; then :
6248 $as_echo_n "(cached) " >&6
6250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6253 # define alloca __builtin_alloca
6256 # include <malloc.h>
6257 # define alloca _alloca
6259 # ifdef HAVE_ALLOCA_H
6260 # include <alloca.h>
6265 # ifndef alloca /* predefined by HP cc +Olibcalls */
6266 void *alloca (size_t);
6276 char *p = (char *) alloca (1);
6282 if ac_fn_c_try_link
"$LINENO"; then :
6283 ac_cv_func_alloca_works
=yes
6285 ac_cv_func_alloca_works
=no
6287 rm -f core conftest.err conftest.
$ac_objext \
6288 conftest
$ac_exeext conftest.
$ac_ext
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6291 $as_echo "$ac_cv_func_alloca_works" >&6; }
6293 if test $ac_cv_func_alloca_works = yes; then
6295 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6298 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6299 # that cause trouble. Some versions do not even contain alloca or
6300 # contain a buggy version. If you still want to use their alloca,
6301 # use ar to extract alloca.o from them instead of compiling alloca.c.
6303 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6305 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6309 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6310 if ${ac_cv_os_cray+:} false
; then :
6311 $as_echo_n "(cached) " >&6
6313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 #if defined CRAY && ! defined CRAY2
6322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6323 $EGREP "webecray" >/dev
/null
2>&1; then :
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6332 $as_echo "$ac_cv_os_cray" >&6; }
6333 if test $ac_cv_os_cray = yes; then
6334 for ac_func
in _getb67 GETB67 getb67
; do
6335 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6336 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6337 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6339 cat >>confdefs.h
<<_ACEOF
6340 #define CRAY_STACKSEG_END $ac_func
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6350 $as_echo_n "checking stack direction for C alloca... " >&6; }
6351 if ${ac_cv_c_stack_direction+:} false
; then :
6352 $as_echo_n "(cached) " >&6
6354 if test "$cross_compiling" = yes; then :
6355 ac_cv_c_stack_direction
=0
6357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 $ac_includes_default
6361 find_stack_direction (int *addr, int depth)
6366 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6367 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6372 main (int argc, char **argv)
6374 return find_stack_direction (0, argc + !argv + 20) < 0;
6377 if ac_fn_c_try_run
"$LINENO"; then :
6378 ac_cv_c_stack_direction
=1
6380 ac_cv_c_stack_direction
=-1
6382 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6383 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6388 $as_echo "$ac_cv_c_stack_direction" >&6; }
6389 cat >>confdefs.h
<<_ACEOF
6390 #define STACK_DIRECTION $ac_cv_c_stack_direction
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6397 $as_echo_n "checking for ANSI C header files... " >&6; }
6398 if ${ac_cv_header_stdc+:} false
; then :
6399 $as_echo_n "(cached) " >&6
6401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6416 if ac_fn_c_try_compile
"$LINENO"; then :
6417 ac_cv_header_stdc
=yes
6419 ac_cv_header_stdc
=no
6421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6423 if test $ac_cv_header_stdc = yes; then
6424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431 $EGREP "memchr" >/dev
/null
2>&1; then :
6434 ac_cv_header_stdc
=no
6440 if test $ac_cv_header_stdc = yes; then
6441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6448 $EGREP "free" >/dev
/null
2>&1; then :
6451 ac_cv_header_stdc
=no
6457 if test $ac_cv_header_stdc = yes; then
6458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6459 if test "$cross_compiling" = yes; then :
6462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6466 #if ((' ' & 0x0FF) == 0x020)
6467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6470 # define ISLOWER(c) \
6471 (('a' <= (c) && (c) <= 'i') \
6472 || ('j' <= (c) && (c) <= 'r') \
6473 || ('s' <= (c) && (c) <= 'z'))
6474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6482 for (i = 0; i < 256; i++)
6483 if (XOR (islower (i), ISLOWER (i))
6484 || toupper (i) != TOUPPER (i))
6489 if ac_fn_c_try_run
"$LINENO"; then :
6492 ac_cv_header_stdc
=no
6494 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6495 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6501 $as_echo "$ac_cv_header_stdc" >&6; }
6502 if test $ac_cv_header_stdc = yes; then
6504 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6510 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6511 if ${am_cv_langinfo_codeset+:} false
; then :
6512 $as_echo_n "(cached) " >&6
6514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6516 #include <langinfo.h>
6520 char* cs = nl_langinfo(CODESET);
6525 if ac_fn_c_try_link
"$LINENO"; then :
6526 am_cv_langinfo_codeset
=yes
6528 am_cv_langinfo_codeset
=no
6530 rm -f core conftest.err conftest.
$ac_objext \
6531 conftest
$ac_exeext conftest.
$ac_ext
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6535 $as_echo "$am_cv_langinfo_codeset" >&6; }
6536 if test $am_cv_langinfo_codeset = yes; then
6538 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6542 # If we haven't got the data from the intl directory,
6543 # assume NLS is disabled.
6552 if test -f ..
/intl
/config.intl
; then
6553 . ..
/intl
/config.intl
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6556 $as_echo_n "checking whether NLS is requested... " >&6; }
6557 if test x
"$USE_NLS" != xyes
; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6562 $as_echo "yes" >&6; }
6564 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6568 $as_echo_n "checking for catalogs to be installed... " >&6; }
6569 # Look for .po and .gmo files in the source directory.
6572 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6573 # If there aren't any .gmo files the shell will give us the
6574 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6576 case "$cat" in *\
**)
6579 # The quadruple backslash is collapsed to a double backslash
6580 # by the backticks, then collapsed again by the double quotes,
6581 # leaving us with one backslash in the sed expression (right
6582 # before the dot that mustn't act as a wildcard).
6583 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6584 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6585 # The user is allowed to set LINGUAS to a list of languages to
6586 # install catalogs for. If it's empty that means "all of them."
6587 if test "x$LINGUAS" = x
; then
6588 CATALOGS
="$CATALOGS $cat"
6589 XLINGUAS
="$XLINGUAS $lang"
6591 case "$LINGUAS" in *$lang*)
6592 CATALOGS
="$CATALOGS $cat"
6593 XLINGUAS
="$XLINGUAS $lang"
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6600 $as_echo "$LINGUAS" >&6; }
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6614 $as_echo_n "checking for uchar... " >&6; }
6615 if ${gcc_cv_type_uchar+:} false
; then :
6616 $as_echo_n "(cached) " >&6
6618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6621 #include <sys/types.h>
6626 if ((uchar *)0) return 0;
6627 if (sizeof(uchar)) return 0;
6632 if ac_fn_c_try_compile
"$LINENO"; then :
6633 ac_cv_type_uchar
=yes
6637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6640 $as_echo "$gcc_cv_type_uchar" >&6; }
6641 if test $ac_cv_type_uchar = yes; then
6643 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6647 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6648 # iconv() prototype.
6650 ac_cpp
='$CXXCPP $CPPFLAGS'
6651 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6652 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6653 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6656 if test "X$prefix" = "XNONE"; then
6657 acl_final_prefix
="$ac_default_prefix"
6659 acl_final_prefix
="$prefix"
6661 if test "X$exec_prefix" = "XNONE"; then
6662 acl_final_exec_prefix
='${prefix}'
6664 acl_final_exec_prefix
="$exec_prefix"
6666 acl_save_prefix
="$prefix"
6667 prefix
="$acl_final_prefix"
6668 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6669 prefix
="$acl_save_prefix"
6672 # Check whether --with-gnu-ld was given.
6673 if test "${with_gnu_ld+set}" = set; then :
6674 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6679 # Prepare PATH_SEPARATOR.
6680 # The user is always right.
6681 if test "${PATH_SEPARATOR+set}" != set; then
6682 echo "#! /bin/sh" >conf$$.sh
6683 echo "exit 0" >>conf$$.sh
6685 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6693 if test "$GCC" = yes; then
6694 # Check if gcc -print-prog-name=ld gives a path.
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6696 $as_echo_n "checking for ld used by GCC... " >&6; }
6699 # gcc leaves a trailing carriage return which upsets mingw
6700 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6702 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6705 # Accept absolute paths.
6706 [\\/]* |
[A-Za-z
]:[\\/]*)
6707 re_direlt
='/[^/][^/]*/\.\./'
6708 # Canonicalize the path of ld
6709 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6710 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6711 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6713 test -z "$LD" && LD
="$ac_prog"
6716 # If it fails, then pretend we aren't using GCC.
6720 # If it is relative, then search for the first ld in PATH.
6724 elif test "$with_gnu_ld" = yes; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6726 $as_echo_n "checking for GNU ld... " >&6; }
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6729 $as_echo_n "checking for non-GNU ld... " >&6; }
6731 if ${acl_cv_path_LD+:} false
; then :
6732 $as_echo_n "(cached) " >&6
6734 if test -z "$LD"; then
6735 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6736 for ac_dir
in $PATH; do
6737 test -z "$ac_dir" && ac_dir
=.
6738 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6739 acl_cv_path_LD
="$ac_dir/$ac_prog"
6740 # Check to see if the program is GNU ld. I'd rather use --version,
6741 # but apparently some GNU ld's only accept -v.
6742 # Break only if it was the GNU/non-GNU ld that we prefer.
6743 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6744 test "$with_gnu_ld" != no
&& break
6746 test "$with_gnu_ld" != yes && break
6752 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6756 LD
="$acl_cv_path_LD"
6757 if test -n "$LD"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6759 $as_echo "$LD" >&6; }
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6764 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6766 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6767 if ${acl_cv_prog_gnu_ld+:} false
; then :
6768 $as_echo_n "(cached) " >&6
6770 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6771 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6772 acl_cv_prog_gnu_ld
=yes
6774 acl_cv_prog_gnu_ld
=no
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6778 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6779 with_gnu_ld
=$acl_cv_prog_gnu_ld
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6784 $as_echo_n "checking for shared library run path origin... " >&6; }
6785 if ${acl_cv_rpath+:} false
; then :
6786 $as_echo_n "(cached) " >&6
6789 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6790 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6797 $as_echo "$acl_cv_rpath" >&6; }
6799 libext
="$acl_cv_libext"
6800 shlibext
="$acl_cv_shlibext"
6801 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6802 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6803 hardcode_direct
="$acl_cv_hardcode_direct"
6804 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6805 # Check whether --enable-rpath was given.
6806 if test "${enable_rpath+set}" = set; then :
6807 enableval
=$enable_rpath; :
6821 acl_save_prefix
="$prefix"
6822 prefix
="$acl_final_prefix"
6823 acl_save_exec_prefix
="$exec_prefix"
6824 exec_prefix
="$acl_final_exec_prefix"
6826 eval additional_includedir
=\"$includedir\"
6827 eval additional_libdir
=\"$libdir\"
6829 exec_prefix
="$acl_save_exec_prefix"
6830 prefix
="$acl_save_prefix"
6833 # Check whether --with-libiconv-prefix was given.
6834 if test "${with_libiconv_prefix+set}" = set; then :
6835 withval
=$with_libiconv_prefix;
6836 if test "X$withval" = "Xno"; then
6839 if test "X$withval" = "X"; then
6841 acl_save_prefix
="$prefix"
6842 prefix
="$acl_final_prefix"
6843 acl_save_exec_prefix
="$exec_prefix"
6844 exec_prefix
="$acl_final_exec_prefix"
6846 eval additional_includedir
=\"$includedir\"
6847 eval additional_libdir
=\"$libdir\"
6849 exec_prefix
="$acl_save_exec_prefix"
6850 prefix
="$acl_save_prefix"
6853 additional_includedir
="$withval/include"
6854 additional_libdir
="$withval/lib"
6861 # Check whether --with-libiconv-type was given.
6862 if test "${with_libiconv_type+set}" = set; then :
6863 withval
=$with_libiconv_type; with_libiconv_type
=$withval
6865 with_libiconv_type
=auto
6868 lib_type
=`eval echo \$with_libiconv_type`
6875 names_already_handled
=
6876 names_next_round
='iconv '
6877 while test -n "$names_next_round"; do
6878 names_this_round
="$names_next_round"
6880 for name
in $names_this_round; do
6882 for n
in $names_already_handled; do
6883 if test "$n" = "$name"; then
6888 if test -z "$already_handled"; then
6889 names_already_handled
="$names_already_handled $name"
6890 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6891 eval value
=\"\
$HAVE_LIB$uppername\"
6892 if test -n "$value"; then
6893 if test "$value" = yes; then
6894 eval value
=\"\
$LIB$uppername\"
6895 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
6896 eval value
=\"\
$LTLIB$uppername\"
6897 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
6906 if test $use_additional = yes; then
6907 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6908 found_dir
="$additional_libdir"
6909 found_so
="$additional_libdir/lib$name.$shlibext"
6910 if test -f "$additional_libdir/lib$name.la"; then
6911 found_la
="$additional_libdir/lib$name.la"
6913 elif test x
$lib_type != xshared
; then
6914 if test -f "$additional_libdir/lib$name.$libext"; then
6915 found_dir
="$additional_libdir"
6916 found_a
="$additional_libdir/lib$name.$libext"
6917 if test -f "$additional_libdir/lib$name.la"; then
6918 found_la
="$additional_libdir/lib$name.la"
6923 if test "X$found_dir" = "X"; then
6924 for x
in $LDFLAGS $LTLIBICONV; do
6926 acl_save_prefix
="$prefix"
6927 prefix
="$acl_final_prefix"
6928 acl_save_exec_prefix
="$exec_prefix"
6929 exec_prefix
="$acl_final_exec_prefix"
6931 exec_prefix
="$acl_save_exec_prefix"
6932 prefix
="$acl_save_prefix"
6936 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6937 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6939 found_so
="$dir/lib$name.$shlibext"
6940 if test -f "$dir/lib$name.la"; then
6941 found_la
="$dir/lib$name.la"
6943 elif test x
$lib_type != xshared
; then
6944 if test -f "$dir/lib$name.$libext"; then
6946 found_a
="$dir/lib$name.$libext"
6947 if test -f "$dir/lib$name.la"; then
6948 found_la
="$dir/lib$name.la"
6954 if test "X$found_dir" != "X"; then
6959 if test "X$found_dir" != "X"; then
6960 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6961 if test "X$found_so" != "X"; then
6962 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6963 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6966 for x
in $ltrpathdirs; do
6967 if test "X$x" = "X$found_dir"; then
6972 if test -z "$haveit"; then
6973 ltrpathdirs
="$ltrpathdirs $found_dir"
6975 if test "$hardcode_direct" = yes; then
6976 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6978 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6979 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6981 for x
in $rpathdirs; do
6982 if test "X$x" = "X$found_dir"; then
6987 if test -z "$haveit"; then
6988 rpathdirs
="$rpathdirs $found_dir"
6992 for x
in $LDFLAGS $LIBICONV; do
6994 acl_save_prefix
="$prefix"
6995 prefix
="$acl_final_prefix"
6996 acl_save_exec_prefix
="$exec_prefix"
6997 exec_prefix
="$acl_final_exec_prefix"
6999 exec_prefix
="$acl_save_exec_prefix"
7000 prefix
="$acl_save_prefix"
7002 if test "X$x" = "X-L$found_dir"; then
7007 if test -z "$haveit"; then
7008 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7010 if test "$hardcode_minus_L" != no
; then
7011 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7013 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7019 if test "X$found_a" != "X"; then
7020 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7022 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7025 additional_includedir
=
7026 case "$found_dir" in
7028 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7029 additional_includedir
="$basedir/include"
7032 if test "X$additional_includedir" != "X"; then
7033 if test "X$additional_includedir" != "X/usr/include"; then
7035 if test "X$additional_includedir" = "X/usr/local/include"; then
7036 if test -n "$GCC"; then
7038 linux
*) haveit
=yes;;
7042 if test -z "$haveit"; then
7043 for x
in $CPPFLAGS $INCICONV; do
7045 acl_save_prefix
="$prefix"
7046 prefix
="$acl_final_prefix"
7047 acl_save_exec_prefix
="$exec_prefix"
7048 exec_prefix
="$acl_final_exec_prefix"
7050 exec_prefix
="$acl_save_exec_prefix"
7051 prefix
="$acl_save_prefix"
7053 if test "X$x" = "X-I$additional_includedir"; then
7058 if test -z "$haveit"; then
7059 if test -d "$additional_includedir"; then
7060 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7066 if test -n "$found_la"; then
7067 save_libdir
="$libdir"
7069 */* |
*\\*) .
"$found_la" ;;
7070 *) .
"./$found_la" ;;
7072 libdir
="$save_libdir"
7073 for dep
in $dependency_libs; do
7076 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7077 if test "X$additional_libdir" != "X/usr/lib"; then
7079 if test "X$additional_libdir" = "X/usr/local/lib"; then
7080 if test -n "$GCC"; then
7082 linux
*) haveit
=yes;;
7086 if test -z "$haveit"; then
7088 for x
in $LDFLAGS $LIBICONV; do
7090 acl_save_prefix
="$prefix"
7091 prefix
="$acl_final_prefix"
7092 acl_save_exec_prefix
="$exec_prefix"
7093 exec_prefix
="$acl_final_exec_prefix"
7095 exec_prefix
="$acl_save_exec_prefix"
7096 prefix
="$acl_save_prefix"
7098 if test "X$x" = "X-L$additional_libdir"; then
7103 if test -z "$haveit"; then
7104 if test -d "$additional_libdir"; then
7105 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7109 for x
in $LDFLAGS $LTLIBICONV; do
7111 acl_save_prefix
="$prefix"
7112 prefix
="$acl_final_prefix"
7113 acl_save_exec_prefix
="$exec_prefix"
7114 exec_prefix
="$acl_final_exec_prefix"
7116 exec_prefix
="$acl_save_exec_prefix"
7117 prefix
="$acl_save_prefix"
7119 if test "X$x" = "X-L$additional_libdir"; then
7124 if test -z "$haveit"; then
7125 if test -d "$additional_libdir"; then
7126 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7133 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7134 if test "$enable_rpath" != no
; then
7136 for x
in $rpathdirs; do
7137 if test "X$x" = "X$dir"; then
7142 if test -z "$haveit"; then
7143 rpathdirs
="$rpathdirs $dir"
7146 for x
in $ltrpathdirs; do
7147 if test "X$x" = "X$dir"; then
7152 if test -z "$haveit"; then
7153 ltrpathdirs
="$ltrpathdirs $dir"
7158 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7161 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7164 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7165 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7171 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
7172 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7173 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7175 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7176 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7183 if test "X$rpathdirs" != "X"; then
7184 if test -n "$hardcode_libdir_separator"; then
7186 for found_dir
in $rpathdirs; do
7187 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7189 acl_save_libdir
="$libdir"
7191 eval flag
=\"$hardcode_libdir_flag_spec\"
7192 libdir
="$acl_save_libdir"
7193 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7195 for found_dir
in $rpathdirs; do
7196 acl_save_libdir
="$libdir"
7198 eval flag
=\"$hardcode_libdir_flag_spec\"
7199 libdir
="$acl_save_libdir"
7200 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7204 if test "X$ltrpathdirs" != "X"; then
7205 for found_dir
in $ltrpathdirs; do
7206 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7217 $as_echo_n "checking for iconv... " >&6; }
7218 if ${am_cv_func_iconv+:} false
; then :
7219 $as_echo_n "(cached) " >&6
7222 am_cv_func_iconv
="no, consider installing GNU libiconv"
7224 am_save_CPPFLAGS
="$CPPFLAGS"
7225 CPPFLAGS
="$CPPFLAGS $INCICONV"
7226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7233 iconv_t cd = iconv_open("","");
7234 iconv(cd,NULL,NULL,NULL,NULL);
7240 if ac_fn_cxx_try_link
"$LINENO"; then :
7241 am_cv_func_iconv
=yes
7243 rm -f core conftest.err conftest.
$ac_objext \
7244 conftest
$ac_exeext conftest.
$ac_ext
7245 CPPFLAGS
="$am_save_CPPFLAGS"
7247 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
7248 for _libs
in .libs _libs
; do
7249 am_save_CPPFLAGS
="$CPPFLAGS"
7250 am_save_LIBS
="$LIBS"
7251 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
7252 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7260 iconv_t cd = iconv_open("","");
7261 iconv(cd,NULL,NULL,NULL,NULL);
7267 if ac_fn_cxx_try_link
"$LINENO"; then :
7268 INCICONV
="-I../libiconv/include"
7269 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
7270 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
7272 am_cv_func_iconv
=yes
7274 rm -f core conftest.err conftest.
$ac_objext \
7275 conftest
$ac_exeext conftest.
$ac_ext
7276 CPPFLAGS
="$am_save_CPPFLAGS"
7277 LIBS
="$am_save_LIBS"
7278 if test "$am_cv_func_iconv" = "yes"; then
7284 if test "$am_cv_func_iconv" != yes; then
7285 am_save_CPPFLAGS
="$CPPFLAGS"
7286 am_save_LIBS
="$LIBS"
7287 CPPFLAGS
="$CPPFLAGS $INCICONV"
7288 LIBS
="$LIBS $LIBICONV"
7289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7296 iconv_t cd = iconv_open("","");
7297 iconv(cd,NULL,NULL,NULL,NULL);
7303 if ac_fn_cxx_try_link
"$LINENO"; then :
7305 am_cv_func_iconv
=yes
7307 rm -f core conftest.err conftest.
$ac_objext \
7308 conftest
$ac_exeext conftest.
$ac_ext
7309 CPPFLAGS
="$am_save_CPPFLAGS"
7310 LIBS
="$am_save_LIBS"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7315 $as_echo "$am_cv_func_iconv" >&6; }
7316 if test "$am_cv_func_iconv" = yes; then
7318 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7321 if test "$am_cv_lib_iconv" = yes; then
7323 for element
in $INCICONV; do
7325 for x
in $CPPFLAGS; do
7327 acl_save_prefix
="$prefix"
7328 prefix
="$acl_final_prefix"
7329 acl_save_exec_prefix
="$exec_prefix"
7330 exec_prefix
="$acl_final_exec_prefix"
7332 exec_prefix
="$acl_save_exec_prefix"
7333 prefix
="$acl_save_prefix"
7335 if test "X$x" = "X$element"; then
7340 if test -z "$haveit"; then
7341 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7346 $as_echo_n "checking how to link with libiconv... " >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7348 $as_echo "$LIBICONV" >&6; }
7356 if test "$am_cv_func_iconv" = yes; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7358 $as_echo_n "checking for iconv declaration... " >&6; }
7359 if ${am_cv_proto_iconv+:} false
; then :
7360 $as_echo_n "(cached) " >&6
7363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7372 #if defined(__STDC__) || defined(__cplusplus)
7373 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7386 if ac_fn_cxx_try_compile
"$LINENO"; then :
7387 am_cv_proto_iconv_arg1
=""
7389 am_cv_proto_iconv_arg1
="const"
7391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7392 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7395 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7397 }$am_cv_proto_iconv" >&5
7399 }$am_cv_proto_iconv" >&6; }
7401 cat >>confdefs.h
<<_ACEOF
7402 #define ICONV_CONST $am_cv_proto_iconv_arg1
7408 ac_cpp
='$CPP $CPPFLAGS'
7409 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7414 # More defines and substitutions.
7415 PACKAGE
="$PACKAGE_TARNAME"
7417 cat >>confdefs.h
<<_ACEOF
7418 #define PACKAGE "$PACKAGE"
7423 if test "x$enable_nls" != xno
; then
7424 USED_CATALOGS
='$(CATALOGS)'
7430 # Check whether --enable-maintainer-mode was given.
7431 if test "${enable_maintainer_mode+set}" = set; then :
7432 enableval
=$enable_maintainer_mode;
7434 enable_maintainer_mode
=no
7438 if test "x$enable_maintainer_mode" = xno
; then
7445 # Enable expensive internal checks
7447 if test -f $srcdir/..
/gcc
/DEV-PHASE \
7448 && test x
"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental
; then
7452 # Check whether --enable-checking was given.
7453 if test "${enable_checking+set}" = set; then :
7454 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7457 # Determine the default checks.
7458 if test x
$is_release = x
; then
7459 ac_checking_flags
=yes
7461 ac_checking_flags
=release
7465 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7466 for check
in release
$ac_checking_flags
7469 # these set all the flags to specific states
7470 yes|all
) ac_checking
=1 ; ac_assert_checking
=1 ; ac_valgrind_checking
= ;;
7471 no|none
) ac_checking
= ; ac_assert_checking
= ; ac_valgrind_checking
= ;;
7472 release
) ac_checking
= ; ac_assert_checking
=1 ; ac_valgrind_checking
= ;;
7473 # these enable particular checks
7474 assert
) ac_assert_checking
=1 ;;
7475 misc
) ac_checking
=1 ;;
7476 valgrind
) ac_valgrind_checking
=1 ;;
7483 if test x
$ac_checking != x
; then
7485 $as_echo "#define CHECKING_P 1" >>confdefs.h
7488 $as_echo "#define CHECKING_P 0" >>confdefs.h
7492 if test x
$ac_assert_checking != x
; then
7494 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7498 if test x
$ac_valgrind_checking != x
; then
7500 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7504 # Check whether --enable-canonical-system-headers was given.
7505 if test "${enable_canonical_system_headers+set}" = set; then :
7506 enableval
=$enable_canonical_system_headers;
7508 enable_canonical_system_headers
=yes
7511 if test $enable_canonical_system_headers != no
; then
7513 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7525 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7530 if ac_fn_c_try_compile
"$LINENO"; then :
7532 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7538 # Enable --enable-host-shared.
7539 # Check whether --enable-host-shared was given.
7540 if test "${enable_host_shared+set}" = set; then :
7541 enableval
=$enable_host_shared; PICFLAG
=-fPIC
7548 # Enable Intel CET on Intel CET enabled host if jit is enabled.
7549 # Check whether --enable-cet was given.
7550 if test "${enable_cet+set}" = set; then :
7551 enableval
=$enable_cet;
7552 case "$enableval" in
7554 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
7563 $as_echo_n "checking for CET support... " >&6; }
7566 i
[34567]86-*-linux* | x86_64-
*-linux*)
7568 cet_save_CFLAGS
="$CFLAGS"
7569 CFLAGS
="$CFLAGS -fcf-protection"
7570 case "$enable_cet" in
7572 # Check if target supports multi-byte NOPs
7573 # and if compiler and assembler support CET.
7574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7581 #if !defined(__SSE2__)
7582 #error target does not support multi-byte NOPs
7591 if ac_fn_c_try_compile
"$LINENO"; then :
7596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7599 # Check if compiler and assembler support CET.
7600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7611 if ac_fn_c_try_compile
"$LINENO"; then :
7616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7617 if test $support_cet = "no"; then
7618 if test x
$enable_bootstrap != xno \
7619 && test -z "${with_build_subdir}" \
7620 && (test ! -f ..
/stage_current \
7621 ||
test `cat ../stage_current` != "stage1"); then
7622 # Require CET support only for the final GCC build.
7623 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
7625 # Don't enable CET without CET support for non-bootstrap
7626 # build, in stage1 nor for build support.
7632 CFLAGS
="$cet_save_CFLAGS"
7640 cet_save_CFLAGS
="$CFLAGS"
7641 CFLAGS
="$CFLAGS -fcf-protection=none"
7642 cet_save_LDFLAGS
="$LDFLAGS"
7643 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
7644 if test x
$may_have_cet = xyes
; then
7645 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
7646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7657 if ac_fn_c_try_link
"$LINENO"; then :
7662 rm -f core conftest.err conftest.
$ac_objext \
7663 conftest
$ac_exeext conftest.
$ac_ext
7666 if test x
$may_have_cet = xyes
; then
7667 if test x
$cross_compiling = xno
; then
7668 if test "$cross_compiling" = yes; then :
7669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7671 as_fn_error $?
"cannot run test program while cross compiling
7672 See \`config.log' for more details" "$LINENO" 5; }
7674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7685 if ac_fn_c_try_run
"$LINENO"; then :
7686 have_multi_byte_nop
=yes
7688 have_multi_byte_nop
=no
7690 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7691 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7695 if test x
$have_multi_byte_nop = xyes
; then
7696 if test "$cross_compiling" = yes; then :
7697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7699 as_fn_error $?
"cannot run test program while cross compiling
7700 See \`config.log' for more details" "$LINENO" 5; }
7702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7711 __attribute__ ((noinline, noclone))
7712 xxx (void (*f) (void))
7718 __attribute__ ((noinline, noclone))
7732 if ac_fn_c_try_run
"$LINENO"; then :
7737 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7738 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7742 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
7743 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
7747 # Enable CET in cross compiler if possible so that it will run on both
7748 # CET and non-CET hosts.
7751 if test x
$enable_cet = xyes
; then
7752 CET_HOST_FLAGS
="-fcf-protection"
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7754 $as_echo "yes" >&6; }
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7759 CFLAGS
="$cet_save_CFLAGS"
7760 LDFLAGS
="$cet_save_LDFLAGS"
7762 case x
$enable_languages in
7771 # Check whether --enable-valgrind-annotations was given.
7772 if test "${enable_valgrind_annotations+set}" = set; then :
7773 enableval
=$enable_valgrind_annotations;
7775 enable_valgrind_annotations
=no
7778 if test x
$enable_valgrind_annotations != xno \
7779 ||
test x
$ac_valgrind_checking != x
; then
7780 if (test $have_valgrind_h = no \
7781 && test $gcc_cv_header_memcheck_h = no \
7782 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7783 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7786 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7792 ac_config_headers
="$ac_config_headers config.h:config.in"
7794 ac_config_files
="$ac_config_files Makefile"
7796 cat >confcache
<<\_ACEOF
7797 # This file is a shell script that caches the results of configure
7798 # tests run on this system so they can be shared between configure
7799 # scripts and configure runs, see configure's option --config-cache.
7800 # It is not useful on other systems. If it contains results you don't
7801 # want to keep, you may remove or edit it.
7803 # config.status only pays attention to the cache file if you give it
7804 # the --recheck option to rerun configure.
7806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7812 # The following way of writing the cache mishandles newlines in values,
7813 # but we know of no workaround that is simple, portable, and efficient.
7814 # So, we kill variables containing newlines.
7815 # Ultrix sh set writes to stderr and can't be redirected directly,
7816 # and sets the high bit in the cache file unless we assign to the vars.
7818 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7819 eval ac_val
=\$
$ac_var
7823 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7824 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7827 _ | IFS | as_nl
) ;; #(
7828 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7829 *) { eval $ac_var=; unset $ac_var;} ;;
7835 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7836 *${as_nl}ac_space
=\
*)
7837 # `set' does not quote correctly, so add quotes: double-quote
7838 # substitution turns \\\\ into \\, and sed turns \\ into \.
7841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7844 # `set' quotes correctly as required by POSIX, so do not add quotes.
7845 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7854 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7856 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7858 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7859 if test -w "$cache_file"; then
7860 if test "x$cache_file" != "x/dev/null"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7862 $as_echo "$as_me: updating cache $cache_file" >&6;}
7863 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7864 cat confcache
>"$cache_file"
7866 case $cache_file in #(
7868 mv -f confcache
"$cache_file"$$
&&
7869 mv -f "$cache_file"$$
"$cache_file" ;; #(
7871 mv -f confcache
"$cache_file" ;;
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7877 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7882 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7883 # Let make expand exec_prefix.
7884 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7886 DEFS
=-DHAVE_CONFIG_H
7891 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7892 # 1. Remove the extension, and $U if already installed.
7893 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7894 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7895 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7896 # will be set to the directory where LIBOBJS objects are built.
7897 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7898 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7902 LTLIBOBJS
=$ac_ltlibobjs
7907 : "${CONFIG_STATUS=./config.status}"
7909 ac_clean_files_save
=$ac_clean_files
7910 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7912 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7914 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7916 # Generated by $as_me.
7917 # Run this file to recreate the current configuration.
7918 # Compiler output produced by configure, useful for debugging
7919 # configure, is in config.log if it exists.
7925 SHELL=\${CONFIG_SHELL-$SHELL}
7928 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7929 ## -------------------- ##
7930 ## M4sh Initialization. ##
7931 ## -------------------- ##
7933 # Be more Bourne compatible
7934 DUALCASE
=1; export DUALCASE
# for MKS sh
7935 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7938 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7939 # is contrary to our usage. Disable this feature.
7940 alias -g '${1+"$@"}'='"$@"'
7941 setopt NO_GLOB_SUBST
7943 case `(set -o) 2>/dev/null` in #(
7955 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7956 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7958 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7959 # Prefer a ksh shell builtin over an external printf program on Solaris,
7960 # but without wasting forks for bash or zsh.
7961 if test -z "$BASH_VERSION$ZSH_VERSION" \
7962 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7963 as_echo='print
-r --'
7964 as_echo_n='print
-rn --'
7965 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7966 as_echo='printf %s
\n'
7967 as_echo_n='printf %s
'
7969 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7970 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7971 as_echo_n='/usr
/ucb
/echo -n'
7973 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7974 as_echo_n_body='eval
7978 expr "X$arg" : "X\\(.*\\)$as_nl";
7979 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7981 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7983 export as_echo_n_body
7984 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7987 as_echo='sh
-c $as_echo_body as_echo
'
7990 # The user is always right.
7991 if test "${PATH_SEPARATOR+set}" != set; then
7993 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7994 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8001 # We need space, tab and new line, in precisely that order. Quoting is
8002 # there to prevent editors from complaining about space-tab.
8003 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8004 # splitting by setting IFS to empty value.)
8007 # Find who we are. Look in the path if we contain no directory separator.
8010 *[\\/]* ) as_myself=$0 ;;
8011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 test -z "$as_dir" && as_dir=.
8016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8022 # We did not find ourselves, most probably we were run as `sh COMMAND'
8023 # in which case we are not to be found in the path.
8024 if test "x$as_myself" = x
; then
8027 if test ! -f "$as_myself"; then
8028 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8032 # Unset variables that we do not need and which cause bugs (e.g. in
8033 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8034 # suppresses any "Segmentation fault" message there. '((' could
8035 # trigger a bug in pdksh 5.2.14.
8036 for as_var
in BASH_ENV ENV MAIL MAILPATH
8037 do eval test x\
${$as_var+set} = xset \
8038 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8051 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8054 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8055 # ----------------------------------------
8056 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8057 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8058 # script with STATUS, using 1 if that was 0.
8061 as_status
=$1; test $as_status -eq 0 && as_status
=1
8063 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8064 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8066 $as_echo "$as_me: error: $2" >&2
8067 as_fn_exit
$as_status
8071 # as_fn_set_status STATUS
8072 # -----------------------
8073 # Set $? to STATUS, without forking.
8077 } # as_fn_set_status
8081 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8091 # Portably unset VAR.
8094 { eval $1=; unset $1;}
8096 as_unset
=as_fn_unset
8097 # as_fn_append VAR VALUE
8098 # ----------------------
8099 # Append the text in VALUE to the end of the definition contained in VAR. Take
8100 # advantage of any shell optimizations that allow amortized linear growth over
8101 # repeated appends, instead of the typical quadratic growth present in naive
8103 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8104 eval 'as_fn_append ()
8115 # as_fn_arith ARG...
8116 # ------------------
8117 # Perform arithmetic evaluation on the ARGs, and store the result in the
8118 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8119 # must be portable across $(()) and expr.
8120 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8121 eval 'as_fn_arith ()
8128 as_val
=`expr "$@" || test $? -eq 1`
8133 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8134 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8140 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8141 as_basename
=basename
8146 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8152 as_me
=`$as_basename -- "$0" ||
8153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8154 X"$0" : 'X\(//\)$' \| \
8155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8157 sed '/^.*\/\([^/][^/]*\)\/*$/{
8171 # Avoid depending upon Character Ranges.
8172 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8173 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8174 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8175 as_cr_digits
='0123456789'
8176 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8178 ECHO_C
= ECHO_N
= ECHO_T
=
8179 case `echo -n x` in #(((((
8181 case `echo 'xy\c'` in
8182 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8184 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8191 rm -f conf$$ conf$$.exe conf$$.
file
8192 if test -d conf$$.dir
; then
8193 rm -f conf$$.dir
/conf$$.
file
8196 mkdir conf$$.dir
2>/dev
/null
8198 if (echo >conf$$.
file) 2>/dev
/null
; then
8199 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8201 # ... but there are two gotchas:
8202 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8203 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8204 # In both cases, we have to default to `cp -pR'.
8205 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8207 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8215 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8216 rmdir conf$$.dir
2>/dev
/null
8221 # Create "$as_dir" as a directory, including parents if necessary.
8226 -*) as_dir
=.
/$as_dir;;
8228 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8232 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8233 *) as_qdir
=$as_dir;;
8235 as_dirs
="'$as_qdir' $as_dirs"
8236 as_dir
=`$as_dirname -- "$as_dir" ||
8237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8238 X"$as_dir" : 'X\(//\)[^/]' \| \
8239 X"$as_dir" : 'X\(//\)$' \| \
8240 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8241 $as_echo X"$as_dir" |
8242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8259 test -d "$as_dir" && break
8261 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8262 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8266 if mkdir
-p .
2>/dev
/null
; then
8267 as_mkdir_p
='mkdir -p "$as_dir"'
8269 test -d .
/-p && rmdir .
/-p
8274 # as_fn_executable_p FILE
8275 # -----------------------
8276 # Test if FILE is an executable regular file.
8277 as_fn_executable_p
()
8279 test -f "$1" && test -x "$1"
8280 } # as_fn_executable_p
8282 as_executable_p
=as_fn_executable_p
8284 # Sed expression to map a string onto a valid CPP name.
8285 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8287 # Sed expression to map a string onto a valid variable name.
8288 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8292 ## ----------------------------------- ##
8293 ## Main body of $CONFIG_STATUS script. ##
8294 ## ----------------------------------- ##
8296 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8299 # Save the log message, to keep $0 and so on meaningful, and to
8300 # report actual input values of CONFIG_FILES etc. instead of their
8301 # values after options handling.
8303 This file was extended by cpplib $as_me , which was
8304 generated by GNU Autoconf 2.69. Invocation command line was
8306 CONFIG_FILES = $CONFIG_FILES
8307 CONFIG_HEADERS = $CONFIG_HEADERS
8308 CONFIG_LINKS = $CONFIG_LINKS
8309 CONFIG_COMMANDS = $CONFIG_COMMANDS
8312 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8317 case $ac_config_files in *"
8318 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8321 case $ac_config_headers in *"
8322 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8327 # Files that config.status was made for.
8328 config_files="$ac_config_files"
8329 config_headers="$ac_config_headers"
8330 config_commands="$ac_config_commands"
8334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8336 \`$as_me' instantiates files and other configuration actions
8337 from templates according to the current configuration. Unless the files
8338 and actions are specified as TAGs, all are instantiated by default.
8340 Usage: $0 [OPTION]... [TAG]...
8342 -h, --help print this help, then exit
8343 -V, --version print version number and configuration settings, then exit
8344 --config print configuration, then exit
8345 -q, --quiet, --silent
8346 do not print progress messages
8347 -d, --debug don't remove temporary files
8348 --recheck update $as_me by reconfiguring in the same conditions
8349 --file=FILE[:TEMPLATE]
8350 instantiate the configuration file FILE
8351 --header=FILE[:TEMPLATE]
8352 instantiate the configuration header FILE
8354 Configuration files:
8357 Configuration headers:
8360 Configuration commands:
8363 Report bugs to <gcc-bugs@gcc.gnu.org>."
8366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8367 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8369 cpplib config.status
8370 configured by $0, generated by GNU Autoconf 2.69,
8371 with options \\"\$ac_cs_config\\"
8373 Copyright (C) 2012 Free Software Foundation, Inc.
8374 This config.status script is free software; the Free Software Foundation
8375 gives unlimited permission to copy, distribute and modify it."
8380 test -n "\$AWK" || AWK=awk
8383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8384 # The default lists apply if the user does not specify any file.
8390 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8391 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8395 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8407 # Handling of the options.
8408 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8410 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8411 $as_echo "$ac_cs_version"; exit ;;
8412 --config |
--confi |
--conf |
--con |
--co |
--c )
8413 $as_echo "$ac_cs_config"; exit ;;
8414 --debug |
--debu |
--deb |
--de |
--d |
-d )
8416 --file |
--fil |
--fi |
--f )
8419 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8420 '') as_fn_error $?
"missing file argument" ;;
8422 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8423 ac_need_defaults
=false
;;
8424 --header |
--heade |
--head |
--hea )
8427 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8429 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8430 ac_need_defaults
=false
;;
8432 # Conflict between --help and --header
8433 as_fn_error $?
"ambiguous option: \`$1'
8434 Try \`$0 --help' for more information.";;
8435 --help |
--hel |
-h )
8436 $as_echo "$ac_cs_usage"; exit ;;
8437 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8438 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8442 -*) as_fn_error $?
"unrecognized option: \`$1'
8443 Try \`$0 --help' for more information." ;;
8445 *) as_fn_append ac_config_targets
" $1"
8446 ac_need_defaults
=false
;;
8452 ac_configure_extra_args
=
8454 if $ac_cs_silent; then
8456 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8461 if \$ac_cs_recheck; then
8462 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8464 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8465 CONFIG_SHELL='$SHELL'
8471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8476 ## Running $as_me. ##
8482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8486 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8492 # Handling of arguments.
8493 for ac_config_target
in $ac_config_targets
8495 case $ac_config_target in
8496 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
8497 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8498 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8500 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8505 # If the user did not use the arguments to specify the items to instantiate,
8506 # then the envvar interface is used. Set only those that are not.
8507 # We use the long form for the default assignment because of an extremely
8508 # bizarre bug on SunOS 4.1.3.
8509 if $ac_need_defaults; then
8510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8511 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8512 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8515 # Have a temporary directory for convenience. Make it in the build tree
8516 # simply because there is no reason against having it here, and in addition,
8517 # creating and moving files from /tmp can sometimes cause problems.
8518 # Hook for its removal unless debugging.
8519 # Note that there is a small window in which the directory will not be cleaned:
8520 # after its creation but before its name has been assigned to `$tmp'.
8524 trap 'exit_status=$?
8526 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8528 trap 'as_fn_exit 1' 1 2 13 15
8530 # Create a (secure) tmp directory for tmp files.
8533 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8537 tmp
=.
/conf$$
-$RANDOM
8538 (umask 077 && mkdir
"$tmp")
8539 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8542 # Set up the scripts for CONFIG_FILES section.
8543 # No need to generate them if there are no CONFIG_FILES.
8544 # This happens for instance with `./config.status config.h'.
8545 if test -n "$CONFIG_FILES"; then
8548 ac_cr
=`echo X | tr X '\015'`
8549 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8550 # But we know of no other shell where ac_cr would be empty at this
8551 # point, so we can use a bashism as a fallback.
8552 if test "x$ac_cr" = x
; then
8553 eval ac_cr
=\$
\'\\r
\'
8555 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8556 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8562 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8567 echo "cat >conf$$subs.awk <<_ACEOF" &&
8568 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8571 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8572 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8574 for ac_last_try in false false false false false :; do
8575 . ./conf$$subs.sh ||
8576 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8578 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8579 if test $ac_delim_n = $ac_delim_num; then
8581 elif $ac_last_try; then
8582 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8584 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8590 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8594 s/^/S["/; s
/!.
*/"]=/
8604 s/\(.\{148\}\)..*/\1/
8606 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8611 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8618 s/\(.\{148\}\)..*/\1/
8620 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8624 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8629 ' <conf$$subs.awk | sed '
8634 ' >>$CONFIG_STATUS || ac_write_fail=1
8635 rm -f conf$$subs.awk
8636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8638 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8639 for (key in S) S_is_set[key] = 1
8645 nfields = split(line, field, "@
")
8647 len = length(field[1])
8648 for (i = 2; i < nfields; i++) {
8650 keylen = length(key)
8651 if (S_is_set[key]) {
8653 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8654 len += length(value) + length(field[++i])
8665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8666 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8667 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8670 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8671 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8674 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8675 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8676 # trailing colons and then remove the whole line if VPATH becomes empty
8677 # (actually we leave an empty line to preserve line numbers).
8678 if test "x
$srcdir" = x.; then
8679 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8698 fi # test -n "$CONFIG_FILES"
8700 # Set up the scripts for CONFIG_HEADERS section.
8701 # No need to generate them if there are no CONFIG_HEADERS.
8702 # This happens for instance with `./config.status Makefile'.
8703 if test -n "$CONFIG_HEADERS"; then
8704 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8708 # Transform confdefs.h into an awk script `defines.awk', embedded as
8709 # here-document in config.status, that substitutes the proper values into
8710 # config.h.in to produce config.h.
8712 # Create a delimiter string that does not exist in confdefs.h, to ease
8713 # handling of long lines.
8715 for ac_last_try in false false :; do
8716 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8717 if test -z "$ac_tt"; then
8719 elif $ac_last_try; then
8720 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8722 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8726 # For the awk script, D is an array of macro values keyed by name,
8727 # likewise P contains macro parameters if any. Preserve backslash
8728 # newline sequences.
8730 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8732 s/.\{148\}/&'"$ac_delim"'/g
8735 s/^[ ]*#[ ]*define[ ][ ]*/ /
8742 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8744 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8749 D["\
1"]=" \
3\\\\\\n
"\\/p
8751 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8756 s/.\{148\}/&'"$ac_delim"'/g
8761 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8764 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8766 ' <confdefs.h | sed '
8767 s/'"$ac_delim"'/"\\\
8768 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8771 for (key in D) D_is_set[key] = 1
8774 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8776 split(line, arg, " ")
8777 if (arg[1] == "#") {
8781 defundef
= substr
(arg
[1], 2)
8784 split(mac1
, mac2
, "(") #)
8786 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8787 if (D_is_set
[macro
]) {
8788 # Preserve the white space surrounding the "#".
8789 print prefix
"define", macro P
[macro
] D
[macro
]
8792 # Replace #undef with comments. This is necessary, for example,
8793 # in the case of _POSIX_SOURCE, which is predefined and required
8794 # on some systems where configure will not decide to define it.
8795 if (defundef
== "undef") {
8796 print
"/*", prefix defundef
, macro
, "*/"
8804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8805 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8806 fi # test -n "$CONFIG_HEADERS"
8809 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8814 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8816 case $ac_mode$ac_tag in
8818 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8819 :[FH
]-) ac_tag
=-:-;;
8820 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8837 -) ac_f
="$ac_tmp/stdin";;
8838 *) # Look for the file first in the build tree, then in the source tree
8839 # (if the path is not absolute). The absolute path cannot be DOS-style,
8840 # because $ac_f cannot contain `:'.
8844 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8846 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8848 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8849 as_fn_append ac_file_inputs
" '$ac_f'"
8852 # Let's still pretend it is `configure' which instantiates (i.e., don't
8853 # use $as_me), people would be surprised to read:
8854 # /* config.h. Generated by config.status. */
8855 configure_input
='Generated from '`
8856 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8858 if test x
"$ac_file" != x-
; then
8859 configure_input
="$ac_file. $configure_input"
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8861 $as_echo "$as_me: creating $ac_file" >&6;}
8863 # Neutralize special characters interpreted by sed in replacement strings.
8864 case $configure_input in #(
8865 *\
&* |
*\|
* |
*\\* )
8866 ac_sed_conf_input
=`$as_echo "$configure_input" |
8867 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8868 *) ac_sed_conf_input
=$configure_input;;
8872 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8873 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8878 ac_dir
=`$as_dirname -- "$ac_file" ||
8879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8880 X"$ac_file" : 'X\(//\)[^/]' \| \
8881 X"$ac_file" : 'X\(//\)$' \| \
8882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8883 $as_echo X"$ac_file" |
8884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8901 as_dir
="$ac_dir"; as_fn_mkdir_p
8905 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8907 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8908 # A ".." for each directory in $ac_dir_suffix.
8909 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8910 case $ac_top_builddir_sub in
8911 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8912 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8915 ac_abs_top_builddir
=$ac_pwd
8916 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8917 # for backward compatibility:
8918 ac_top_builddir
=$ac_top_build_prefix
8921 .
) # We are building in place.
8923 ac_top_srcdir
=$ac_top_builddir_sub
8924 ac_abs_top_srcdir
=$ac_pwd ;;
8925 [\\/]* | ?
:[\\/]* ) # Absolute name.
8926 ac_srcdir
=$srcdir$ac_dir_suffix;
8927 ac_top_srcdir
=$srcdir
8928 ac_abs_top_srcdir
=$srcdir ;;
8930 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8931 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8932 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8934 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8944 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8945 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8950 # If the template does not know about datarootdir, expand it.
8951 # FIXME: This hack should be removed a few years after 2.60.
8952 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8963 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8964 *datarootdir
*) ac_datarootdir_seen
=yes;;
8965 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8967 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8970 ac_datarootdir_hack='
8971 s&@datadir@&$datadir&g
8972 s&@docdir@&$docdir&g
8973 s&@infodir@&$infodir&g
8974 s&@localedir@&$localedir&g
8975 s&@mandir@&$mandir&g
8976 s&\\\${datarootdir}&$datarootdir&g' ;;
8980 # Neutralize VPATH when `$srcdir' = `.'.
8981 # Shell code in configure.ac might set extrasub.
8982 # FIXME: do we really want to maintain this feature?
8983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8984 ac_sed_extra="$ac_vpsub
8987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8989 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8990 s|@configure_input@|
$ac_sed_conf_input|
;t t
8991 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8992 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8993 s
&@srcdir@
&$ac_srcdir&;t t
8994 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8995 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8996 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8997 s
&@builddir@
&$ac_builddir&;t t
8998 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8999 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9000 s
&@INSTALL@
&$ac_INSTALL&;t t
9001 $ac_datarootdir_hack
9003 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
9004 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9006 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9007 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9008 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9009 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9011 which seems to be undefined. Please make sure it is defined" >&5
9012 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9013 which seems to be undefined. Please make sure it is defined" >&2;}
9015 rm -f "$ac_tmp/stdin"
9017 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9018 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9026 if test x"$ac_file" != x-; then
9028 $as_echo "/* $configure_input */" \
9029 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9030 } >"$ac_tmp/config.h" \
9031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9032 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9034 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9037 mv "$ac_tmp/config.h" "$ac_file" \
9038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9041 $as_echo "/* $configure_input */" \
9042 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9043 || as_fn_error $? "could not create -" "$LINENO" 5
9047 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9048 $as_echo "$as_me: executing $ac_file commands" >&6;}
9053 case $ac_file$ac_mode in
9054 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9055 "config.h":H) echo timestamp > stamp-h1 ;;
9063 ac_clean_files=$ac_clean_files_save
9065 test $ac_write_fail = 0 ||
9066 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9069 # configure is writing to config.log, and then calls config.status.
9070 # config.status does its own redirection, appending to config.log.
9071 # Unfortunately, on DOS this fails, as config.log is still kept open
9072 # by configure, so config.status won't be able to
write to it
; its
9073 # output is simply discarded. So we exec the FD to /dev/null,
9074 # effectively closing config.log, so it can be properly (re)opened and
9075 # appended to by config.status. When coming back to configure, we
9076 # need to make the FD available again.
9077 if test "$no_create" != yes; then
9079 ac_config_status_args
=
9080 test "$silent" = yes &&
9081 ac_config_status_args
="$ac_config_status_args --quiet"
9083 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9085 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9086 # would make configure fail if this is the last instruction.
9087 $ac_cs_success || as_fn_exit
1
9089 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9091 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}