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
714 program_transform_name
727 enable_option_checking
733 enable_maintainer_mode
735 enable_canonical_system_headers
737 enable_valgrind_annotations
739 ac_precious_vars
='build_alias
753 # Initialize some variables set by options.
755 ac_init_version
=false
756 ac_unrecognized_opts
=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
767 program_transform_name
=s
,x
,x
,
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir
='${exec_prefix}/bin'
782 sbindir
='${exec_prefix}/sbin'
783 libexecdir
='${exec_prefix}/libexec'
784 datarootdir
='${prefix}/share'
785 datadir
='${datarootdir}'
786 sysconfdir
='${prefix}/etc'
787 sharedstatedir
='${prefix}/com'
788 localstatedir
='${prefix}/var'
789 includedir
='${prefix}/include'
790 oldincludedir
='/usr/include'
791 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir
='${datarootdir}/info'
797 libdir
='${exec_prefix}/lib'
798 localedir
='${datarootdir}/locale'
799 mandir
='${datarootdir}/man'
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\
$ac_option
813 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 # Accept the important Cygnus configure options, so we can diagnose typos.
820 case $ac_dashdash$ac_option in
824 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
826 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
829 -build |
--build |
--buil |
--bui |
--bu)
830 ac_prev
=build_alias
;;
831 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
832 build_alias
=$ac_optarg ;;
834 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
835 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
836 ac_prev
=cache_file
;;
837 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
838 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
839 cache_file
=$ac_optarg ;;
842 cache_file
=config.cache
;;
844 -datadir |
--datadir |
--datadi |
--datad)
846 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
847 datadir
=$ac_optarg ;;
849 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
850 |
--dataroo |
--dataro |
--datar)
851 ac_prev
=datarootdir
;;
852 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
853 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
854 datarootdir
=$ac_optarg ;;
856 -disable-* |
--disable-*)
857 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
860 as_fn_error $?
"invalid feature name: $ac_useropt"
861 ac_useropt_orig
=$ac_useropt
862 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
867 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep
=', ';;
870 eval enable_
$ac_useropt=no
;;
872 -docdir |
--docdir |
--docdi |
--doc |
--do)
874 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
877 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
879 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
882 -enable-* |
--enable-*)
883 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
886 as_fn_error $?
"invalid feature name: $ac_useropt"
887 ac_useropt_orig
=$ac_useropt
888 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894 ac_unrecognized_sep
=', ';;
896 eval enable_
$ac_useropt=\
$ac_optarg ;;
898 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
899 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
900 |
--exec |
--exe |
--ex)
901 ac_prev
=exec_prefix
;;
902 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
903 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
904 |
--exec=* |
--exe=* |
--ex=*)
905 exec_prefix
=$ac_optarg ;;
907 -gas |
--gas |
--ga |
--g)
908 # Obsolete; use --with-gas.
911 -help |
--help |
--hel |
--he |
-h)
913 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
914 ac_init_help
=recursive
;;
915 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
916 ac_init_help
=short
;;
918 -host |
--host |
--hos |
--ho)
919 ac_prev
=host_alias
;;
920 -host=* |
--host=* |
--hos=* |
--ho=*)
921 host_alias
=$ac_optarg ;;
923 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
925 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
927 htmldir
=$ac_optarg ;;
929 -includedir |
--includedir |
--includedi |
--included |
--include \
930 |
--includ |
--inclu |
--incl |
--inc)
931 ac_prev
=includedir
;;
932 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
933 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
934 includedir
=$ac_optarg ;;
936 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
938 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
939 infodir
=$ac_optarg ;;
941 -libdir |
--libdir |
--libdi |
--libd)
943 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
946 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
947 |
--libexe |
--libex |
--libe)
948 ac_prev
=libexecdir
;;
949 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
950 |
--libexe=* |
--libex=* |
--libe=*)
951 libexecdir
=$ac_optarg ;;
953 -localedir |
--localedir |
--localedi |
--localed |
--locale)
955 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
956 localedir
=$ac_optarg ;;
958 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
959 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
960 ac_prev
=localstatedir
;;
961 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
962 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
963 localstatedir
=$ac_optarg ;;
965 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
967 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
971 # Obsolete; use --without-fp.
974 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
975 |
--no-cr |
--no-c |
-n)
978 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
979 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
982 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
983 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
984 |
--oldin |
--oldi |
--old |
--ol |
--o)
985 ac_prev
=oldincludedir
;;
986 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
987 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
988 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
989 oldincludedir
=$ac_optarg ;;
991 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
993 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
996 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
997 |
--program-pre |
--program-pr |
--program-p)
998 ac_prev
=program_prefix
;;
999 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1000 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1001 program_prefix
=$ac_optarg ;;
1003 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1004 |
--program-suf |
--program-su |
--program-s)
1005 ac_prev
=program_suffix
;;
1006 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1007 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1008 program_suffix
=$ac_optarg ;;
1010 -program-transform-name |
--program-transform-name \
1011 |
--program-transform-nam |
--program-transform-na \
1012 |
--program-transform-n |
--program-transform- \
1013 |
--program-transform |
--program-transfor \
1014 |
--program-transfo |
--program-transf \
1015 |
--program-trans |
--program-tran \
1016 |
--progr-tra |
--program-tr |
--program-t)
1017 ac_prev
=program_transform_name
;;
1018 -program-transform-name=* |
--program-transform-name=* \
1019 |
--program-transform-nam=* |
--program-transform-na=* \
1020 |
--program-transform-n=* |
--program-transform-=* \
1021 |
--program-transform=* |
--program-transfor=* \
1022 |
--program-transfo=* |
--program-transf=* \
1023 |
--program-trans=* |
--program-tran=* \
1024 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1025 program_transform_name
=$ac_optarg ;;
1027 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1029 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1030 pdfdir
=$ac_optarg ;;
1032 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1034 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1037 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1038 |
-silent |
--silent |
--silen |
--sile |
--sil)
1041 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1043 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1045 sbindir
=$ac_optarg ;;
1047 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1048 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1049 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1051 ac_prev
=sharedstatedir
;;
1052 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1053 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1054 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1056 sharedstatedir
=$ac_optarg ;;
1058 -site |
--site |
--sit)
1060 -site=* |
--site=* |
--sit=*)
1063 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1065 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1066 srcdir
=$ac_optarg ;;
1068 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1069 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1070 ac_prev
=sysconfdir
;;
1071 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1072 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1073 sysconfdir
=$ac_optarg ;;
1075 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1076 ac_prev
=target_alias
;;
1077 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1078 target_alias
=$ac_optarg ;;
1080 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1083 -version |
--version |
--versio |
--versi |
--vers |
-V)
1084 ac_init_version
=: ;;
1087 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1090 as_fn_error $?
"invalid package name: $ac_useropt"
1091 ac_useropt_orig
=$ac_useropt
1092 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1097 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098 ac_unrecognized_sep
=', ';;
1100 eval with_
$ac_useropt=\
$ac_optarg ;;
1102 -without-* |
--without-*)
1103 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1106 as_fn_error $?
"invalid package name: $ac_useropt"
1107 ac_useropt_orig
=$ac_useropt
1108 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1113 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114 ac_unrecognized_sep
=', ';;
1116 eval with_
$ac_useropt=no
;;
1119 # Obsolete; use --with-x.
1122 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1123 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1124 ac_prev
=x_includes
;;
1125 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1126 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1127 x_includes
=$ac_optarg ;;
1129 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1130 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1131 ac_prev
=x_libraries
;;
1132 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1133 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1134 x_libraries
=$ac_optarg ;;
1136 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1137 Try \`$0 --help' for more information"
1141 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 case $ac_envvar in #(
1144 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1145 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1147 eval $ac_envvar=\
$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161 if test -n "$ac_prev"; then
1162 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1163 as_fn_error $?
"missing argument to $ac_option"
1166 if test -n "$ac_unrecognized_opts"; then
1167 case $enable_option_checking in
1169 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 # Check all directory arguments for consistency.
1175 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1180 eval ac_val
=\$
$ac_var
1181 # Remove trailing slashes.
1184 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185 eval $ac_var=\
$ac_val;;
1187 # Be sure to have absolute directory names.
1189 [\\/$
]* | ?
:[\\/]* ) continue;;
1190 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1192 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1200 target
=$target_alias
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x
; then
1204 if test "x$build_alias" = x
; then
1205 cross_compiling
=maybe
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1214 test "$silent" = yes && exec 6>/dev
/null
1217 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di
=`ls -di .` &&
1219 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1220 as_fn_error $?
"working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 as_fn_error $?
"pwd does not report name of working directory"
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted
=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir
=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$as_myself" : 'X\(//\)[^/]' \| \
1232 X"$as_myself" : 'X\(//\)$' \| \
1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1257 ac_srcdir_defaulted
=no
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1261 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1263 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1275 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 for ac_var
in $ac_precious_vars; do
1278 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1280 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1291 \`configure' configures cpplib to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking ...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1349 --build=BUILD configure
for building on BUILD
[guessed
]
1350 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1351 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1355 if test -n "$ac_init_help"; then
1356 case $ac_init_help in
1357 short | recursive
) echo "Configuration of cpplib :";;
1362 --disable-option-checking ignore unrecognized
--enable/--with options
1363 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1364 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1365 --disable-largefile omit support
for large files
1366 --enable-werror-always enable -Werror despite compiler version
1367 --disable-rpath do not hardcode runtime library paths
1368 --enable-maintainer-mode enable rules only needed by maintainers
1369 --enable-checking[=LIST
]
1370 enable expensive run-time checks. With LIST
, enable
1371 only specific categories of checks. Categories are
:
1372 yes,no
,all
,none
,release. Flags are
: misc
,valgrind or
1374 --enable-canonical-system-headers
1375 enable or disable system headers canonicalization
1376 --enable-host-shared build
host code as shared libraries
1377 --enable-valgrind-annotations
1378 enable valgrind runtime interaction
1381 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1382 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1383 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1384 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1385 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1387 Some influential environment variables:
1388 CC C compiler command
1389 CFLAGS C compiler flags
1390 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1391 nonstandard directory <lib dir>
1392 LIBS libraries to pass to the linker, e.g. -l<library>
1393 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394 you have headers in a nonstandard directory <include dir>
1395 CXX C++ compiler command
1396 CXXFLAGS C++ compiler flags
1399 Use these variables to override the choices made by `configure' or to
help
1400 it to
find libraries and programs with nonstandard names
/locations.
1402 Report bugs to
<gcc-bugs@gcc.gnu.org
>.
1407 if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1410 test -d "$ac_dir" ||
1411 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1416 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1418 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1423 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1426 ac_abs_top_builddir
=$ac_pwd
1427 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir
=$ac_top_build_prefix
1432 .
) # We are building in place.
1434 ac_top_srcdir
=$ac_top_builddir_sub
1435 ac_abs_top_srcdir
=$ac_pwd ;;
1436 [\\/]* | ?
:[\\/]* ) # Absolute name.
1437 ac_srcdir
=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir
=$srcdir
1439 ac_abs_top_srcdir
=$srcdir ;;
1441 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1445 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1447 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1466 generated by GNU Autoconf
2.69
1468 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1469 This configure
script is free software
; the Free Software Foundation
1470 gives unlimited permission to copy
, distribute and modify it.
1475 ## ------------------------ ##
1476 ## Autoconf initialization. ##
1477 ## ------------------------ ##
1479 # ac_fn_c_try_compile LINENO
1480 # --------------------------
1481 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_c_try_compile
()
1484 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1485 rm -f conftest.
$ac_objext
1486 if { { ac_try
="$ac_compile"
1488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_compile") 2>conftest.err
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && {
1502 test -z "$ac_c_werror_flag" ||
1503 test ! -s conftest.err
1504 } && test -s conftest.$ac_objext; then :
1507 $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1513 as_fn_set_status $ac_retval
1515 } # ac_fn_c_try_compile
1517 # ac_fn_cxx_try_compile LINENO
1518 # ----------------------------
1519 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_cxx_try_compile ()
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext
1524 if { { ac_try="$ac_compile"
1526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1527 *) ac_try_echo
=$ac_try;;
1529 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_compile") 2>conftest.err
1533 if test -s conftest.err
; then
1534 grep -v '^ *+' conftest.err
>conftest.er1
1535 cat conftest.er1
>&5
1536 mv -f conftest.er1 conftest.err
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_cxx_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest.
$ac_objext; then :
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.
$ac_ext >&5
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status
$ac_retval
1553 } # ac_fn_cxx_try_compile
1555 # ac_fn_c_try_cpp LINENO
1556 # ----------------------
1557 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1560 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1561 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } > conftest.i && {
1577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1592 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1593 # -------------------------------------------------------
1594 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1595 # the include files in INCLUDES and setting the cache variable VAR
1597 ac_fn_c_check_header_mongrel ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if eval \${$3+:} false; then :
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 $as_echo_n "checking for $2... " >&6; }
1603 if eval \${$3+:} false; then :
1604 $as_echo_n "(cached) " >&6
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1608 $as_echo "$ac_res" >&6; }
1610 # Is the header compilable?
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1612 $as_echo_n "checking $2 usability... " >&6; }
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614 /* end confdefs.h. */
1618 if ac_fn_c_try_compile "$LINENO"; then :
1619 ac_header_compiler=yes
1621 ac_header_compiler=no
1623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1625 $as_echo "$ac_header_compiler" >&6; }
1627 # Is the header present?
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1629 $as_echo_n "checking $2 presence... " >&6; }
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1634 if ac_fn_c_try_cpp "$LINENO"; then :
1635 ac_header_preproc=yes
1637 ac_header_preproc=no
1639 rm -f conftest.err conftest.i conftest.$ac_ext
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1641 $as_echo "$ac_header_preproc" >&6; }
1643 # So? What about this header?
1644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1647 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1653 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1655 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1657 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1659 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 ( $as_echo "## ----------------------------------- ##
1663 ## Report this to gcc-bugs@gcc.gnu.org ##
1664 ## ----------------------------------- ##"
1665 ) | sed "s/^/$as_me: WARNING: /" >&2
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1673 eval "$3=\$ac_header_compiler"
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 } # ac_fn_c_check_header_mongrel
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_link"
1692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1693 *) ac_try_echo
=$ac_try;;
1695 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1717 ac_retval=$ac_status
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1742 if ac_fn_c_try_compile "$LINENO"; then :
1747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 } # ac_fn_c_check_header_compile
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1766 *) ac_try_echo
=$ac_try;;
1768 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1772 if test -s conftest.err
; then
1773 grep -v '^ *+' conftest.err
>conftest.er1
1774 cat conftest.er1
>&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest
$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 test -x conftest
$ac_exeext
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.
$ac_ext >&5
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status
$ac_retval
1800 } # ac_fn_c_try_link
1802 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1803 # -------------------------------------------
1804 # Tests whether TYPE exists after having included INCLUDES, setting cache
1805 # variable VAR accordingly.
1806 ac_fn_c_check_type
()
1808 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \
${$3+:} false
; then :
1812 $as_echo_n "(cached) " >&6
1815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1827 if ac_fn_c_try_compile
"$LINENO"; then :
1828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1840 if ac_fn_c_try_compile
"$LINENO"; then :
1845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 } # ac_fn_c_check_type
1856 # ac_fn_c_find_uintX_t LINENO BITS VAR
1857 # ------------------------------------
1858 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1860 ac_fn_c_find_uintX_t
()
1862 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1864 $as_echo_n "checking for uint$2_t... " >&6; }
1865 if eval \
${$3+:} false
; then :
1866 $as_echo_n "(cached) " >&6
1869 # Order is important - never check a type that is potentially smaller
1870 # than half of the expected target width.
1871 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
1872 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 $ac_includes_default
1879 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1881 return test_array [0];
1887 if ac_fn_c_try_compile
"$LINENO"; then :
1892 eval "$3=\$ac_type" ;;
1895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1896 if eval test \"x\$
"$3"\" = x
"no"; then :
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } # ac_fn_c_find_uintX_t
1910 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1911 # --------------------------------------------
1912 # Tries to find the compile-time value of EXPR in a program that includes
1913 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1915 ac_fn_c_compute_int
()
1917 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1918 if test "$cross_compiling" = yes; then
1919 # Depending upon the size, compute the lo and hi bounds.
1920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1926 static int test_array [1 - 2 * !(($2) >= 0)];
1928 return test_array [0];
1934 if ac_fn_c_try_compile
"$LINENO"; then :
1937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1943 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1945 return test_array [0];
1951 if ac_fn_c_try_compile
"$LINENO"; then :
1952 ac_hi
=$ac_mid; break
1954 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1955 if test $ac_lo -le $ac_mid; then
1959 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1970 static int test_array [1 - 2 * !(($2) < 0)];
1972 return test_array [0];
1978 if ac_fn_c_try_compile
"$LINENO"; then :
1981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1987 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1989 return test_array [0];
1995 if ac_fn_c_try_compile
"$LINENO"; then :
1996 ac_lo
=$ac_mid; break
1998 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1999 if test $ac_mid -le $ac_hi; then
2003 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2013 # Binary search between lo and hi bounds.
2014 while test "x$ac_lo" != "x$ac_hi"; do
2015 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2022 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2024 return test_array [0];
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2033 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2038 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2045 static long int longval () { return $2; }
2046 static unsigned long int ulongval () { return $2; }
2053 FILE *f = fopen ("conftest.val", "w");
2058 long int i = longval ();
2061 fprintf (f, "%ld", i);
2065 unsigned long int i = ulongval ();
2068 fprintf (f, "%lu", i);
2070 /* Do not output a trailing newline, as this causes \r\n confusion
2071 on some platforms. */
2072 return ferror (f) || fclose (f) != 0;
2078 if ac_fn_c_try_run
"$LINENO"; then :
2079 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2083 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2084 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 as_fn_set_status
$ac_retval
2091 } # ac_fn_c_compute_int
2093 # ac_fn_c_check_func LINENO FUNC VAR
2094 # ----------------------------------
2095 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2096 ac_fn_c_check_func
()
2098 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if eval \
${$3+:} false
; then :
2102 $as_echo_n "(cached) " >&6
2104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2108 #define $2 innocuous_$2
2110 /* System header to define __stub macros and hopefully few prototypes,
2111 which can conflict with char $2 (); below.
2112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2113 <limits.h> exists even on freestanding compilers. */
2116 # include <limits.h>
2118 # include <assert.h>
2123 /* Override any GCC internal prototype to avoid an error.
2124 Use char because int might match the return type of a GCC
2125 builtin and then its argument prototype would still apply. */
2130 /* The GNU C library defines this for functions which it implements
2131 to always fail with ENOSYS. Some functions are actually named
2132 something starting with __ and the normal name is an alias. */
2133 #if defined __stub_$2 || defined __stub___$2
2145 if ac_fn_c_try_link
"$LINENO"; then :
2150 rm -f core conftest.err conftest.
$ac_objext \
2151 conftest
$ac_exeext conftest.
$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 } # ac_fn_c_check_func
2160 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2161 # ---------------------------------------------
2162 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2164 ac_fn_c_check_decl
()
2166 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2167 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2168 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2170 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2171 if eval \
${$3+:} false
; then :
2172 $as_echo_n "(cached) " >&6
2174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2180 #ifndef $as_decl_name
2182 (void) $as_decl_use;
2184 (void) $as_decl_name;
2192 if ac_fn_c_try_compile
"$LINENO"; then :
2197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 } # ac_fn_c_check_decl
2206 # ac_fn_cxx_try_link LINENO
2207 # -------------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_cxx_try_link
()
2211 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2212 rm -f conftest.
$ac_objext conftest
$ac_exeext
2213 if { { ac_try
="$ac_link"
2215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>conftest.err
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && {
2229 test -z "$ac_cxx_werror_flag" ||
2230 test ! -s conftest.err
2231 } && test -s conftest$ac_exeext && {
2232 test "$cross_compiling" = yes ||
2233 test -x conftest$ac_exeext
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2242 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2243 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2244 # interfere with the next link command; also delete a directory that is
2245 # left behind by Apple's compiler. We do this before executing the actions.
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 as_fn_set_status $ac_retval
2250 } # ac_fn_cxx_try_link
2251 cat >config.log <<_ACEOF
2252 This file contains any messages produced by compilers while
2253 running configure, to aid debugging if configure makes a mistake.
2255 It was created by cpplib $as_me , which was
2256 generated by GNU Autoconf 2.69. Invocation command line was
2268 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2269 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2270 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2271 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2272 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2274 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2275 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2277 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2278 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2279 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2280 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2281 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2282 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2283 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir=.
2292 $as_echo "PATH: $as_dir"
2308 # Keep a trace of the command line.
2309 # Strip out --no-create and --no-recursion so they do not pile up.
2310 # Strip out --silent because we don't want to record it for future runs.
2311 # Also quote any args containing shell meta-characters.
2312 # Make two passes to allow for proper duplicate-argument suppression.
2316 ac_must_keep_next=false
2322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2324 | -silent | --silent | --silen | --sile | --sil)
2327 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2330 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2332 as_fn_append ac_configure_args1 " '$ac_arg'"
2333 if test $ac_must_keep_next = true; then
2334 ac_must_keep_next=false # Got value, back to normal.
2337 *=* | --config-cache | -C | -disable-* | --disable-* \
2338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2340 | -with-* | --with-* | -without-* | --without-* | --x)
2341 case "$ac_configure_args0 " in
2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2345 -* ) ac_must_keep_next=true ;;
2348 as_fn_append ac_configure_args " '$ac_arg'"
2353 { ac_configure_args0=; unset ac_configure_args0;}
2354 { ac_configure_args1=; unset ac_configure_args1;}
2356 # When interrupted or exit'd, cleanup temporary files, and complete
2357 # config.log. We remove comments because anyway the quotes in there
2358 # would cause problems or look ugly.
2359 # WARNING: Use '\'' to represent an apostrophe within the trap.
2360 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2361 trap 'exit_status=$?
2362 # Save into config.log some information that might help in debugging.
2366 $as_echo "## ---------------- ##
2367 ## Cache variables. ##
2368 ## ---------------- ##"
2370 # The following way of writing the cache mishandles newlines in values,
2372 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2373 eval ac_val=\$$ac_var
2377 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2378 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2381 _ | IFS | as_nl) ;; #(
2382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2383 *) { eval $ac_var=; unset $ac_var;} ;;
2388 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2389 *${as_nl}ac_space=\ *)
2391 "s/'\''/'\''\\\\'\'''\''/g;
2392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 $as_echo "## ----------------- ##
2403 ## Output variables. ##
2404 ## ----------------- ##"
2406 for ac_var in $ac_subst_vars
2408 eval ac_val=\$$ac_var
2410 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 $as_echo "$ac_var='\''$ac_val'\''"
2416 if test -n "$ac_subst_files"; then
2417 $as_echo "## ------------------- ##
2418 ## File substitutions. ##
2419 ## ------------------- ##"
2421 for ac_var in $ac_subst_files
2423 eval ac_val=\$$ac_var
2425 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 $as_echo "$ac_var='\''$ac_val'\''"
2432 if test -s confdefs.h; then
2433 $as_echo "## ----------- ##
2440 test "$ac_signal" != 0 &&
2441 $as_echo "$as_me: caught signal $ac_signal"
2442 $as_echo "$as_me: exit $exit_status"
2444 rm -f core *.core core.conftest.* &&
2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2448 for ac_signal in 1 2 13 15; do
2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2454 rm -f -r conftest* confdefs.h
2456 $as_echo "/* confdefs.h */" > confdefs.h
2458 # Predefined preprocessor variables.
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_NAME "$PACKAGE_NAME"
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_STRING "$PACKAGE_STRING"
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_URL "$PACKAGE_URL"
2485 # Let the site file select an alternate cache file if it wants to.
2486 # Prefer an explicitly selected file to automatically selected ones.
2489 if test -n "$CONFIG_SITE"; then
2490 # We do not want a PATH search for config.site.
2491 case $CONFIG_SITE in #((
2492 -*) ac_site_file1=./$CONFIG_SITE;;
2493 */*) ac_site_file1=$CONFIG_SITE;;
2494 *) ac_site_file1=./$CONFIG_SITE;;
2496 elif test "x$prefix" != xNONE; then
2497 ac_site_file1=$prefix/share/config.site
2498 ac_site_file2=$prefix/etc/config.site
2500 ac_site_file1=$ac_default_prefix/share/config.site
2501 ac_site_file2=$ac_default_prefix/etc/config.site
2503 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2505 test "x$ac_site_file" = xNONE && continue
2506 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2508 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2509 sed 's/^/| /' "$ac_site_file" >&5
2511 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2513 as_fn_error $? "failed to load site
script $ac_site_file
2514 See \
`config.log' for more details" "$LINENO" 5; }
2518 if test -r "$cache_file"; then
2519 # Some versions of bash will fail to source /dev/null (special files
2520 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2521 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2523 $as_echo "$as_me: loading cache $cache_file" >&6;}
2525 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2526 *) . "./$cache_file";;
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2531 $as_echo "$as_me: creating cache $cache_file" >&6;}
2535 # Check that the precious variables saved in the cache have kept the same
2537 ac_cache_corrupted=false
2538 for ac_var in $ac_precious_vars; do
2539 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2540 eval ac_new_set=\$ac_env_${ac_var}_set
2541 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2542 eval ac_new_val=\$ac_env_${ac_var}_value
2543 case $ac_old_set,$ac_new_set in
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2546 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2547 ac_cache_corrupted=: ;;
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2550 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2551 ac_cache_corrupted=: ;;
2554 if test "x$ac_old_val" != "x$ac_new_val"; then
2555 # differences in whitespace do not lead to failure.
2556 ac_old_val_w=`echo x
$ac_old_val`
2557 ac_new_val_w=`echo x
$ac_new_val`
2558 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2560 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2561 ac_cache_corrupted=:
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2564 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2565 eval $ac_var=\$ac_old_val
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2568 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2570 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2573 # Pass precious variables to config.status.
2574 if test "$ac_new_set" = set; then
2576 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2577 *) ac_arg=$ac_var=$ac_new_val ;;
2579 case " $ac_configure_args " in
2580 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2581 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2585 if $ac_cache_corrupted; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2589 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2590 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2592 ## -------------------- ##
2593 ## Main body of script. ##
2594 ## -------------------- ##
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2607 if test -f "$ac_dir/install-sh"; then
2609 ac_install_sh="$ac_aux_dir/install-sh -c"
2611 elif test -f "$ac_dir/install.sh"; then
2613 ac_install_sh="$ac_aux_dir/install.sh -c"
2615 elif test -f "$ac_dir/shtool"; then
2617 ac_install_sh="$ac_aux_dir/shtool install -c"
2621 if test -z "$ac_aux_dir"; then
2622 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2625 # These three variables are undocumented and unsupported,
2626 # and are intended to be withdrawn in a future Autoconf release.
2627 # They can cause serious problems if a builder's source tree is in a directory
2628 # whose full name contains unusual characters.
2629 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2630 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2631 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2634 # Make sure we can run config.sub.
2635 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2636 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2639 $as_echo_n "checking build system type... " >&6; }
2640 if ${ac_cv_build+:} false; then :
2641 $as_echo_n "(cached) " >&6
2643 ac_build_alias=$build_alias
2644 test "x$ac_build_alias" = x &&
2645 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2646 test "x$ac_build_alias" = x &&
2647 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2648 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2653 $as_echo "$ac_cv_build" >&6; }
2654 case $ac_cv_build in
2656 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2659 ac_save_IFS=$IFS; IFS='-'
2665 # Remember, the first character of IFS is used to create $*,
2666 # except with old shells:
2669 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2673 $as_echo_n "checking host system type... " >&6; }
2674 if ${ac_cv_host+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 if test "x$host_alias" = x; then
2678 ac_cv_host=$ac_cv_build
2680 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2686 $as_echo "$ac_cv_host" >&6; }
2689 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2692 ac_save_IFS=$IFS; IFS='-'
2698 # Remember, the first character of IFS is used to create $*,
2699 # except with old shells:
2702 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2706 $as_echo_n "checking target system type... " >&6; }
2707 if ${ac_cv_target+:} false; then :
2708 $as_echo_n "(cached) " >&6
2710 if test "x$target_alias" = x; then
2711 ac_cv_target=$ac_cv_host
2713 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2714 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2719 $as_echo "$ac_cv_target" >&6; }
2720 case $ac_cv_target in
2722 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2724 target=$ac_cv_target
2725 ac_save_IFS=$IFS; IFS='-'
2731 # Remember, the first character of IFS is used to create $*,
2732 # except with old shells:
2735 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2738 # The aliases save the names the user supplied, while $host etc.
2739 # will get canonicalized.
2740 test -n "$target_alias" &&
2741 test "$program_prefix$program_suffix$program_transform_name" = \
2743 program_prefix=${target_alias}-
2746 # Checks for programs.
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2748 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2750 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2751 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2752 $as_echo_n "(cached) " >&6
2754 cat >conftest.make <<\_ACEOF
2757 @echo '@@@%%%=$(MAKE)=@@@%%%'
2759 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2760 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2762 eval ac_cv_prog_make_${ac_make}_set=yes;;
2764 eval ac_cv_prog_make_${ac_make}_set=no;;
2768 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2770 $as_echo "yes" >&6; }
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2775 SET_MAKE="MAKE=${MAKE-make}"
2778 # Find a good install program. We prefer a C program (faster),
2779 # so one script is as good as another. But avoid the broken or
2780 # incompatible versions:
2781 # SysV /etc/install, /usr/sbin/install
2782 # SunOS /usr/etc/install
2783 # IRIX /sbin/install
2785 # AmigaOS /C/install, which installs bootblocks on floppy discs
2786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2789 # OS/2's system install, which has a completely different semantic
2790 # ./install, which can be erroneously created by make from ./install.sh.
2791 # Reject install programs that cannot install multiple files.
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2793 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2794 if test -z "$INSTALL"; then
2795 if ${ac_cv_path_install+:} false; then :
2796 $as_echo_n "(cached) " >&6
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 # Account for people who put trailing slashes in PATH elements.
2804 case $as_dir/ in #((
2805 ./ | .// | /[cC]/* | \
2806 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2807 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2810 # OSF1 and SCO ODT 3.0 have their own names for install.
2811 # Don't use installbsd from OSF since it installs stuff as root
2813 for ac_prog in ginstall scoinst install; do
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2816 if test $ac_prog = install &&
2817 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2818 # AIX install. It has an incompatible calling convention.
2820 elif test $ac_prog = install &&
2821 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2822 # program-specific install script used by HP pwplus--don't use.
2825 rm -rf conftest.one conftest.two conftest.dir
2826 echo one > conftest.one
2827 echo two > conftest.two
2829 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2830 test -s conftest.one && test -s conftest.two &&
2831 test -s conftest.dir/conftest.one &&
2832 test -s conftest.dir/conftest.two
2834 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2847 rm -rf conftest.one conftest.two conftest.dir
2850 if test "${ac_cv_path_install+set}" = set; then
2851 INSTALL=$ac_cv_path_install
2853 # As a last resort, use the slow shell script. Don't cache a
2854 # value for INSTALL within a source directory, because that will
2855 # break other packages using the cache if that directory is
2856 # removed, or if the value is a relative name.
2857 INSTALL=$ac_install_sh
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2861 $as_echo "$INSTALL" >&6; }
2863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2864 # It thinks the first close brace ends the variable substitution.
2865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2867 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2869 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2915 if test -z "$ac_cv_prog_CC"; then
2917 # Extract the first word of "gcc", so it can be a program name with args.
2918 set dummy gcc; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2922 $as_echo_n "(cached) " >&6
2924 if test -n "$ac_ct_CC"; then
2925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_ac_ct_CC="gcc"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2945 if test -n "$ac_ct_CC"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2947 $as_echo "$ac_ct_CC" >&6; }
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2953 if test "x$ac_ct_CC" = x; then
2956 case $cross_compiling:$ac_tool_warned in
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960 ac_tool_warned=yes ;;
2968 if test -z "$CC"; then
2969 if test -n "$ac_tool_prefix"; then
2970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2971 set dummy ${ac_tool_prefix}cc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_CC+:} false; then :
2975 $as_echo_n "(cached) " >&6
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_CC="${ac_tool_prefix}cc"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 if test -n "$CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000 $as_echo "$CC" >&6; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3009 if test -z "$CC"; then
3010 # Extract the first word of "cc", so it can be a program name with args.
3011 set dummy cc; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if ${ac_cv_prog_CC+:} false; then :
3015 $as_echo_n "(cached) " >&6
3017 if test -n "$CC"; then
3018 ac_cv_prog_CC="$CC" # Let the user override the test.
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3029 ac_prog_rejected=yes
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 if test $ac_prog_rejected = yes; then
3041 # We found a bogon in the path, so make sure we never use it.
3042 set dummy $ac_cv_prog_CC
3044 if test $# != 0; then
3045 # We chose a different compiler from the bogus one.
3046 # However, it has the same basename, so the bogon will be chosen
3047 # first if we set CC to just the basename; use the full file name.
3049 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3065 if test -z "$CC"; then
3066 if test -n "$ac_tool_prefix"; then
3067 for ac_prog in cl.exe
3069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_CC+:} false; then :
3074 $as_echo_n "(cached) " >&6
3076 if test -n "$CC"; then
3077 ac_cv_prog_CC="$CC" # Let the user override the test.
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 if test -n "$CC"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3099 $as_echo "$CC" >&6; }
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3106 test -n "$CC" && break
3109 if test -z "$CC"; then
3111 for ac_prog in cl.exe
3113 # Extract the first word of "$ac_prog", so it can be a program name with args.
3114 set dummy $ac_prog; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3118 $as_echo_n "(cached) " >&6
3120 if test -n "$ac_ct_CC"; then
3121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_ac_ct_CC="$ac_prog"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3141 if test -n "$ac_ct_CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3143 $as_echo "$ac_ct_CC" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3150 test -n "$ac_ct_CC" && break
3153 if test "x$ac_ct_CC" = x; then
3156 case $cross_compiling:$ac_tool_warned in
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3160 ac_tool_warned=yes ;;
3169 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3172 See \
`config.log' for more details" "$LINENO" 5; }
3174 # Provide some information about the compiler.
3175 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3178 for ac_option in --version -v -V -qversion; do
3179 { { ac_try="$ac_compiler $ac_option >&5"
3181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3182 *) ac_try_echo
=$ac_try;;
3184 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185 $as_echo "$ac_try_echo"; } >&5
3186 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3188 if test -s conftest.err
; then
3190 ... rest of stderr output deleted ...
3191 10q' conftest.err
>conftest.er1
3192 cat conftest.er1
>&5
3194 rm -f conftest.er1 conftest.err
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }
3199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3210 ac_clean_files_save
=$ac_clean_files
3211 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3212 # Try to create an executable without -o first, disregard a.out.
3213 # It will help us diagnose broken compilers, and finding out an intuition
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3216 $as_echo_n "checking whether the C compiler works... " >&6; }
3217 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3219 # The possible output files:
3220 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3223 for ac_file
in $ac_files
3226 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3227 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3232 if { { ac_try
="$ac_link_default"
3234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_link_default") 2>&5
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }; then :
3243 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3244 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3245 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3246 # so that the user can short-circuit this test for compilers unknown to
3248 for ac_file in $ac_files ''
3250 test -f "$ac_file" || continue
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3255 # We found the default executable, but exeext='' is most
3259 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3261 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3263 # We set ac_cv_exeext here because the later test for it is not
3264 # safe: cross compilers may not add the suffix if given an `-o'
3265 # argument, so we may need to know it at that point already.
3266 # Even if this section looks crufty: it has the advantage of
3273 test "$ac_cv_exeext" = no && ac_cv_exeext=
3278 if test -z "$ac_file"; then :
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 $as_echo "$as_me: failed program was:" >&5
3282 sed 's
/^
/|
/' conftest.$ac_ext >&5
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3286 as_fn_error 77 "C compiler cannot create executables
3287 See \`config.log
' for more details" "$LINENO" 5; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 $as_echo "yes" >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3293 $as_echo_n "checking for C compiler default output file name... " >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3295 $as_echo "$ac_file" >&6; }
3296 ac_exeext=$ac_cv_exeext
3298 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3299 ac_clean_files=$ac_clean_files_save
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3301 $as_echo_n "checking for suffix of executables... " >&6; }
3302 if { { ac_try="$ac_link"
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_link") 2>&5
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
3313 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3314 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3315 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3317 for ac_file
in conftest.exe conftest conftest.
*; do
3318 test -f "$ac_file" ||
continue
3320 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3321 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3330 See \`config.log' for more details" "$LINENO" 5; }
3332 rm -f conftest conftest
$ac_cv_exeext
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3334 $as_echo "$ac_cv_exeext" >&6; }
3336 rm -f conftest.
$ac_ext
3337 EXEEXT
=$ac_cv_exeext
3339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3345 FILE *f = fopen ("conftest.out", "w");
3346 return ferror (f) || fclose (f) != 0;
3352 ac_clean_files
="$ac_clean_files conftest.out"
3353 # Check that the compiler produces executables we can run. If not, either
3354 # the compiler is broken, or we cross compile.
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3356 $as_echo_n "checking whether we are cross compiling... " >&6; }
3357 if test "$cross_compiling" != yes; then
3358 { { ac_try
="$ac_link"
3360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365 (eval "$ac_link") 2>&5
3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }
3369 if { ac_try='./conftest$ac_cv_exeext'
3370 { { case "(($ac_try" in
3371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3372 *) ac_try_echo
=$ac_try;;
3374 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_try") 2>&5
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }; }; then
3382 if test "$cross_compiling" = maybe
; then
3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error $?
"cannot run C compiled programs.
3388 If you meant to cross compile, use \`--host'.
3389 See \`config.log' for more details" "$LINENO" 5; }
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3394 $as_echo "$cross_compiling" >&6; }
3396 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3397 ac_clean_files
=$ac_clean_files_save
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3399 $as_echo_n "checking for suffix of object files... " >&6; }
3400 if ${ac_cv_objext+:} false
; then :
3401 $as_echo_n "(cached) " >&6
3403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3414 rm -f conftest.o conftest.obj
3415 if { { ac_try
="$ac_compile"
3417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422 (eval "$ac_compile") 2>&5
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425 test $ac_status = 0; }; then :
3426 for ac_file in conftest.o conftest.obj conftest.*; do
3427 test -f "$ac_file" || continue;
3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3430 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435 $as_echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3441 See \
`config.log' for more details" "$LINENO" 5; }
3443 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3446 $as_echo "$ac_cv_objext" >&6; }
3447 OBJEXT=$ac_cv_objext
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3450 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3451 if ${ac_cv_c_compiler_gnu+:} false; then :
3452 $as_echo_n "(cached) " >&6
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3468 if ac_fn_c_try_compile "$LINENO"; then :
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3478 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3479 if test $ac_compiler_gnu = yes; then
3484 ac_test_CFLAGS=${CFLAGS+set}
3485 ac_save_CFLAGS=$CFLAGS
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3487 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3488 if ${ac_cv_prog_cc_g+:} false; then :
3489 $as_echo_n "(cached) " >&6
3491 ac_save_c_werror_flag=$ac_c_werror_flag
3492 ac_c_werror_flag=yes
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3506 if ac_fn_c_try_compile "$LINENO"; then :
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3521 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_c_werror_flag=$ac_save_c_werror_flag
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3537 if ac_fn_c_try_compile "$LINENO"; then :
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 ac_c_werror_flag=$ac_save_c_werror_flag
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3548 $as_echo "$ac_cv_prog_cc_g" >&6; }
3549 if test "$ac_test_CFLAGS" = set; then
3550 CFLAGS=$ac_save_CFLAGS
3551 elif test $ac_cv_prog_cc_g = yes; then
3552 if test "$GCC" = yes; then
3558 if test "$GCC" = yes; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3565 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3566 if ${ac_cv_prog_cc_c89+:} false; then :
3567 $as_echo_n "(cached) " >&6
3569 ac_cv_prog_cc_c89=no
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3577 struct buf { int x; };
3578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3579 static char *e (p, i)
3585 static char *f (char * (*g) (char **, int), char **p, ...)
3590 s = g (p, va_arg (v,int));
3595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3596 function prototypes and stuff, but not '\xHH' hex character constants.
3597 These don't provoke an error unfortunately, instead are silently treated
3598 as 'x'. The following induces an error, until -std is added to get
3599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3600 array size at least. It's necessary to write '\x00'==0 to get something
3601 that's true only with -std. */
3602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3605 inside strings and character constants. */
3607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3609 int test (int i, double x);
3610 struct s1 {int (*f) (int a);};
3611 struct s2 {int (*f) (double a);};
3612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3626 CC="$ac_save_CC $ac_arg"
3627 if ac_fn_c_try_compile "$LINENO"; then :
3628 ac_cv_prog_cc_c89=$ac_arg
3630 rm -f core conftest.err conftest.$ac_objext
3631 test "x$ac_cv_prog_cc_c89" != "xno" && break
3633 rm -f conftest.$ac_ext
3638 case "x$ac_cv_prog_cc_c89" in
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3641 $as_echo "none needed" >&6; } ;;
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3644 $as_echo "unsupported" >&6; } ;;
3646 CC="$CC $ac_cv_prog_cc_c89"
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3648 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3650 if test "x$ac_cv_prog_cc_c89" != xno; then :
3655 ac_cpp='$CPP $CPPFLAGS'
3656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661 ac_cpp='$CXXCPP $CPPFLAGS'
3662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3665 if test -z "$CXX"; then
3666 if test -n "$CCC"; then
3669 if test -n "$ac_tool_prefix"; then
3670 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if ${ac_cv_prog_CXX+:} false; then :
3677 $as_echo_n "(cached) " >&6
3679 if test -n "$CXX"; then
3680 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 if test -n "$CXX"; then
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3702 $as_echo "$CXX" >&6; }
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3709 test -n "$CXX" && break
3712 if test -z "$CXX"; then
3714 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3716 # Extract the first word of "$ac_prog", so it can be a program name with args.
3717 set dummy $ac_prog; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3721 $as_echo_n "(cached) " >&6
3723 if test -n "$ac_ct_CXX"; then
3724 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_ac_ct_CXX="$ac_prog"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3744 if test -n "$ac_ct_CXX"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3746 $as_echo "$ac_ct_CXX" >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3753 test -n "$ac_ct_CXX" && break
3756 if test "x$ac_ct_CXX" = x; then
3759 case $cross_compiling:$ac_tool_warned in
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3763 ac_tool_warned=yes ;;
3771 # Provide some information about the compiler.
3772 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3775 for ac_option in --version -v -V -qversion; do
3776 { { ac_try="$ac_compiler $ac_option >&5"
3778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3779 *) ac_try_echo
=$ac_try;;
3781 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 $as_echo "$ac_try_echo"; } >&5
3783 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3785 if test -s conftest.err
; then
3787 ... rest of stderr output deleted ...
3788 10q' conftest.err
>conftest.er1
3789 cat conftest.er1
>&5
3791 rm -f conftest.er1 conftest.err
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3797 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3798 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3799 $as_echo_n "(cached) " >&6
3801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3815 if ac_fn_cxx_try_compile
"$LINENO"; then :
3820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3821 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3825 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3826 if test $ac_compiler_gnu = yes; then
3831 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3832 ac_save_CXXFLAGS
=$CXXFLAGS
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3834 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3835 if ${ac_cv_prog_cxx_g+:} false
; then :
3836 $as_echo_n "(cached) " >&6
3838 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3839 ac_cxx_werror_flag
=yes
3842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3853 if ac_fn_cxx_try_compile
"$LINENO"; then :
3854 ac_cv_prog_cxx_g
=yes
3857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3868 if ac_fn_cxx_try_compile
"$LINENO"; then :
3871 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3884 if ac_fn_cxx_try_compile
"$LINENO"; then :
3885 ac_cv_prog_cxx_g
=yes
3887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3892 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3895 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3896 if test "$ac_test_CXXFLAGS" = set; then
3897 CXXFLAGS
=$ac_save_CXXFLAGS
3898 elif test $ac_cv_prog_cxx_g = yes; then
3899 if test "$GXX" = yes; then
3905 if test "$GXX" = yes; then
3912 ac_cpp
='$CPP $CPPFLAGS'
3913 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3917 if test -n "$ac_tool_prefix"; then
3918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3919 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if ${ac_cv_prog_RANLIB+:} false
; then :
3923 $as_echo_n "(cached) " >&6
3925 if test -n "$RANLIB"; then
3926 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir
=.
3933 for ac_exec_ext
in '' $ac_executable_extensions; do
3934 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3935 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 RANLIB
=$ac_cv_prog_RANLIB
3946 if test -n "$RANLIB"; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3948 $as_echo "$RANLIB" >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3956 if test -z "$ac_cv_prog_RANLIB"; then
3957 ac_ct_RANLIB
=$RANLIB
3958 # Extract the first word of "ranlib", so it can be a program name with args.
3959 set dummy ranlib
; ac_word
=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3963 $as_echo_n "(cached) " >&6
3965 if test -n "$ac_ct_RANLIB"; then
3966 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3972 test -z "$as_dir" && as_dir
=.
3973 for ac_exec_ext
in '' $ac_executable_extensions; do
3974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3986 if test -n "$ac_ct_RANLIB"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3988 $as_echo "$ac_ct_RANLIB" >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3994 if test "x$ac_ct_RANLIB" = x
; then
3997 case $cross_compiling:$ac_tool_warned in
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4001 ac_tool_warned
=yes ;;
4003 RANLIB
=$ac_ct_RANLIB
4006 RANLIB
="$ac_cv_prog_RANLIB"
4012 ac_cpp
='$CPP $CPPFLAGS'
4013 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4017 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4018 # On Suns, sometimes $CPP names a directory.
4019 if test -n "$CPP" && test -d "$CPP"; then
4022 if test -z "$CPP"; then
4023 if ${ac_cv_prog_CPP+:} false
; then :
4024 $as_echo_n "(cached) " >&6
4026 # Double quotes because CPP needs to be expanded
4027 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4030 for ac_c_preproc_warn_flag
in '' yes
4032 # Use a header file that comes with gcc, so configuring glibc
4033 # with a fresh cross-compiler works.
4034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4035 # <limits.h> exists even on freestanding compilers.
4036 # On the NeXT, cc -E runs the code through the compiler's parser,
4037 # not just through cpp. "Syntax error" is here to catch this case.
4038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4041 # include <limits.h>
4043 # include <assert.h>
4047 if ac_fn_c_try_cpp
"$LINENO"; then :
4050 # Broken: fails on valid input.
4053 rm -f conftest.err conftest.i conftest.
$ac_ext
4055 # OK, works on sane cases. Now check whether nonexistent headers
4056 # can be detected and how.
4057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 #include <ac_nonexistent.h>
4061 if ac_fn_c_try_cpp
"$LINENO"; then :
4062 # Broken: success on invalid input.
4065 # Passes both tests.
4069 rm -f conftest.err conftest.i conftest.
$ac_ext
4072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4073 rm -f conftest.i conftest.err conftest.
$ac_ext
4074 if $ac_preproc_ok; then :
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4087 $as_echo "$CPP" >&6; }
4089 for ac_c_preproc_warn_flag
in '' yes
4091 # Use a header file that comes with gcc, so configuring glibc
4092 # with a fresh cross-compiler works.
4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4094 # <limits.h> exists even on freestanding compilers.
4095 # On the NeXT, cc -E runs the code through the compiler's parser,
4096 # not just through cpp. "Syntax error" is here to catch this case.
4097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4100 # include <limits.h>
4102 # include <assert.h>
4106 if ac_fn_c_try_cpp
"$LINENO"; then :
4109 # Broken: fails on valid input.
4112 rm -f conftest.err conftest.i conftest.
$ac_ext
4114 # OK, works on sane cases. Now check whether nonexistent headers
4115 # can be detected and how.
4116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118 #include <ac_nonexistent.h>
4120 if ac_fn_c_try_cpp
"$LINENO"; then :
4121 # Broken: success on invalid input.
4124 # Passes both tests.
4128 rm -f conftest.err conftest.i conftest.
$ac_ext
4131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4132 rm -f conftest.i conftest.err conftest.
$ac_ext
4133 if $ac_preproc_ok; then :
4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4139 See \`config.log' for more details" "$LINENO" 5; }
4143 ac_cpp
='$CPP $CPPFLAGS'
4144 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4150 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4151 if ${ac_cv_path_GREP+:} false
; then :
4152 $as_echo_n "(cached) " >&6
4154 if test -z "$GREP"; then
4155 ac_path_GREP_found
=false
4156 # Loop through the user's path and test for each of PROGNAME-LIST
4157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4158 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4161 test -z "$as_dir" && as_dir
=.
4162 for ac_prog
in grep ggrep
; do
4163 for ac_exec_ext
in '' $ac_executable_extensions; do
4164 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4165 as_fn_executable_p
"$ac_path_GREP" ||
continue
4166 # Check for GNU ac_path_GREP and select it if it is found.
4167 # Check for GNU $ac_path_GREP
4168 case `"$ac_path_GREP" --version 2>&1` in
4170 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4173 $as_echo_n 0123456789 >"conftest.in"
4176 cat "conftest.in" "conftest.in" >"conftest.tmp"
4177 mv "conftest.tmp" "conftest.in"
4178 cp "conftest.in" "conftest.nl"
4179 $as_echo 'GREP' >> "conftest.nl"
4180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4181 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4182 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4183 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4184 # Best one so far, save it but keep looking for a better one
4185 ac_cv_path_GREP
="$ac_path_GREP"
4186 ac_path_GREP_max
=$ac_count
4188 # 10*(2^10) chars as input seems more than enough
4189 test $ac_count -gt 10 && break
4191 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4194 $ac_path_GREP_found && break 3
4199 if test -z "$ac_cv_path_GREP"; then
4200 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4203 ac_cv_path_GREP
=$GREP
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4208 $as_echo "$ac_cv_path_GREP" >&6; }
4209 GREP
="$ac_cv_path_GREP"
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4213 $as_echo_n "checking for egrep... " >&6; }
4214 if ${ac_cv_path_EGREP+:} false
; then :
4215 $as_echo_n "(cached) " >&6
4217 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4218 then ac_cv_path_EGREP
="$GREP -E"
4220 if test -z "$EGREP"; then
4221 ac_path_EGREP_found
=false
4222 # Loop through the user's path and test for each of PROGNAME-LIST
4223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4224 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4227 test -z "$as_dir" && as_dir
=.
4228 for ac_prog
in egrep; do
4229 for ac_exec_ext
in '' $ac_executable_extensions; do
4230 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4231 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4232 # Check for GNU ac_path_EGREP and select it if it is found.
4233 # Check for GNU $ac_path_EGREP
4234 case `"$ac_path_EGREP" --version 2>&1` in
4236 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4239 $as_echo_n 0123456789 >"conftest.in"
4242 cat "conftest.in" "conftest.in" >"conftest.tmp"
4243 mv "conftest.tmp" "conftest.in"
4244 cp "conftest.in" "conftest.nl"
4245 $as_echo 'EGREP' >> "conftest.nl"
4246 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4247 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4248 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4249 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4250 # Best one so far, save it but keep looking for a better one
4251 ac_cv_path_EGREP
="$ac_path_EGREP"
4252 ac_path_EGREP_max
=$ac_count
4254 # 10*(2^10) chars as input seems more than enough
4255 test $ac_count -gt 10 && break
4257 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4260 $ac_path_EGREP_found && break 3
4265 if test -z "$ac_cv_path_EGREP"; then
4266 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4269 ac_cv_path_EGREP
=$EGREP
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4275 $as_echo "$ac_cv_path_EGREP" >&6; }
4276 EGREP
="$ac_cv_path_EGREP"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4280 $as_echo_n "checking for ANSI C header files... " >&6; }
4281 if ${ac_cv_header_stdc+:} false
; then :
4282 $as_echo_n "(cached) " >&6
4284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4299 if ac_fn_c_try_compile
"$LINENO"; then :
4300 ac_cv_header_stdc
=yes
4302 ac_cv_header_stdc
=no
4304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4306 if test $ac_cv_header_stdc = yes; then
4307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4314 $EGREP "memchr" >/dev
/null
2>&1; then :
4317 ac_cv_header_stdc
=no
4323 if test $ac_cv_header_stdc = yes; then
4324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331 $EGREP "free" >/dev
/null
2>&1; then :
4334 ac_cv_header_stdc
=no
4340 if test $ac_cv_header_stdc = yes; then
4341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4342 if test "$cross_compiling" = yes; then :
4345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4349 #if ((' ' & 0x0FF) == 0x020)
4350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4353 # define ISLOWER(c) \
4354 (('a' <= (c) && (c) <= 'i') \
4355 || ('j' <= (c) && (c) <= 'r') \
4356 || ('s' <= (c) && (c) <= 'z'))
4357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4365 for (i = 0; i < 256; i++)
4366 if (XOR (islower (i), ISLOWER (i))
4367 || toupper (i) != TOUPPER (i))
4372 if ac_fn_c_try_run
"$LINENO"; then :
4375 ac_cv_header_stdc
=no
4377 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4378 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4384 $as_echo "$ac_cv_header_stdc" >&6; }
4385 if test $ac_cv_header_stdc = yes; then
4387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4392 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4393 inttypes.h stdint.h unistd.h
4395 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4396 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4398 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4399 cat >>confdefs.h
<<_ACEOF
4400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4409 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4410 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4417 if test "$MINIX" = yes; then
4419 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4422 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4425 $as_echo "#define _MINIX 1" >>confdefs.h
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4431 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4432 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4433 $as_echo_n "(cached) " >&6
4435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4438 # define __EXTENSIONS__ 1
4439 $ac_includes_default
4448 if ac_fn_c_try_compile
"$LINENO"; then :
4449 ac_cv_safe_to_define___extensions__
=yes
4451 ac_cv_safe_to_define___extensions__
=no
4453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4456 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4457 test $ac_cv_safe_to_define___extensions__ = yes &&
4458 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4460 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4462 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4464 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4466 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4469 # Check whether --enable-largefile was given.
4470 if test "${enable_largefile+set}" = set; then :
4471 enableval
=$enable_largefile;
4474 if test "$enable_largefile" != no
; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4477 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4478 if ${ac_cv_sys_largefile_CC+:} false
; then :
4479 $as_echo_n "(cached) " >&6
4481 ac_cv_sys_largefile_CC
=no
4482 if test "$GCC" != yes; then
4485 # IRIX 6.2 and later do not support large files by default,
4486 # so use the C compiler's -n32 option if that helps.
4487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489 #include <sys/types.h>
4490 /* Check that off_t can represent 2**63 - 1 correctly.
4491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4492 since some C++ compilers masquerading as C compilers
4493 incorrectly reject 9223372036854775807. */
4494 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4496 && LARGE_OFF_T % 2147483647 == 1)
4506 if ac_fn_c_try_compile
"$LINENO"; then :
4509 rm -f core conftest.err conftest.
$ac_objext
4511 if ac_fn_c_try_compile
"$LINENO"; then :
4512 ac_cv_sys_largefile_CC
=' -n32'; break
4514 rm -f core conftest.err conftest.
$ac_objext
4518 rm -f conftest.
$ac_ext
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4522 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4523 if test "$ac_cv_sys_largefile_CC" != no
; then
4524 CC
=$CC$ac_cv_sys_largefile_CC
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4528 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4529 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4530 $as_echo_n "(cached) " >&6
4533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <sys/types.h>
4536 /* Check that off_t can represent 2**63 - 1 correctly.
4537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4538 since some C++ compilers masquerading as C compilers
4539 incorrectly reject 9223372036854775807. */
4540 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4542 && LARGE_OFF_T % 2147483647 == 1)
4552 if ac_fn_c_try_compile
"$LINENO"; then :
4553 ac_cv_sys_file_offset_bits
=no
; break
4555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #define _FILE_OFFSET_BITS 64
4559 #include <sys/types.h>
4560 /* Check that off_t can represent 2**63 - 1 correctly.
4561 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4562 since some C++ compilers masquerading as C compilers
4563 incorrectly reject 9223372036854775807. */
4564 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4566 && LARGE_OFF_T % 2147483647 == 1)
4576 if ac_fn_c_try_compile
"$LINENO"; then :
4577 ac_cv_sys_file_offset_bits
=64; break
4579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4580 ac_cv_sys_file_offset_bits
=unknown
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4585 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4586 case $ac_cv_sys_file_offset_bits in #(
4589 cat >>confdefs.h
<<_ACEOF
4590 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4595 if test $ac_cv_sys_file_offset_bits = unknown
; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4597 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4598 if ${ac_cv_sys_large_files+:} false
; then :
4599 $as_echo_n "(cached) " >&6
4602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604 #include <sys/types.h>
4605 /* Check that off_t can represent 2**63 - 1 correctly.
4606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4607 since some C++ compilers masquerading as C compilers
4608 incorrectly reject 9223372036854775807. */
4609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4611 && LARGE_OFF_T % 2147483647 == 1)
4621 if ac_fn_c_try_compile
"$LINENO"; then :
4622 ac_cv_sys_large_files
=no
; break
4624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 #define _LARGE_FILES 1
4628 #include <sys/types.h>
4629 /* Check that off_t can represent 2**63 - 1 correctly.
4630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4631 since some C++ compilers masquerading as C compilers
4632 incorrectly reject 9223372036854775807. */
4633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4635 && LARGE_OFF_T % 2147483647 == 1)
4645 if ac_fn_c_try_compile
"$LINENO"; then :
4646 ac_cv_sys_large_files
=1; break
4648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4649 ac_cv_sys_large_files
=unknown
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4654 $as_echo "$ac_cv_sys_large_files" >&6; }
4655 case $ac_cv_sys_large_files in #(
4658 cat >>confdefs.h
<<_ACEOF
4659 #define _LARGE_FILES $ac_cv_sys_large_files
4670 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4671 for ac_prog
in aclocal
4673 # Extract the first word of "$ac_prog", so it can be a program name with args.
4674 set dummy
$ac_prog; ac_word
=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if ${ac_cv_prog_ACLOCAL+:} false
; then :
4678 $as_echo_n "(cached) " >&6
4680 if test -n "$ACLOCAL"; then
4681 ac_cv_prog_ACLOCAL
="$ACLOCAL" # Let the user override the test.
4683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir
=.
4688 for ac_exec_ext
in '' $ac_executable_extensions; do
4689 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4690 ac_cv_prog_ACLOCAL
="$ac_prog"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 ACLOCAL
=$ac_cv_prog_ACLOCAL
4701 if test -n "$ACLOCAL"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4703 $as_echo "$ACLOCAL" >&6; }
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4710 test -n "$ACLOCAL" && break
4712 test -n "$ACLOCAL" || ACLOCAL
="$MISSING aclocal"
4714 for ac_prog
in autoconf
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy
$ac_prog; ac_word
=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_AUTOCONF+:} false
; then :
4721 $as_echo_n "(cached) " >&6
4723 if test -n "$AUTOCONF"; then
4724 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
4726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir
=.
4731 for ac_exec_ext
in '' $ac_executable_extensions; do
4732 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_AUTOCONF
="$ac_prog"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 AUTOCONF
=$ac_cv_prog_AUTOCONF
4744 if test -n "$AUTOCONF"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4746 $as_echo "$AUTOCONF" >&6; }
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4753 test -n "$AUTOCONF" && break
4755 test -n "$AUTOCONF" || AUTOCONF
="$MISSING autoconf"
4757 for ac_prog
in autoheader
4759 # Extract the first word of "$ac_prog", so it can be a program name with args.
4760 set dummy
$ac_prog; ac_word
=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if ${ac_cv_prog_AUTOHEADER+:} false
; then :
4764 $as_echo_n "(cached) " >&6
4766 if test -n "$AUTOHEADER"; then
4767 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
4769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir
=.
4774 for ac_exec_ext
in '' $ac_executable_extensions; do
4775 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4776 ac_cv_prog_AUTOHEADER
="$ac_prog"
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 AUTOHEADER
=$ac_cv_prog_AUTOHEADER
4787 if test -n "$AUTOHEADER"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4789 $as_echo "$AUTOHEADER" >&6; }
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4796 test -n "$AUTOHEADER" && break
4798 test -n "$AUTOHEADER" || AUTOHEADER
="$MISSING autoheader"
4801 # Figure out what compiler warnings we can enable.
4802 # See config/warnings.m4 for details.
4805 ac_cpp
='$CPP $CPPFLAGS'
4806 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4811 save_CFLAGS
="$CFLAGS"
4812 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings \
4813 -Wmissing-format-attribute; do
4814 # Do the check with the no- prefix removed since gcc silently
4815 # accepts any -Wno-* option on purpose
4816 case $real_option in
4817 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4818 *) option
=$real_option ;;
4820 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4823 $as_echo_n "checking whether $CC supports $option... " >&6; }
4824 if eval \
${$as_acx_Woption+:} false
; then :
4825 $as_echo_n "(cached) " >&6
4828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4839 if ac_fn_c_try_compile
"$LINENO"; then :
4840 eval "$as_acx_Woption=yes"
4842 eval "$as_acx_Woption=no"
4844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4847 eval ac_res
=\$
$as_acx_Woption
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4849 $as_echo "$ac_res" >&6; }
4850 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4851 warn
="$warn${warn:+ }$real_option"
4854 CFLAGS
="$save_CFLAGS"
4856 ac_cpp
='$CPP $CPPFLAGS'
4857 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4863 ac_cpp
='$CPP $CPPFLAGS'
4864 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4869 save_CFLAGS
="$CFLAGS"
4870 for real_option
in -Wstrict-prototypes -Wmissing-prototypes \
4871 -Wold-style-definition -Wc++-compat; do
4872 # Do the check with the no- prefix removed since gcc silently
4873 # accepts any -Wno-* option on purpose
4874 case $real_option in
4875 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4876 *) option
=$real_option ;;
4878 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4881 $as_echo_n "checking whether $CC supports $option... " >&6; }
4882 if eval \
${$as_acx_Woption+:} false
; then :
4883 $as_echo_n "(cached) " >&6
4886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4897 if ac_fn_c_try_compile
"$LINENO"; then :
4898 eval "$as_acx_Woption=yes"
4900 eval "$as_acx_Woption=no"
4902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4905 eval ac_res
=\$
$as_acx_Woption
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4907 $as_echo "$ac_res" >&6; }
4908 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4909 c_warn
="$c_warn${c_warn:+ }$real_option"
4912 CFLAGS
="$save_CFLAGS"
4914 ac_cpp
='$CPP $CPPFLAGS'
4915 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4921 ac_cpp
='$CPP $CPPFLAGS'
4922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4927 # Do the check with the no- prefix removed from the warning options
4928 # since gcc silently accepts any -Wno-* option on purpose
4929 if test "$GCC" = yes; then :
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
4931 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
4932 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false
; then :
4933 $as_echo_n "(cached) " >&6
4935 save_CFLAGS
="$CFLAGS"
4936 CFLAGS
="-pedantic -Wlong-long"
4937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4948 if ac_fn_c_try_compile
"$LINENO"; then :
4949 acx_cv_prog_cc_pedantic__Wlong_long
=yes
4951 acx_cv_prog_cc_pedantic__Wlong_long
=no
4953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4954 CFLAGS
="$save_CFLAGS"
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
4957 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
4958 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
4959 WARN_PEDANTIC
="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4964 ac_cpp
='$CPP $CPPFLAGS'
4965 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4971 # Disable exceptions and RTTI if building with g++
4973 ac_cpp
='$CPP $CPPFLAGS'
4974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4979 save_CFLAGS
="$CFLAGS"
4980 for real_option
in -fno-exceptions -fno-rtti; do
4981 # Do the check with the no- prefix removed since gcc silently
4982 # accepts any -Wno-* option on purpose
4983 case $real_option in
4984 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4985 *) option
=$real_option ;;
4987 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4990 $as_echo_n "checking whether $CC supports $option... " >&6; }
4991 if eval \
${$as_acx_Woption+:} false
; then :
4992 $as_echo_n "(cached) " >&6
4995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
5006 if ac_fn_c_try_compile
"$LINENO"; then :
5007 eval "$as_acx_Woption=yes"
5009 eval "$as_acx_Woption=no"
5011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5014 eval ac_res
=\$
$as_acx_Woption
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5016 $as_echo "$ac_res" >&6; }
5017 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5018 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
5021 CFLAGS
="$save_CFLAGS"
5023 ac_cpp
='$CPP $CPPFLAGS'
5024 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5030 # Only enable with --enable-werror-always until existing warnings are
5033 ac_cpp
='$CPP $CPPFLAGS'
5034 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5039 # Check whether --enable-werror-always was given.
5040 if test "${enable_werror_always+set}" = set; then :
5041 enableval
=$enable_werror_always;
5043 enable_werror_always
=no
5046 if test $enable_werror_always = yes; then :
5047 WERROR
="$WERROR${WERROR:+ }-Werror"
5051 ac_cpp
='$CPP $CPPFLAGS'
5052 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5058 # Dependency checking.
5059 rm -rf .tst
2>/dev
/null
5060 mkdir .tst
2>/dev
/null
5061 if test -d .tst
; then
5066 rmdir .tst
2>/dev
/null
5068 DEPDIR
="${am__leading_dot}deps"
5070 ac_config_commands
="$ac_config_commands depdir"
5074 ac_cpp
='$CXXCPP $CPPFLAGS'
5075 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5084 if ac_fn_cxx_try_compile
"$LINENO"; then :
5087 as_fn_error $?
"C++ compiler missing or inoperational" "$LINENO" 5
5089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5091 ac_cpp
='$CPP $CPPFLAGS'
5092 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5096 depcc
="$CXX" am_compiler_list
=
5098 am_depcomp
=$ac_aux_dir/depcomp
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5100 $as_echo_n "checking dependency style of $depcc... " >&6; }
5101 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
5102 $as_echo_n "(cached) " >&6
5104 if test -f "$am_depcomp"; then
5105 # We make a subdir and do the tests there. Otherwise we can end up
5106 # making bogus files that we don't know about and never remove. For
5107 # instance it was reported that on HP-UX the gcc test will end up
5108 # making a dummy file named `D' -- because `-MD' means `put the output
5111 # Copy depcomp to subdir because otherwise we won't find it if we're
5112 # using a relative directory.
5113 cp "$am_depcomp" conftest.dir
5115 # We will build objects and dependencies in a subdirectory because
5116 # it helps to detect inapplicable dependency modes. For instance
5117 # both Tru64's cc and ICC support -MD to output dependencies as a
5118 # side effect of compilation, but ICC will put the dependencies in
5119 # the current directory while Tru64 will put them in the object
5123 am_cv_CXX_dependencies_compiler_type
=none
5124 if test "$am_compiler_list" = ""; then
5125 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5127 for depmode
in $am_compiler_list; do
5128 if test $depmode = none
; then break; fi
5130 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5131 # Setup a source with many dependencies, because some compilers
5132 # like to wrap large dependency lists on column 80 (with \), and
5133 # we should not choose a depcomp mode which is confused by this.
5135 # We need to recreate these files for each test, as the compiler may
5136 # overwrite some of them when testing with obscure command lines.
5137 # This happens at least with the AIX C compiler.
5139 for i
in 1 2 3 4 5 6; do
5140 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5141 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142 # Solaris 8's {/usr,}/bin/sh.
5143 touch sub
/conftst
$i.h
5145 echo "include sub/conftest.Po" > confmf
5147 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5148 # mode. It turns out that the SunPro C++ compiler does not properly
5149 # handle `-M -o', and we need to detect this.
5150 depcmd
="depmode=$depmode \
5151 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5153 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5154 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5155 if env
$depcmd > conftest.err
2>&1 &&
5156 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5157 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5158 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5159 # icc doesn't choke on unknown options, it will just issue warnings
5160 # or remarks (even with -Werror). So we grep stderr for any message
5161 # that says an option was ignored or not supported.
5162 # When given -MP, icc 7.0 and 7.1 complain thusly:
5163 # icc: Command line warning: ignoring option '-M'; no argument required
5164 # The diagnosis changed in icc 8.0:
5165 # icc: Command line remark: option '-MP' not supported
5166 if (grep 'ignoring option' conftest.err ||
5167 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5168 am_cv_CXX_dependencies_compiler_type
=$depmode
5169 $as_echo "$as_me:$LINENO: success" >&5
5173 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5174 sed -e 's/^/| /' < conftest.err
>&5
5180 am_cv_CXX_dependencies_compiler_type
=none
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5185 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5186 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
5187 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
5188 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5193 # Checks for header files.
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5195 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5196 if ${ac_cv_header_time+:} false
; then :
5197 $as_echo_n "(cached) " >&6
5199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 #include <sys/types.h>
5202 #include <sys/time.h>
5208 if ((struct tm *) 0)
5214 if ac_fn_c_try_compile
"$LINENO"; then :
5215 ac_cv_header_time
=yes
5217 ac_cv_header_time
=no
5219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5222 $as_echo "$ac_cv_header_time" >&6; }
5223 if test $ac_cv_header_time = yes; then
5225 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5230 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5231 if ${gcc_cv_header_string+:} false
; then :
5232 $as_echo_n "(cached) " >&6
5234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5237 #include <strings.h>
5246 if ac_fn_c_try_compile
"$LINENO"; then :
5247 gcc_cv_header_string
=yes
5249 gcc_cv_header_string
=no
5251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5254 $as_echo "$gcc_cv_header_string" >&6; }
5255 if test $gcc_cv_header_string = yes; then
5257 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5262 for ac_header
in locale.h fcntl.h limits.h stddef.h \
5263 stdlib.h
strings.h string.h sys
/file.h unistd.h
5265 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5266 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5267 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5268 cat >>confdefs.h
<<_ACEOF
5269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5277 # Checks for typedefs, structures, and compiler characteristics.
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5279 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5280 if ${ac_cv_c_bigendian+:} false
; then :
5281 $as_echo_n "(cached) " >&6
5283 ac_cv_c_bigendian
=unknown
5284 # See if we're dealing with a universal compiler.
5285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #ifndef __APPLE_CC__
5288 not a universal capable compiler
5293 if ac_fn_c_try_compile
"$LINENO"; then :
5295 # Check for potential -arch flags. It is not universal unless
5296 # there are at least two -arch flags with different values.
5299 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5300 if test -n "$ac_prev"; then
5302 i?
86 | x86_64 | ppc | ppc64
)
5303 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5306 ac_cv_c_bigendian
=universal
5312 elif test "x$ac_word" = "x-arch"; then
5317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5318 if test $ac_cv_c_bigendian = unknown
; then
5319 # See if sys/param.h defines the BYTE_ORDER macro.
5320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #include <sys/types.h>
5323 #include <sys/param.h>
5328 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5329 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5338 if ac_fn_c_try_compile
"$LINENO"; then :
5339 # It does; now see whether it defined to BIG_ENDIAN or not.
5340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342 #include <sys/types.h>
5343 #include <sys/param.h>
5348 #if BYTE_ORDER != BIG_ENDIAN
5356 if ac_fn_c_try_compile
"$LINENO"; then :
5357 ac_cv_c_bigendian
=yes
5359 ac_cv_c_bigendian
=no
5361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5365 if test $ac_cv_c_bigendian = unknown
; then
5366 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5374 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5382 if ac_fn_c_try_compile
"$LINENO"; then :
5383 # It does; now see whether it defined to _BIG_ENDIAN or not.
5384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5399 if ac_fn_c_try_compile
"$LINENO"; then :
5400 ac_cv_c_bigendian
=yes
5402 ac_cv_c_bigendian
=no
5404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5408 if test $ac_cv_c_bigendian = unknown
; then
5409 # Compile a test program.
5410 if test "$cross_compiling" = yes; then :
5411 # Try to guess by grepping values from an object file.
5412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 short int ascii_mm[] =
5415 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5416 short int ascii_ii[] =
5417 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5418 int use_ascii (int i) {
5419 return ascii_mm[i] + ascii_ii[i];
5421 short int ebcdic_ii[] =
5422 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5423 short int ebcdic_mm[] =
5424 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5425 int use_ebcdic (int i) {
5426 return ebcdic_mm[i] + ebcdic_ii[i];
5433 return use_ascii (foo) == use_ebcdic (foo);
5438 if ac_fn_c_try_compile
"$LINENO"; then :
5439 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5440 ac_cv_c_bigendian
=yes
5442 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5443 if test "$ac_cv_c_bigendian" = unknown
; then
5444 ac_cv_c_bigendian
=no
5446 # finding both strings is unlikely to happen, but who knows?
5447 ac_cv_c_bigendian
=unknown
5451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 $ac_includes_default
5460 /* Are we little or big endian? From Harbison&Steele. */
5464 char c[sizeof (long int)];
5467 return u.c[sizeof (long int) - 1] == 1;
5473 if ac_fn_c_try_run
"$LINENO"; then :
5474 ac_cv_c_bigendian
=no
5476 ac_cv_c_bigendian
=yes
5478 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5479 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5485 $as_echo "$ac_cv_c_bigendian" >&6; }
5486 case $ac_cv_c_bigendian in #(
5488 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5494 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5498 as_fn_error $?
"unknown endianness
5499 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5503 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5504 if ${ac_cv_c_const+:} false
; then :
5505 $as_echo_n "(cached) " >&6
5507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5515 /* Ultrix mips cc rejects this sort of thing. */
5516 typedef int charset[2];
5517 const charset cs = { 0, 0 };
5518 /* SunOS 4.1.1 cc rejects this. */
5519 char const *const *pcpcc;
5521 /* NEC SVR4.0.2 mips cc rejects this. */
5522 struct point {int x, y;};
5523 static struct point const zero = {0,0};
5524 /* AIX XL C 1.02.0.0 rejects this.
5525 It does not let you subtract one const X* pointer from another in
5526 an arm of an if-expression whose if-part is not a constant
5528 const char *g = "string";
5529 pcpcc = &g + (g ? g-g : 0);
5530 /* HPUX 7.0 cc rejects these. */
5532 ppc = (char**) pcpcc;
5533 pcpcc = (char const *const *) ppc;
5534 { /* SCO 3.2v4 cc rejects this sort of thing. */
5537 char const *s = 0 ? (char *) 0 : (char const *) 0;
5542 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5544 const int *foo = &x[0];
5547 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5548 typedef const int *iptr;
5552 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5553 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5554 struct s { int j; const int *ap[3]; } bx;
5555 struct s *b = &bx; b->j = 5;
5557 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5561 return !cs[0] && !zero.x;
5568 if ac_fn_c_try_compile
"$LINENO"; then :
5573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5576 $as_echo "$ac_cv_c_const" >&6; }
5577 if test $ac_cv_c_const = no
; then
5579 $as_echo "#define const /**/" >>confdefs.h
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5584 $as_echo_n "checking for inline... " >&6; }
5585 if ${ac_cv_c_inline+:} false
; then :
5586 $as_echo_n "(cached) " >&6
5589 for ac_kw
in inline __inline__ __inline
; do
5590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5594 static $ac_kw foo_t static_foo () {return 0; }
5595 $ac_kw foo_t foo () {return 0; }
5599 if ac_fn_c_try_compile
"$LINENO"; then :
5600 ac_cv_c_inline
=$ac_kw
5602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5603 test "$ac_cv_c_inline" != no
&& break
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5608 $as_echo "$ac_cv_c_inline" >&6; }
5610 case $ac_cv_c_inline in
5613 case $ac_cv_c_inline in
5615 *) ac_val
=$ac_cv_c_inline;;
5617 cat >>confdefs.h
<<_ACEOF
5619 #define inline $ac_val
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5626 $as_echo_n "checking for obstacks... " >&6; }
5627 if ${ac_cv_func_obstack+:} false
; then :
5628 $as_echo_n "(cached) " >&6
5630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 $ac_includes_default
5633 #include "obstack.h"
5638 #define obstack_chunk_alloc malloc
5639 #define obstack_chunk_free free
5640 obstack_init (&mem);
5641 obstack_free (&mem, 0);
5646 if ac_fn_c_try_link
"$LINENO"; then :
5647 ac_cv_func_obstack
=yes
5649 ac_cv_func_obstack
=no
5651 rm -f core conftest.err conftest.
$ac_objext \
5652 conftest
$ac_exeext conftest.
$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5655 $as_echo "$ac_cv_func_obstack" >&6; }
5656 if test $ac_cv_func_obstack = yes; then
5658 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5661 case " $LIBOBJS " in
5662 *" obstack.$ac_objext "* ) ;;
5663 *) LIBOBJS
="$LIBOBJS obstack.$ac_objext"
5669 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5670 if test "x$ac_cv_type_off_t" = xyes
; then :
5674 cat >>confdefs.h
<<_ACEOF
5675 #define off_t long int
5680 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5681 if test "x$ac_cv_type_size_t" = xyes
; then :
5685 cat >>confdefs.h
<<_ACEOF
5686 #define size_t unsigned int
5691 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5692 if test "x$ac_cv_type_ssize_t" = xyes
; then :
5696 cat >>confdefs.h
<<_ACEOF
5703 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5704 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
5706 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5709 for ac_type
in 'unsigned int' 'unsigned long int' \
5710 'unsigned long long int'; do
5711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 $ac_includes_default
5717 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5719 return test_array [0];
5725 if ac_fn_c_try_compile
"$LINENO"; then :
5727 cat >>confdefs.h
<<_ACEOF
5728 #define uintptr_t $ac_type
5733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5734 test -z "$ac_type" && break
5739 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5740 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
5744 cat >>confdefs.h
<<_ACEOF
5745 #define ptrdiff_t int
5750 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5751 case $ac_cv_c_uint64_t in #(
5755 $as_echo "#define _UINT64_T 1" >>confdefs.h
5758 cat >>confdefs.h
<<_ACEOF
5759 #define uint64_t $ac_cv_c_uint64_t
5764 if test x
"$ac_cv_c_uint64_t" = x
"no"; then
5765 as_fn_error $?
"uint64_t not found" "$LINENO" 5
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5768 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5769 if ${ac_cv_struct_tm+:} false
; then :
5770 $as_echo_n "(cached) " >&6
5772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #include <sys/types.h>
5781 int *p = &tm.tm_sec;
5787 if ac_fn_c_try_compile
"$LINENO"; then :
5788 ac_cv_struct_tm
=time.h
5790 ac_cv_struct_tm
=sys
/time.h
5792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5795 $as_echo "$ac_cv_struct_tm" >&6; }
5796 if test $ac_cv_struct_tm = sys
/time.h
; then
5798 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5802 # The cast to long int works around a bug in the HP C Compiler
5803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5805 # This bug is HP SR number 8606223364.
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5807 $as_echo_n "checking size of int... " >&6; }
5808 if ${ac_cv_sizeof_int+:} false
; then :
5809 $as_echo_n "(cached) " >&6
5811 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5814 if test "$ac_cv_type_int" = yes; then
5815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5817 as_fn_error
77 "cannot compute sizeof (int)
5818 See \`config.log' for more details" "$LINENO" 5; }
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5826 $as_echo "$ac_cv_sizeof_int" >&6; }
5830 cat >>confdefs.h
<<_ACEOF
5831 #define SIZEOF_INT $ac_cv_sizeof_int
5835 # The cast to long int works around a bug in the HP C Compiler
5836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5838 # This bug is HP SR number 8606223364.
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5840 $as_echo_n "checking size of long... " >&6; }
5841 if ${ac_cv_sizeof_long+:} false
; then :
5842 $as_echo_n "(cached) " >&6
5844 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5847 if test "$ac_cv_type_long" = yes; then
5848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5850 as_fn_error
77 "cannot compute sizeof (long)
5851 See \`config.log' for more details" "$LINENO" 5; }
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5859 $as_echo "$ac_cv_sizeof_long" >&6; }
5863 cat >>confdefs.h
<<_ACEOF
5864 #define SIZEOF_LONG $ac_cv_sizeof_long
5869 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
5871 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5872 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5873 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5874 cat >>confdefs.h
<<_ACEOF
5875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5881 ac_fn_c_check_decl
"$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5882 if test "x$ac_cv_have_decl_abort" = xyes
; then :
5888 cat >>confdefs.h
<<_ACEOF
5889 #define HAVE_DECL_ABORT $ac_have_decl
5891 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5892 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
5898 cat >>confdefs.h
<<_ACEOF
5899 #define HAVE_DECL_ASPRINTF $ac_have_decl
5901 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
5902 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
5903 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
5909 cat >>confdefs.h
<<_ACEOF
5910 #define HAVE_DECL_BASENAME $ac_have_decl
5912 ac_fn_c_check_decl
"$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5913 if test "x$ac_cv_have_decl_errno" = xyes
; then :
5919 cat >>confdefs.h
<<_ACEOF
5920 #define HAVE_DECL_ERRNO $ac_have_decl
5922 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5923 if test "x$ac_cv_have_decl_getopt" = xyes
; then :
5929 cat >>confdefs.h
<<_ACEOF
5930 #define HAVE_DECL_GETOPT $ac_have_decl
5932 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5933 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
5939 cat >>confdefs.h
<<_ACEOF
5940 #define HAVE_DECL_VASPRINTF $ac_have_decl
5943 ac_fn_c_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5944 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes
; then :
5950 cat >>confdefs.h
<<_ACEOF
5951 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5953 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5954 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
; then :
5960 cat >>confdefs.h
<<_ACEOF
5961 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5963 ac_fn_c_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5964 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes
; then :
5970 cat >>confdefs.h
<<_ACEOF
5971 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5973 ac_fn_c_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5974 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes
; then :
5980 cat >>confdefs.h
<<_ACEOF
5981 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5983 ac_fn_c_check_decl
"$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5984 if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes
; then :
5990 cat >>confdefs.h
<<_ACEOF
5991 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5993 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5994 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
; then :
6000 cat >>confdefs.h
<<_ACEOF
6001 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6003 ac_fn_c_check_decl
"$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6004 if test "x$ac_cv_have_decl_fileno_unlocked" = xyes
; then :
6010 cat >>confdefs.h
<<_ACEOF
6011 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6013 ac_fn_c_check_decl
"$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6014 if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes
; then :
6020 cat >>confdefs.h
<<_ACEOF
6021 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6023 ac_fn_c_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6024 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes
; then :
6030 cat >>confdefs.h
<<_ACEOF
6031 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6033 ac_fn_c_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6034 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes
; then :
6040 cat >>confdefs.h
<<_ACEOF
6041 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6043 ac_fn_c_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6044 if test "x$ac_cv_have_decl_fread_unlocked" = xyes
; then :
6050 cat >>confdefs.h
<<_ACEOF
6051 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6053 ac_fn_c_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6054 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes
; then :
6060 cat >>confdefs.h
<<_ACEOF
6061 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6063 ac_fn_c_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6064 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes
; then :
6070 cat >>confdefs.h
<<_ACEOF
6071 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6073 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6074 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
6080 cat >>confdefs.h
<<_ACEOF
6081 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6083 ac_fn_c_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6084 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes
; then :
6090 cat >>confdefs.h
<<_ACEOF
6091 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6093 ac_fn_c_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6094 if test "x$ac_cv_have_decl_putc_unlocked" = xyes
; then :
6100 cat >>confdefs.h
<<_ACEOF
6101 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6105 # Checks for library functions.
6106 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6107 # for constant arguments. Useless!
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6109 $as_echo_n "checking for working alloca.h... " >&6; }
6110 if ${ac_cv_working_alloca_h+:} false
; then :
6111 $as_echo_n "(cached) " >&6
6113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6119 char *p = (char *) alloca (2 * sizeof (int));
6125 if ac_fn_c_try_link
"$LINENO"; then :
6126 ac_cv_working_alloca_h
=yes
6128 ac_cv_working_alloca_h
=no
6130 rm -f core conftest.err conftest.
$ac_objext \
6131 conftest
$ac_exeext conftest.
$ac_ext
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6134 $as_echo "$ac_cv_working_alloca_h" >&6; }
6135 if test $ac_cv_working_alloca_h = yes; then
6137 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6142 $as_echo_n "checking for alloca... " >&6; }
6143 if ${ac_cv_func_alloca_works+:} false
; then :
6144 $as_echo_n "(cached) " >&6
6146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6149 # define alloca __builtin_alloca
6152 # include <malloc.h>
6153 # define alloca _alloca
6155 # ifdef HAVE_ALLOCA_H
6156 # include <alloca.h>
6161 # ifndef alloca /* predefined by HP cc +Olibcalls */
6162 void *alloca (size_t);
6172 char *p = (char *) alloca (1);
6178 if ac_fn_c_try_link
"$LINENO"; then :
6179 ac_cv_func_alloca_works
=yes
6181 ac_cv_func_alloca_works
=no
6183 rm -f core conftest.err conftest.
$ac_objext \
6184 conftest
$ac_exeext conftest.
$ac_ext
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6187 $as_echo "$ac_cv_func_alloca_works" >&6; }
6189 if test $ac_cv_func_alloca_works = yes; then
6191 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6194 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6195 # that cause trouble. Some versions do not even contain alloca or
6196 # contain a buggy version. If you still want to use their alloca,
6197 # use ar to extract alloca.o from them instead of compiling alloca.c.
6199 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6201 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6205 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6206 if ${ac_cv_os_cray+:} false
; then :
6207 $as_echo_n "(cached) " >&6
6209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 #if defined CRAY && ! defined CRAY2
6218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6219 $EGREP "webecray" >/dev
/null
2>&1; then :
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6228 $as_echo "$ac_cv_os_cray" >&6; }
6229 if test $ac_cv_os_cray = yes; then
6230 for ac_func
in _getb67 GETB67 getb67
; do
6231 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6232 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6233 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6235 cat >>confdefs.h
<<_ACEOF
6236 #define CRAY_STACKSEG_END $ac_func
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6246 $as_echo_n "checking stack direction for C alloca... " >&6; }
6247 if ${ac_cv_c_stack_direction+:} false
; then :
6248 $as_echo_n "(cached) " >&6
6250 if test "$cross_compiling" = yes; then :
6251 ac_cv_c_stack_direction
=0
6253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255 $ac_includes_default
6257 find_stack_direction (int *addr, int depth)
6262 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6263 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6268 main (int argc, char **argv)
6270 return find_stack_direction (0, argc + !argv + 20) < 0;
6273 if ac_fn_c_try_run
"$LINENO"; then :
6274 ac_cv_c_stack_direction
=1
6276 ac_cv_c_stack_direction
=-1
6278 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6279 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6284 $as_echo "$ac_cv_c_stack_direction" >&6; }
6285 cat >>confdefs.h
<<_ACEOF
6286 #define STACK_DIRECTION $ac_cv_c_stack_direction
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6293 $as_echo_n "checking for ANSI C header files... " >&6; }
6294 if ${ac_cv_header_stdc+:} false
; then :
6295 $as_echo_n "(cached) " >&6
6297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6312 if ac_fn_c_try_compile
"$LINENO"; then :
6313 ac_cv_header_stdc
=yes
6315 ac_cv_header_stdc
=no
6317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6319 if test $ac_cv_header_stdc = yes; then
6320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6327 $EGREP "memchr" >/dev
/null
2>&1; then :
6330 ac_cv_header_stdc
=no
6336 if test $ac_cv_header_stdc = yes; then
6337 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6344 $EGREP "free" >/dev
/null
2>&1; then :
6347 ac_cv_header_stdc
=no
6353 if test $ac_cv_header_stdc = yes; then
6354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6355 if test "$cross_compiling" = yes; then :
6358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6362 #if ((' ' & 0x0FF) == 0x020)
6363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6366 # define ISLOWER(c) \
6367 (('a' <= (c) && (c) <= 'i') \
6368 || ('j' <= (c) && (c) <= 'r') \
6369 || ('s' <= (c) && (c) <= 'z'))
6370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6378 for (i = 0; i < 256; i++)
6379 if (XOR (islower (i), ISLOWER (i))
6380 || toupper (i) != TOUPPER (i))
6385 if ac_fn_c_try_run
"$LINENO"; then :
6388 ac_cv_header_stdc
=no
6390 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6391 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6397 $as_echo "$ac_cv_header_stdc" >&6; }
6398 if test $ac_cv_header_stdc = yes; then
6400 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6406 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6407 if ${am_cv_langinfo_codeset+:} false
; then :
6408 $as_echo_n "(cached) " >&6
6410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6412 #include <langinfo.h>
6416 char* cs = nl_langinfo(CODESET);
6421 if ac_fn_c_try_link
"$LINENO"; then :
6422 am_cv_langinfo_codeset
=yes
6424 am_cv_langinfo_codeset
=no
6426 rm -f core conftest.err conftest.
$ac_objext \
6427 conftest
$ac_exeext conftest.
$ac_ext
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6431 $as_echo "$am_cv_langinfo_codeset" >&6; }
6432 if test $am_cv_langinfo_codeset = yes; then
6434 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6438 # If we haven't got the data from the intl directory,
6439 # assume NLS is disabled.
6448 if test -f ..
/intl
/config.intl
; then
6449 . ..
/intl
/config.intl
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6452 $as_echo_n "checking whether NLS is requested... " >&6; }
6453 if test x
"$USE_NLS" != xyes
; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6458 $as_echo "yes" >&6; }
6460 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6464 $as_echo_n "checking for catalogs to be installed... " >&6; }
6465 # Look for .po and .gmo files in the source directory.
6468 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6469 # If there aren't any .gmo files the shell will give us the
6470 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6472 case "$cat" in *\
**)
6475 # The quadruple backslash is collapsed to a double backslash
6476 # by the backticks, then collapsed again by the double quotes,
6477 # leaving us with one backslash in the sed expression (right
6478 # before the dot that mustn't act as a wildcard).
6479 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6480 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6481 # The user is allowed to set LINGUAS to a list of languages to
6482 # install catalogs for. If it's empty that means "all of them."
6483 if test "x$LINGUAS" = x
; then
6484 CATALOGS
="$CATALOGS $cat"
6485 XLINGUAS
="$XLINGUAS $lang"
6487 case "$LINGUAS" in *$lang*)
6488 CATALOGS
="$CATALOGS $cat"
6489 XLINGUAS
="$XLINGUAS $lang"
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6496 $as_echo "$LINGUAS" >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6510 $as_echo_n "checking for uchar... " >&6; }
6511 if ${gcc_cv_type_uchar+:} false
; then :
6512 $as_echo_n "(cached) " >&6
6514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6517 #include <sys/types.h>
6522 if ((uchar *)0) return 0;
6523 if (sizeof(uchar)) return 0;
6528 if ac_fn_c_try_compile
"$LINENO"; then :
6529 ac_cv_type_uchar
=yes
6533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6536 $as_echo "$gcc_cv_type_uchar" >&6; }
6537 if test $ac_cv_type_uchar = yes; then
6539 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6543 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6544 # iconv() prototype.
6546 ac_cpp
='$CXXCPP $CPPFLAGS'
6547 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6548 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6549 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6552 if test "X$prefix" = "XNONE"; then
6553 acl_final_prefix
="$ac_default_prefix"
6555 acl_final_prefix
="$prefix"
6557 if test "X$exec_prefix" = "XNONE"; then
6558 acl_final_exec_prefix
='${prefix}'
6560 acl_final_exec_prefix
="$exec_prefix"
6562 acl_save_prefix
="$prefix"
6563 prefix
="$acl_final_prefix"
6564 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6565 prefix
="$acl_save_prefix"
6568 # Check whether --with-gnu-ld was given.
6569 if test "${with_gnu_ld+set}" = set; then :
6570 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6575 # Prepare PATH_SEPARATOR.
6576 # The user is always right.
6577 if test "${PATH_SEPARATOR+set}" != set; then
6578 echo "#! /bin/sh" >conf$$.sh
6579 echo "exit 0" >>conf$$.sh
6581 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6589 if test "$GCC" = yes; then
6590 # Check if gcc -print-prog-name=ld gives a path.
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6592 $as_echo_n "checking for ld used by GCC... " >&6; }
6595 # gcc leaves a trailing carriage return which upsets mingw
6596 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6598 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6601 # Accept absolute paths.
6602 [\\/]* |
[A-Za-z
]:[\\/]*)
6603 re_direlt
='/[^/][^/]*/\.\./'
6604 # Canonicalize the path of ld
6605 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6606 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6607 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6609 test -z "$LD" && LD
="$ac_prog"
6612 # If it fails, then pretend we aren't using GCC.
6616 # If it is relative, then search for the first ld in PATH.
6620 elif test "$with_gnu_ld" = yes; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6622 $as_echo_n "checking for GNU ld... " >&6; }
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6625 $as_echo_n "checking for non-GNU ld... " >&6; }
6627 if ${acl_cv_path_LD+:} false
; then :
6628 $as_echo_n "(cached) " >&6
6630 if test -z "$LD"; then
6631 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6632 for ac_dir
in $PATH; do
6633 test -z "$ac_dir" && ac_dir
=.
6634 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6635 acl_cv_path_LD
="$ac_dir/$ac_prog"
6636 # Check to see if the program is GNU ld. I'd rather use --version,
6637 # but apparently some GNU ld's only accept -v.
6638 # Break only if it was the GNU/non-GNU ld that we prefer.
6639 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6640 test "$with_gnu_ld" != no
&& break
6642 test "$with_gnu_ld" != yes && break
6648 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6652 LD
="$acl_cv_path_LD"
6653 if test -n "$LD"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6655 $as_echo "$LD" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6660 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6662 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6663 if ${acl_cv_prog_gnu_ld+:} false
; then :
6664 $as_echo_n "(cached) " >&6
6666 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6667 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6668 acl_cv_prog_gnu_ld
=yes
6670 acl_cv_prog_gnu_ld
=no
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6674 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6675 with_gnu_ld
=$acl_cv_prog_gnu_ld
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6680 $as_echo_n "checking for shared library run path origin... " >&6; }
6681 if ${acl_cv_rpath+:} false
; then :
6682 $as_echo_n "(cached) " >&6
6685 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6686 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6693 $as_echo "$acl_cv_rpath" >&6; }
6695 libext
="$acl_cv_libext"
6696 shlibext
="$acl_cv_shlibext"
6697 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6698 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6699 hardcode_direct
="$acl_cv_hardcode_direct"
6700 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6701 # Check whether --enable-rpath was given.
6702 if test "${enable_rpath+set}" = set; then :
6703 enableval
=$enable_rpath; :
6717 acl_save_prefix
="$prefix"
6718 prefix
="$acl_final_prefix"
6719 acl_save_exec_prefix
="$exec_prefix"
6720 exec_prefix
="$acl_final_exec_prefix"
6722 eval additional_includedir
=\"$includedir\"
6723 eval additional_libdir
=\"$libdir\"
6725 exec_prefix
="$acl_save_exec_prefix"
6726 prefix
="$acl_save_prefix"
6729 # Check whether --with-libiconv-prefix was given.
6730 if test "${with_libiconv_prefix+set}" = set; then :
6731 withval
=$with_libiconv_prefix;
6732 if test "X$withval" = "Xno"; then
6735 if test "X$withval" = "X"; then
6737 acl_save_prefix
="$prefix"
6738 prefix
="$acl_final_prefix"
6739 acl_save_exec_prefix
="$exec_prefix"
6740 exec_prefix
="$acl_final_exec_prefix"
6742 eval additional_includedir
=\"$includedir\"
6743 eval additional_libdir
=\"$libdir\"
6745 exec_prefix
="$acl_save_exec_prefix"
6746 prefix
="$acl_save_prefix"
6749 additional_includedir
="$withval/include"
6750 additional_libdir
="$withval/lib"
6761 names_already_handled
=
6762 names_next_round
='iconv '
6763 while test -n "$names_next_round"; do
6764 names_this_round
="$names_next_round"
6766 for name
in $names_this_round; do
6768 for n
in $names_already_handled; do
6769 if test "$n" = "$name"; then
6774 if test -z "$already_handled"; then
6775 names_already_handled
="$names_already_handled $name"
6776 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6777 eval value
=\"\
$HAVE_LIB$uppername\"
6778 if test -n "$value"; then
6779 if test "$value" = yes; then
6780 eval value
=\"\
$LIB$uppername\"
6781 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
6782 eval value
=\"\
$LTLIB$uppername\"
6783 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
6792 if test $use_additional = yes; then
6793 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6794 found_dir
="$additional_libdir"
6795 found_so
="$additional_libdir/lib$name.$shlibext"
6796 if test -f "$additional_libdir/lib$name.la"; then
6797 found_la
="$additional_libdir/lib$name.la"
6800 if test -f "$additional_libdir/lib$name.$libext"; then
6801 found_dir
="$additional_libdir"
6802 found_a
="$additional_libdir/lib$name.$libext"
6803 if test -f "$additional_libdir/lib$name.la"; then
6804 found_la
="$additional_libdir/lib$name.la"
6809 if test "X$found_dir" = "X"; then
6810 for x
in $LDFLAGS $LTLIBICONV; do
6812 acl_save_prefix
="$prefix"
6813 prefix
="$acl_final_prefix"
6814 acl_save_exec_prefix
="$exec_prefix"
6815 exec_prefix
="$acl_final_exec_prefix"
6817 exec_prefix
="$acl_save_exec_prefix"
6818 prefix
="$acl_save_prefix"
6822 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6823 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6825 found_so
="$dir/lib$name.$shlibext"
6826 if test -f "$dir/lib$name.la"; then
6827 found_la
="$dir/lib$name.la"
6830 if test -f "$dir/lib$name.$libext"; then
6832 found_a
="$dir/lib$name.$libext"
6833 if test -f "$dir/lib$name.la"; then
6834 found_la
="$dir/lib$name.la"
6840 if test "X$found_dir" != "X"; then
6845 if test "X$found_dir" != "X"; then
6846 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6847 if test "X$found_so" != "X"; then
6848 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6849 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6852 for x
in $ltrpathdirs; do
6853 if test "X$x" = "X$found_dir"; then
6858 if test -z "$haveit"; then
6859 ltrpathdirs
="$ltrpathdirs $found_dir"
6861 if test "$hardcode_direct" = yes; then
6862 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6864 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6865 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6867 for x
in $rpathdirs; do
6868 if test "X$x" = "X$found_dir"; then
6873 if test -z "$haveit"; then
6874 rpathdirs
="$rpathdirs $found_dir"
6878 for x
in $LDFLAGS $LIBICONV; do
6880 acl_save_prefix
="$prefix"
6881 prefix
="$acl_final_prefix"
6882 acl_save_exec_prefix
="$exec_prefix"
6883 exec_prefix
="$acl_final_exec_prefix"
6885 exec_prefix
="$acl_save_exec_prefix"
6886 prefix
="$acl_save_prefix"
6888 if test "X$x" = "X-L$found_dir"; then
6893 if test -z "$haveit"; then
6894 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6896 if test "$hardcode_minus_L" != no
; then
6897 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6899 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
6905 if test "X$found_a" != "X"; then
6906 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
6908 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6911 additional_includedir
=
6912 case "$found_dir" in
6914 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6915 additional_includedir
="$basedir/include"
6918 if test "X$additional_includedir" != "X"; then
6919 if test "X$additional_includedir" != "X/usr/include"; then
6921 if test "X$additional_includedir" = "X/usr/local/include"; then
6922 if test -n "$GCC"; then
6924 linux
*) haveit
=yes;;
6928 if test -z "$haveit"; then
6929 for x
in $CPPFLAGS $INCICONV; do
6931 acl_save_prefix
="$prefix"
6932 prefix
="$acl_final_prefix"
6933 acl_save_exec_prefix
="$exec_prefix"
6934 exec_prefix
="$acl_final_exec_prefix"
6936 exec_prefix
="$acl_save_exec_prefix"
6937 prefix
="$acl_save_prefix"
6939 if test "X$x" = "X-I$additional_includedir"; then
6944 if test -z "$haveit"; then
6945 if test -d "$additional_includedir"; then
6946 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6952 if test -n "$found_la"; then
6953 save_libdir
="$libdir"
6955 */* |
*\\*) .
"$found_la" ;;
6956 *) .
"./$found_la" ;;
6958 libdir
="$save_libdir"
6959 for dep
in $dependency_libs; do
6962 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6963 if test "X$additional_libdir" != "X/usr/lib"; then
6965 if test "X$additional_libdir" = "X/usr/local/lib"; then
6966 if test -n "$GCC"; then
6968 linux
*) haveit
=yes;;
6972 if test -z "$haveit"; then
6974 for x
in $LDFLAGS $LIBICONV; do
6976 acl_save_prefix
="$prefix"
6977 prefix
="$acl_final_prefix"
6978 acl_save_exec_prefix
="$exec_prefix"
6979 exec_prefix
="$acl_final_exec_prefix"
6981 exec_prefix
="$acl_save_exec_prefix"
6982 prefix
="$acl_save_prefix"
6984 if test "X$x" = "X-L$additional_libdir"; then
6989 if test -z "$haveit"; then
6990 if test -d "$additional_libdir"; then
6991 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6995 for x
in $LDFLAGS $LTLIBICONV; do
6997 acl_save_prefix
="$prefix"
6998 prefix
="$acl_final_prefix"
6999 acl_save_exec_prefix
="$exec_prefix"
7000 exec_prefix
="$acl_final_exec_prefix"
7002 exec_prefix
="$acl_save_exec_prefix"
7003 prefix
="$acl_save_prefix"
7005 if test "X$x" = "X-L$additional_libdir"; then
7010 if test -z "$haveit"; then
7011 if test -d "$additional_libdir"; then
7012 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7019 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7020 if test "$enable_rpath" != no
; then
7022 for x
in $rpathdirs; do
7023 if test "X$x" = "X$dir"; then
7028 if test -z "$haveit"; then
7029 rpathdirs
="$rpathdirs $dir"
7032 for x
in $ltrpathdirs; do
7033 if test "X$x" = "X$dir"; then
7038 if test -z "$haveit"; then
7039 ltrpathdirs
="$ltrpathdirs $dir"
7044 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7047 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7050 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7051 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7057 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7058 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7064 if test "X$rpathdirs" != "X"; then
7065 if test -n "$hardcode_libdir_separator"; then
7067 for found_dir
in $rpathdirs; do
7068 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7070 acl_save_libdir
="$libdir"
7072 eval flag
=\"$hardcode_libdir_flag_spec\"
7073 libdir
="$acl_save_libdir"
7074 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7076 for found_dir
in $rpathdirs; do
7077 acl_save_libdir
="$libdir"
7079 eval flag
=\"$hardcode_libdir_flag_spec\"
7080 libdir
="$acl_save_libdir"
7081 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7085 if test "X$ltrpathdirs" != "X"; then
7086 for found_dir
in $ltrpathdirs; do
7087 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7098 $as_echo_n "checking for iconv... " >&6; }
7099 if ${am_cv_func_iconv+:} false
; then :
7100 $as_echo_n "(cached) " >&6
7103 am_cv_func_iconv
="no, consider installing GNU libiconv"
7105 am_save_CPPFLAGS
="$CPPFLAGS"
7106 CPPFLAGS
="$CPPFLAGS $INCICONV"
7107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7114 iconv_t cd = iconv_open("","");
7115 iconv(cd,NULL,NULL,NULL,NULL);
7121 if ac_fn_cxx_try_link
"$LINENO"; then :
7122 am_cv_func_iconv
=yes
7124 rm -f core conftest.err conftest.
$ac_objext \
7125 conftest
$ac_exeext conftest.
$ac_ext
7126 CPPFLAGS
="$am_save_CPPFLAGS"
7128 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
7129 for _libs
in .libs _libs
; do
7130 am_save_CPPFLAGS
="$CPPFLAGS"
7131 am_save_LIBS
="$LIBS"
7132 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
7133 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7141 iconv_t cd = iconv_open("","");
7142 iconv(cd,NULL,NULL,NULL,NULL);
7148 if ac_fn_cxx_try_link
"$LINENO"; then :
7149 INCICONV
="-I../libiconv/include"
7150 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
7151 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
7153 am_cv_func_iconv
=yes
7155 rm -f core conftest.err conftest.
$ac_objext \
7156 conftest
$ac_exeext conftest.
$ac_ext
7157 CPPFLAGS
="$am_save_CPPFLAGS"
7158 LIBS
="$am_save_LIBS"
7159 if test "$am_cv_func_iconv" = "yes"; then
7165 if test "$am_cv_func_iconv" != yes; then
7166 am_save_CPPFLAGS
="$CPPFLAGS"
7167 am_save_LIBS
="$LIBS"
7168 CPPFLAGS
="$CPPFLAGS $INCICONV"
7169 LIBS
="$LIBS $LIBICONV"
7170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7177 iconv_t cd = iconv_open("","");
7178 iconv(cd,NULL,NULL,NULL,NULL);
7184 if ac_fn_cxx_try_link
"$LINENO"; then :
7186 am_cv_func_iconv
=yes
7188 rm -f core conftest.err conftest.
$ac_objext \
7189 conftest
$ac_exeext conftest.
$ac_ext
7190 CPPFLAGS
="$am_save_CPPFLAGS"
7191 LIBS
="$am_save_LIBS"
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7196 $as_echo "$am_cv_func_iconv" >&6; }
7197 if test "$am_cv_func_iconv" = yes; then
7199 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7202 if test "$am_cv_lib_iconv" = yes; then
7204 for element
in $INCICONV; do
7206 for x
in $CPPFLAGS; do
7208 acl_save_prefix
="$prefix"
7209 prefix
="$acl_final_prefix"
7210 acl_save_exec_prefix
="$exec_prefix"
7211 exec_prefix
="$acl_final_exec_prefix"
7213 exec_prefix
="$acl_save_exec_prefix"
7214 prefix
="$acl_save_prefix"
7216 if test "X$x" = "X$element"; then
7221 if test -z "$haveit"; then
7222 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7227 $as_echo_n "checking how to link with libiconv... " >&6; }
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7229 $as_echo "$LIBICONV" >&6; }
7237 if test "$am_cv_func_iconv" = yes; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7239 $as_echo_n "checking for iconv declaration... " >&6; }
7240 if ${am_cv_proto_iconv+:} false
; then :
7241 $as_echo_n "(cached) " >&6
7244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7253 #if defined(__STDC__) || defined(__cplusplus)
7254 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7267 if ac_fn_cxx_try_compile
"$LINENO"; then :
7268 am_cv_proto_iconv_arg1
=""
7270 am_cv_proto_iconv_arg1
="const"
7272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7273 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);"
7276 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7278 }$am_cv_proto_iconv" >&5
7280 }$am_cv_proto_iconv" >&6; }
7282 cat >>confdefs.h
<<_ACEOF
7283 #define ICONV_CONST $am_cv_proto_iconv_arg1
7289 ac_cpp
='$CPP $CPPFLAGS'
7290 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7295 # More defines and substitutions.
7296 PACKAGE
="$PACKAGE_TARNAME"
7298 cat >>confdefs.h
<<_ACEOF
7299 #define PACKAGE "$PACKAGE"
7304 if test "x$enable_nls" != xno
; then
7305 USED_CATALOGS
='$(CATALOGS)'
7311 # Check whether --enable-maintainer-mode was given.
7312 if test "${enable_maintainer_mode+set}" = set; then :
7313 enableval
=$enable_maintainer_mode;
7315 enable_maintainer_mode
=no
7319 if test "x$enable_maintainer_mode" = xno
; then
7326 # Enable expensive internal checks
7328 if test -f $srcdir/..
/gcc
/DEV-PHASE \
7329 && test x
"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental
; then
7333 # Check whether --enable-checking was given.
7334 if test "${enable_checking+set}" = set; then :
7335 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7338 # Determine the default checks.
7339 if test x
$is_release = x
; then
7340 ac_checking_flags
=yes
7342 ac_checking_flags
=release
7346 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7347 for check
in release
$ac_checking_flags
7350 # these set all the flags to specific states
7351 yes|all
) ac_checking
=1 ; ac_assert_checking
=1 ; ac_valgrind_checking
= ;;
7352 no|none
) ac_checking
= ; ac_assert_checking
= ; ac_valgrind_checking
= ;;
7353 release
) ac_checking
= ; ac_assert_checking
=1 ; ac_valgrind_checking
= ;;
7354 # these enable particular checks
7355 assert
) ac_assert_checking
=1 ;;
7356 misc
) ac_checking
=1 ;;
7357 valgrind
) ac_valgrind_checking
=1 ;;
7364 if test x
$ac_checking != x
; then
7366 $as_echo "#define CHECKING_P 1" >>confdefs.h
7369 $as_echo "#define CHECKING_P 0" >>confdefs.h
7373 if test x
$ac_assert_checking != x
; then
7375 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7379 if test x
$ac_valgrind_checking != x
; then
7381 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7385 # Check whether --enable-canonical-system-headers was given.
7386 if test "${enable_canonical_system_headers+set}" = set; then :
7387 enableval
=$enable_canonical_system_headers;
7389 enable_canonical_system_headers
=yes
7392 if test $enable_canonical_system_headers != no
; then
7394 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7406 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7411 if ac_fn_c_try_compile
"$LINENO"; then :
7413 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7419 # Enable --enable-host-shared.
7420 # Check whether --enable-host-shared was given.
7421 if test "${enable_host_shared+set}" = set; then :
7422 enableval
=$enable_host_shared; PICFLAG
=-fPIC
7429 # Check whether --enable-valgrind-annotations was given.
7430 if test "${enable_valgrind_annotations+set}" = set; then :
7431 enableval
=$enable_valgrind_annotations;
7433 enable_valgrind_annotations
=no
7436 if test x
$enable_valgrind_annotations != xno \
7437 ||
test x
$ac_valgrind_checking != x
; then
7438 if (test $have_valgrind_h = no \
7439 && test $gcc_cv_header_memcheck_h = no \
7440 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7441 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7444 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7450 ac_config_headers
="$ac_config_headers config.h:config.in"
7452 ac_config_files
="$ac_config_files Makefile"
7454 cat >confcache
<<\_ACEOF
7455 # This file is a shell script that caches the results of configure
7456 # tests run on this system so they can be shared between configure
7457 # scripts and configure runs, see configure's option --config-cache.
7458 # It is not useful on other systems. If it contains results you don't
7459 # want to keep, you may remove or edit it.
7461 # config.status only pays attention to the cache file if you give it
7462 # the --recheck option to rerun configure.
7464 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7465 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7470 # The following way of writing the cache mishandles newlines in values,
7471 # but we know of no workaround that is simple, portable, and efficient.
7472 # So, we kill variables containing newlines.
7473 # Ultrix sh set writes to stderr and can't be redirected directly,
7474 # and sets the high bit in the cache file unless we assign to the vars.
7476 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7477 eval ac_val
=\$
$ac_var
7481 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7485 _ | IFS | as_nl
) ;; #(
7486 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7487 *) { eval $ac_var=; unset $ac_var;} ;;
7493 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7494 *${as_nl}ac_space
=\
*)
7495 # `set' does not quote correctly, so add quotes: double-quote
7496 # substitution turns \\\\ into \\, and sed turns \\ into \.
7499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7502 # `set' quotes correctly as required by POSIX, so do not add quotes.
7503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7514 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7516 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7517 if test -w "$cache_file"; then
7518 if test "x$cache_file" != "x/dev/null"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7520 $as_echo "$as_me: updating cache $cache_file" >&6;}
7521 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7522 cat confcache
>"$cache_file"
7524 case $cache_file in #(
7526 mv -f confcache
"$cache_file"$$
&&
7527 mv -f "$cache_file"$$
"$cache_file" ;; #(
7529 mv -f confcache
"$cache_file" ;;
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7535 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7540 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7541 # Let make expand exec_prefix.
7542 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7544 DEFS
=-DHAVE_CONFIG_H
7549 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7550 # 1. Remove the extension, and $U if already installed.
7551 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7552 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7553 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7554 # will be set to the directory where LIBOBJS objects are built.
7555 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7556 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7560 LTLIBOBJS
=$ac_ltlibobjs
7565 : "${CONFIG_STATUS=./config.status}"
7567 ac_clean_files_save
=$ac_clean_files
7568 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7574 # Generated by $as_me.
7575 # Run this file to recreate the current configuration.
7576 # Compiler output produced by configure, useful for debugging
7577 # configure, is in config.log if it exists.
7583 SHELL=\${CONFIG_SHELL-$SHELL}
7586 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7587 ## -------------------- ##
7588 ## M4sh Initialization. ##
7589 ## -------------------- ##
7591 # Be more Bourne compatible
7592 DUALCASE
=1; export DUALCASE
# for MKS sh
7593 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7597 # is contrary to our usage. Disable this feature.
7598 alias -g '${1+"$@"}'='"$@"'
7599 setopt NO_GLOB_SUBST
7601 case `(set -o) 2>/dev/null` in #(
7613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7614 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7617 # Prefer a ksh shell builtin over an external printf program on Solaris,
7618 # but without wasting forks for bash or zsh.
7619 if test -z "$BASH_VERSION$ZSH_VERSION" \
7620 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7621 as_echo='print
-r --'
7622 as_echo_n='print
-rn --'
7623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7624 as_echo='printf %s
\n'
7625 as_echo_n='printf %s
'
7627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7628 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7629 as_echo_n='/usr
/ucb
/echo -n'
7631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7632 as_echo_n_body='eval
7636 expr "X$arg" : "X\\(.*\\)$as_nl";
7637 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7639 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7641 export as_echo_n_body
7642 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7645 as_echo='sh
-c $as_echo_body as_echo
'
7648 # The user is always right.
7649 if test "${PATH_SEPARATOR+set}" != set; then
7651 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7652 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7659 # We need space, tab and new line, in precisely that order. Quoting is
7660 # there to prevent editors from complaining about space-tab.
7661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7662 # splitting by setting IFS to empty value.)
7665 # Find who we are. Look in the path if we contain no directory separator.
7668 *[\\/]* ) as_myself=$0 ;;
7669 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir=.
7674 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7680 # We did not find ourselves, most probably we were run as `sh COMMAND'
7681 # in which case we are not to be found in the path.
7682 if test "x$as_myself" = x
; then
7685 if test ! -f "$as_myself"; then
7686 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7690 # Unset variables that we do not need and which cause bugs (e.g. in
7691 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7692 # suppresses any "Segmentation fault" message there. '((' could
7693 # trigger a bug in pdksh 5.2.14.
7694 for as_var
in BASH_ENV ENV MAIL MAILPATH
7695 do eval test x\
${$as_var+set} = xset \
7696 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7709 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7712 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7713 # ----------------------------------------
7714 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7715 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7716 # script with STATUS, using 1 if that was 0.
7719 as_status
=$1; test $as_status -eq 0 && as_status
=1
7721 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7722 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7724 $as_echo "$as_me: error: $2" >&2
7725 as_fn_exit
$as_status
7729 # as_fn_set_status STATUS
7730 # -----------------------
7731 # Set $? to STATUS, without forking.
7735 } # as_fn_set_status
7739 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7749 # Portably unset VAR.
7752 { eval $1=; unset $1;}
7754 as_unset
=as_fn_unset
7755 # as_fn_append VAR VALUE
7756 # ----------------------
7757 # Append the text in VALUE to the end of the definition contained in VAR. Take
7758 # advantage of any shell optimizations that allow amortized linear growth over
7759 # repeated appends, instead of the typical quadratic growth present in naive
7761 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7762 eval 'as_fn_append ()
7773 # as_fn_arith ARG...
7774 # ------------------
7775 # Perform arithmetic evaluation on the ARGs, and store the result in the
7776 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7777 # must be portable across $(()) and expr.
7778 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7779 eval 'as_fn_arith ()
7786 as_val
=`expr "$@" || test $? -eq 1`
7791 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7792 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7798 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7799 as_basename
=basename
7804 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7810 as_me
=`$as_basename -- "$0" ||
7811 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7812 X"$0" : 'X\(//\)$' \| \
7813 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7815 sed '/^.*\/\([^/][^/]*\)\/*$/{
7829 # Avoid depending upon Character Ranges.
7830 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7831 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7832 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7833 as_cr_digits
='0123456789'
7834 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7836 ECHO_C
= ECHO_N
= ECHO_T
=
7837 case `echo -n x` in #(((((
7839 case `echo 'xy\c'` in
7840 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7842 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7849 rm -f conf$$ conf$$.exe conf$$.
file
7850 if test -d conf$$.dir
; then
7851 rm -f conf$$.dir
/conf$$.
file
7854 mkdir conf$$.dir
2>/dev
/null
7856 if (echo >conf$$.
file) 2>/dev
/null
; then
7857 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7859 # ... but there are two gotchas:
7860 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7861 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7862 # In both cases, we have to default to `cp -pR'.
7863 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7865 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7873 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7874 rmdir conf$$.dir
2>/dev
/null
7879 # Create "$as_dir" as a directory, including parents if necessary.
7884 -*) as_dir
=.
/$as_dir;;
7886 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7890 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7891 *) as_qdir
=$as_dir;;
7893 as_dirs
="'$as_qdir' $as_dirs"
7894 as_dir
=`$as_dirname -- "$as_dir" ||
7895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7896 X"$as_dir" : 'X\(//\)[^/]' \| \
7897 X"$as_dir" : 'X\(//\)$' \| \
7898 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7899 $as_echo X"$as_dir" |
7900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7917 test -d "$as_dir" && break
7919 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7920 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7924 if mkdir
-p .
2>/dev
/null
; then
7925 as_mkdir_p
='mkdir -p "$as_dir"'
7927 test -d .
/-p && rmdir .
/-p
7932 # as_fn_executable_p FILE
7933 # -----------------------
7934 # Test if FILE is an executable regular file.
7935 as_fn_executable_p
()
7937 test -f "$1" && test -x "$1"
7938 } # as_fn_executable_p
7940 as_executable_p
=as_fn_executable_p
7942 # Sed expression to map a string onto a valid CPP name.
7943 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7945 # Sed expression to map a string onto a valid variable name.
7946 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7950 ## ----------------------------------- ##
7951 ## Main body of $CONFIG_STATUS script. ##
7952 ## ----------------------------------- ##
7954 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7957 # Save the log message, to keep $0 and so on meaningful, and to
7958 # report actual input values of CONFIG_FILES etc. instead of their
7959 # values after options handling.
7961 This file was extended by cpplib $as_me , which was
7962 generated by GNU Autoconf 2.69. Invocation command line was
7964 CONFIG_FILES = $CONFIG_FILES
7965 CONFIG_HEADERS = $CONFIG_HEADERS
7966 CONFIG_LINKS = $CONFIG_LINKS
7967 CONFIG_COMMANDS = $CONFIG_COMMANDS
7970 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7975 case $ac_config_files in *"
7976 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7979 case $ac_config_headers in *"
7980 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7985 # Files that config.status was made for.
7986 config_files="$ac_config_files"
7987 config_headers="$ac_config_headers"
7988 config_commands="$ac_config_commands"
7992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7994 \`$as_me' instantiates files and other configuration actions
7995 from templates according to the current configuration. Unless the files
7996 and actions are specified as TAGs, all are instantiated by default.
7998 Usage: $0 [OPTION]... [TAG]...
8000 -h, --help print this help, then exit
8001 -V, --version print version number and configuration settings, then exit
8002 --config print configuration, then exit
8003 -q, --quiet, --silent
8004 do not print progress messages
8005 -d, --debug don't remove temporary files
8006 --recheck update $as_me by reconfiguring in the same conditions
8007 --file=FILE[:TEMPLATE]
8008 instantiate the configuration file FILE
8009 --header=FILE[:TEMPLATE]
8010 instantiate the configuration header FILE
8012 Configuration files:
8015 Configuration headers:
8018 Configuration commands:
8021 Report bugs to <gcc-bugs@gcc.gnu.org>."
8024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8025 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8027 cpplib config.status
8028 configured by $0, generated by GNU Autoconf 2.69,
8029 with options \\"\$ac_cs_config\\"
8031 Copyright (C) 2012 Free Software Foundation, Inc.
8032 This config.status script is free software; the Free Software Foundation
8033 gives unlimited permission to copy, distribute and modify it."
8038 test -n "\$AWK" || AWK=awk
8041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8042 # The default lists apply if the user does not specify any file.
8048 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8049 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8053 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8065 # Handling of the options.
8066 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8068 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8069 $as_echo "$ac_cs_version"; exit ;;
8070 --config |
--confi |
--conf |
--con |
--co |
--c )
8071 $as_echo "$ac_cs_config"; exit ;;
8072 --debug |
--debu |
--deb |
--de |
--d |
-d )
8074 --file |
--fil |
--fi |
--f )
8077 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8078 '') as_fn_error $?
"missing file argument" ;;
8080 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8081 ac_need_defaults
=false
;;
8082 --header |
--heade |
--head |
--hea )
8085 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8087 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8088 ac_need_defaults
=false
;;
8090 # Conflict between --help and --header
8091 as_fn_error $?
"ambiguous option: \`$1'
8092 Try \`$0 --help' for more information.";;
8093 --help |
--hel |
-h )
8094 $as_echo "$ac_cs_usage"; exit ;;
8095 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8096 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8100 -*) as_fn_error $?
"unrecognized option: \`$1'
8101 Try \`$0 --help' for more information." ;;
8103 *) as_fn_append ac_config_targets
" $1"
8104 ac_need_defaults
=false
;;
8110 ac_configure_extra_args
=
8112 if $ac_cs_silent; then
8114 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8119 if \$ac_cs_recheck; then
8120 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8122 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8123 CONFIG_SHELL='$SHELL'
8129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8133 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8134 ## Running $as_me. ##
8140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8144 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8150 # Handling of arguments.
8151 for ac_config_target
in $ac_config_targets
8153 case $ac_config_target in
8154 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
8155 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8156 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8158 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8163 # If the user did not use the arguments to specify the items to instantiate,
8164 # then the envvar interface is used. Set only those that are not.
8165 # We use the long form for the default assignment because of an extremely
8166 # bizarre bug on SunOS 4.1.3.
8167 if $ac_need_defaults; then
8168 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8169 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8170 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8173 # Have a temporary directory for convenience. Make it in the build tree
8174 # simply because there is no reason against having it here, and in addition,
8175 # creating and moving files from /tmp can sometimes cause problems.
8176 # Hook for its removal unless debugging.
8177 # Note that there is a small window in which the directory will not be cleaned:
8178 # after its creation but before its name has been assigned to `$tmp'.
8182 trap 'exit_status=$?
8184 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8186 trap 'as_fn_exit 1' 1 2 13 15
8188 # Create a (secure) tmp directory for tmp files.
8191 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8195 tmp
=.
/conf$$
-$RANDOM
8196 (umask 077 && mkdir
"$tmp")
8197 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8200 # Set up the scripts for CONFIG_FILES section.
8201 # No need to generate them if there are no CONFIG_FILES.
8202 # This happens for instance with `./config.status config.h'.
8203 if test -n "$CONFIG_FILES"; then
8206 ac_cr
=`echo X | tr X '\015'`
8207 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8208 # But we know of no other shell where ac_cr would be empty at this
8209 # point, so we can use a bashism as a fallback.
8210 if test "x$ac_cr" = x
; then
8211 eval ac_cr
=\$
\'\\r
\'
8213 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8214 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8220 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8225 echo "cat >conf$$subs.awk <<_ACEOF" &&
8226 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8229 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8230 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8232 for ac_last_try in false false false false false :; do
8233 . ./conf$$subs.sh ||
8234 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8236 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8237 if test $ac_delim_n = $ac_delim_num; then
8239 elif $ac_last_try; then
8240 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8242 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8248 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8252 s/^/S["/; s
/!.
*/"]=/
8262 s/\(.\{148\}\)..*/\1/
8264 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8269 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8276 s/\(.\{148\}\)..*/\1/
8278 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8282 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8287 ' <conf$$subs.awk | sed '
8292 ' >>$CONFIG_STATUS || ac_write_fail=1
8293 rm -f conf$$subs.awk
8294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8296 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8297 for (key in S) S_is_set[key] = 1
8303 nfields = split(line, field, "@
")
8305 len = length(field[1])
8306 for (i = 2; i < nfields; i++) {
8308 keylen = length(key)
8309 if (S_is_set[key]) {
8311 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8312 len += length(value) + length(field[++i])
8323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8324 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8325 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8328 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8329 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8332 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8333 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8334 # trailing colons and then remove the whole line if VPATH becomes empty
8335 # (actually we leave an empty line to preserve line numbers).
8336 if test "x
$srcdir" = x.; then
8337 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8356 fi # test -n "$CONFIG_FILES"
8358 # Set up the scripts for CONFIG_HEADERS section.
8359 # No need to generate them if there are no CONFIG_HEADERS.
8360 # This happens for instance with `./config.status Makefile'.
8361 if test -n "$CONFIG_HEADERS"; then
8362 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8366 # Transform confdefs.h into an awk script `defines.awk', embedded as
8367 # here-document in config.status, that substitutes the proper values into
8368 # config.h.in to produce config.h.
8370 # Create a delimiter string that does not exist in confdefs.h, to ease
8371 # handling of long lines.
8373 for ac_last_try in false false :; do
8374 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8375 if test -z "$ac_tt"; then
8377 elif $ac_last_try; then
8378 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8380 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8384 # For the awk script, D is an array of macro values keyed by name,
8385 # likewise P contains macro parameters if any. Preserve backslash
8386 # newline sequences.
8388 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8390 s/.\{148\}/&'"$ac_delim"'/g
8393 s/^[ ]*#[ ]*define[ ][ ]*/ /
8400 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8402 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8406 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8407 D["\
1"]=" \
3\\\\\\n
"\\/p
8409 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8414 s/.\{148\}/&'"$ac_delim"'/g
8419 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8422 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8424 ' <confdefs.h | sed '
8425 s/'"$ac_delim"'/"\\\
8426 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8429 for (key in D) D_is_set[key] = 1
8432 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8434 split(line, arg, " ")
8435 if (arg[1] == "#") {
8439 defundef
= substr
(arg
[1], 2)
8442 split(mac1
, mac2
, "(") #)
8444 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8445 if (D_is_set
[macro
]) {
8446 # Preserve the white space surrounding the "#".
8447 print prefix
"define", macro P
[macro
] D
[macro
]
8450 # Replace #undef with comments. This is necessary, for example,
8451 # in the case of _POSIX_SOURCE, which is predefined and required
8452 # on some systems where configure will not decide to define it.
8453 if (defundef
== "undef") {
8454 print
"/*", prefix defundef
, macro
, "*/"
8462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8463 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8464 fi # test -n "$CONFIG_HEADERS"
8467 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8472 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8474 case $ac_mode$ac_tag in
8476 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8477 :[FH
]-) ac_tag
=-:-;;
8478 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8495 -) ac_f
="$ac_tmp/stdin";;
8496 *) # Look for the file first in the build tree, then in the source tree
8497 # (if the path is not absolute). The absolute path cannot be DOS-style,
8498 # because $ac_f cannot contain `:'.
8502 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8504 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8506 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8507 as_fn_append ac_file_inputs
" '$ac_f'"
8510 # Let's still pretend it is `configure' which instantiates (i.e., don't
8511 # use $as_me), people would be surprised to read:
8512 # /* config.h. Generated by config.status. */
8513 configure_input
='Generated from '`
8514 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8516 if test x
"$ac_file" != x-
; then
8517 configure_input
="$ac_file. $configure_input"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8519 $as_echo "$as_me: creating $ac_file" >&6;}
8521 # Neutralize special characters interpreted by sed in replacement strings.
8522 case $configure_input in #(
8523 *\
&* |
*\|
* |
*\\* )
8524 ac_sed_conf_input
=`$as_echo "$configure_input" |
8525 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8526 *) ac_sed_conf_input
=$configure_input;;
8530 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8531 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8536 ac_dir
=`$as_dirname -- "$ac_file" ||
8537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8538 X"$ac_file" : 'X\(//\)[^/]' \| \
8539 X"$ac_file" : 'X\(//\)$' \| \
8540 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8541 $as_echo X"$ac_file" |
8542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8559 as_dir
="$ac_dir"; as_fn_mkdir_p
8563 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8565 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8566 # A ".." for each directory in $ac_dir_suffix.
8567 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8568 case $ac_top_builddir_sub in
8569 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8570 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8573 ac_abs_top_builddir
=$ac_pwd
8574 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8575 # for backward compatibility:
8576 ac_top_builddir
=$ac_top_build_prefix
8579 .
) # We are building in place.
8581 ac_top_srcdir
=$ac_top_builddir_sub
8582 ac_abs_top_srcdir
=$ac_pwd ;;
8583 [\\/]* | ?
:[\\/]* ) # Absolute name.
8584 ac_srcdir
=$srcdir$ac_dir_suffix;
8585 ac_top_srcdir
=$srcdir
8586 ac_abs_top_srcdir
=$srcdir ;;
8588 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8589 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8590 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8592 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8602 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8603 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8608 # If the template does not know about datarootdir, expand it.
8609 # FIXME: This hack should be removed a few years after 2.60.
8610 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8621 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8622 *datarootdir
*) ac_datarootdir_seen
=yes;;
8623 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8625 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8628 ac_datarootdir_hack='
8629 s&@datadir@&$datadir&g
8630 s&@docdir@&$docdir&g
8631 s&@infodir@&$infodir&g
8632 s&@localedir@&$localedir&g
8633 s&@mandir@&$mandir&g
8634 s&\\\${datarootdir}&$datarootdir&g' ;;
8638 # Neutralize VPATH when `$srcdir' = `.'.
8639 # Shell code in configure.ac might set extrasub.
8640 # FIXME: do we really want to maintain this feature?
8641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8642 ac_sed_extra="$ac_vpsub
8645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8647 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8648 s|@configure_input@|
$ac_sed_conf_input|
;t t
8649 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8650 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8651 s
&@srcdir@
&$ac_srcdir&;t t
8652 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8653 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8654 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8655 s
&@builddir@
&$ac_builddir&;t t
8656 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8657 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8658 s
&@INSTALL@
&$ac_INSTALL&;t t
8659 $ac_datarootdir_hack
8661 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8662 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8664 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8665 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8667 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8669 which seems to be undefined. Please make sure it is defined" >&5
8670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8671 which seems to be undefined. Please make sure it is defined" >&2;}
8673 rm -f "$ac_tmp/stdin"
8675 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8676 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8684 if test x"$ac_file" != x-; then
8686 $as_echo "/* $configure_input */" \
8687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8688 } >"$ac_tmp/config.h" \
8689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8690 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8695 mv "$ac_tmp/config.h" "$ac_file" \
8696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8699 $as_echo "/* $configure_input */" \
8700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8701 || as_fn_error $? "could not create -" "$LINENO" 5
8705 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8706 $as_echo "$as_me: executing $ac_file commands" >&6;}
8711 case $ac_file$ac_mode in
8712 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8713 "config.h":H) echo timestamp > stamp-h1 ;;
8721 ac_clean_files=$ac_clean_files_save
8723 test $ac_write_fail = 0 ||
8724 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8727 # configure is writing to config.log, and then calls config.status.
8728 # config.status does its own redirection, appending to config.log.
8729 # Unfortunately, on DOS this fails, as config.log is still kept open
8730 # by configure, so config.status won't be able to
write to it
; its
8731 # output is simply discarded. So we exec the FD to /dev/null,
8732 # effectively closing config.log, so it can be properly (re)opened and
8733 # appended to by config.status. When coming back to configure, we
8734 # need to make the FD available again.
8735 if test "$no_create" != yes; then
8737 ac_config_status_args
=
8738 test "$silent" = yes &&
8739 ac_config_status_args
="$ac_config_status_args --quiet"
8741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8744 # would make configure fail if this is the last instruction.
8745 $ac_cs_success || as_fn_exit
1
8747 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8749 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}