2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: gcc-bugs@gcc.gnu.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
241 SHELL
=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE
= GREP_OPTIONS
=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir
=.
/$as_dir;;
286 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
290 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs
="'$as_qdir' $as_dirs"
294 as_dir
=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
320 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
355 as_val
=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status
=$?
; test $as_status -eq 0 && as_status
=1
369 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit
$as_status
376 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
383 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
395 as_me
=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits
='0123456789'
419 as_cr_alnum
=$as_cr_Letters$as_cr_digits
422 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
423 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x
"$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C
= ECHO_N
= ECHO_T
=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
466 rm -f conf$$ conf$$.exe conf$$.
file
467 if test -d conf$$.dir
; then
468 rm -f conf$$.dir
/conf$$.
file
471 mkdir conf$$.dir
2>/dev
/null
473 if (echo >conf$$.
file) 2>/dev
/null
; then
474 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
482 elif ln conf$$.
file conf$$
2>/dev
/null
; then
490 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
491 rmdir conf$$.dir
2>/dev
/null
493 if mkdir
-p .
2>/dev
/null
; then
494 as_mkdir_p
='mkdir -p "$as_dir"'
496 test -d .
/-p && rmdir .
/-p
500 if test -x / >/dev
/null
2>&1; then
503 if ls -dL / >/dev
/null
2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p
=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev
/null
6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
550 PACKAGE_NAME
='cpplib'
551 PACKAGE_TARNAME
='cpplib'
553 PACKAGE_STRING
='cpplib '
554 PACKAGE_BUGREPORT
='gcc-bugs@gcc.gnu.org'
557 ac_unique_file
="ucnid.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_subst_vars
='LTLIBOBJS
682 program_transform_name
695 enable_option_checking
701 enable_maintainer_mode
703 enable_canonical_system_headers
705 ac_precious_vars
='build_alias
719 # Initialize some variables set by options.
721 ac_init_version
=false
722 ac_unrecognized_opts
=
724 # The variables have the same names as the options, with
725 # dashes changed to underlines.
733 program_transform_name
=s
,x
,x
,
741 # Installation directory options.
742 # These are left unexpanded so users can "make install exec_prefix=/foo"
743 # and all the variables that are supposed to be based on exec_prefix
744 # by default will actually change.
745 # Use braces instead of parens because sh, perl, etc. also accept them.
746 # (The list follows the same order as the GNU Coding Standards.)
747 bindir
='${exec_prefix}/bin'
748 sbindir
='${exec_prefix}/sbin'
749 libexecdir
='${exec_prefix}/libexec'
750 datarootdir
='${prefix}/share'
751 datadir
='${datarootdir}'
752 sysconfdir
='${prefix}/etc'
753 sharedstatedir
='${prefix}/com'
754 localstatedir
='${prefix}/var'
755 includedir
='${prefix}/include'
756 oldincludedir
='/usr/include'
757 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
758 infodir
='${datarootdir}/info'
763 libdir
='${exec_prefix}/lib'
764 localedir
='${datarootdir}/locale'
765 mandir
='${datarootdir}/man'
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
773 eval $ac_prev=\
$ac_option
779 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 # Accept the important Cygnus configure options, so we can diagnose typos.
785 case $ac_dashdash$ac_option in
789 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
791 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
794 -build |
--build |
--buil |
--bui |
--bu)
795 ac_prev
=build_alias
;;
796 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
797 build_alias
=$ac_optarg ;;
799 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
800 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
801 ac_prev
=cache_file
;;
802 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
803 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
804 cache_file
=$ac_optarg ;;
807 cache_file
=config.cache
;;
809 -datadir |
--datadir |
--datadi |
--datad)
811 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
812 datadir
=$ac_optarg ;;
814 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
815 |
--dataroo |
--dataro |
--datar)
816 ac_prev
=datarootdir
;;
817 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
818 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
819 datarootdir
=$ac_optarg ;;
821 -disable-* |
--disable-*)
822 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
825 as_fn_error
"invalid feature name: $ac_useropt"
826 ac_useropt_orig
=$ac_useropt
827 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
832 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep
=', ';;
835 eval enable_
$ac_useropt=no
;;
837 -docdir |
--docdir |
--docdi |
--doc |
--do)
839 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
842 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
844 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
847 -enable-* |
--enable-*)
848 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
851 as_fn_error
"invalid feature name: $ac_useropt"
852 ac_useropt_orig
=$ac_useropt
853 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
858 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep
=', ';;
861 eval enable_
$ac_useropt=\
$ac_optarg ;;
863 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
864 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
865 |
--exec |
--exe |
--ex)
866 ac_prev
=exec_prefix
;;
867 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
868 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
869 |
--exec=* |
--exe=* |
--ex=*)
870 exec_prefix
=$ac_optarg ;;
872 -gas |
--gas |
--ga |
--g)
873 # Obsolete; use --with-gas.
876 -help |
--help |
--hel |
--he |
-h)
878 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
879 ac_init_help
=recursive
;;
880 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
881 ac_init_help
=short
;;
883 -host |
--host |
--hos |
--ho)
884 ac_prev
=host_alias
;;
885 -host=* |
--host=* |
--hos=* |
--ho=*)
886 host_alias
=$ac_optarg ;;
888 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
890 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
892 htmldir
=$ac_optarg ;;
894 -includedir |
--includedir |
--includedi |
--included |
--include \
895 |
--includ |
--inclu |
--incl |
--inc)
896 ac_prev
=includedir
;;
897 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
898 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
899 includedir
=$ac_optarg ;;
901 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
903 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
904 infodir
=$ac_optarg ;;
906 -libdir |
--libdir |
--libdi |
--libd)
908 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
911 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
912 |
--libexe |
--libex |
--libe)
913 ac_prev
=libexecdir
;;
914 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
915 |
--libexe=* |
--libex=* |
--libe=*)
916 libexecdir
=$ac_optarg ;;
918 -localedir |
--localedir |
--localedi |
--localed |
--locale)
920 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
921 localedir
=$ac_optarg ;;
923 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
924 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
925 ac_prev
=localstatedir
;;
926 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
927 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
928 localstatedir
=$ac_optarg ;;
930 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
932 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
936 # Obsolete; use --without-fp.
939 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
940 |
--no-cr |
--no-c |
-n)
943 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
944 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
947 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
948 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
949 |
--oldin |
--oldi |
--old |
--ol |
--o)
950 ac_prev
=oldincludedir
;;
951 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
952 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
953 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
954 oldincludedir
=$ac_optarg ;;
956 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
958 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
961 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
962 |
--program-pre |
--program-pr |
--program-p)
963 ac_prev
=program_prefix
;;
964 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
965 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
966 program_prefix
=$ac_optarg ;;
968 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
969 |
--program-suf |
--program-su |
--program-s)
970 ac_prev
=program_suffix
;;
971 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
972 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
973 program_suffix
=$ac_optarg ;;
975 -program-transform-name |
--program-transform-name \
976 |
--program-transform-nam |
--program-transform-na \
977 |
--program-transform-n |
--program-transform- \
978 |
--program-transform |
--program-transfor \
979 |
--program-transfo |
--program-transf \
980 |
--program-trans |
--program-tran \
981 |
--progr-tra |
--program-tr |
--program-t)
982 ac_prev
=program_transform_name
;;
983 -program-transform-name=* |
--program-transform-name=* \
984 |
--program-transform-nam=* |
--program-transform-na=* \
985 |
--program-transform-n=* |
--program-transform-=* \
986 |
--program-transform=* |
--program-transfor=* \
987 |
--program-transfo=* |
--program-transf=* \
988 |
--program-trans=* |
--program-tran=* \
989 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
990 program_transform_name
=$ac_optarg ;;
992 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
994 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
997 -psdir |
--psdir |
--psdi |
--psd |
--ps)
999 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1002 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1003 |
-silent |
--silent |
--silen |
--sile |
--sil)
1006 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1008 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1010 sbindir
=$ac_optarg ;;
1012 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1013 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1014 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1016 ac_prev
=sharedstatedir
;;
1017 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1018 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1019 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1021 sharedstatedir
=$ac_optarg ;;
1023 -site |
--site |
--sit)
1025 -site=* |
--site=* |
--sit=*)
1028 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1030 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1031 srcdir
=$ac_optarg ;;
1033 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1034 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1035 ac_prev
=sysconfdir
;;
1036 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1037 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1038 sysconfdir
=$ac_optarg ;;
1040 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1041 ac_prev
=target_alias
;;
1042 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1043 target_alias
=$ac_optarg ;;
1045 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1048 -version |
--version |
--versio |
--versi |
--vers |
-V)
1049 ac_init_version
=: ;;
1052 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1055 as_fn_error
"invalid package name: $ac_useropt"
1056 ac_useropt_orig
=$ac_useropt
1057 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1062 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep
=', ';;
1065 eval with_
$ac_useropt=\
$ac_optarg ;;
1067 -without-* |
--without-*)
1068 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1071 as_fn_error
"invalid package name: $ac_useropt"
1072 ac_useropt_orig
=$ac_useropt
1073 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1078 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep
=', ';;
1081 eval with_
$ac_useropt=no
;;
1084 # Obsolete; use --with-x.
1087 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1088 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1089 ac_prev
=x_includes
;;
1090 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1091 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1092 x_includes
=$ac_optarg ;;
1094 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1095 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1096 ac_prev
=x_libraries
;;
1097 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1098 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1099 x_libraries
=$ac_optarg ;;
1101 -*) as_fn_error
"unrecognized option: \`$ac_option'
1102 Try \`$0 --help' for more information."
1106 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 case $ac_envvar in #(
1109 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1110 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1112 eval $ac_envvar=\
$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1119 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 if test -n "$ac_prev"; then
1127 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1128 as_fn_error
"missing argument to $ac_option"
1131 if test -n "$ac_unrecognized_opts"; then
1132 case $enable_option_checking in
1134 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1139 # Check all directory arguments for consistency.
1140 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1145 eval ac_val
=\$
$ac_var
1146 # Remove trailing slashes.
1149 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\
$ac_val;;
1152 # Be sure to have absolute directory names.
1154 [\\/$
]* | ?
:[\\/]* ) continue;;
1155 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1157 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1160 # There might be people who depend on the old broken behavior: `$host'
1161 # used to hold the argument of --host etc.
1162 # FIXME: To remove some day.
1165 target
=$target_alias
1167 # FIXME: To remove some day.
1168 if test "x$host_alias" != x
; then
1169 if test "x$build_alias" = x
; then
1170 cross_compiling
=maybe
1171 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1172 If a cross compiler is detected then cross compile mode will be used." >&2
1173 elif test "x$build_alias" != "x$host_alias"; then
1179 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1181 test "$silent" = yes && exec 6>/dev
/null
1184 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1185 ac_ls_di
=`ls -di .` &&
1186 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1187 as_fn_error
"working directory cannot be determined"
1188 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1189 as_fn_error
"pwd does not report name of working directory"
1192 # Find the source files, if location was not specified.
1193 if test -z "$srcdir"; then
1194 ac_srcdir_defaulted
=yes
1195 # Try the directory containing this script, then the parent directory.
1196 ac_confdir
=`$as_dirname -- "$as_myself" ||
1197 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1198 X"$as_myself" : 'X\(//\)[^/]' \| \
1199 X"$as_myself" : 'X\(//\)$' \| \
1200 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1201 $as_echo X"$as_myself" |
1202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1224 ac_srcdir_defaulted
=no
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1227 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1228 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1230 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1234 # When building in place, set srcdir=.
1235 if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 # Remove unnecessary trailing slashes from srcdir.
1239 # Double slashes in file names in object file debugging info
1240 # mess up M-x gdb in Emacs.
1242 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 for ac_var
in $ac_precious_vars; do
1245 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1247 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1252 # Report the --help message.
1254 if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1258 \`configure' configures cpplib to adapt to many kinds of systems.
1260 Usage: $0 [OPTION]... [VAR=VALUE]...
1262 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263 VAR=VALUE. See below for descriptions of some of the useful variables.
1265 Defaults for the options are specified in brackets.
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278 Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
1280 [$ac_default_prefix]
1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1284 By default, \`make install' will install all the files in
1285 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287 for instance \`--prefix=\$HOME'.
1289 For better control, use the options below.
1291 Fine tuning of the installation directories:
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
1316 --build=BUILD configure
for building on BUILD
[guessed
]
1317 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1318 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1322 if test -n "$ac_init_help"; then
1323 case $ac_init_help in
1324 short | recursive
) echo "Configuration of cpplib :";;
1329 --disable-option-checking ignore unrecognized
--enable/--with options
1330 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1331 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1332 --disable-largefile omit support
for large files
1333 --enable-werror-always enable -Werror despite compiler version
1334 --disable-rpath do not hardcode runtime library paths
1335 --enable-maintainer-mode enable rules only needed by maintainers
1336 --enable-checking[=LIST
]
1337 enable expensive run-time checks. With LIST
, enable
1338 only specific categories of checks. Categories are
:
1339 yes,no
,all
,none
,release. Flags are
: misc
,valgrind or
1341 --enable-canonical-system-headers
1342 enable or disable system headers canonicalization
1345 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1346 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1347 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1348 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1349 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CXX C++ compiler command
1360 CXXFLAGS C++ compiler flags
1363 Use these variables to override the choices made by `configure' or to
help
1364 it to
find libraries and programs with nonstandard names
/locations.
1366 Report bugs to
<gcc-bugs@gcc.gnu.org
>.
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1374 test -d "$ac_dir" ||
1375 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1380 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1382 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1383 # A ".." for each directory in $ac_dir_suffix.
1384 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1385 case $ac_top_builddir_sub in
1386 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1387 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1390 ac_abs_top_builddir
=$ac_pwd
1391 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1392 # for backward compatibility:
1393 ac_top_builddir
=$ac_top_build_prefix
1396 .
) # We are building in place.
1398 ac_top_srcdir
=$ac_top_builddir_sub
1399 ac_abs_top_srcdir
=$ac_pwd ;;
1400 [\\/]* | ?
:[\\/]* ) # Absolute name.
1401 ac_srcdir
=$srcdir$ac_dir_suffix;
1402 ac_top_srcdir
=$srcdir
1403 ac_abs_top_srcdir
=$srcdir ;;
1405 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1407 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1409 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1411 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1412 # Check for guested configure.
1413 if test -f "$ac_srcdir/configure.gnu"; then
1415 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416 elif test -f "$ac_srcdir/configure"; then
1418 $SHELL "$ac_srcdir/configure" --help=recursive
1420 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1422 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1430 generated by GNU Autoconf
2.64
1432 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1433 This configure
script is free software
; the Free Software Foundation
1434 gives unlimited permission to copy
, distribute and modify it.
1439 ## ------------------------ ##
1440 ## Autoconf initialization. ##
1441 ## ------------------------ ##
1443 # ac_fn_c_try_compile LINENO
1444 # --------------------------
1445 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1446 ac_fn_c_try_compile
()
1448 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1449 rm -f conftest.
$ac_objext
1450 if { { ac_try
="$ac_compile"
1452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1453 *) ac_try_echo=$ac_try;;
1455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1456 $as_echo "$ac_try_echo"; } >&5
1457 (eval "$ac_compile") 2>conftest.err
1459 if test -s conftest.err; then
1460 grep -v '^ *+' conftest.err >conftest.er1
1461 cat conftest.er1 >&5
1462 mv -f conftest.er1 conftest.err
1464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1465 test $ac_status = 0; } && {
1466 test -z "$ac_c_werror_flag" ||
1467 test ! -s conftest.err
1468 } && test -s conftest.$ac_objext; then :
1471 $as_echo "$as_me: failed program was:" >&5
1472 sed 's/^/| /' conftest.$ac_ext >&5
1476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1479 } # ac_fn_c_try_compile
1481 # ac_fn_cxx_try_compile LINENO
1482 # ----------------------------
1483 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1484 ac_fn_cxx_try_compile ()
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 rm -f conftest.$ac_objext
1488 if { { ac_try="$ac_compile"
1490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1491 *) ac_try_echo
=$ac_try;;
1493 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_compile") 2>conftest.err
1497 if test -s conftest.err
; then
1498 grep -v '^ *+' conftest.err
>conftest.er1
1499 cat conftest.er1
>&5
1500 mv -f conftest.er1 conftest.err
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } && {
1504 test -z "$ac_cxx_werror_flag" ||
1505 test ! -s conftest.err
1506 } && test -s conftest.
$ac_objext; then :
1509 $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.
$ac_ext >&5
1514 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1517 } # ac_fn_cxx_try_compile
1519 # ac_fn_c_try_cpp LINENO
1520 # ----------------------
1521 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1524 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1525 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } >/dev/null && {
1541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1557 # -------------------------------------------------------
1558 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1559 # the include files in INCLUDES and setting the cache variable VAR
1561 ac_fn_c_check_header_mongrel ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1566 $as_echo_n "checking for $2... " >&6; }
1567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1568 $as_echo_n "(cached) " >&6
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1572 $as_echo "$ac_res" >&6; }
1574 # Is the header compilable?
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1576 $as_echo_n "checking $2 usability... " >&6; }
1577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1578 /* end confdefs.h. */
1582 if ac_fn_c_try_compile "$LINENO"; then :
1583 ac_header_compiler=yes
1585 ac_header_compiler=no
1587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1589 $as_echo "$ac_header_compiler" >&6; }
1591 # Is the header present?
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1593 $as_echo_n "checking $2 presence... " >&6; }
1594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595 /* end confdefs.h. */
1598 if ac_fn_c_try_cpp "$LINENO"; then :
1599 ac_header_preproc=yes
1601 ac_header_preproc=no
1603 rm -f conftest.err conftest.$ac_ext
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1605 $as_echo "$ac_header_preproc" >&6; }
1607 # So? What about this header?
1608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1611 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1613 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1617 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1619 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1621 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1623 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1625 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1627 ## ----------------------------------- ##
1628 ## Report this to gcc-bugs@gcc.gnu.org ##
1629 ## ----------------------------------- ##
1631 ) | sed "s/^/$as_me: WARNING: /" >&2
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1637 $as_echo_n "(cached) " >&6
1639 eval "$3=\$ac_header_compiler"
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 } # ac_fn_c_check_header_mongrel
1649 # ac_fn_c_try_run LINENO
1650 # ----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1652 # that executables *can* be run.
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_link"
1658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1659 *) ac_try_echo
=$ac_try;;
1661 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>&5
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1667 { { case "(($ac_try" in
1668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_try") 2>&5
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; }; }; then :
1679 $as_echo "$as_me: program exited with status $ac_status" >&5
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1683 ac_retval=$ac_status
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1692 # -------------------------------------------------------
1693 # Tests whether HEADER exists and can be compiled using the include files in
1694 # INCLUDES, setting the cache variable VAR accordingly.
1695 ac_fn_c_check_header_compile ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1701 $as_echo_n "(cached) " >&6
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1708 if ac_fn_c_try_compile "$LINENO"; then :
1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 } # ac_fn_c_check_header_compile
1722 # ac_fn_c_try_link LINENO
1723 # -----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded.
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext conftest$ac_exeext
1729 if { { ac_try="$ac_link"
1731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1732 *) ac_try_echo
=$ac_try;;
1734 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>conftest.err
1738 if test -s conftest.err
; then
1739 grep -v '^ *+' conftest.err
>conftest.er1
1740 cat conftest.er1
>&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest
$ac_exeext && {
1748 test "$cross_compiling" = yes ||
1749 $as_test_x conftest
$ac_exeext
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.
$ac_ext >&5
1758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760 # interfere with the next link command; also delete a directory that is
1761 # left behind by Apple's compiler. We do this before executing the actions.
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1766 } # ac_fn_c_try_link
1768 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1769 # -------------------------------------------
1770 # Tests whether TYPE exists after having included INCLUDES, setting cache
1771 # variable VAR accordingly.
1772 ac_fn_c_check_type
()
1774 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1793 if ac_fn_c_try_compile
"$LINENO"; then :
1794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1806 if ac_fn_c_try_compile
"$LINENO"; then :
1811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1820 } # ac_fn_c_check_type
1822 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1823 # --------------------------------------------
1824 # Tries to find the compile-time value of EXPR in a program that includes
1825 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1827 ac_fn_c_compute_int
()
1829 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1830 if test "$cross_compiling" = yes; then
1831 # Depending upon the size, compute the lo and hi bounds.
1832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1838 static int test_array [1 - 2 * !(($2) >= 0)];
1845 if ac_fn_c_try_compile
"$LINENO"; then :
1848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1854 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1861 if ac_fn_c_try_compile
"$LINENO"; then :
1862 ac_hi
=$ac_mid; break
1864 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1865 if test $ac_lo -le $ac_mid; then
1869 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1880 static int test_array [1 - 2 * !(($2) < 0)];
1887 if ac_fn_c_try_compile
"$LINENO"; then :
1890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1896 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1903 if ac_fn_c_try_compile
"$LINENO"; then :
1904 ac_lo
=$ac_mid; break
1906 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1907 if test $ac_mid -le $ac_hi; then
1911 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1921 # Binary search between lo and hi bounds.
1922 while test "x$ac_lo" != "x$ac_hi"; do
1923 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1930 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1937 if ac_fn_c_try_compile
"$LINENO"; then :
1940 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
1942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1945 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
1949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1952 static long int longval () { return $2; }
1953 static unsigned long int ulongval () { return $2; }
1960 FILE *f = fopen ("conftest.val", "w");
1965 long int i = longval ();
1968 fprintf (f, "%ld", i);
1972 unsigned long int i = ulongval ();
1975 fprintf (f, "%lu", i);
1977 /* Do not output a trailing newline, as this causes \r\n confusion
1978 on some platforms. */
1979 return ferror (f) || fclose (f) != 0;
1985 if ac_fn_c_try_run
"$LINENO"; then :
1986 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
1990 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
1991 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1998 } # ac_fn_c_compute_int
2000 # ac_fn_c_check_func LINENO FUNC VAR
2001 # ----------------------------------
2002 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2003 ac_fn_c_check_func
()
2005 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2015 #define $2 innocuous_$2
2017 /* System header to define __stub macros and hopefully few prototypes,
2018 which can conflict with char $2 (); below.
2019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2020 <limits.h> exists even on freestanding compilers. */
2023 # include <limits.h>
2025 # include <assert.h>
2030 /* Override any GCC internal prototype to avoid an error.
2031 Use char because int might match the return type of a GCC
2032 builtin and then its argument prototype would still apply. */
2037 /* The GNU C library defines this for functions which it implements
2038 to always fail with ENOSYS. Some functions are actually named
2039 something starting with __ and the normal name is an alias. */
2040 #if defined __stub_$2 || defined __stub___$2
2052 if ac_fn_c_try_link
"$LINENO"; then :
2057 rm -f core conftest.err conftest.
$ac_objext \
2058 conftest
$ac_exeext conftest.
$ac_ext
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2065 } # ac_fn_c_check_func
2067 # ac_fn_c_check_decl LINENO SYMBOL VAR
2068 # ------------------------------------
2069 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2070 ac_fn_c_check_decl
()
2072 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2073 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2074 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2076 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2077 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2078 $as_echo_n "(cached) " >&6
2080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 #ifndef $as_decl_name
2088 (void) $as_decl_use;
2090 (void) $as_decl_name;
2098 if ac_fn_c_try_compile
"$LINENO"; then :
2103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2110 } # ac_fn_c_check_decl
2112 # ac_fn_cxx_try_link LINENO
2113 # -------------------------
2114 # Try to link conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_link
()
2117 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2118 rm -f conftest.
$ac_objext conftest
$ac_exeext
2119 if { { ac_try
="$ac_link"
2121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_link") 2>conftest.err
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } && {
2135 test -z "$ac_cxx_werror_flag" ||
2136 test ! -s conftest.err
2137 } && test -s conftest$ac_exeext && {
2138 test "$cross_compiling" = yes ||
2139 $as_test_x conftest$ac_exeext
2143 $as_echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2148 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2149 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2150 # interfere with the next link command; also delete a directory that is
2151 # left behind by Apple's compiler. We do this before executing the actions.
2152 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 } # ac_fn_cxx_try_link
2157 cat >config.log <<_ACEOF
2158 This file contains any messages produced by compilers while
2159 running configure, to aid debugging if configure makes a mistake.
2161 It was created by cpplib $as_me , which was
2162 generated by GNU Autoconf 2.64. Invocation command line was
2174 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2175 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2176 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2177 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2178 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2180 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2181 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2183 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2184 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2185 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2186 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2187 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2188 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2189 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 test -z "$as_dir" && as_dir=.
2198 $as_echo "PATH: $as_dir"
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2222 ac_must_keep_next=false
2228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230 | -silent | --silent | --silen | --sile | --sil)
2233 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2238 as_fn_append ac_configure_args1 " '$ac_arg'"
2239 if test $ac_must_keep_next = true; then
2240 ac_must_keep_next=false # Got value, back to normal.
2243 *=* | --config-cache | -C | -disable-* | --disable-* \
2244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246 | -with-* | --with-* | -without-* | --without-* | --x)
2247 case "$ac_configure_args0 " in
2248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251 -* ) ac_must_keep_next=true ;;
2254 as_fn_append ac_configure_args " '$ac_arg'"
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log. We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268 # Save into config.log some information that might help in debugging.
2273 ## ---------------- ##
2274 ## Cache variables. ##
2275 ## ---------------- ##
2278 # The following way of writing the cache mishandles newlines in values,
2280 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2281 eval ac_val=\$$ac_var
2285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2289 _ | IFS | as_nl) ;; #(
2290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291 *) { eval $ac_var=; unset $ac_var;} ;;
2296 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2297 *${as_nl}ac_space=\ *)
2299 "s/'\''/'\''\\\\'\'''\''/g;
2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2311 ## ----------------- ##
2312 ## Output variables. ##
2313 ## ----------------- ##
2316 for ac_var in $ac_subst_vars
2318 eval ac_val=\$$ac_var
2320 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 $as_echo "$ac_var='\''$ac_val'\''"
2326 if test -n "$ac_subst_files"; then
2328 ## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##
2333 for ac_var in $ac_subst_files
2335 eval ac_val=\$$ac_var
2337 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 $as_echo "$ac_var='\''$ac_val'\''"
2344 if test -s confdefs.h; then
2354 test "$ac_signal" != 0 &&
2355 $as_echo "$as_me: caught signal $ac_signal"
2356 $as_echo "$as_me: exit $exit_status"
2358 rm -f core *.core core.conftest.* &&
2359 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2362 for ac_signal in 1 2 13 15; do
2363 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2368 rm -f -r conftest* confdefs.h
2370 $as_echo "/* confdefs.h */" > confdefs.h
2372 # Predefined preprocessor variables.
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_NAME "$PACKAGE_NAME"
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_STRING "$PACKAGE_STRING"
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_URL "$PACKAGE_URL"
2399 # Let the site file select an alternate cache file if it wants to.
2400 # Prefer an explicitly selected file to automatically selected ones.
2403 if test -n "$CONFIG_SITE"; then
2404 ac_site_file1=$CONFIG_SITE
2405 elif test "x$prefix" != xNONE; then
2406 ac_site_file1=$prefix/share/config.site
2407 ac_site_file2=$prefix/etc/config.site
2409 ac_site_file1=$ac_default_prefix/share/config.site
2410 ac_site_file2=$ac_default_prefix/etc/config.site
2412 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2414 test "x$ac_site_file" = xNONE && continue
2415 if test -r "$ac_site_file"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2417 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2418 sed 's/^/| /' "$ac_site_file" >&5
2423 if test -r "$cache_file"; then
2424 # Some versions of bash will fail to source /dev/null (special
2425 # files actually), so we avoid doing that.
2426 if test -f "$cache_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2428 $as_echo "$as_me: loading cache $cache_file" >&6;}
2430 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2431 *) . "./$cache_file";;
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2436 $as_echo "$as_me: creating cache $cache_file" >&6;}
2440 # Check that the precious variables saved in the cache have kept the same
2442 ac_cache_corrupted=false
2443 for ac_var in $ac_precious_vars; do
2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2445 eval ac_new_set=\$ac_env_${ac_var}_set
2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2447 eval ac_new_val=\$ac_env_${ac_var}_value
2448 case $ac_old_set,$ac_new_set in
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2451 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2455 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2459 if test "x$ac_old_val" != "x$ac_new_val"; then
2460 # differences in whitespace do not lead to failure.
2461 ac_old_val_w=`echo x
$ac_old_val`
2462 ac_new_val_w=`echo x
$ac_new_val`
2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2465 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2466 ac_cache_corrupted=:
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2469 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470 eval $ac_var=\$ac_old_val
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2473 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2475 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2478 # Pass precious variables to config.status.
2479 if test "$ac_new_set" = set; then
2481 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2482 *) ac_arg=$ac_var=$ac_new_val ;;
2484 case " $ac_configure_args " in
2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2486 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2490 if $ac_cache_corrupted; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2497 ## -------------------- ##
2498 ## Main body of script. ##
2499 ## -------------------- ##
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2515 for ac_t in install-sh install.sh shtool; do
2516 if test -f "$ac_dir/$ac_t"; then
2518 ac_install_sh="$ac_aux_dir/$ac_t -c"
2523 if test -z "$ac_aux_dir"; then
2524 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2527 # These three variables are undocumented and unsupported,
2528 # and are intended to be withdrawn in a future Autoconf release.
2529 # They can cause serious problems if a builder's source tree is in a directory
2530 # whose full name contains unusual characters.
2531 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2532 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2533 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2536 # Make sure we can run config.sub.
2537 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2538 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2541 $as_echo_n "checking build system type... " >&6; }
2542 if test "${ac_cv_build+set}" = set; then :
2543 $as_echo_n "(cached) " >&6
2545 ac_build_alias=$build_alias
2546 test "x$ac_build_alias" = x &&
2547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2548 test "x$ac_build_alias" = x &&
2549 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2550 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2551 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2555 $as_echo "$ac_cv_build" >&6; }
2556 case $ac_cv_build in
2558 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2561 ac_save_IFS=$IFS; IFS='-'
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2571 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2575 $as_echo_n "checking host system type... " >&6; }
2576 if test "${ac_cv_host+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2579 if test "x$host_alias" = x; then
2580 ac_cv_host=$ac_cv_build
2582 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2588 $as_echo "$ac_cv_host" >&6; }
2591 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2594 ac_save_IFS=$IFS; IFS='-'
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2604 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2608 $as_echo_n "checking target system type... " >&6; }
2609 if test "${ac_cv_target+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
2612 if test "x$target_alias" = x; then
2613 ac_cv_target=$ac_cv_host
2615 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2616 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2621 $as_echo "$ac_cv_target" >&6; }
2622 case $ac_cv_target in
2624 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2626 target=$ac_cv_target
2627 ac_save_IFS=$IFS; IFS='-'
2633 # Remember, the first character of IFS is used to create $*,
2634 # except with old shells:
2637 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2640 # The aliases save the names the user supplied, while $host etc.
2641 # will get canonicalized.
2642 test -n "$target_alias" &&
2643 test "$program_prefix$program_suffix$program_transform_name" = \
2645 program_prefix=${target_alias}-
2648 # Checks for programs.
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2650 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2652 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2653 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2654 $as_echo_n "(cached) " >&6
2656 cat >conftest.make <<\_ACEOF
2659 @echo '@@@%%%=$(MAKE)=@@@%%%'
2661 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2662 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2664 eval ac_cv_prog_make_${ac_make}_set=yes;;
2666 eval ac_cv_prog_make_${ac_make}_set=no;;
2670 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2672 $as_echo "yes" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 SET_MAKE="MAKE=${MAKE-make}"
2680 # Find a good install program. We prefer a C program (faster),
2681 # so one script is as good as another. But avoid the broken or
2682 # incompatible versions:
2683 # SysV /etc/install, /usr/sbin/install
2684 # SunOS /usr/etc/install
2685 # IRIX /sbin/install
2687 # AmigaOS /C/install, which installs bootblocks on floppy discs
2688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2691 # OS/2's system install, which has a completely different semantic
2692 # ./install, which can be erroneously created by make from ./install.sh.
2693 # Reject install programs that cannot install multiple files.
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2695 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2696 if test -z "$INSTALL"; then
2697 if test "${ac_cv_path_install+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 # Account for people who put trailing slashes in PATH elements.
2706 case $as_dir/ in #((
2707 ./ | .// | /[cC]/* | \
2708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2709 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2712 # OSF1 and SCO ODT 3.0 have their own names for install.
2713 # Don't use installbsd from OSF since it installs stuff as root
2715 for ac_prog in ginstall scoinst install; do
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2718 if test $ac_prog = install &&
2719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2720 # AIX install. It has an incompatible calling convention.
2722 elif test $ac_prog = install &&
2723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2724 # program-specific install script used by HP pwplus--don't use.
2727 rm -rf conftest.one conftest.two conftest.dir
2728 echo one > conftest.one
2729 echo two > conftest.two
2731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2732 test -s conftest.one && test -s conftest.two &&
2733 test -s conftest.dir/conftest.one &&
2734 test -s conftest.dir/conftest.two
2736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2749 rm -rf conftest.one conftest.two conftest.dir
2752 if test "${ac_cv_path_install+set}" = set; then
2753 INSTALL=$ac_cv_path_install
2755 # As a last resort, use the slow shell script. Don't cache a
2756 # value for INSTALL within a source directory, because that will
2757 # break other packages using the cache if that directory is
2758 # removed, or if the value is a relative name.
2759 INSTALL=$ac_install_sh
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2763 $as_echo "$INSTALL" >&6; }
2765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2766 # It thinks the first close brace ends the variable substitution.
2767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778 if test -n "$ac_tool_prefix"; then
2779 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2780 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if test "${ac_cv_prog_CC+set}" = set; then :
2784 $as_echo_n "(cached) " >&6
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2817 if test -z "$ac_cv_prog_CC"; then
2819 # Extract the first word of "gcc", so it can be a program name with args.
2820 set dummy gcc; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2824 $as_echo_n "(cached) " >&6
2826 if test -n "$ac_ct_CC"; then
2827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_ac_ct_CC="gcc"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847 if test -n "$ac_ct_CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2849 $as_echo "$ac_ct_CC" >&6; }
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2855 if test "x$ac_ct_CC" = x; then
2858 case $cross_compiling:$ac_tool_warned in
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862 ac_tool_warned=yes ;;
2870 if test -z "$CC"; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}cc; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if test "${ac_cv_prog_CC+set}" = set; then :
2877 $as_echo_n "(cached) " >&6
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_CC="${ac_tool_prefix}cc"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2911 if test -z "$CC"; then
2912 # Extract the first word of "cc", so it can be a program name with args.
2913 set dummy cc; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if test "${ac_cv_prog_CC+set}" = set; then :
2917 $as_echo_n "(cached) " >&6
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2931 ac_prog_rejected=yes
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 if test $ac_prog_rejected = yes; then
2943 # We found a bogon in the path, so make sure we never use it.
2944 set dummy $ac_cv_prog_CC
2946 if test $# != 0; then
2947 # We chose a different compiler from the bogus one.
2948 # However, it has the same basename, so the bogon will be chosen
2949 # first if we set CC to just the basename; use the full file name.
2951 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2967 if test -z "$CC"; then
2968 if test -n "$ac_tool_prefix"; then
2969 for ac_prog in cl.exe
2971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_CC+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3008 test -n "$CC" && break
3011 if test -z "$CC"; then
3013 for ac_prog in cl.exe
3015 # Extract the first word of "$ac_prog", so it can be a program name with args.
3016 set dummy $ac_prog; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3022 if test -n "$ac_ct_CC"; then
3023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_ac_ct_CC="$ac_prog"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3043 if test -n "$ac_ct_CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3045 $as_echo "$ac_ct_CC" >&6; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3052 test -n "$ac_ct_CC" && break
3055 if test "x$ac_ct_CC" = x; then
3058 case $cross_compiling:$ac_tool_warned in
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3062 ac_tool_warned=yes ;;
3071 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 as_fn_error "no acceptable C compiler found
in \
$PATH
3074 See \
`config.log' for more details." "$LINENO" 5; }
3076 # Provide some information about the compiler.
3077 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3080 for ac_option in --version -v -V -qversion; do
3081 { { ac_try="$ac_compiler $ac_option >&5"
3083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3084 *) ac_try_echo
=$ac_try;;
3086 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3090 if test -s conftest.err
; then
3092 ... rest of stderr output deleted ...
3093 10q' conftest.err
>conftest.er1
3094 cat conftest.er1
>&5
3095 rm -f conftest.er1 conftest.err
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }
3101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3112 ac_clean_files_save
=$ac_clean_files
3113 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3114 # Try to create an executable without -o first, disregard a.out.
3115 # It will help us diagnose broken compilers, and finding out an intuition
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3118 $as_echo_n "checking for C compiler default output file name... " >&6; }
3119 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3121 # The possible output files:
3122 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3125 for ac_file
in $ac_files
3128 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3129 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3134 if { { ac_try
="$ac_link_default"
3136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140 $as_echo "$ac_try_echo"; } >&5
3141 (eval "$ac_link_default") 2>&5
3143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144 test $ac_status = 0; }; then :
3145 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3146 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3147 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3148 # so that the user can short-circuit this test for compilers unknown to
3150 for ac_file in $ac_files ''
3152 test -f "$ac_file" || continue
3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3157 # We found the default executable, but exeext='' is most
3161 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3163 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3165 # We set ac_cv_exeext here because the later test for it is not
3166 # safe: cross compilers may not add the suffix if given an `-o'
3167 # argument, so we may need to know it at that point already.
3168 # Even if this section looks crufty: it has the advantage of
3175 test "$ac_cv_exeext" = no && ac_cv_exeext=
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3181 $as_echo "$ac_file" >&6; }
3182 if test -z "$ac_file"; then :
3183 $as_echo "$as_me: failed program was:" >&5
3184 sed 's
/^
/|
/' conftest.$ac_ext >&5
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3188 { as_fn_set_status 77
3189 as_fn_error "C compiler cannot create executables
3190 See \`config.log
' for more details." "$LINENO" 5; }; }
3192 ac_exeext=$ac_cv_exeext
3194 # Check that the compiler produces executables we can run. If not, either
3195 # the compiler is broken, or we cross compile.
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3197 $as_echo_n "checking whether the C compiler works... " >&6; }
3198 # If not cross compiling, check that we can run a simple program.
3199 if test "$cross_compiling" != yes; then
3200 if { ac_try='.
/$ac_file'
3201 { { case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_try") 2>&5
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; }; then
3213 if test "$cross_compiling" = maybe; then
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3218 as_fn_error "cannot run C compiled programs.
3219 If you meant to cross compile, use \`--host'.
3220 See \`config.log' for more details.
" "$LINENO" 5; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3225 $as_echo "yes" >&6; }
3227 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3228 ac_clean_files=$ac_clean_files_save
3229 # Check that the compiler produces executables we can run. If not, either
3230 # the compiler is broken, or we cross compile.
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3232 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3234 $as_echo "$cross_compiling" >&6; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3237 $as_echo_n "checking
for suffix of executables...
" >&6; }
3238 if { { ac_try="$ac_link"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_link") 2>&5
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3250 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3251 # work properly (i.e., refer to `conftest.exe'), while it won't with
3253 for ac_file in conftest.exe conftest conftest.*; do
3254 test -f "$ac_file" || continue
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3257 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error "cannot compute suffix of executables: cannot compile and link
3266 See \`config.log' for more details.
" "$LINENO" 5; }
3268 rm -f conftest$ac_cv_exeext
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3270 $as_echo "$ac_cv_exeext" >&6; }
3272 rm -f conftest.$ac_ext
3273 EXEEXT=$ac_cv_exeext
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3276 $as_echo_n "checking
for suffix of object files...
" >&6; }
3277 if test "${ac_cv_objext+set}" = set; then :
3278 $as_echo_n "(cached
) " >&6
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3291 rm -f conftest.o conftest.obj
3292 if { { ac_try="$ac_compile"
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_compile") 2>&5
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3302 test $ac_status = 0; }; then :
3303 for ac_file in conftest.o conftest.obj conftest.*; do
3304 test -f "$ac_file" || continue;
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3312 $as_echo "$as_me: failed program was
:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 as_fn_error "cannot compute suffix of object files: cannot compile
3318 See \`config.log' for more details.
" "$LINENO" 5; }
3320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3323 $as_echo "$ac_cv_objext" >&6; }
3324 OBJEXT=$ac_cv_objext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3327 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3328 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3329 $as_echo_n "(cached
) " >&6
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3345 if ac_fn_c_try_compile "$LINENO"; then :
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3355 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3356 if test $ac_compiler_gnu = yes; then
3361 ac_test_CFLAGS=${CFLAGS+set}
3362 ac_save_CFLAGS=$CFLAGS
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3364 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3365 if test "${ac_cv_prog_cc_g+set}" = set; then :
3366 $as_echo_n "(cached
) " >&6
3368 ac_save_c_werror_flag=$ac_c_werror_flag
3369 ac_c_werror_flag=yes
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3383 if ac_fn_c_try_compile "$LINENO"; then :
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3398 if ac_fn_c_try_compile "$LINENO"; then :
3401 ac_c_werror_flag=$ac_save_c_werror_flag
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3414 if ac_fn_c_try_compile "$LINENO"; then :
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 ac_c_werror_flag=$ac_save_c_werror_flag
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3425 $as_echo "$ac_cv_prog_cc_g" >&6; }
3426 if test "$ac_test_CFLAGS" = set; then
3427 CFLAGS=$ac_save_CFLAGS
3428 elif test $ac_cv_prog_cc_g = yes; then
3429 if test "$GCC" = yes; then
3435 if test "$GCC" = yes; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3442 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3443 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3444 $as_echo_n "(cached
) " >&6
3446 ac_cv_prog_cc_c89=no
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3452 #include <sys/types.h>
3453 #include <sys/stat.h>
3454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3455 struct buf { int x; };
3456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3457 static char *e (p, i)
3463 static char *f (char * (*g) (char **, int), char **p, ...)
3468 s = g (p, va_arg (v,int));
3473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3474 function prototypes and stuff, but not '\xHH' hex character constants.
3475 These don't provoke an error unfortunately, instead are silently treated
3476 as 'x'. The following induces an error, until -std is added to get
3477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3478 array size at least. It's necessary to write '\x00'==0 to get something
3479 that's true only with -std. */
3480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3483 inside strings and character constants. */
3485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3487 int test (int i, double x);
3488 struct s1 {int (*f) (int a);};
3489 struct s2 {int (*f) (double a);};
3490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3504 CC="$ac_save_CC $ac_arg"
3505 if ac_fn_c_try_compile "$LINENO"; then :
3506 ac_cv_prog_cc_c89=$ac_arg
3508 rm -f core conftest.err conftest.$ac_objext
3509 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3511 rm -f conftest.$ac_ext
3516 case "x
$ac_cv_prog_cc_c89" in
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3519 $as_echo "none needed
" >&6; } ;;
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3522 $as_echo "unsupported
" >&6; } ;;
3524 CC="$CC $ac_cv_prog_cc_c89"
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3526 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3528 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 ac_cpp='$CXXCPP $CPPFLAGS'
3540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3543 if test -z "$CXX"; then
3544 if test -n "$CCC"; then
3547 if test -n "$ac_tool_prefix"; then
3548 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3553 $as_echo_n "checking
for $ac_word...
" >&6; }
3554 if test "${ac_cv_prog_CXX+set}" = set; then :
3555 $as_echo_n "(cached
) " >&6
3557 if test -n "$CXX"; then
3558 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3578 if test -n "$CXX"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
3580 $as_echo "$CXX" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3583 $as_echo "no
" >&6; }
3587 test -n "$CXX" && break
3590 if test -z "$CXX"; then
3592 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595 set dummy $ac_prog; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3597 $as_echo_n "checking
for $ac_word...
" >&6; }
3598 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3599 $as_echo_n "(cached
) " >&6
3601 if test -n "$ac_ct_CXX"; then
3602 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_ac_ct_CXX="$ac_prog"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3621 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3622 if test -n "$ac_ct_CXX"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
3624 $as_echo "$ac_ct_CXX" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3627 $as_echo "no
" >&6; }
3631 test -n "$ac_ct_CXX" && break
3634 if test "x
$ac_ct_CXX" = x; then
3637 case $cross_compiling:$ac_tool_warned in
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3640 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3641 ac_tool_warned=yes ;;
3649 # Provide some information about the compiler.
3650 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
3653 for ac_option in --version -v -V -qversion; do
3654 { { ac_try="$ac_compiler $ac_option >&5"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3663 if test -s conftest.err; then
3665 ... rest of stderr output deleted ...
3666 10q' conftest.err >conftest.er1
3667 cat conftest.er1 >&5
3668 rm -f conftest.er1 conftest.err
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3671 test $ac_status = 0; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
3675 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
3676 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3677 $as_echo_n "(cached
) " >&6
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3693 if ac_fn_cxx_try_compile "$LINENO"; then :
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
3703 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3704 if test $ac_compiler_gnu = yes; then
3709 ac_test_CXXFLAGS=${CXXFLAGS+set}
3710 ac_save_CXXFLAGS=$CXXFLAGS
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
3712 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
3713 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3714 $as_echo_n "(cached
) " >&6
3716 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3717 ac_cxx_werror_flag=yes
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3731 if ac_fn_cxx_try_compile "$LINENO"; then :
3732 ac_cv_prog_cxx_g=yes
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3746 if ac_fn_cxx_try_compile "$LINENO"; then :
3749 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3762 if ac_fn_cxx_try_compile "$LINENO"; then :
3763 ac_cv_prog_cxx_g=yes
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3773 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3774 if test "$ac_test_CXXFLAGS" = set; then
3775 CXXFLAGS=$ac_save_CXXFLAGS
3776 elif test $ac_cv_prog_cxx_g = yes; then
3777 if test "$GXX" = yes; then
3783 if test "$GXX" = yes; then
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795 if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
3797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3799 $as_echo_n "checking
for $ac_word...
" >&6; }
3800 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3801 $as_echo_n "(cached
) " >&6
3803 if test -n "$RANLIB"; then
3804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3823 RANLIB=$ac_cv_prog_RANLIB
3824 if test -n "$RANLIB"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
3826 $as_echo "$RANLIB" >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3829 $as_echo "no
" >&6; }
3834 if test -z "$ac_cv_prog_RANLIB"; then
3835 ac_ct_RANLIB=$RANLIB
3836 # Extract the first word of "ranlib
", so it can be a program name with args.
3837 set dummy ranlib; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3839 $as_echo_n "checking
for $ac_word...
" >&6; }
3840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3841 $as_echo_n "(cached
) " >&6
3843 if test -n "$ac_ct_RANLIB"; then
3844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_ac_ct_RANLIB="ranlib
"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3864 if test -n "$ac_ct_RANLIB"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
3866 $as_echo "$ac_ct_RANLIB" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3869 $as_echo "no
" >&6; }
3872 if test "x
$ac_ct_RANLIB" = x; then
3875 case $cross_compiling:$ac_tool_warned in
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3878 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3879 ac_tool_warned=yes ;;
3881 RANLIB=$ac_ct_RANLIB
3884 RANLIB="$ac_cv_prog_RANLIB"
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3895 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3896 # On Suns, sometimes $CPP names a directory.
3897 if test -n "$CPP" && test -d "$CPP"; then
3900 if test -z "$CPP"; then
3901 if test "${ac_cv_prog_CPP+set}" = set; then :
3902 $as_echo_n "(cached
) " >&6
3904 # Double quotes because CPP needs to be expanded
3905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3908 for ac_c_preproc_warn_flag in '' yes
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error
" is here to catch this case.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3919 # include <limits.h>
3921 # include <assert.h>
3925 if ac_fn_c_try_cpp "$LINENO"; then :
3928 # Broken: fails on valid input.
3931 rm -f conftest.err conftest.$ac_ext
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3939 if ac_fn_c_try_cpp "$LINENO"; then :
3940 # Broken: success on invalid input.
3943 # Passes both tests.
3947 rm -f conftest.err conftest.$ac_ext
3950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951 rm -f conftest.err conftest.$ac_ext
3952 if $ac_preproc_ok; then :
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3965 $as_echo "$CPP" >&6; }
3967 for ac_c_preproc_warn_flag in '' yes
3969 # Use a header file that comes with gcc, so configuring glibc
3970 # with a fresh cross-compiler works.
3971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3972 # <limits.h> exists even on freestanding compilers.
3973 # On the NeXT, cc -E runs the code through the compiler's parser,
3974 # not just through cpp. "Syntax error
" is here to catch this case.
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3978 # include <limits.h>
3980 # include <assert.h>
3984 if ac_fn_c_try_cpp "$LINENO"; then :
3987 # Broken: fails on valid input.
3990 rm -f conftest.err conftest.$ac_ext
3992 # OK, works on sane cases. Now check whether nonexistent headers
3993 # can be detected and how.
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #include <ac_nonexistent.h>
3998 if ac_fn_c_try_cpp "$LINENO"; then :
3999 # Broken: success on invalid input.
4002 # Passes both tests.
4006 rm -f conftest.err conftest.$ac_ext
4009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4010 rm -f conftest.err conftest.$ac_ext
4011 if $ac_preproc_ok; then :
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4017 See \`config.log' for more details.
" "$LINENO" 5; }
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4028 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4029 if test "${ac_cv_path_GREP+set}" = set; then :
4030 $as_echo_n "(cached
) " >&6
4032 if test -z "$GREP"; then
4033 ac_path_GREP_found=false
4034 # Loop through the user's path and test for each of PROGNAME-LIST
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4039 test -z "$as_dir" && as_dir=.
4040 for ac_prog in grep ggrep; do
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4043 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4044 # Check for GNU ac_path_GREP and select it if it is found.
4045 # Check for GNU $ac_path_GREP
4046 case `"$ac_path_GREP" --version 2>&1` in
4048 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4051 $as_echo_n 0123456789 >"conftest.
in"
4054 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4055 mv "conftest.tmp
" "conftest.
in"
4056 cp "conftest.
in" "conftest.
nl"
4057 $as_echo 'GREP' >> "conftest.
nl"
4058 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4059 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4060 as_fn_arith $ac_count + 1 && ac_count=$as_val
4061 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4062 # Best one so far, save it but keep looking for a better one
4063 ac_cv_path_GREP="$ac_path_GREP"
4064 ac_path_GREP_max=$ac_count
4066 # 10*(2^10) chars as input seems more than enough
4067 test $ac_count -gt 10 && break
4069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4072 $ac_path_GREP_found && break 3
4077 if test -z "$ac_cv_path_GREP"; then
4078 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4081 ac_cv_path_GREP=$GREP
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4086 $as_echo "$ac_cv_path_GREP" >&6; }
4087 GREP="$ac_cv_path_GREP"
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4091 $as_echo_n "checking
for egrep...
" >&6; }
4092 if test "${ac_cv_path_EGREP+set}" = set; then :
4093 $as_echo_n "(cached
) " >&6
4095 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4096 then ac_cv_path_EGREP="$GREP -E"
4098 if test -z "$EGREP"; then
4099 ac_path_EGREP_found=false
4100 # Loop through the user's path and test for each of PROGNAME-LIST
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4105 test -z "$as_dir" && as_dir=.
4106 for ac_prog in egrep; do
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4109 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4110 # Check for GNU ac_path_EGREP and select it if it is found.
4111 # Check for GNU $ac_path_EGREP
4112 case `"$ac_path_EGREP" --version 2>&1` in
4114 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4117 $as_echo_n 0123456789 >"conftest.
in"
4120 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4121 mv "conftest.tmp
" "conftest.
in"
4122 cp "conftest.
in" "conftest.
nl"
4123 $as_echo 'EGREP' >> "conftest.
nl"
4124 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4125 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4126 as_fn_arith $ac_count + 1 && ac_count=$as_val
4127 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4128 # Best one so far, save it but keep looking for a better one
4129 ac_cv_path_EGREP="$ac_path_EGREP"
4130 ac_path_EGREP_max=$ac_count
4132 # 10*(2^10) chars as input seems more than enough
4133 test $ac_count -gt 10 && break
4135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 $ac_path_EGREP_found && break 3
4143 if test -z "$ac_cv_path_EGREP"; then
4144 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4147 ac_cv_path_EGREP=$EGREP
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4153 $as_echo "$ac_cv_path_EGREP" >&6; }
4154 EGREP="$ac_cv_path_EGREP"
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
4158 $as_echo_n "checking
for ANSI C header files...
" >&6; }
4159 if test "${ac_cv_header_stdc+set}" = set; then :
4160 $as_echo_n "(cached
) " >&6
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4177 if ac_fn_c_try_compile "$LINENO"; then :
4178 ac_cv_header_stdc=yes
4180 ac_cv_header_stdc=no
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 if test $ac_cv_header_stdc = yes; then
4185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4191 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4192 $EGREP "memchr
" >/dev/null 2>&1; then :
4195 ac_cv_header_stdc=no
4201 if test $ac_cv_header_stdc = yes; then
4202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4208 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4209 $EGREP "free
" >/dev/null 2>&1; then :
4212 ac_cv_header_stdc=no
4218 if test $ac_cv_header_stdc = yes; then
4219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4220 if test "$cross_compiling" = yes; then :
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4227 #if ((' ' & 0x0FF) == 0x020)
4228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4231 # define ISLOWER(c) \
4232 (('a' <= (c) && (c) <= 'i') \
4233 || ('j' <= (c) && (c) <= 'r') \
4234 || ('s' <= (c) && (c) <= 'z'))
4235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4243 for (i = 0; i < 256; i++)
4244 if (XOR (islower (i), ISLOWER (i))
4245 || toupper (i) != TOUPPER (i))
4250 if ac_fn_c_try_run "$LINENO"; then :
4253 ac_cv_header_stdc=no
4255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4256 conftest.$ac_objext conftest.beam conftest.$ac_ext
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4262 $as_echo "$ac_cv_header_stdc" >&6; }
4263 if test $ac_cv_header_stdc = yes; then
4265 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4269 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4270 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4271 inttypes.h stdint.h unistd.h
4273 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4274 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4276 eval as_val
=\$
$as_ac_Header
4277 if test "x$as_val" = x
""yes; then :
4278 cat >>confdefs.h
<<_ACEOF
4279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4288 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4289 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4296 if test "$MINIX" = yes; then
4298 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4301 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4304 $as_echo "#define _MINIX 1" >>confdefs.h
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4310 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4311 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4317 # define __EXTENSIONS__ 1
4318 $ac_includes_default
4327 if ac_fn_c_try_compile
"$LINENO"; then :
4328 ac_cv_safe_to_define___extensions__
=yes
4330 ac_cv_safe_to_define___extensions__
=no
4332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4335 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4336 test $ac_cv_safe_to_define___extensions__ = yes &&
4337 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4339 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4341 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4343 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4345 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4348 # Check whether --enable-largefile was given.
4349 if test "${enable_largefile+set}" = set; then :
4350 enableval
=$enable_largefile;
4353 if test "$enable_largefile" != no
; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4356 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4357 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4360 ac_cv_sys_largefile_CC
=no
4361 if test "$GCC" != yes; then
4364 # IRIX 6.2 and later do not support large files by default,
4365 # so use the C compiler's -n32 option if that helps.
4366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368 #include <sys/types.h>
4369 /* Check that off_t can represent 2**63 - 1 correctly.
4370 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4371 since some C++ compilers masquerading as C compilers
4372 incorrectly reject 9223372036854775807. */
4373 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4374 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4375 && LARGE_OFF_T % 2147483647 == 1)
4385 if ac_fn_c_try_compile
"$LINENO"; then :
4388 rm -f core conftest.err conftest.
$ac_objext
4390 if ac_fn_c_try_compile
"$LINENO"; then :
4391 ac_cv_sys_largefile_CC
=' -n32'; break
4393 rm -f core conftest.err conftest.
$ac_objext
4397 rm -f conftest.
$ac_ext
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4401 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4402 if test "$ac_cv_sys_largefile_CC" != no
; then
4403 CC
=$CC$ac_cv_sys_largefile_CC
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4407 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4408 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 /* Check that off_t can represent 2**63 - 1 correctly.
4416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4417 since some C++ compilers masquerading as C compilers
4418 incorrectly reject 9223372036854775807. */
4419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4421 && LARGE_OFF_T % 2147483647 == 1)
4431 if ac_fn_c_try_compile
"$LINENO"; then :
4432 ac_cv_sys_file_offset_bits
=no
; break
4434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #define _FILE_OFFSET_BITS 64
4438 #include <sys/types.h>
4439 /* Check that off_t can represent 2**63 - 1 correctly.
4440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4441 since some C++ compilers masquerading as C compilers
4442 incorrectly reject 9223372036854775807. */
4443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4445 && LARGE_OFF_T % 2147483647 == 1)
4455 if ac_fn_c_try_compile
"$LINENO"; then :
4456 ac_cv_sys_file_offset_bits
=64; break
4458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4459 ac_cv_sys_file_offset_bits
=unknown
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4464 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4465 case $ac_cv_sys_file_offset_bits in #(
4468 cat >>confdefs.h
<<_ACEOF
4469 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4474 if test $ac_cv_sys_file_offset_bits = unknown
; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4476 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4477 if test "${ac_cv_sys_large_files+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <sys/types.h>
4484 /* Check that off_t can represent 2**63 - 1 correctly.
4485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4486 since some C++ compilers masquerading as C compilers
4487 incorrectly reject 9223372036854775807. */
4488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4490 && LARGE_OFF_T % 2147483647 == 1)
4500 if ac_fn_c_try_compile
"$LINENO"; then :
4501 ac_cv_sys_large_files
=no
; break
4503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506 #define _LARGE_FILES 1
4507 #include <sys/types.h>
4508 /* Check that off_t can represent 2**63 - 1 correctly.
4509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4510 since some C++ compilers masquerading as C compilers
4511 incorrectly reject 9223372036854775807. */
4512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4514 && LARGE_OFF_T % 2147483647 == 1)
4524 if ac_fn_c_try_compile
"$LINENO"; then :
4525 ac_cv_sys_large_files
=1; break
4527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4528 ac_cv_sys_large_files
=unknown
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4533 $as_echo "$ac_cv_sys_large_files" >&6; }
4534 case $ac_cv_sys_large_files in #(
4537 cat >>confdefs.h
<<_ACEOF
4538 #define _LARGE_FILES $ac_cv_sys_large_files
4547 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4548 for ac_prog
in aclocal
4550 # Extract the first word of "$ac_prog", so it can be a program name with args.
4551 set dummy
$ac_prog; ac_word
=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4557 if test -n "$ACLOCAL"; then
4558 ac_cv_prog_ACLOCAL
="$ACLOCAL" # Let the user override the test.
4560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir
=.
4565 for ac_exec_ext
in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_ACLOCAL
="$ac_prog"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 ACLOCAL
=$ac_cv_prog_ACLOCAL
4578 if test -n "$ACLOCAL"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4580 $as_echo "$ACLOCAL" >&6; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4587 test -n "$ACLOCAL" && break
4589 test -n "$ACLOCAL" || ACLOCAL
="$MISSING aclocal"
4591 for ac_prog
in autoconf
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy
$ac_prog; ac_word
=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4600 if test -n "$AUTOCONF"; then
4601 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
4603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir
=.
4608 for ac_exec_ext
in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_AUTOCONF
="$ac_prog"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 AUTOCONF
=$ac_cv_prog_AUTOCONF
4621 if test -n "$AUTOCONF"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4623 $as_echo "$AUTOCONF" >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4630 test -n "$AUTOCONF" && break
4632 test -n "$AUTOCONF" || AUTOCONF
="$MISSING autoconf"
4634 for ac_prog
in autoheader
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637 set dummy
$ac_prog; ac_word
=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4643 if test -n "$AUTOHEADER"; then
4644 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
4646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4650 test -z "$as_dir" && as_dir
=.
4651 for ac_exec_ext
in '' $ac_executable_extensions; do
4652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653 ac_cv_prog_AUTOHEADER
="$ac_prog"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 AUTOHEADER
=$ac_cv_prog_AUTOHEADER
4664 if test -n "$AUTOHEADER"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4666 $as_echo "$AUTOHEADER" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4673 test -n "$AUTOHEADER" && break
4675 test -n "$AUTOHEADER" || AUTOHEADER
="$MISSING autoheader"
4678 # Figure out what compiler warnings we can enable.
4679 # See config/warnings.m4 for details.
4682 save_CFLAGS
="$CFLAGS"
4683 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings \
4684 -Wmissing-format-attribute; do
4685 # Do the check with the no- prefix removed since gcc silently
4686 # accepts any -Wno-* option on purpose
4687 case $real_option in
4688 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4689 *) option
=$real_option ;;
4691 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4694 $as_echo_n "checking whether $CC supports $option... " >&6; }
4695 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4696 $as_echo_n "(cached) " >&6
4699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4710 if ac_fn_c_try_compile
"$LINENO"; then :
4711 eval "$as_acx_Woption=yes"
4713 eval "$as_acx_Woption=no"
4715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4718 eval ac_res
=\$
$as_acx_Woption
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4720 $as_echo "$ac_res" >&6; }
4721 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4722 warn
="$warn${warn:+ }$real_option"
4725 CFLAGS
="$save_CFLAGS"
4728 save_CFLAGS
="$CFLAGS"
4729 for real_option
in -Wstrict-prototypes -Wmissing-prototypes \
4730 -Wold-style-definition -Wc++-compat; do
4731 # Do the check with the no- prefix removed since gcc silently
4732 # accepts any -Wno-* option on purpose
4733 case $real_option in
4734 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4735 *) option
=$real_option ;;
4737 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4740 $as_echo_n "checking whether $CC supports $option... " >&6; }
4741 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4742 $as_echo_n "(cached) " >&6
4745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4756 if ac_fn_c_try_compile
"$LINENO"; then :
4757 eval "$as_acx_Woption=yes"
4759 eval "$as_acx_Woption=no"
4761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4764 eval ac_res
=\$
$as_acx_Woption
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4766 $as_echo "$ac_res" >&6; }
4767 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4768 c_warn
="$c_warn${c_warn:+ }$real_option"
4771 CFLAGS
="$save_CFLAGS"
4774 # Do the check with the no- prefix removed from the warning options
4775 # since gcc silently accepts any -Wno-* option on purpose
4776 if test "$GCC" = yes; then :
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
4778 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
4779 if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4782 save_CFLAGS
="$CFLAGS"
4783 CFLAGS
="-pedantic -Wlong-long"
4784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4795 if ac_fn_c_try_compile
"$LINENO"; then :
4796 acx_cv_prog_cc_pedantic__Wlong_long
=yes
4798 acx_cv_prog_cc_pedantic__Wlong_long
=no
4800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4801 CFLAGS
="$save_CFLAGS"
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
4804 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
4805 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
4806 WARN_PEDANTIC
="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4812 # Disable exceptions and RTTI if building with g++
4814 save_CFLAGS
="$CFLAGS"
4815 for real_option
in -fno-exceptions -fno-rtti; do
4816 # Do the check with the no- prefix removed since gcc silently
4817 # accepts any -Wno-* option on purpose
4818 case $real_option in
4819 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4820 *) option
=$real_option ;;
4822 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4825 $as_echo_n "checking whether $CC supports $option... " >&6; }
4826 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4827 $as_echo_n "(cached) " >&6
4830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4841 if ac_fn_c_try_compile
"$LINENO"; then :
4842 eval "$as_acx_Woption=yes"
4844 eval "$as_acx_Woption=no"
4846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4849 eval ac_res
=\$
$as_acx_Woption
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4851 $as_echo "$ac_res" >&6; }
4852 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4853 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
4856 CFLAGS
="$save_CFLAGS"
4859 # Only enable with --enable-werror-always until existing warnings are
4862 # Check whether --enable-werror-always was given.
4863 if test "${enable_werror_always+set}" = set; then :
4864 enableval
=$enable_werror_always;
4866 enable_werror_always
=no
4869 if test $enable_werror_always = yes; then :
4870 WERROR
="$WERROR${WERROR:+ }-Werror"
4875 # Dependency checking.
4876 rm -rf .tst
2>/dev
/null
4877 mkdir .tst
2>/dev
/null
4878 if test -d .tst
; then
4883 rmdir .tst
2>/dev
/null
4885 DEPDIR
="${am__leading_dot}deps"
4887 ac_config_commands
="$ac_config_commands depdir"
4891 ac_cpp
='$CXXCPP $CPPFLAGS'
4892 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4901 if ac_fn_cxx_try_compile
"$LINENO"; then :
4904 as_fn_error
"C++ compiler missing or inoperational" "$LINENO" 5
4906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4908 ac_cpp
='$CPP $CPPFLAGS'
4909 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4913 depcc
="$CXX" am_compiler_list
=
4915 am_depcomp
=$ac_aux_dir/depcomp
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4917 $as_echo_n "checking dependency style of $depcc... " >&6; }
4918 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4921 if test -f "$am_depcomp"; then
4922 # We make a subdir and do the tests there. Otherwise we can end up
4923 # making bogus files that we don't know about and never remove. For
4924 # instance it was reported that on HP-UX the gcc test will end up
4925 # making a dummy file named `D' -- because `-MD' means `put the output
4928 # Copy depcomp to subdir because otherwise we won't find it if we're
4929 # using a relative directory.
4930 cp "$am_depcomp" conftest.dir
4932 # We will build objects and dependencies in a subdirectory because
4933 # it helps to detect inapplicable dependency modes. For instance
4934 # both Tru64's cc and ICC support -MD to output dependencies as a
4935 # side effect of compilation, but ICC will put the dependencies in
4936 # the current directory while Tru64 will put them in the object
4940 am_cv_CXX_dependencies_compiler_type
=none
4941 if test "$am_compiler_list" = ""; then
4942 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4944 for depmode
in $am_compiler_list; do
4945 if test $depmode = none
; then break; fi
4947 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4948 # Setup a source with many dependencies, because some compilers
4949 # like to wrap large dependency lists on column 80 (with \), and
4950 # we should not choose a depcomp mode which is confused by this.
4952 # We need to recreate these files for each test, as the compiler may
4953 # overwrite some of them when testing with obscure command lines.
4954 # This happens at least with the AIX C compiler.
4956 for i
in 1 2 3 4 5 6; do
4957 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4959 # Solaris 8's {/usr,}/bin/sh.
4960 touch sub
/conftst
$i.h
4962 echo "include sub/conftest.Po" > confmf
4964 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4965 # mode. It turns out that the SunPro C++ compiler does not properly
4966 # handle `-M -o', and we need to detect this.
4967 depcmd
="depmode=$depmode \
4968 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4969 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4970 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4971 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4972 if env
$depcmd > conftest.err
2>&1 &&
4973 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4974 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4975 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4976 # icc doesn't choke on unknown options, it will just issue warnings
4977 # or remarks (even with -Werror). So we grep stderr for any message
4978 # that says an option was ignored or not supported.
4979 # When given -MP, icc 7.0 and 7.1 complain thusly:
4980 # icc: Command line warning: ignoring option '-M'; no argument required
4981 # The diagnosis changed in icc 8.0:
4982 # icc: Command line remark: option '-MP' not supported
4983 if (grep 'ignoring option' conftest.err ||
4984 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4985 am_cv_CXX_dependencies_compiler_type
=$depmode
4986 $as_echo "$as_me:$LINENO: success" >&5
4990 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4991 sed -e 's/^/| /' < conftest.err
>&5
4997 am_cv_CXX_dependencies_compiler_type
=none
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5002 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5003 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
5004 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5005 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5010 # Checks for header files.
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5012 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5013 if test "${ac_cv_header_time+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 #include <sys/types.h>
5019 #include <sys/time.h>
5025 if ((struct tm *) 0)
5031 if ac_fn_c_try_compile
"$LINENO"; then :
5032 ac_cv_header_time
=yes
5034 ac_cv_header_time
=no
5036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5039 $as_echo "$ac_cv_header_time" >&6; }
5040 if test $ac_cv_header_time = yes; then
5042 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5047 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5048 if test "${gcc_cv_header_string+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5054 #include <strings.h>
5063 if ac_fn_c_try_compile
"$LINENO"; then :
5064 gcc_cv_header_string
=yes
5066 gcc_cv_header_string
=no
5068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5071 $as_echo "$gcc_cv_header_string" >&6; }
5072 if test $gcc_cv_header_string = yes; then
5074 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5079 for ac_header
in locale.h fcntl.h limits.h stddef.h \
5080 stdlib.h
strings.h string.h sys
/file.h unistd.h
5082 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5083 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5084 eval as_val
=\$
$as_ac_Header
5085 if test "x$as_val" = x
""yes; then :
5086 cat >>confdefs.h
<<_ACEOF
5087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5095 # Checks for typedefs, structures, and compiler characteristics.
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5097 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5098 if test "${ac_cv_c_bigendian+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5101 ac_cv_c_bigendian
=unknown
5102 # See if we're dealing with a universal compiler.
5103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105 #ifndef __APPLE_CC__
5106 not a universal capable compiler
5111 if ac_fn_c_try_compile
"$LINENO"; then :
5113 # Check for potential -arch flags. It is not universal unless
5114 # there are at least two -arch flags with different values.
5117 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5118 if test -n "$ac_prev"; then
5120 i?
86 | x86_64 | ppc | ppc64
)
5121 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5124 ac_cv_c_bigendian
=universal
5130 elif test "x$ac_word" = "x-arch"; then
5135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5136 if test $ac_cv_c_bigendian = unknown
; then
5137 # See if sys/param.h defines the BYTE_ORDER macro.
5138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <sys/types.h>
5141 #include <sys/param.h>
5146 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5147 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5156 if ac_fn_c_try_compile
"$LINENO"; then :
5157 # It does; now see whether it defined to BIG_ENDIAN or not.
5158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <sys/types.h>
5161 #include <sys/param.h>
5166 #if BYTE_ORDER != BIG_ENDIAN
5174 if ac_fn_c_try_compile
"$LINENO"; then :
5175 ac_cv_c_bigendian
=yes
5177 ac_cv_c_bigendian
=no
5179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5183 if test $ac_cv_c_bigendian = unknown
; then
5184 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5192 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5200 if ac_fn_c_try_compile
"$LINENO"; then :
5201 # It does; now see whether it defined to _BIG_ENDIAN or not.
5202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5217 if ac_fn_c_try_compile
"$LINENO"; then :
5218 ac_cv_c_bigendian
=yes
5220 ac_cv_c_bigendian
=no
5222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5226 if test $ac_cv_c_bigendian = unknown
; then
5227 # Compile a test program.
5228 if test "$cross_compiling" = yes; then :
5229 # Try to guess by grepping values from an object file.
5230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 short int ascii_mm[] =
5233 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5234 short int ascii_ii[] =
5235 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5236 int use_ascii (int i) {
5237 return ascii_mm[i] + ascii_ii[i];
5239 short int ebcdic_ii[] =
5240 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5241 short int ebcdic_mm[] =
5242 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5243 int use_ebcdic (int i) {
5244 return ebcdic_mm[i] + ebcdic_ii[i];
5251 return use_ascii (foo) == use_ebcdic (foo);
5256 if ac_fn_c_try_compile
"$LINENO"; then :
5257 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5258 ac_cv_c_bigendian
=yes
5260 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5261 if test "$ac_cv_c_bigendian" = unknown
; then
5262 ac_cv_c_bigendian
=no
5264 # finding both strings is unlikely to happen, but who knows?
5265 ac_cv_c_bigendian
=unknown
5269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 $ac_includes_default
5278 /* Are we little or big endian? From Harbison&Steele. */
5282 char c[sizeof (long int)];
5285 return u.c[sizeof (long int) - 1] == 1;
5291 if ac_fn_c_try_run
"$LINENO"; then :
5292 ac_cv_c_bigendian
=no
5294 ac_cv_c_bigendian
=yes
5296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5303 $as_echo "$ac_cv_c_bigendian" >&6; }
5304 case $ac_cv_c_bigendian in #(
5306 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5312 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5316 as_fn_error
"unknown endianness
5317 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5321 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5322 if test "${ac_cv_c_const+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5331 /* FIXME: Include the comments suggested by Paul. */
5333 /* Ultrix mips cc rejects this. */
5334 typedef int charset[2];
5336 /* SunOS 4.1.1 cc rejects this. */
5337 char const *const *pcpcc;
5339 /* NEC SVR4.0.2 mips cc rejects this. */
5340 struct point {int x, y;};
5341 static struct point const zero = {0,0};
5342 /* AIX XL C 1.02.0.0 rejects this.
5343 It does not let you subtract one const X* pointer from another in
5344 an arm of an if-expression whose if-part is not a constant
5346 const char *g = "string";
5347 pcpcc = &g + (g ? g-g : 0);
5348 /* HPUX 7.0 cc rejects these. */
5350 ppc = (char**) pcpcc;
5351 pcpcc = (char const *const *) ppc;
5352 { /* SCO 3.2v4 cc rejects this. */
5354 char const *s = 0 ? (char *) 0 : (char const *) 0;
5359 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5361 const int *foo = &x[0];
5364 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5365 typedef const int *iptr;
5369 { /* AIX XL C 1.02.0.0 rejects this saying
5370 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5371 struct s { int j; const int *ap[3]; };
5372 struct s *b; b->j = 5;
5374 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5378 return !cs[0] && !zero.x;
5385 if ac_fn_c_try_compile
"$LINENO"; then :
5390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5393 $as_echo "$ac_cv_c_const" >&6; }
5394 if test $ac_cv_c_const = no
; then
5396 $as_echo "#define const /**/" >>confdefs.h
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5401 $as_echo_n "checking for inline... " >&6; }
5402 if test "${ac_cv_c_inline+set}" = set; then :
5403 $as_echo_n "(cached) " >&6
5406 for ac_kw
in inline __inline__ __inline
; do
5407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5411 static $ac_kw foo_t static_foo () {return 0; }
5412 $ac_kw foo_t foo () {return 0; }
5416 if ac_fn_c_try_compile
"$LINENO"; then :
5417 ac_cv_c_inline
=$ac_kw
5419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5420 test "$ac_cv_c_inline" != no
&& break
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5425 $as_echo "$ac_cv_c_inline" >&6; }
5427 case $ac_cv_c_inline in
5430 case $ac_cv_c_inline in
5432 *) ac_val
=$ac_cv_c_inline;;
5434 cat >>confdefs.h
<<_ACEOF
5436 #define inline $ac_val
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5443 $as_echo_n "checking for obstacks... " >&6; }
5444 if test "${ac_cv_func_obstack+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 $ac_includes_default
5450 #include "obstack.h"
5455 #define obstack_chunk_alloc malloc
5456 #define obstack_chunk_free free
5457 obstack_init (&mem);
5458 obstack_free (&mem, 0);
5463 if ac_fn_c_try_link
"$LINENO"; then :
5464 ac_cv_func_obstack
=yes
5466 ac_cv_func_obstack
=no
5468 rm -f core conftest.err conftest.
$ac_objext \
5469 conftest
$ac_exeext conftest.
$ac_ext
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5472 $as_echo "$ac_cv_func_obstack" >&6; }
5473 if test $ac_cv_func_obstack = yes; then
5475 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5478 case " $LIBOBJS " in
5479 *" obstack.$ac_objext "* ) ;;
5480 *) LIBOBJS
="$LIBOBJS obstack.$ac_objext"
5486 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5487 if test "x$ac_cv_type_off_t" = x
""yes; then :
5491 cat >>confdefs.h
<<_ACEOF
5492 #define off_t long int
5497 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5498 if test "x$ac_cv_type_size_t" = x
""yes; then :
5502 cat >>confdefs.h
<<_ACEOF
5503 #define size_t unsigned int
5508 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5509 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
5513 cat >>confdefs.h
<<_ACEOF
5520 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5521 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
5523 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5526 for ac_type
in 'unsigned int' 'unsigned long int' \
5527 'unsigned long long int'; do
5528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 $ac_includes_default
5534 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5541 if ac_fn_c_try_compile
"$LINENO"; then :
5543 cat >>confdefs.h
<<_ACEOF
5544 #define uintptr_t $ac_type
5549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5550 test -z "$ac_type" && break
5555 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5556 if test "x$ac_cv_type_ptrdiff_t" = x
""yes; then :
5560 cat >>confdefs.h
<<_ACEOF
5561 #define ptrdiff_t int
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5567 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5568 if test "${ac_cv_struct_tm+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #include <sys/types.h>
5580 int *p = &tm.tm_sec;
5586 if ac_fn_c_try_compile
"$LINENO"; then :
5587 ac_cv_struct_tm
=time.h
5589 ac_cv_struct_tm
=sys
/time.h
5591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5594 $as_echo "$ac_cv_struct_tm" >&6; }
5595 if test $ac_cv_struct_tm = sys
/time.h
; then
5597 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5601 # The cast to long int works around a bug in the HP C Compiler
5602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5604 # This bug is HP SR number 8606223364.
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5606 $as_echo_n "checking size of int... " >&6; }
5607 if test "${ac_cv_sizeof_int+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5610 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5613 if test "$ac_cv_type_int" = yes; then
5614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5616 { as_fn_set_status
77
5617 as_fn_error
"cannot compute sizeof (int)
5618 See \`config.log' for more details." "$LINENO" 5; }; }
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5626 $as_echo "$ac_cv_sizeof_int" >&6; }
5630 cat >>confdefs.h
<<_ACEOF
5631 #define SIZEOF_INT $ac_cv_sizeof_int
5635 # The cast to long int works around a bug in the HP C Compiler
5636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5638 # This bug is HP SR number 8606223364.
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5640 $as_echo_n "checking size of long... " >&6; }
5641 if test "${ac_cv_sizeof_long+set}" = set; then :
5642 $as_echo_n "(cached) " >&6
5644 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5647 if test "$ac_cv_type_long" = yes; then
5648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5650 { as_fn_set_status
77
5651 as_fn_error
"cannot compute sizeof (long)
5652 See \`config.log' for more details." "$LINENO" 5; }; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5660 $as_echo "$ac_cv_sizeof_long" >&6; }
5664 cat >>confdefs.h
<<_ACEOF
5665 #define SIZEOF_LONG $ac_cv_sizeof_long
5670 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
5672 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5673 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5674 eval as_val
=\$
$as_ac_var
5675 if test "x$as_val" = x
""yes; then :
5676 cat >>confdefs.h
<<_ACEOF
5677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5683 ac_fn_c_check_decl
"$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5684 if test "x$ac_cv_have_decl_abort" = x
""yes; then :
5690 cat >>confdefs.h
<<_ACEOF
5691 #define HAVE_DECL_ABORT $ac_have_decl
5693 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5694 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
5700 cat >>confdefs.h
<<_ACEOF
5701 #define HAVE_DECL_ASPRINTF $ac_have_decl
5703 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5704 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
5710 cat >>confdefs.h
<<_ACEOF
5711 #define HAVE_DECL_BASENAME $ac_have_decl
5713 ac_fn_c_check_decl
"$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5714 if test "x$ac_cv_have_decl_errno" = x
""yes; then :
5720 cat >>confdefs.h
<<_ACEOF
5721 #define HAVE_DECL_ERRNO $ac_have_decl
5723 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5724 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
5730 cat >>confdefs.h
<<_ACEOF
5731 #define HAVE_DECL_GETOPT $ac_have_decl
5733 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5734 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
5740 cat >>confdefs.h
<<_ACEOF
5741 #define HAVE_DECL_VASPRINTF $ac_have_decl
5744 ac_fn_c_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5745 if test "x$ac_cv_have_decl_clearerr_unlocked" = x
""yes; then :
5751 cat >>confdefs.h
<<_ACEOF
5752 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5754 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5755 if test "x$ac_cv_have_decl_feof_unlocked" = x
""yes; then :
5761 cat >>confdefs.h
<<_ACEOF
5762 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5764 ac_fn_c_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5765 if test "x$ac_cv_have_decl_ferror_unlocked" = x
""yes; then :
5771 cat >>confdefs.h
<<_ACEOF
5772 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5774 ac_fn_c_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5775 if test "x$ac_cv_have_decl_fflush_unlocked" = x
""yes; then :
5781 cat >>confdefs.h
<<_ACEOF
5782 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5784 ac_fn_c_check_decl
"$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5785 if test "x$ac_cv_have_decl_fgetc_unlocked" = x
""yes; then :
5791 cat >>confdefs.h
<<_ACEOF
5792 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5794 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5795 if test "x$ac_cv_have_decl_fgets_unlocked" = x
""yes; then :
5801 cat >>confdefs.h
<<_ACEOF
5802 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
5804 ac_fn_c_check_decl
"$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
5805 if test "x$ac_cv_have_decl_fileno_unlocked" = x
""yes; then :
5811 cat >>confdefs.h
<<_ACEOF
5812 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
5814 ac_fn_c_check_decl
"$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
5815 if test "x$ac_cv_have_decl_fprintf_unlocked" = x
""yes; then :
5821 cat >>confdefs.h
<<_ACEOF
5822 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
5824 ac_fn_c_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
5825 if test "x$ac_cv_have_decl_fputc_unlocked" = x
""yes; then :
5831 cat >>confdefs.h
<<_ACEOF
5832 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
5834 ac_fn_c_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
5835 if test "x$ac_cv_have_decl_fputs_unlocked" = x
""yes; then :
5841 cat >>confdefs.h
<<_ACEOF
5842 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
5844 ac_fn_c_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
5845 if test "x$ac_cv_have_decl_fread_unlocked" = x
""yes; then :
5851 cat >>confdefs.h
<<_ACEOF
5852 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
5854 ac_fn_c_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
5855 if test "x$ac_cv_have_decl_fwrite_unlocked" = x
""yes; then :
5861 cat >>confdefs.h
<<_ACEOF
5862 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
5864 ac_fn_c_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
5865 if test "x$ac_cv_have_decl_getchar_unlocked" = x
""yes; then :
5871 cat >>confdefs.h
<<_ACEOF
5872 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
5874 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
5875 if test "x$ac_cv_have_decl_getc_unlocked" = x
""yes; then :
5881 cat >>confdefs.h
<<_ACEOF
5882 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
5884 ac_fn_c_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
5885 if test "x$ac_cv_have_decl_putchar_unlocked" = x
""yes; then :
5891 cat >>confdefs.h
<<_ACEOF
5892 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
5894 ac_fn_c_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
5895 if test "x$ac_cv_have_decl_putc_unlocked" = x
""yes; then :
5901 cat >>confdefs.h
<<_ACEOF
5902 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
5906 # Checks for library functions.
5907 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5908 # for constant arguments. Useless!
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5910 $as_echo_n "checking for working alloca.h... " >&6; }
5911 if test "${ac_cv_working_alloca_h+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5920 char *p = (char *) alloca (2 * sizeof (int));
5926 if ac_fn_c_try_link
"$LINENO"; then :
5927 ac_cv_working_alloca_h
=yes
5929 ac_cv_working_alloca_h
=no
5931 rm -f core conftest.err conftest.
$ac_objext \
5932 conftest
$ac_exeext conftest.
$ac_ext
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5935 $as_echo "$ac_cv_working_alloca_h" >&6; }
5936 if test $ac_cv_working_alloca_h = yes; then
5938 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5943 $as_echo_n "checking for alloca... " >&6; }
5944 if test "${ac_cv_func_alloca_works+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5950 # define alloca __builtin_alloca
5953 # include <malloc.h>
5954 # define alloca _alloca
5956 # ifdef HAVE_ALLOCA_H
5957 # include <alloca.h>
5962 # ifndef alloca /* predefined by HP cc +Olibcalls */
5973 char *p = (char *) alloca (1);
5979 if ac_fn_c_try_link
"$LINENO"; then :
5980 ac_cv_func_alloca_works
=yes
5982 ac_cv_func_alloca_works
=no
5984 rm -f core conftest.err conftest.
$ac_objext \
5985 conftest
$ac_exeext conftest.
$ac_ext
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5988 $as_echo "$ac_cv_func_alloca_works" >&6; }
5990 if test $ac_cv_func_alloca_works = yes; then
5992 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5995 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5996 # that cause trouble. Some versions do not even contain alloca or
5997 # contain a buggy version. If you still want to use their alloca,
5998 # use ar to extract alloca.o from them instead of compiling alloca.c.
6000 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6002 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6006 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6007 if test "${ac_cv_os_cray+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 #if defined CRAY && ! defined CRAY2
6019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6020 $EGREP "webecray" >/dev
/null
2>&1; then :
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6029 $as_echo "$ac_cv_os_cray" >&6; }
6030 if test $ac_cv_os_cray = yes; then
6031 for ac_func
in _getb67 GETB67 getb67
; do
6032 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6033 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6034 eval as_val
=\$
$as_ac_var
6035 if test "x$as_val" = x
""yes; then :
6037 cat >>confdefs.h
<<_ACEOF
6038 #define CRAY_STACKSEG_END $ac_func
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6048 $as_echo_n "checking stack direction for C alloca... " >&6; }
6049 if test "${ac_cv_c_stack_direction+set}" = set; then :
6050 $as_echo_n "(cached) " >&6
6052 if test "$cross_compiling" = yes; then :
6053 ac_cv_c_stack_direction
=0
6055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 $ac_includes_default
6059 find_stack_direction ()
6061 static char *addr = 0;
6066 return find_stack_direction ();
6069 return (&dummy > addr) ? 1 : -1;
6075 return find_stack_direction () < 0;
6078 if ac_fn_c_try_run
"$LINENO"; then :
6079 ac_cv_c_stack_direction
=1
6081 ac_cv_c_stack_direction
=-1
6083 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6084 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6089 $as_echo "$ac_cv_c_stack_direction" >&6; }
6090 cat >>confdefs.h
<<_ACEOF
6091 #define STACK_DIRECTION $ac_cv_c_stack_direction
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6098 $as_echo_n "checking for ANSI C header files... " >&6; }
6099 if test "${ac_cv_header_stdc+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
6102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6117 if ac_fn_c_try_compile
"$LINENO"; then :
6118 ac_cv_header_stdc
=yes
6120 ac_cv_header_stdc
=no
6122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6124 if test $ac_cv_header_stdc = yes; then
6125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132 $EGREP "memchr" >/dev
/null
2>&1; then :
6135 ac_cv_header_stdc
=no
6141 if test $ac_cv_header_stdc = yes; then
6142 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6149 $EGREP "free" >/dev
/null
2>&1; then :
6152 ac_cv_header_stdc
=no
6158 if test $ac_cv_header_stdc = yes; then
6159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6160 if test "$cross_compiling" = yes; then :
6163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6167 #if ((' ' & 0x0FF) == 0x020)
6168 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6169 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6171 # define ISLOWER(c) \
6172 (('a' <= (c) && (c) <= 'i') \
6173 || ('j' <= (c) && (c) <= 'r') \
6174 || ('s' <= (c) && (c) <= 'z'))
6175 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6178 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6183 for (i = 0; i < 256; i++)
6184 if (XOR (islower (i), ISLOWER (i))
6185 || toupper (i) != TOUPPER (i))
6190 if ac_fn_c_try_run
"$LINENO"; then :
6193 ac_cv_header_stdc
=no
6195 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6196 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6202 $as_echo "$ac_cv_header_stdc" >&6; }
6203 if test $ac_cv_header_stdc = yes; then
6205 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6211 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6212 if test "${am_cv_langinfo_codeset+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217 #include <langinfo.h>
6221 char* cs = nl_langinfo(CODESET);
6226 if ac_fn_c_try_link
"$LINENO"; then :
6227 am_cv_langinfo_codeset
=yes
6229 am_cv_langinfo_codeset
=no
6231 rm -f core conftest.err conftest.
$ac_objext \
6232 conftest
$ac_exeext conftest.
$ac_ext
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6236 $as_echo "$am_cv_langinfo_codeset" >&6; }
6237 if test $am_cv_langinfo_codeset = yes; then
6239 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6243 # If we haven't got the data from the intl directory,
6244 # assume NLS is disabled.
6253 if test -f ..
/intl
/config.intl
; then
6254 . ..
/intl
/config.intl
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6257 $as_echo_n "checking whether NLS is requested... " >&6; }
6258 if test x
"$USE_NLS" != xyes
; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6263 $as_echo "yes" >&6; }
6265 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6269 $as_echo_n "checking for catalogs to be installed... " >&6; }
6270 # Look for .po and .gmo files in the source directory.
6273 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6274 # If there aren't any .gmo files the shell will give us the
6275 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6277 case "$cat" in *\
**)
6280 # The quadruple backslash is collapsed to a double backslash
6281 # by the backticks, then collapsed again by the double quotes,
6282 # leaving us with one backslash in the sed expression (right
6283 # before the dot that mustn't act as a wildcard).
6284 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6285 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6286 # The user is allowed to set LINGUAS to a list of languages to
6287 # install catalogs for. If it's empty that means "all of them."
6288 if test "x$LINGUAS" = x
; then
6289 CATALOGS
="$CATALOGS $cat"
6290 XLINGUAS
="$XLINGUAS $lang"
6292 case "$LINGUAS" in *$lang*)
6293 CATALOGS
="$CATALOGS $cat"
6294 XLINGUAS
="$XLINGUAS $lang"
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6301 $as_echo "$LINGUAS" >&6; }
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6315 $as_echo_n "checking for uchar... " >&6; }
6316 if test "${gcc_cv_type_uchar+set}" = set; then :
6317 $as_echo_n "(cached) " >&6
6319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6322 #include <sys/types.h>
6327 if ((uchar *)0) return 0;
6328 if (sizeof(uchar)) return 0;
6333 if ac_fn_c_try_compile
"$LINENO"; then :
6334 ac_cv_type_uchar
=yes
6338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6341 $as_echo "$gcc_cv_type_uchar" >&6; }
6342 if test $ac_cv_type_uchar = yes; then
6344 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6348 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6349 # iconv() prototype.
6351 ac_cpp
='$CXXCPP $CPPFLAGS'
6352 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6357 if test "X$prefix" = "XNONE"; then
6358 acl_final_prefix
="$ac_default_prefix"
6360 acl_final_prefix
="$prefix"
6362 if test "X$exec_prefix" = "XNONE"; then
6363 acl_final_exec_prefix
='${prefix}'
6365 acl_final_exec_prefix
="$exec_prefix"
6367 acl_save_prefix
="$prefix"
6368 prefix
="$acl_final_prefix"
6369 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6370 prefix
="$acl_save_prefix"
6373 # Check whether --with-gnu-ld was given.
6374 if test "${with_gnu_ld+set}" = set; then :
6375 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6380 # Prepare PATH_SEPARATOR.
6381 # The user is always right.
6382 if test "${PATH_SEPARATOR+set}" != set; then
6383 echo "#! /bin/sh" >conf$$.sh
6384 echo "exit 0" >>conf$$.sh
6386 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6394 if test "$GCC" = yes; then
6395 # Check if gcc -print-prog-name=ld gives a path.
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6397 $as_echo_n "checking for ld used by GCC... " >&6; }
6400 # gcc leaves a trailing carriage return which upsets mingw
6401 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6403 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6406 # Accept absolute paths.
6407 [\\/]* |
[A-Za-z
]:[\\/]*)
6408 re_direlt
='/[^/][^/]*/\.\./'
6409 # Canonicalize the path of ld
6410 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6411 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6412 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6414 test -z "$LD" && LD
="$ac_prog"
6417 # If it fails, then pretend we aren't using GCC.
6421 # If it is relative, then search for the first ld in PATH.
6425 elif test "$with_gnu_ld" = yes; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6427 $as_echo_n "checking for GNU ld... " >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6430 $as_echo_n "checking for non-GNU ld... " >&6; }
6432 if test "${acl_cv_path_LD+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -z "$LD"; then
6436 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6437 for ac_dir
in $PATH; do
6438 test -z "$ac_dir" && ac_dir
=.
6439 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6440 acl_cv_path_LD
="$ac_dir/$ac_prog"
6441 # Check to see if the program is GNU ld. I'd rather use --version,
6442 # but apparently some GNU ld's only accept -v.
6443 # Break only if it was the GNU/non-GNU ld that we prefer.
6444 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6445 test "$with_gnu_ld" != no
&& break
6447 test "$with_gnu_ld" != yes && break
6453 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6457 LD
="$acl_cv_path_LD"
6458 if test -n "$LD"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6460 $as_echo "$LD" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6465 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6467 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6468 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6471 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6472 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6473 acl_cv_prog_gnu_ld
=yes
6475 acl_cv_prog_gnu_ld
=no
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6479 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6480 with_gnu_ld
=$acl_cv_prog_gnu_ld
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6485 $as_echo_n "checking for shared library run path origin... " >&6; }
6486 if test "${acl_cv_rpath+set}" = set; then :
6487 $as_echo_n "(cached) " >&6
6490 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6491 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6498 $as_echo "$acl_cv_rpath" >&6; }
6500 libext
="$acl_cv_libext"
6501 shlibext
="$acl_cv_shlibext"
6502 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6503 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6504 hardcode_direct
="$acl_cv_hardcode_direct"
6505 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6506 # Check whether --enable-rpath was given.
6507 if test "${enable_rpath+set}" = set; then :
6508 enableval
=$enable_rpath; :
6522 acl_save_prefix
="$prefix"
6523 prefix
="$acl_final_prefix"
6524 acl_save_exec_prefix
="$exec_prefix"
6525 exec_prefix
="$acl_final_exec_prefix"
6527 eval additional_includedir
=\"$includedir\"
6528 eval additional_libdir
=\"$libdir\"
6530 exec_prefix
="$acl_save_exec_prefix"
6531 prefix
="$acl_save_prefix"
6534 # Check whether --with-libiconv-prefix was given.
6535 if test "${with_libiconv_prefix+set}" = set; then :
6536 withval
=$with_libiconv_prefix;
6537 if test "X$withval" = "Xno"; then
6540 if test "X$withval" = "X"; then
6542 acl_save_prefix
="$prefix"
6543 prefix
="$acl_final_prefix"
6544 acl_save_exec_prefix
="$exec_prefix"
6545 exec_prefix
="$acl_final_exec_prefix"
6547 eval additional_includedir
=\"$includedir\"
6548 eval additional_libdir
=\"$libdir\"
6550 exec_prefix
="$acl_save_exec_prefix"
6551 prefix
="$acl_save_prefix"
6554 additional_includedir
="$withval/include"
6555 additional_libdir
="$withval/lib"
6566 names_already_handled
=
6567 names_next_round
='iconv '
6568 while test -n "$names_next_round"; do
6569 names_this_round
="$names_next_round"
6571 for name
in $names_this_round; do
6573 for n
in $names_already_handled; do
6574 if test "$n" = "$name"; then
6579 if test -z "$already_handled"; then
6580 names_already_handled
="$names_already_handled $name"
6581 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6582 eval value
=\"\
$HAVE_LIB$uppername\"
6583 if test -n "$value"; then
6584 if test "$value" = yes; then
6585 eval value
=\"\
$LIB$uppername\"
6586 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
6587 eval value
=\"\
$LTLIB$uppername\"
6588 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
6597 if test $use_additional = yes; then
6598 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6599 found_dir
="$additional_libdir"
6600 found_so
="$additional_libdir/lib$name.$shlibext"
6601 if test -f "$additional_libdir/lib$name.la"; then
6602 found_la
="$additional_libdir/lib$name.la"
6605 if test -f "$additional_libdir/lib$name.$libext"; then
6606 found_dir
="$additional_libdir"
6607 found_a
="$additional_libdir/lib$name.$libext"
6608 if test -f "$additional_libdir/lib$name.la"; then
6609 found_la
="$additional_libdir/lib$name.la"
6614 if test "X$found_dir" = "X"; then
6615 for x
in $LDFLAGS $LTLIBICONV; do
6617 acl_save_prefix
="$prefix"
6618 prefix
="$acl_final_prefix"
6619 acl_save_exec_prefix
="$exec_prefix"
6620 exec_prefix
="$acl_final_exec_prefix"
6622 exec_prefix
="$acl_save_exec_prefix"
6623 prefix
="$acl_save_prefix"
6627 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6628 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6630 found_so
="$dir/lib$name.$shlibext"
6631 if test -f "$dir/lib$name.la"; then
6632 found_la
="$dir/lib$name.la"
6635 if test -f "$dir/lib$name.$libext"; then
6637 found_a
="$dir/lib$name.$libext"
6638 if test -f "$dir/lib$name.la"; then
6639 found_la
="$dir/lib$name.la"
6645 if test "X$found_dir" != "X"; then
6650 if test "X$found_dir" != "X"; then
6651 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6652 if test "X$found_so" != "X"; then
6653 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6654 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6657 for x
in $ltrpathdirs; do
6658 if test "X$x" = "X$found_dir"; then
6663 if test -z "$haveit"; then
6664 ltrpathdirs
="$ltrpathdirs $found_dir"
6666 if test "$hardcode_direct" = yes; then
6667 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6669 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6670 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6672 for x
in $rpathdirs; do
6673 if test "X$x" = "X$found_dir"; then
6678 if test -z "$haveit"; then
6679 rpathdirs
="$rpathdirs $found_dir"
6683 for x
in $LDFLAGS $LIBICONV; do
6685 acl_save_prefix
="$prefix"
6686 prefix
="$acl_final_prefix"
6687 acl_save_exec_prefix
="$exec_prefix"
6688 exec_prefix
="$acl_final_exec_prefix"
6690 exec_prefix
="$acl_save_exec_prefix"
6691 prefix
="$acl_save_prefix"
6693 if test "X$x" = "X-L$found_dir"; then
6698 if test -z "$haveit"; then
6699 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6701 if test "$hardcode_minus_L" != no
; then
6702 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6704 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
6710 if test "X$found_a" != "X"; then
6711 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
6713 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6716 additional_includedir
=
6717 case "$found_dir" in
6719 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6720 additional_includedir
="$basedir/include"
6723 if test "X$additional_includedir" != "X"; then
6724 if test "X$additional_includedir" != "X/usr/include"; then
6726 if test "X$additional_includedir" = "X/usr/local/include"; then
6727 if test -n "$GCC"; then
6729 linux
*) haveit
=yes;;
6733 if test -z "$haveit"; then
6734 for x
in $CPPFLAGS $INCICONV; do
6736 acl_save_prefix
="$prefix"
6737 prefix
="$acl_final_prefix"
6738 acl_save_exec_prefix
="$exec_prefix"
6739 exec_prefix
="$acl_final_exec_prefix"
6741 exec_prefix
="$acl_save_exec_prefix"
6742 prefix
="$acl_save_prefix"
6744 if test "X$x" = "X-I$additional_includedir"; then
6749 if test -z "$haveit"; then
6750 if test -d "$additional_includedir"; then
6751 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6757 if test -n "$found_la"; then
6758 save_libdir
="$libdir"
6760 */* |
*\\*) .
"$found_la" ;;
6761 *) .
"./$found_la" ;;
6763 libdir
="$save_libdir"
6764 for dep
in $dependency_libs; do
6767 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6768 if test "X$additional_libdir" != "X/usr/lib"; then
6770 if test "X$additional_libdir" = "X/usr/local/lib"; then
6771 if test -n "$GCC"; then
6773 linux
*) haveit
=yes;;
6777 if test -z "$haveit"; then
6779 for x
in $LDFLAGS $LIBICONV; do
6781 acl_save_prefix
="$prefix"
6782 prefix
="$acl_final_prefix"
6783 acl_save_exec_prefix
="$exec_prefix"
6784 exec_prefix
="$acl_final_exec_prefix"
6786 exec_prefix
="$acl_save_exec_prefix"
6787 prefix
="$acl_save_prefix"
6789 if test "X$x" = "X-L$additional_libdir"; then
6794 if test -z "$haveit"; then
6795 if test -d "$additional_libdir"; then
6796 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6800 for x
in $LDFLAGS $LTLIBICONV; do
6802 acl_save_prefix
="$prefix"
6803 prefix
="$acl_final_prefix"
6804 acl_save_exec_prefix
="$exec_prefix"
6805 exec_prefix
="$acl_final_exec_prefix"
6807 exec_prefix
="$acl_save_exec_prefix"
6808 prefix
="$acl_save_prefix"
6810 if test "X$x" = "X-L$additional_libdir"; then
6815 if test -z "$haveit"; then
6816 if test -d "$additional_libdir"; then
6817 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6824 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
6825 if test "$enable_rpath" != no
; then
6827 for x
in $rpathdirs; do
6828 if test "X$x" = "X$dir"; then
6833 if test -z "$haveit"; then
6834 rpathdirs
="$rpathdirs $dir"
6837 for x
in $ltrpathdirs; do
6838 if test "X$x" = "X$dir"; then
6843 if test -z "$haveit"; then
6844 ltrpathdirs
="$ltrpathdirs $dir"
6849 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6852 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6855 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
6856 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6862 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
6863 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6869 if test "X$rpathdirs" != "X"; then
6870 if test -n "$hardcode_libdir_separator"; then
6872 for found_dir
in $rpathdirs; do
6873 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6875 acl_save_libdir
="$libdir"
6877 eval flag
=\"$hardcode_libdir_flag_spec\"
6878 libdir
="$acl_save_libdir"
6879 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
6881 for found_dir
in $rpathdirs; do
6882 acl_save_libdir
="$libdir"
6884 eval flag
=\"$hardcode_libdir_flag_spec\"
6885 libdir
="$acl_save_libdir"
6886 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
6890 if test "X$ltrpathdirs" != "X"; then
6891 for found_dir
in $ltrpathdirs; do
6892 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6902 am_save_CPPFLAGS
="$CPPFLAGS"
6904 for element
in $INCICONV; do
6906 for x
in $CPPFLAGS; do
6908 acl_save_prefix
="$prefix"
6909 prefix
="$acl_final_prefix"
6910 acl_save_exec_prefix
="$exec_prefix"
6911 exec_prefix
="$acl_final_exec_prefix"
6913 exec_prefix
="$acl_save_exec_prefix"
6914 prefix
="$acl_save_prefix"
6916 if test "X$x" = "X$element"; then
6921 if test -z "$haveit"; then
6922 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6928 $as_echo_n "checking for iconv... " >&6; }
6929 if test "${am_cv_func_iconv+set}" = set; then :
6930 $as_echo_n "(cached) " >&6
6933 am_cv_func_iconv
="no, consider installing GNU libiconv"
6935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6942 iconv_t cd = iconv_open("","");
6943 iconv(cd,NULL,NULL,NULL,NULL);
6949 if ac_fn_cxx_try_link
"$LINENO"; then :
6950 am_cv_func_iconv
=yes
6952 rm -f core conftest.err conftest.
$ac_objext \
6953 conftest
$ac_exeext conftest.
$ac_ext
6954 if test "$am_cv_func_iconv" != yes; then
6955 am_save_LIBS
="$LIBS"
6956 LIBS
="$LIBS $LIBICONV"
6957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6964 iconv_t cd = iconv_open("","");
6965 iconv(cd,NULL,NULL,NULL,NULL);
6971 if ac_fn_cxx_try_link
"$LINENO"; then :
6973 am_cv_func_iconv
=yes
6975 rm -f core conftest.err conftest.
$ac_objext \
6976 conftest
$ac_exeext conftest.
$ac_ext
6977 LIBS
="$am_save_LIBS"
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6982 $as_echo "$am_cv_func_iconv" >&6; }
6983 if test "$am_cv_func_iconv" = yes; then
6985 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6988 if test "$am_cv_lib_iconv" = yes; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6990 $as_echo_n "checking how to link with libiconv... " >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6992 $as_echo "$LIBICONV" >&6; }
6994 CPPFLAGS
="$am_save_CPPFLAGS"
7001 if test "$am_cv_func_iconv" = yes; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7003 $as_echo_n "checking for iconv declaration... " >&6; }
7004 if test "${am_cv_proto_iconv+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7017 #if defined(__STDC__) || defined(__cplusplus)
7018 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7031 if ac_fn_cxx_try_compile
"$LINENO"; then :
7032 am_cv_proto_iconv_arg1
=""
7034 am_cv_proto_iconv_arg1
="const"
7036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7037 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);"
7040 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7042 }$am_cv_proto_iconv" >&5
7044 }$am_cv_proto_iconv" >&6; }
7046 cat >>confdefs.h
<<_ACEOF
7047 #define ICONV_CONST $am_cv_proto_iconv_arg1
7053 ac_cpp
='$CPP $CPPFLAGS'
7054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7059 # More defines and substitutions.
7060 PACKAGE
="$PACKAGE_TARNAME"
7062 cat >>confdefs.h
<<_ACEOF
7063 #define PACKAGE "$PACKAGE"
7068 if test "x$enable_nls" != xno
; then
7069 USED_CATALOGS
='$(CATALOGS)'
7075 # Check whether --enable-maintainer-mode was given.
7076 if test "${enable_maintainer_mode+set}" = set; then :
7077 enableval
=$enable_maintainer_mode;
7079 enable_maintainer_mode
=no
7083 if test "x$enable_maintainer_mode" = xno
; then
7090 # Enable expensive internal checks
7092 if test -f $srcdir/..
/gcc
/DEV-PHASE \
7093 && test x
"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental
; then
7097 # Check whether --enable-checking was given.
7098 if test "${enable_checking+set}" = set; then :
7099 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7102 # Determine the default checks.
7103 if test x
$is_release = x
; then
7104 ac_checking_flags
=yes
7106 ac_checking_flags
=release
7110 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7111 for check
in release
$ac_checking_flags
7114 # these set all the flags to specific states
7115 yes|all
) ac_checking
=1 ; ac_valgrind_checking
= ;;
7116 no|none|release
) ac_checking
= ; ac_valgrind_checking
= ;;
7117 # these enable particular checks
7118 misc
) ac_checking
=1 ;;
7119 valgrind
) ac_valgrind_checking
=1 ;;
7126 if test x
$ac_checking != x
; then
7128 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7132 if test x
$ac_valgrind_checking != x
; then
7134 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7138 # Check whether --enable-canonical-system-headers was given.
7139 if test "${enable_canonical_system_headers+set}" = set; then :
7140 enableval
=$enable_canonical_system_headers;
7142 enable_canonical_system_headers
=yes
7145 if test $enable_canonical_system_headers != no
; then
7147 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7156 arm
*-*-symbianelf* | \
7160 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]* | \
7168 sh
[123456789lbe
]*-*-* | sh-
*-* | \
7169 tilegx-
*-* | tilepro-
*-* )
7170 need_64bit_hwint
=yes ;;
7172 need_64bit_hwint
=no
;;
7175 case $need_64bit_hwint:$ac_cv_sizeof_long in
7176 *:8 | no
:*) host_wide_int
=long
;;
7177 *) host_wide_int
='long long' ;;
7182 cat >>confdefs.h
<<_ACEOF
7183 #define HOST_WIDE_INT $host_wide_int
7189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7195 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7200 if ac_fn_c_try_compile
"$LINENO"; then :
7202 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7210 ac_config_headers
="$ac_config_headers config.h:config.in"
7212 ac_config_files
="$ac_config_files Makefile"
7214 cat >confcache
<<\_ACEOF
7215 # This file is a shell script that caches the results of configure
7216 # tests run on this system so they can be shared between configure
7217 # scripts and configure runs, see configure's option --config-cache.
7218 # It is not useful on other systems. If it contains results you don't
7219 # want to keep, you may remove or edit it.
7221 # config.status only pays attention to the cache file if you give it
7222 # the --recheck option to rerun configure.
7224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7230 # The following way of writing the cache mishandles newlines in values,
7231 # but we know of no workaround that is simple, portable, and efficient.
7232 # So, we kill variables containing newlines.
7233 # Ultrix sh set writes to stderr and can't be redirected directly,
7234 # and sets the high bit in the cache file unless we assign to the vars.
7236 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7237 eval ac_val
=\$
$ac_var
7241 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7245 _ | IFS | as_nl
) ;; #(
7246 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7247 *) { eval $ac_var=; unset $ac_var;} ;;
7253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7254 *${as_nl}ac_space
=\
*)
7255 # `set' does not quote correctly, so add quotes: double-quote
7256 # substitution turns \\\\ into \\, and sed turns \\ into \.
7259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7262 # `set' quotes correctly as required by POSIX, so do not add quotes.
7263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7276 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7277 if test -w "$cache_file"; then
7278 test "x$cache_file" != "x/dev/null" &&
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7280 $as_echo "$as_me: updating cache $cache_file" >&6;}
7281 cat confcache
>$cache_file
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7284 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7289 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7290 # Let make expand exec_prefix.
7291 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7293 DEFS
=-DHAVE_CONFIG_H
7297 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7298 # 1. Remove the extension, and $U if already installed.
7299 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7300 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7301 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7302 # will be set to the directory where LIBOBJS objects are built.
7303 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7304 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7308 LTLIBOBJS
=$ac_ltlibobjs
7313 : ${CONFIG_STATUS=./config.status}
7315 ac_clean_files_save
=$ac_clean_files
7316 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7318 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7320 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7322 # Generated by $as_me.
7323 # Run this file to recreate the current configuration.
7324 # Compiler output produced by configure, useful for debugging
7325 # configure, is in config.log if it exists.
7331 SHELL=\${CONFIG_SHELL-$SHELL}
7334 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7335 ## -------------------- ##
7336 ## M4sh Initialization. ##
7337 ## -------------------- ##
7339 # Be more Bourne compatible
7340 DUALCASE
=1; export DUALCASE
# for MKS sh
7341 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7344 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7345 # is contrary to our usage. Disable this feature.
7346 alias -g '${1+"$@"}'='"$@"'
7347 setopt NO_GLOB_SUBST
7349 case `(set -o) 2>/dev/null` in #(
7361 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7362 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7363 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7364 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7365 # Prefer a ksh shell builtin over an external printf program on Solaris,
7366 # but without wasting forks for bash or zsh.
7367 if test -z "$BASH_VERSION$ZSH_VERSION" \
7368 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7369 as_echo='print
-r --'
7370 as_echo_n='print
-rn --'
7371 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7372 as_echo='printf %s
\n'
7373 as_echo_n='printf %s
'
7375 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7376 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7377 as_echo_n='/usr
/ucb
/echo -n'
7379 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7380 as_echo_n_body='eval
7384 expr "X$arg" : "X\\(.*\\)$as_nl";
7385 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7387 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7389 export as_echo_n_body
7390 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7393 as_echo='sh
-c $as_echo_body as_echo
'
7396 # The user is always right.
7397 if test "${PATH_SEPARATOR+set}" != set; then
7399 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7400 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7407 # We need space, tab and new line, in precisely that order. Quoting is
7408 # there to prevent editors from complaining about space-tab.
7409 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7410 # splitting by setting IFS to empty value.)
7413 # Find who we are. Look in the path if we contain no directory separator.
7415 *[\\/]* ) as_myself=$0 ;;
7416 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7427 # We did not find ourselves, most probably we were run as `sh COMMAND'
7428 # in which case we are not to be found in the path.
7429 if test "x$as_myself" = x
; then
7432 if test ! -f "$as_myself"; then
7433 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7437 # Unset variables that we do not need and which cause bugs (e.g. in
7438 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7439 # suppresses any "Segmentation fault" message there. '((' could
7440 # trigger a bug in pdksh 5.2.14.
7441 for as_var
in BASH_ENV ENV MAIL MAILPATH
7442 do eval test x\
${$as_var+set} = xset \
7443 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7456 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7459 # as_fn_error ERROR [LINENO LOG_FD]
7460 # ---------------------------------
7461 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7462 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7463 # script with status $?, using 1 if that was 0.
7466 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7468 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7469 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7471 $as_echo "$as_me: error: $1" >&2
7472 as_fn_exit
$as_status
7476 # as_fn_set_status STATUS
7477 # -----------------------
7478 # Set $? to STATUS, without forking.
7482 } # as_fn_set_status
7486 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7496 # Portably unset VAR.
7499 { eval $1=; unset $1;}
7501 as_unset
=as_fn_unset
7502 # as_fn_append VAR VALUE
7503 # ----------------------
7504 # Append the text in VALUE to the end of the definition contained in VAR. Take
7505 # advantage of any shell optimizations that allow amortized linear growth over
7506 # repeated appends, instead of the typical quadratic growth present in naive
7508 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7509 eval 'as_fn_append ()
7520 # as_fn_arith ARG...
7521 # ------------------
7522 # Perform arithmetic evaluation on the ARGs, and store the result in the
7523 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7524 # must be portable across $(()) and expr.
7525 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7526 eval 'as_fn_arith ()
7533 as_val
=`expr "$@" || test $? -eq 1`
7538 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7539 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7545 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7546 as_basename
=basename
7551 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7557 as_me
=`$as_basename -- "$0" ||
7558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7559 X"$0" : 'X\(//\)$' \| \
7560 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7562 sed '/^.*\/\([^/][^/]*\)\/*$/{
7576 # Avoid depending upon Character Ranges.
7577 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7578 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7579 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7580 as_cr_digits
='0123456789'
7581 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7583 ECHO_C
= ECHO_N
= ECHO_T
=
7584 case `echo -n x` in #(((((
7586 case `echo 'xy\c'` in
7587 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7589 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7596 rm -f conf$$ conf$$.exe conf$$.
file
7597 if test -d conf$$.dir
; then
7598 rm -f conf$$.dir
/conf$$.
file
7601 mkdir conf$$.dir
2>/dev
/null
7603 if (echo >conf$$.
file) 2>/dev
/null
; then
7604 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7606 # ... but there are two gotchas:
7607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7609 # In both cases, we have to default to `cp -p'.
7610 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7612 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7620 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7621 rmdir conf$$.dir
2>/dev
/null
7626 # Create "$as_dir" as a directory, including parents if necessary.
7631 -*) as_dir
=.
/$as_dir;;
7633 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7637 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7638 *) as_qdir
=$as_dir;;
7640 as_dirs
="'$as_qdir' $as_dirs"
7641 as_dir
=`$as_dirname -- "$as_dir" ||
7642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7643 X"$as_dir" : 'X\(//\)[^/]' \| \
7644 X"$as_dir" : 'X\(//\)$' \| \
7645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7646 $as_echo X"$as_dir" |
7647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7664 test -d "$as_dir" && break
7666 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7667 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
7671 if mkdir
-p .
2>/dev
/null
; then
7672 as_mkdir_p
='mkdir -p "$as_dir"'
7674 test -d .
/-p && rmdir .
/-p
7678 if test -x / >/dev
/null
2>&1; then
7681 if ls -dL / >/dev
/null
2>&1; then
7688 if test -d "$1"; then
7694 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7695 ???[sx]*):;;*)false;;esac;fi
7699 as_executable_p
=$as_test_x
7701 # Sed expression to map a string onto a valid CPP name.
7702 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7704 # Sed expression to map a string onto a valid variable name.
7705 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7709 ## ----------------------------------- ##
7710 ## Main body of $CONFIG_STATUS script. ##
7711 ## ----------------------------------- ##
7713 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7716 # Save the log message, to keep $0 and so on meaningful, and to
7717 # report actual input values of CONFIG_FILES etc. instead of their
7718 # values after options handling.
7720 This file was extended by cpplib $as_me , which was
7721 generated by GNU Autoconf 2.64. Invocation command line was
7723 CONFIG_FILES = $CONFIG_FILES
7724 CONFIG_HEADERS = $CONFIG_HEADERS
7725 CONFIG_LINKS = $CONFIG_LINKS
7726 CONFIG_COMMANDS = $CONFIG_COMMANDS
7729 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7734 case $ac_config_files in *"
7735 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7738 case $ac_config_headers in *"
7739 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7744 # Files that config.status was made for.
7745 config_files="$ac_config_files"
7746 config_headers="$ac_config_headers"
7747 config_commands="$ac_config_commands"
7751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7753 \`$as_me' instantiates files and other configuration actions
7754 from templates according to the current configuration. Unless the files
7755 and actions are specified as TAGs, all are instantiated by default.
7757 Usage: $0 [OPTION]... [TAG]...
7759 -h, --help print this help, then exit
7760 -V, --version print version number and configuration settings, then exit
7761 -q, --quiet, --silent
7762 do not print progress messages
7763 -d, --debug don't remove temporary files
7764 --recheck update $as_me by reconfiguring in the same conditions
7765 --file=FILE[:TEMPLATE]
7766 instantiate the configuration file FILE
7767 --header=FILE[:TEMPLATE]
7768 instantiate the configuration header FILE
7770 Configuration files:
7773 Configuration headers:
7776 Configuration commands:
7779 Report bugs to <gcc-bugs@gcc.gnu.org>."
7782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7784 cpplib config.status
7785 configured by $0, generated by GNU Autoconf 2.64,
7786 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7788 Copyright (C) 2009 Free Software Foundation, Inc.
7789 This config.status script is free software; the Free Software Foundation
7790 gives unlimited permission to copy, distribute and modify it."
7795 test -n "\$AWK" || AWK=awk
7798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7799 # The default lists apply if the user does not specify any file.
7805 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7806 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7817 # Handling of the options.
7818 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7820 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7821 $as_echo "$ac_cs_version"; exit ;;
7822 --debug |
--debu |
--deb |
--de |
--d |
-d )
7824 --file |
--fil |
--fi |
--f )
7827 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7829 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7830 ac_need_defaults
=false
;;
7831 --header |
--heade |
--head |
--hea )
7834 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7836 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7837 ac_need_defaults
=false
;;
7839 # Conflict between --help and --header
7840 as_fn_error
"ambiguous option: \`$1'
7841 Try \`$0 --help' for more information.";;
7842 --help |
--hel |
-h )
7843 $as_echo "$ac_cs_usage"; exit ;;
7844 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7845 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7849 -*) as_fn_error
"unrecognized option: \`$1'
7850 Try \`$0 --help' for more information." ;;
7852 *) as_fn_append ac_config_targets
" $1"
7853 ac_need_defaults
=false
;;
7859 ac_configure_extra_args
=
7861 if $ac_cs_silent; then
7863 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7868 if \$ac_cs_recheck; then
7869 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7871 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7872 CONFIG_SHELL='$SHELL'
7878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7883 ## Running $as_me. ##
7889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7893 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
7897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7899 # Handling of arguments.
7900 for ac_config_target
in $ac_config_targets
7902 case $ac_config_target in
7903 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
7904 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
7905 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7907 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7912 # If the user did not use the arguments to specify the items to instantiate,
7913 # then the envvar interface is used. Set only those that are not.
7914 # We use the long form for the default assignment because of an extremely
7915 # bizarre bug on SunOS 4.1.3.
7916 if $ac_need_defaults; then
7917 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7918 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7919 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7922 # Have a temporary directory for convenience. Make it in the build tree
7923 # simply because there is no reason against having it here, and in addition,
7924 # creating and moving files from /tmp can sometimes cause problems.
7925 # Hook for its removal unless debugging.
7926 # Note that there is a small window in which the directory will not be cleaned:
7927 # after its creation but before its name has been assigned to `$tmp'.
7931 trap 'exit_status=$?
7932 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7934 trap 'as_fn_exit 1' 1 2 13 15
7936 # Create a (secure) tmp directory for tmp files.
7939 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7940 test -n "$tmp" && test -d "$tmp"
7943 tmp
=.
/conf$$
-$RANDOM
7944 (umask 077 && mkdir
"$tmp")
7945 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
7947 # Set up the scripts for CONFIG_FILES section.
7948 # No need to generate them if there are no CONFIG_FILES.
7949 # This happens for instance with `./config.status config.h'.
7950 if test -n "$CONFIG_FILES"; then
7953 ac_cr
=`echo X | tr X '\015'`
7954 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7955 # But we know of no other shell where ac_cr would be empty at this
7956 # point, so we can use a bashism as a fallback.
7957 if test "x$ac_cr" = x
; then
7958 eval ac_cr
=\$
\'\\r
\'
7960 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7961 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7967 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7972 echo "cat >conf$$subs.awk <<_ACEOF" &&
7973 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7976 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7977 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7979 for ac_last_try in false false false false false :; do
7980 . ./conf$$subs.sh ||
7981 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7983 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7984 if test $ac_delim_n = $ac_delim_num; then
7986 elif $ac_last_try; then
7987 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7989 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7995 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
7999 s/^/S["/; s
/!.
*/"]=/
8009 s/\(.\{148\}\).*/\1/
8011 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8016 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8023 s/\(.\{148\}\).*/\1/
8025 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8029 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8034 ' <conf$$subs.awk | sed '
8039 ' >>$CONFIG_STATUS || ac_write_fail=1
8040 rm -f conf$$subs.awk
8041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8043 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8044 for (key in S) S_is_set[key] = 1
8050 nfields = split(line, field, "@
")
8052 len = length(field[1])
8053 for (i = 2; i < nfields; i++) {
8055 keylen = length(key)
8056 if (S_is_set[key]) {
8058 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8059 len += length(value) + length(field[++i])
8070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8071 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8072 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8075 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8076 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8079 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8080 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8081 # trailing colons and then remove the whole line if VPATH becomes empty
8082 # (actually we leave an empty line to preserve line numbers).
8083 if test "x
$srcdir" = x.; then
8084 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8088 s/^\([^=]*=[ ]*\):*/\1/
8094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8095 fi # test -n "$CONFIG_FILES"
8097 # Set up the scripts for CONFIG_HEADERS section.
8098 # No need to generate them if there are no CONFIG_HEADERS.
8099 # This happens for instance with `./config.status Makefile'.
8100 if test -n "$CONFIG_HEADERS"; then
8101 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8105 # Transform confdefs.h into an awk script `defines.awk', embedded as
8106 # here-document in config.status, that substitutes the proper values into
8107 # config.h.in to produce config.h.
8109 # Create a delimiter string that does not exist in confdefs.h, to ease
8110 # handling of long lines.
8112 for ac_last_try in false false :; do
8113 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8114 if test -z "$ac_t"; then
8116 elif $ac_last_try; then
8117 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8119 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8123 # For the awk script, D is an array of macro values keyed by name,
8124 # likewise P contains macro parameters if any. Preserve backslash
8125 # newline sequences.
8127 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8129 s/.\{148\}/&'"$ac_delim"'/g
8132 s/^[ ]*#[ ]*define[ ][ ]*/ /
8139 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8141 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8146 D["\
1"]=" \
3\\\\\\n
"\\/p
8148 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8153 s/.\{148\}/&'"$ac_delim"'/g
8158 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8161 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8163 ' <confdefs.h | sed '
8164 s/'"$ac_delim"'/"\\\
8165 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8168 for (key in D) D_is_set[key] = 1
8171 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8173 split(line, arg, " ")
8174 if (arg[1] == "#") {
8178 defundef
= substr
(arg
[1], 2)
8181 split(mac1
, mac2
, "(") #)
8183 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8184 if (D_is_set
[macro
]) {
8185 # Preserve the white space surrounding the "#".
8186 print prefix
"define", macro P
[macro
] D
[macro
]
8189 # Replace #undef with comments. This is necessary, for example,
8190 # in the case of _POSIX_SOURCE, which is predefined and required
8191 # on some systems where configure will not decide to define it.
8192 if (defundef
== "undef") {
8193 print
"/*", prefix defundef
, macro
, "*/"
8201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8202 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8203 fi # test -n "$CONFIG_HEADERS"
8206 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8211 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8213 case $ac_mode$ac_tag in
8215 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8216 :[FH
]-) ac_tag
=-:-;;
8217 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8234 -) ac_f
="$tmp/stdin";;
8235 *) # Look for the file first in the build tree, then in the source tree
8236 # (if the path is not absolute). The absolute path cannot be DOS-style,
8237 # because $ac_f cannot contain `:'.
8241 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8243 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8245 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8246 as_fn_append ac_file_inputs
" '$ac_f'"
8249 # Let's still pretend it is `configure' which instantiates (i.e., don't
8250 # use $as_me), people would be surprised to read:
8251 # /* config.h. Generated by config.status. */
8252 configure_input
='Generated from '`
8253 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8255 if test x
"$ac_file" != x-
; then
8256 configure_input
="$ac_file. $configure_input"
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8258 $as_echo "$as_me: creating $ac_file" >&6;}
8260 # Neutralize special characters interpreted by sed in replacement strings.
8261 case $configure_input in #(
8262 *\
&* |
*\|
* |
*\\* )
8263 ac_sed_conf_input
=`$as_echo "$configure_input" |
8264 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8265 *) ac_sed_conf_input
=$configure_input;;
8269 *:-:* |
*:-) cat >"$tmp/stdin" \
8270 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8275 ac_dir
=`$as_dirname -- "$ac_file" ||
8276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8277 X"$ac_file" : 'X\(//\)[^/]' \| \
8278 X"$ac_file" : 'X\(//\)$' \| \
8279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8280 $as_echo X"$ac_file" |
8281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8298 as_dir
="$ac_dir"; as_fn_mkdir_p
8302 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8304 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8305 # A ".." for each directory in $ac_dir_suffix.
8306 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8307 case $ac_top_builddir_sub in
8308 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8309 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8312 ac_abs_top_builddir
=$ac_pwd
8313 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8314 # for backward compatibility:
8315 ac_top_builddir
=$ac_top_build_prefix
8318 .
) # We are building in place.
8320 ac_top_srcdir
=$ac_top_builddir_sub
8321 ac_abs_top_srcdir
=$ac_pwd ;;
8322 [\\/]* | ?
:[\\/]* ) # Absolute name.
8323 ac_srcdir
=$srcdir$ac_dir_suffix;
8324 ac_top_srcdir
=$srcdir
8325 ac_abs_top_srcdir
=$srcdir ;;
8327 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8328 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8329 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8331 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8341 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8342 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8347 # If the template does not know about datarootdir, expand it.
8348 # FIXME: This hack should be removed a few years after 2.60.
8349 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8360 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8361 *datarootdir
*) ac_datarootdir_seen
=yes;;
8362 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8364 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8367 ac_datarootdir_hack='
8368 s&@datadir@&$datadir&g
8369 s&@docdir@&$docdir&g
8370 s&@infodir@&$infodir&g
8371 s&@localedir@&$localedir&g
8372 s&@mandir@&$mandir&g
8373 s&\\\${datarootdir}&$datarootdir&g' ;;
8377 # Neutralize VPATH when `$srcdir' = `.'.
8378 # Shell code in configure.ac might set extrasub.
8379 # FIXME: do we really want to maintain this feature?
8380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8381 ac_sed_extra="$ac_vpsub
8384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8386 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8387 s|@configure_input@|
$ac_sed_conf_input|
;t t
8388 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8389 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8390 s
&@srcdir@
&$ac_srcdir&;t t
8391 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8392 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8393 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8394 s
&@builddir@
&$ac_builddir&;t t
8395 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8396 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8397 s
&@INSTALL@
&$ac_INSTALL&;t t
8398 $ac_datarootdir_hack
8400 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8401 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8403 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8404 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8405 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8407 which seems to be undefined. Please make sure it is defined." >&5
8408 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8409 which seems to be undefined. Please make sure it is defined." >&2;}
8413 -) cat "$tmp/out" && rm -f "$tmp/out";;
8414 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8416 || as_fn_error "could not create $ac_file" "$LINENO" 5
8422 if test x"$ac_file" != x-; then
8424 $as_echo "/* $configure_input */" \
8425 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8426 } >"$tmp/config.h" \
8427 || as_fn_error "could not create $ac_file" "$LINENO" 5
8428 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8430 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8433 mv "$tmp/config.h" "$ac_file" \
8434 || as_fn_error "could not create $ac_file" "$LINENO" 5
8437 $as_echo "/* $configure_input */" \
8438 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8439 || as_fn_error "could not create -" "$LINENO" 5
8443 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8444 $as_echo "$as_me: executing $ac_file commands" >&6;}
8449 case $ac_file$ac_mode in
8450 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8451 "config.h":H) echo timestamp > stamp-h1 ;;
8459 ac_clean_files=$ac_clean_files_save
8461 test $ac_write_fail = 0 ||
8462 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8465 # configure is writing to config.log, and then calls config.status.
8466 # config.status does its own redirection, appending to config.log.
8467 # Unfortunately, on DOS this fails, as config.log is still kept open
8468 # by configure, so config.status won't be able to
write to it
; its
8469 # output is simply discarded. So we exec the FD to /dev/null,
8470 # effectively closing config.log, so it can be properly (re)opened and
8471 # appended to by config.status. When coming back to configure, we
8472 # need to make the FD available again.
8473 if test "$no_create" != yes; then
8475 ac_config_status_args
=
8476 test "$silent" = yes &&
8477 ac_config_status_args
="$ac_config_status_args --quiet"
8479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8482 # would make configure fail if this is the last instruction.
8483 $ac_cs_success || as_fn_exit $?
8485 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8487 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}