2 # From configure.ac Revision: 98971 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.4.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in
29 *posix*) set -o posix ;;
38 # Avoid depending upon Character Ranges.
39 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits='0123456789'
43 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
50 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
58 # Support unset when possible.
59 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
75 # Find who we are. Look in the path if we contain no directory separator.
77 *[\\/]* ) as_myself=$0 ;;
78 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
82 test -z "$as_dir" && as_dir=.
83 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x; then
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C; export $as_var
116 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
120 # Required to use basename.
121 if expr a : '\(a\)' >/dev/null 2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
135 # Name of the executable.
136 as_me=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 if test "x$CONFIG_SHELL" = x; then
160 if (eval ":") 2>/dev/null; then
166 if test $as_have_required = yes && (eval ":
176 as_func_ret_success () {
179 as_func_ret_failure () {
184 if as_func_success; then
188 echo as_func_success failed.
191 if as_func_failure; then
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev/null; then
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
230 test -z "$as_dir" && as_dir=.
233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
241 for as_shell in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev/null <<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
253 case `(set -o) 2>/dev/null` in
254 *posix*) set -o posix ;;
263 CONFIG_SHELL=$as_shell
265 if { "$as_shell" 2> /dev/null <<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
274 case `(set -o) 2>/dev/null` in
275 *posix*) set -o posix ;;
291 as_func_ret_success () {
294 as_func_ret_failure () {
299 if as_func_success; then
303 echo as_func_success failed.
306 if as_func_failure; then
308 echo as_func_failure succeeded.
311 if as_func_ret_success; then
315 echo as_func_ret_success failed.
318 if as_func_ret_failure; then
320 echo as_func_ret_failure succeeded.
323 if ( set x; as_func_ret_success y && test x = "$1" ); then
327 echo positional parameters were not saved.
330 test $exitcode = 0) || { (exit 1); exit 1; }
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
347 if test "x$CONFIG_SHELL" != x; then
348 for as_var in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
356 if test $as_have_required = no; then
357 echo This script requires a shell more modern than all the
358 echo shells that I found on your system. Please install a
359 echo modern shell, or manually run the script under such a
360 echo shell if you do have one.
361 { (exit 1); exit 1; }
371 (eval "as_func_return () {
380 as_func_ret_success () {
383 as_func_ret_failure () {
388 if as_func_success; then
392 echo as_func_success failed.
395 if as_func_failure; then
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
416 echo positional parameters were not saved.
419 test \$exitcode = 0") || {
420 echo No shell found that supports shell functions.
421 echo Please tell autoconf@gnu.org about your system,
422 echo including any error possibly output before this
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 chmod +x "$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
466 # Exit status is that of the last command.
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
477 ECHO_C= ECHO_N= ECHO_T=
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
488 if expr a : '\(a\)' >/dev/null 2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
495 rm -f conf$$ conf$$.exe conf$$.file
496 if test -d conf$$.dir; then
497 rm -f conf$$.dir/conf$$.file
503 if ln -s conf$$.file conf$$ 2>/dev/null; then
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
511 elif ln conf$$.file conf$$ 2>/dev/null; then
516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517 rmdir conf$$.dir 2>/dev/null
519 if mkdir -p . 2>/dev/null; then
522 test -d ./-p && rmdir ./-p
526 if test -x / >/dev/null 2>&1; then
529 if ls -dL / >/dev/null 2>&1; then
536 if test -d "$1"; then
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
547 as_executable_p=$as_test_x
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 exec 7<&0 </dev/null 6>&1
560 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567 ac_default_prefix=/usr/local
569 ac_config_libobj_dir=.
575 SHELL=${CONFIG_SHELL-/bin/sh}
577 # Identity of this package.
578 PACKAGE_NAME='asterisk'
579 PACKAGE_TARNAME='asterisk'
580 PACKAGE_VERSION='1.4'
581 PACKAGE_STRING='asterisk 1.4'
582 PACKAGE_BUGREPORT='www.asterisk.org'
584 ac_unique_file="main/asterisk.c"
585 # Factoring default headers for most tests.
586 ac_includes_default="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
632 program_transform_name
921 ZAPTEL_TRANSCODE_INCLUDE
925 ZAPTEL_VLDTMF_INCLUDE
929 ZAPTEL_HWGAIN_INCLUDE
932 ZAPTEL_ECHOCANPARAMS_LIB
933 ZAPTEL_ECHOCANPARAMS_INCLUDE
934 ZAPTEL_ECHOCANPARAMS_DIR
935 PBX_ZAPTEL_ECHOCANPARAMS
936 ZAPTEL_CHANALARMS_LIB
937 ZAPTEL_CHANALARMS_INCLUDE
938 ZAPTEL_CHANALARMS_DIR
939 PBX_ZAPTEL_CHANALARMS
958 AST_DECLARATION_AFTER_STATEMENT
981 ac_precious_vars='build_alias
996 # Initialize some variables set by options.
998 ac_init_version=false
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1008 program_transform_name=s,x,x,
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 includedir='${prefix}/include'
1031 oldincludedir='/usr/include'
1032 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033 infodir='${datarootdir}/info'
1038 libdir='${exec_prefix}/lib'
1039 localedir='${datarootdir}/locale'
1040 mandir='${datarootdir}/man'
1046 # If the previous option needs an argument, assign it.
1047 if test -n "$ac_prev"; then
1048 eval $ac_prev=\$ac_option
1054 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1060 case $ac_dashdash$ac_option in
1064 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1066 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067 bindir=$ac_optarg ;;
1069 -build | --build | --buil | --bui | --bu)
1070 ac_prev=build_alias ;;
1071 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072 build_alias=$ac_optarg ;;
1074 -cache-file | --cache-file | --cache-fil | --cache-fi \
1075 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076 ac_prev=cache_file ;;
1077 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079 cache_file=$ac_optarg ;;
1081 --config-cache | -C)
1082 cache_file=config.cache ;;
1084 -datadir | --datadir | --datadi | --datad)
1086 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087 datadir=$ac_optarg ;;
1089 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090 | --dataroo | --dataro | --datar)
1091 ac_prev=datarootdir ;;
1092 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094 datarootdir=$ac_optarg ;;
1096 -disable-* | --disable-*)
1097 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1103 eval enable_$ac_feature=no ;;
1105 -docdir | --docdir | --docdi | --doc | --do)
1107 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1108 docdir=$ac_optarg ;;
1110 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1112 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1113 dvidir=$ac_optarg ;;
1115 -enable-* | --enable-*)
1116 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1120 { (exit 1); exit 1; }; }
1121 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1122 eval enable_$ac_feature=\$ac_optarg ;;
1124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1126 | --exec | --exe | --ex)
1127 ac_prev=exec_prefix ;;
1128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1130 | --exec=* | --exe=* | --ex=*)
1131 exec_prefix=$ac_optarg ;;
1133 -gas | --gas | --ga | --g)
1134 # Obsolete; use --with-gas.
1137 -help | --help | --hel | --he | -h)
1138 ac_init_help=long ;;
1139 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1140 ac_init_help=recursive ;;
1141 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1142 ac_init_help=short ;;
1144 -host | --host | --hos | --ho)
1145 ac_prev=host_alias ;;
1146 -host=* | --host=* | --hos=* | --ho=*)
1147 host_alias=$ac_optarg ;;
1149 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1151 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1153 htmldir=$ac_optarg ;;
1155 -includedir | --includedir | --includedi | --included | --include \
1156 | --includ | --inclu | --incl | --inc)
1157 ac_prev=includedir ;;
1158 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1159 | --includ=* | --inclu=* | --incl=* | --inc=*)
1160 includedir=$ac_optarg ;;
1162 -infodir | --infodir | --infodi | --infod | --info | --inf)
1164 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1165 infodir=$ac_optarg ;;
1167 -libdir | --libdir | --libdi | --libd)
1169 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1170 libdir=$ac_optarg ;;
1172 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1173 | --libexe | --libex | --libe)
1174 ac_prev=libexecdir ;;
1175 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1176 | --libexe=* | --libex=* | --libe=*)
1177 libexecdir=$ac_optarg ;;
1179 -localedir | --localedir | --localedi | --localed | --locale)
1180 ac_prev=localedir ;;
1181 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1182 localedir=$ac_optarg ;;
1184 -localstatedir | --localstatedir | --localstatedi | --localstated \
1185 | --localstate | --localstat | --localsta | --localst | --locals)
1186 ac_prev=localstatedir ;;
1187 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1188 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1189 localstatedir=$ac_optarg ;;
1191 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1193 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1194 mandir=$ac_optarg ;;
1196 -nfp | --nfp | --nf)
1197 # Obsolete; use --without-fp.
1200 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1201 | --no-cr | --no-c | -n)
1204 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1205 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1209 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1210 | --oldin | --oldi | --old | --ol | --o)
1211 ac_prev=oldincludedir ;;
1212 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1213 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1214 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1215 oldincludedir=$ac_optarg ;;
1217 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1219 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1220 prefix=$ac_optarg ;;
1222 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1223 | --program-pre | --program-pr | --program-p)
1224 ac_prev=program_prefix ;;
1225 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1226 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1227 program_prefix=$ac_optarg ;;
1229 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1230 | --program-suf | --program-su | --program-s)
1231 ac_prev=program_suffix ;;
1232 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1233 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1234 program_suffix=$ac_optarg ;;
1236 -program-transform-name | --program-transform-name \
1237 | --program-transform-nam | --program-transform-na \
1238 | --program-transform-n | --program-transform- \
1239 | --program-transform | --program-transfor \
1240 | --program-transfo | --program-transf \
1241 | --program-trans | --program-tran \
1242 | --progr-tra | --program-tr | --program-t)
1243 ac_prev=program_transform_name ;;
1244 -program-transform-name=* | --program-transform-name=* \
1245 | --program-transform-nam=* | --program-transform-na=* \
1246 | --program-transform-n=* | --program-transform-=* \
1247 | --program-transform=* | --program-transfor=* \
1248 | --program-transfo=* | --program-transf=* \
1249 | --program-trans=* | --program-tran=* \
1250 | --progr-tra=* | --program-tr=* | --program-t=*)
1251 program_transform_name=$ac_optarg ;;
1253 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1255 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1256 pdfdir=$ac_optarg ;;
1258 -psdir | --psdir | --psdi | --psd | --ps)
1260 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264 | -silent | --silent | --silen | --sile | --sil)
1267 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271 sbindir=$ac_optarg ;;
1273 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1274 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1275 | --sharedst | --shareds | --shared | --share | --shar \
1277 ac_prev=sharedstatedir ;;
1278 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1279 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1280 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282 sharedstatedir=$ac_optarg ;;
1284 -site | --site | --sit)
1286 -site=* | --site=* | --sit=*)
1289 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1292 srcdir=$ac_optarg ;;
1294 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1295 | --syscon | --sysco | --sysc | --sys | --sy)
1296 ac_prev=sysconfdir ;;
1297 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1298 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1299 sysconfdir=$ac_optarg ;;
1301 -target | --target | --targe | --targ | --tar | --ta | --t)
1302 ac_prev=target_alias ;;
1303 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1304 target_alias=$ac_optarg ;;
1306 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1309 -version | --version | --versio | --versi | --vers | -V)
1310 ac_init_version=: ;;
1313 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 { echo "$as_me: error: invalid package name: $ac_package" >&2
1317 { (exit 1); exit 1; }; }
1318 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1319 eval with_$ac_package=\$ac_optarg ;;
1321 -without-* | --without-*)
1322 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 { echo "$as_me: error: invalid package name: $ac_package" >&2
1326 { (exit 1); exit 1; }; }
1327 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1328 eval with_$ac_package=no ;;
1331 # Obsolete; use --with-x.
1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335 | --x-incl | --x-inc | --x-in | --x-i)
1336 ac_prev=x_includes ;;
1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339 x_includes=$ac_optarg ;;
1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343 ac_prev=x_libraries ;;
1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346 x_libraries=$ac_optarg ;;
1348 -*) { echo "$as_me: error: unrecognized option: $ac_option
1349 Try \`$0 --help' for more information." >&2
1350 { (exit 1); exit 1; }; }
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1357 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1358 { (exit 1); exit 1; }; }
1359 eval $ac_envvar=\$ac_optarg
1360 export $ac_envvar ;;
1363 # FIXME: should be removed in autoconf 3.0.
1364 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1373 if test -n "$ac_prev"; then
1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375 { echo "$as_me: error: missing argument to $ac_option" >&2
1376 { (exit 1); exit 1; }; }
1379 # Be sure to have absolute directory names.
1380 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1385 eval ac_val=\$$ac_var
1387 [\\/$]* | ?:[\\/]* ) continue;;
1388 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1391 { (exit 1); exit 1; }; }
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1399 target=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used." >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415 test "$silent" = yes && exec 6>/dev/null
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 { echo "$as_me: error: Working directory cannot be determined" >&2
1422 { (exit 1); exit 1; }; }
1423 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424 { echo "$as_me: error: pwd does not report name of working directory" >&2
1425 { (exit 1); exit 1; }; }
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$0" ||
1433 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$0" : 'X\(//\)[^/]' \| \
1435 X"$0" : 'X\(//\)$' \| \
1436 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1460 ac_srcdir_defaulted=no
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1465 { (exit 1); exit 1; }; }
1467 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1470 { (exit 1); exit 1; }; }
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 for ac_var in $ac_precious_vars; do
1483 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_${ac_var}_value=\$${ac_var}
1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1496 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1554 --build=BUILD configure for building on BUILD [guessed]
1555 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1559 if test -n "$ac_init_help"; then
1560 case $ac_init_help in
1561 short | recursive ) echo "Configuration of asterisk 1.4:";;
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1568 --enable-dev-mode Turn on developer mode
1569 --disable-largefile omit support for large files
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1576 --with-execinfo=PATH use Stack Backtrace support files in PATH
1577 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1578 --with-curl=PATH use cURL files in PATH
1579 --with-curses=PATH use curses files in PATH
1580 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1581 --with-gsm=PATH use External GSM library files in PATH , use
1582 'internal' GSM otherwise
1583 --with-gtk=PATH use gtk libraries files in PATH
1584 --with-gtk2=PATH use gtk2 libraries files in PATH
1585 --with-iconv=PATH use Iconv Library files in PATH
1586 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1587 --with-imap=PATH use UW IMAP Toolkit files in PATH
1588 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1589 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1590 --with-ltdl=PATH use libtool files in PATH
1591 --with-lua=PATH use Lua files in PATH
1592 --with-misdn=PATH use mISDN User Library files in PATH
1593 --with-nbs=PATH use Network Broadcast Sound files in PATH
1594 --with-ncurses=PATH use ncurses files in PATH
1595 --with-netsnmp=PATH use Net-SNMP files in PATH
1596 --with-newt=PATH use newt files in PATH
1597 --with-odbc=PATH use unixODBC files in PATH
1598 --with-ogg=PATH use OGG files in PATH
1599 --with-osptk=PATH use OSP Toolkit files in PATH
1600 --with-oss=PATH use Open Sound System files in PATH
1601 --with-postgres=PATH use PostgreSQL files in PATH
1602 --with-popt=PATH use popt files in PATH
1603 --with-portaudio=PATH use PortAudio files in PATH
1604 --with-pri=PATH use ISDN PRI files in PATH
1605 --with-ss7=PATH use ISDN SS7 files in PATH
1606 --with-pwlib=PATH use PWlib files in PATH
1607 --with-h323=PATH use OpenH323 files in PATH
1608 --with-radius=PATH use Radius Client files in PATH
1609 --with-speex=PATH use Speex files in PATH
1610 --with-speexdsp=PATH use Speexdsp files in PATH
1611 --with-sqlite=PATH use SQLite files in PATH
1612 --with-sqlite3=PATH use SQLite files in PATH
1613 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1614 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1616 --with-tds=PATH use FreeTDS files in PATH
1617 --with-termcap=PATH use Termcap files in PATH
1618 --with-tinfo=PATH use Term Info files in PATH
1619 --with-tonezone=PATH use tonezone files in PATH
1620 --with-usb=PATH use usb files in PATH
1621 --with-vorbis=PATH use Vorbis files in PATH
1622 --with-vpb=PATH use Voicetronix API files in PATH
1623 --with-x11=PATH use X11 support files in PATH
1624 --with-z=PATH use zlib files in PATH
1625 --with-zaptel=PATH use Zaptel files in PATH
1626 --with-zaptel_transcode=PATH
1627 use Zaptel Transcoder Support files in PATH
1628 --with-zaptel_vldtmf=PATH
1629 use Zaptel VLDTMF Support files in PATH
1630 --with-zaptel_hwgain=PATH
1631 use Zaptel Hardware Gain Support files in PATH
1632 --with-zaptel_echocanparams=PATH
1633 use Zaptel Echo Canceler Parameter Support files in
1635 --with-zaptel_chanalarms=PATH
1636 use Zaptel Channel Alarm Support files in PATH
1637 --with-sdl=PATH use Sdl files in PATH
1638 --with-SDL_image=PATH use Sdl Image library files in PATH
1639 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1641 Some influential environment variables:
1642 CC C compiler command
1643 CFLAGS C compiler flags
1644 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1645 nonstandard directory <lib dir>
1646 LIBS libraries to pass to the linker, e.g. -l<library>
1647 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1648 you have headers in a nonstandard directory <include dir>
1650 CXX C++ compiler command
1651 CXXFLAGS C++ compiler flags
1652 CXXCPP C++ preprocessor
1654 Use these variables to override the choices made by `configure' or to help
1655 it to find libraries and programs with nonstandard names/locations.
1657 Report bugs to <www.asterisk.org>.
1662 if test "$ac_init_help" = "recursive"; then
1663 # If there are subdirs, report their specific --help.
1664 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1665 test -d "$ac_dir" || continue
1669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1672 # A ".." for each directory in $ac_dir_suffix.
1673 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1674 case $ac_top_builddir_sub in
1675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1679 ac_abs_top_builddir=$ac_pwd
1680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1681 # for backward compatibility:
1682 ac_top_builddir=$ac_top_build_prefix
1685 .) # We are building in place.
1687 ac_top_srcdir=$ac_top_builddir_sub
1688 ac_abs_top_srcdir=$ac_pwd ;;
1689 [\\/]* | ?:[\\/]* ) # Absolute name.
1690 ac_srcdir=$srcdir$ac_dir_suffix;
1691 ac_top_srcdir=$srcdir
1692 ac_abs_top_srcdir=$srcdir ;;
1694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1695 ac_top_srcdir=$ac_top_build_prefix$srcdir
1696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1700 cd "$ac_dir" || { ac_status=$?; continue; }
1701 # Check for guested configure.
1702 if test -f "$ac_srcdir/configure.gnu"; then
1704 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1705 elif test -f "$ac_srcdir/configure"; then
1707 $SHELL "$ac_srcdir/configure" --help=recursive
1709 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1711 cd "$ac_pwd" || { ac_status=$?; break; }
1715 test -n "$ac_init_help" && exit $ac_status
1716 if $ac_init_version; then
1718 asterisk configure 1.4
1719 generated by GNU Autoconf 2.61
1721 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1722 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1723 This configure script is free software; the Free Software Foundation
1724 gives unlimited permission to copy, distribute and modify it.
1730 cat >config.log <<_ACEOF
1731 This file contains any messages produced by compilers while
1732 running configure, to aid debugging if configure makes a mistake.
1734 It was created by asterisk $as_me 1.4, which was
1735 generated by GNU Autoconf 2.61. Invocation command line was
1747 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1748 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1749 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1750 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1751 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1754 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1756 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1757 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1758 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1759 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1760 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1761 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1762 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 test -z "$as_dir" && as_dir=.
1771 echo "PATH: $as_dir"
1787 # Keep a trace of the command line.
1788 # Strip out --no-create and --no-recursion so they do not pile up.
1789 # Strip out --silent because we don't want to record it for future runs.
1790 # Also quote any args containing shell meta-characters.
1791 # Make two passes to allow for proper duplicate-argument suppression.
1795 ac_must_keep_next=false
1801 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1803 | -silent | --silent | --silen | --sile | --sil)
1806 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1809 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1811 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1812 if test $ac_must_keep_next = true; then
1813 ac_must_keep_next=false # Got value, back to normal.
1816 *=* | --config-cache | -C | -disable-* | --disable-* \
1817 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1818 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1819 | -with-* | --with-* | -without-* | --without-* | --x)
1820 case "$ac_configure_args0 " in
1821 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1824 -* ) ac_must_keep_next=true ;;
1827 ac_configure_args="$ac_configure_args '$ac_arg'"
1832 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1833 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1835 # When interrupted or exit'd, cleanup temporary files, and complete
1836 # config.log. We remove comments because anyway the quotes in there
1837 # would cause problems or look ugly.
1838 # WARNING: Use '\'' to represent an apostrophe within the trap.
1839 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1840 trap 'exit_status=$?
1841 # Save into config.log some information that might help in debugging.
1846 ## ---------------- ##
1847 ## Cache variables. ##
1848 ## ---------------- ##
1851 # The following way of writing the cache mishandles newlines in values,
1853 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1854 eval ac_val=\$$ac_var
1858 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1859 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1862 _ | IFS | as_nl) ;; #(
1863 *) $as_unset $ac_var ;;
1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869 *${as_nl}ac_space=\ *)
1871 "s/'\''/'\''\\\\'\'''\''/g;
1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1883 ## ----------------- ##
1884 ## Output variables. ##
1885 ## ----------------- ##
1888 for ac_var in $ac_subst_vars
1890 eval ac_val=\$$ac_var
1892 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894 echo "$ac_var='\''$ac_val'\''"
1898 if test -n "$ac_subst_files"; then
1900 ## ------------------- ##
1901 ## File substitutions. ##
1902 ## ------------------- ##
1905 for ac_var in $ac_subst_files
1907 eval ac_val=\$$ac_var
1909 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1911 echo "$ac_var='\''$ac_val'\''"
1916 if test -s confdefs.h; then
1926 test "$ac_signal" != 0 &&
1927 echo "$as_me: caught signal $ac_signal"
1928 echo "$as_me: exit $exit_status"
1930 rm -f core *.core core.conftest.* &&
1931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1934 for ac_signal in 1 2 13 15; do
1935 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1939 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1940 rm -f -r conftest* confdefs.h
1942 # Predefined preprocessor variables.
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_NAME "$PACKAGE_NAME"
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE_STRING "$PACKAGE_STRING"
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1969 # Let the site file select an alternate cache file if it wants to.
1970 # Prefer explicitly selected file to automatically selected ones.
1971 if test -n "$CONFIG_SITE"; then
1972 set x "$CONFIG_SITE"
1973 elif test "x$prefix" != xNONE; then
1974 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1976 set x "$ac_default_prefix/share/config.site" \
1977 "$ac_default_prefix/etc/config.site"
1982 if test -r "$ac_site_file"; then
1983 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1984 echo "$as_me: loading site script $ac_site_file" >&6;}
1985 sed 's/^/| /' "$ac_site_file" >&5
1990 if test -r "$cache_file"; then
1991 # Some versions of bash will fail to source /dev/null (special
1992 # files actually), so we avoid doing that.
1993 if test -f "$cache_file"; then
1994 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1995 echo "$as_me: loading cache $cache_file" >&6;}
1997 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1998 *) . "./$cache_file";;
2002 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2003 echo "$as_me: creating cache $cache_file" >&6;}
2007 ac_header_list="$ac_header_list sys/time.h"
2008 ac_header_list="$ac_header_list unistd.h"
2009 ac_func_list="$ac_func_list alarm"
2010 ac_header_list="$ac_header_list utime.h"
2011 # Check that the precious variables saved in the cache have kept the same
2013 ac_cache_corrupted=false
2014 for ac_var in $ac_precious_vars; do
2015 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2016 eval ac_new_set=\$ac_env_${ac_var}_set
2017 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2018 eval ac_new_val=\$ac_env_${ac_var}_value
2019 case $ac_old_set,$ac_new_set in
2021 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2022 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2023 ac_cache_corrupted=: ;;
2025 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2026 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2027 ac_cache_corrupted=: ;;
2030 if test "x$ac_old_val" != "x$ac_new_val"; then
2031 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2032 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2033 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2034 echo "$as_me: former value: $ac_old_val" >&2;}
2035 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2036 echo "$as_me: current value: $ac_new_val" >&2;}
2037 ac_cache_corrupted=:
2040 # Pass precious variables to config.status.
2041 if test "$ac_new_set" = set; then
2043 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2044 *) ac_arg=$ac_var=$ac_new_val ;;
2046 case " $ac_configure_args " in
2047 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2048 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2052 if $ac_cache_corrupted; then
2053 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2054 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2056 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2057 { (exit 1); exit 1; }; }
2085 ac_cpp='$CPP $CPPFLAGS'
2086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092 # cross-compile macros
2094 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2095 if test -f "$ac_dir/install-sh"; then
2097 ac_install_sh="$ac_aux_dir/install-sh -c"
2099 elif test -f "$ac_dir/install.sh"; then
2101 ac_install_sh="$ac_aux_dir/install.sh -c"
2103 elif test -f "$ac_dir/shtool"; then
2105 ac_install_sh="$ac_aux_dir/shtool install -c"
2109 if test -z "$ac_aux_dir"; then
2110 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2111 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2112 { (exit 1); exit 1; }; }
2115 # These three variables are undocumented and unsupported,
2116 # and are intended to be withdrawn in a future Autoconf release.
2117 # They can cause serious problems if a builder's source tree is in a directory
2118 # whose full name contains unusual characters.
2119 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2120 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2121 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2124 # Make sure we can run config.sub.
2125 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2126 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2127 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2128 { (exit 1); exit 1; }; }
2130 { echo "$as_me:$LINENO: checking build system type" >&5
2131 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2132 if test "${ac_cv_build+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 ac_build_alias=$build_alias
2136 test "x$ac_build_alias" = x &&
2137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138 test "x$ac_build_alias" = x &&
2139 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2140 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2141 { (exit 1); exit 1; }; }
2142 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2149 echo "${ECHO_T}$ac_cv_build" >&6; }
2150 case $ac_cv_build in
2152 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2153 echo "$as_me: error: invalid value of canonical build" >&2;}
2154 { (exit 1); exit 1; }; };;
2157 ac_save_IFS=$IFS; IFS='-'
2163 # Remember, the first character of IFS is used to create $*,
2164 # except with old shells:
2167 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2170 { echo "$as_me:$LINENO: checking host system type" >&5
2171 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2172 if test "${ac_cv_host+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test "x$host_alias" = x; then
2176 ac_cv_host=$ac_cv_build
2178 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2179 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2180 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2181 { (exit 1); exit 1; }; }
2185 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2186 echo "${ECHO_T}$ac_cv_host" >&6; }
2189 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2190 echo "$as_me: error: invalid value of canonical host" >&2;}
2191 { (exit 1); exit 1; }; };;
2194 ac_save_IFS=$IFS; IFS='-'
2200 # Remember, the first character of IFS is used to create $*,
2201 # except with old shells:
2204 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2208 # check existence of the package
2211 # specify output header file
2212 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2219 cat >>confdefs.h <<\_ACEOF
2220 #define _GNU_SOURCE 1
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229 if test -n "$ac_tool_prefix"; then
2230 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2231 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 if test -n "$CC"; then
2259 { echo "$as_me:$LINENO: result: $CC" >&5
2260 echo "${ECHO_T}$CC" >&6; }
2262 { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2268 if test -z "$ac_cv_prog_CC"; then
2270 # Extract the first word of "gcc", so it can be a program name with args.
2271 set dummy gcc; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_ac_ct_CC="gcc"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298 if test -n "$ac_ct_CC"; then
2299 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300 echo "${ECHO_T}$ac_ct_CC" >&6; }
2302 { echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6; }
2306 if test "x$ac_ct_CC" = x; then
2309 case $cross_compiling:$ac_tool_warned in
2311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2312 whose name does not start with the host triplet. If you think this
2313 configuration is useful to you, please write to autoconf@gnu.org." >&5
2314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet. If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2317 ac_tool_warned=yes ;;
2325 if test -z "$CC"; then
2326 if test -n "$ac_tool_prefix"; then
2327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2328 set dummy ${ac_tool_prefix}cc; ac_word=$2
2329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2331 if test "${ac_cv_prog_CC+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 if test -n "$CC"; then
2335 ac_cv_prog_CC="$CC" # Let the user override the test.
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_CC="${ac_tool_prefix}cc"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 if test -n "$CC"; then
2356 { echo "$as_me:$LINENO: result: $CC" >&5
2357 echo "${ECHO_T}$CC" >&6; }
2359 { echo "$as_me:$LINENO: result: no" >&5
2360 echo "${ECHO_T}no" >&6; }
2366 if test -z "$CC"; then
2367 # Extract the first word of "cc", so it can be a program name with args.
2368 set dummy cc; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_CC+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC="$CC" # Let the user override the test.
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2386 ac_prog_rejected=yes
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 if test $ac_prog_rejected = yes; then
2398 # We found a bogon in the path, so make sure we never use it.
2399 set dummy $ac_cv_prog_CC
2401 if test $# != 0; then
2402 # We chose a different compiler from the bogus one.
2403 # However, it has the same basename, so the bogon will be chosen
2404 # first if we set CC to just the basename; use the full file name.
2406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2412 if test -n "$CC"; then
2413 { echo "$as_me:$LINENO: result: $CC" >&5
2414 echo "${ECHO_T}$CC" >&6; }
2416 { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2422 if test -z "$CC"; then
2423 if test -n "$ac_tool_prefix"; then
2424 for ac_prog in cl.exe
2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 if test -n "$CC"; then
2455 { echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6; }
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2463 test -n "$CC" && break
2466 if test -z "$CC"; then
2468 for ac_prog in cl.exe
2470 # Extract the first word of "$ac_prog", so it can be a program name with args.
2471 set dummy $ac_prog; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_CC="$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6; }
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2507 test -n "$ac_ct_CC" && break
2510 if test "x$ac_ct_CC" = x; then
2513 case $cross_compiling:$ac_tool_warned in
2515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2516 whose name does not start with the host triplet. If you think this
2517 configuration is useful to you, please write to autoconf@gnu.org." >&5
2518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2519 whose name does not start with the host triplet. If you think this
2520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2521 ac_tool_warned=yes ;;
2530 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: no acceptable C compiler found in \$PATH
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2536 # Provide some information about the compiler.
2537 echo "$as_me:$LINENO: checking for C compiler version" >&5
2538 ac_compiler=`set X $ac_compile; echo $2`
2539 { (ac_try="$ac_compiler --version >&5"
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_compiler --version >&5") 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }
2549 { (ac_try="$ac_compiler -v >&5"
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_compiler -v >&5") 2>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }
2559 { (ac_try="$ac_compiler -V >&5"
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_compiler -V >&5") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }
2570 cat >conftest.$ac_ext <<_ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2585 ac_clean_files_save=$ac_clean_files
2586 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2587 # Try to create an executable without -o first, disregard a.out.
2588 # It will help us diagnose broken compilers, and finding out an intuition
2590 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2591 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2592 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2594 # List of possible output files, starting from the most likely.
2595 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2596 # only as a last resort. b.out is created by i960 compilers.
2597 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2599 # The IRIX 6 linker writes into existing files which may not be
2600 # executable, retaining their permissions. Remove them first so a
2601 # subsequent execution test works.
2603 for ac_file in $ac_files
2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2607 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2612 if { (ac_try="$ac_link_default"
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_link_default") 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; then
2622 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2623 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2624 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2625 # so that the user can short-circuit this test for compilers unknown to
2627 for ac_file in $ac_files ''
2629 test -f "$ac_file" || continue
2631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2634 # We found the default executable, but exeext='' is most
2638 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2640 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2642 # We set ac_cv_exeext here because the later test for it is not
2643 # safe: cross compilers may not add the suffix if given an `-o'
2644 # argument, so we may need to know it at that point already.
2645 # Even if this section looks crufty: it has the advantage of
2652 test "$ac_cv_exeext" = no && ac_cv_exeext=
2658 { echo "$as_me:$LINENO: result: $ac_file" >&5
2659 echo "${ECHO_T}$ac_file" >&6; }
2660 if test -z "$ac_file"; then
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: C compiler cannot create executables
2667 See \`config.log' for more details." >&2;}
2668 { (exit 77); exit 77; }; }
2671 ac_exeext=$ac_cv_exeext
2673 # Check that the compiler produces executables we can run. If not, either
2674 # the compiler is broken, or we cross compile.
2675 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2676 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2677 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2678 # If not cross compiling, check that we can run a simple program.
2679 if test "$cross_compiling" != yes; then
2680 if { ac_try='./$ac_file'
2681 { (case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_try") 2>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2692 if test "$cross_compiling" = maybe; then
2695 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2696 If you meant to cross compile, use \`--host'.
2697 See \`config.log' for more details." >&5
2698 echo "$as_me: error: cannot run C compiled programs.
2699 If you meant to cross compile, use \`--host'.
2700 See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }
2705 { echo "$as_me:$LINENO: result: yes" >&5
2706 echo "${ECHO_T}yes" >&6; }
2708 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2709 ac_clean_files=$ac_clean_files_save
2710 # Check that the compiler produces executables we can run. If not, either
2711 # the compiler is broken, or we cross compile.
2712 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2713 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2714 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2715 echo "${ECHO_T}$cross_compiling" >&6; }
2717 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2718 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2719 if { (ac_try="$ac_link"
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_link") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; then
2729 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2730 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2731 # work properly (i.e., refer to `conftest.exe'), while it won't with
2733 for ac_file in conftest.exe conftest conftest.*; do
2734 test -f "$ac_file" || continue
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2737 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2743 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2744 See \`config.log' for more details." >&5
2745 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2746 See \`config.log' for more details." >&2;}
2747 { (exit 1); exit 1; }; }
2750 rm -f conftest$ac_cv_exeext
2751 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2752 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2754 rm -f conftest.$ac_ext
2755 EXEEXT=$ac_cv_exeext
2757 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2758 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2759 if test "${ac_cv_objext+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 cat >conftest.$ac_ext <<_ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2777 rm -f conftest.o conftest.obj
2778 if { (ac_try="$ac_compile"
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784 (eval "$ac_compile") 2>&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; then
2788 for ac_file in conftest.o conftest.obj conftest.*; do
2789 test -f "$ac_file" || continue;
2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2801 See \`config.log' for more details." >&5
2802 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2803 See \`config.log' for more details." >&2;}
2804 { (exit 1); exit 1; }; }
2807 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2809 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2810 echo "${ECHO_T}$ac_cv_objext" >&6; }
2811 OBJEXT=$ac_cv_objext
2813 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2814 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2815 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2836 rm -f conftest.$ac_objext
2837 if { (ac_try="$ac_compile"
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_compile") 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } && {
2850 test -z "$ac_c_werror_flag" ||
2851 test ! -s conftest.err
2852 } && test -s conftest.$ac_objext; then
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2865 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2866 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2867 GCC=`test $ac_compiler_gnu = yes && echo yes`
2868 ac_test_CFLAGS=${CFLAGS+set}
2869 ac_save_CFLAGS=$CFLAGS
2870 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2871 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2872 if test "${ac_cv_prog_cc_g+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 ac_save_c_werror_flag=$ac_c_werror_flag
2876 ac_c_werror_flag=yes
2879 cat >conftest.$ac_ext <<_ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2894 rm -f conftest.$ac_objext
2895 if { (ac_try="$ac_compile"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compile") 2>conftest.er1
2903 grep -v '^ *+' conftest.er1 >conftest.err
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } && {
2908 test -z "$ac_c_werror_flag" ||
2909 test ! -s conftest.err
2910 } && test -s conftest.$ac_objext; then
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2932 rm -f conftest.$ac_objext
2933 if { (ac_try="$ac_compile"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compile") 2>conftest.er1
2941 grep -v '^ *+' conftest.er1 >conftest.err
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } && {
2946 test -z "$ac_c_werror_flag" ||
2947 test ! -s conftest.err
2948 } && test -s conftest.$ac_objext; then
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2954 ac_c_werror_flag=$ac_save_c_werror_flag
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } && {
2985 test -z "$ac_c_werror_flag" ||
2986 test ! -s conftest.err
2987 } && test -s conftest.$ac_objext; then
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 ac_c_werror_flag=$ac_save_c_werror_flag
3005 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3006 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3007 if test "$ac_test_CFLAGS" = set; then
3008 CFLAGS=$ac_save_CFLAGS
3009 elif test $ac_cv_prog_cc_g = yes; then
3010 if test "$GCC" = yes; then
3016 if test "$GCC" = yes; then
3022 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3023 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cc_c89+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 ac_cv_prog_cc_c89=no
3029 cat >conftest.$ac_ext <<_ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3037 #include <sys/types.h>
3038 #include <sys/stat.h>
3039 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3040 struct buf { int x; };
3041 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3042 static char *e (p, i)
3048 static char *f (char * (*g) (char **, int), char **p, ...)
3053 s = g (p, va_arg (v,int));
3058 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3059 function prototypes and stuff, but not '\xHH' hex character constants.
3060 These don't provoke an error unfortunately, instead are silently treated
3061 as 'x'. The following induces an error, until -std is added to get
3062 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3063 array size at least. It's necessary to write '\x00'==0 to get something
3064 that's true only with -std. */
3065 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3067 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3068 inside strings and character constants. */
3070 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3072 int test (int i, double x);
3073 struct s1 {int (*f) (int a);};
3074 struct s2 {int (*f) (double a);};
3075 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3081 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3086 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3087 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3089 CC="$ac_save_CC $ac_arg"
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } && {
3104 test -z "$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 } && test -s conftest.$ac_objext; then
3107 ac_cv_prog_cc_c89=$ac_arg
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3115 rm -f core conftest.err conftest.$ac_objext
3116 test "x$ac_cv_prog_cc_c89" != "xno" && break
3118 rm -f conftest.$ac_ext
3123 case "x$ac_cv_prog_cc_c89" in
3125 { echo "$as_me:$LINENO: result: none needed" >&5
3126 echo "${ECHO_T}none needed" >&6; } ;;
3128 { echo "$as_me:$LINENO: result: unsupported" >&5
3129 echo "${ECHO_T}unsupported" >&6; } ;;
3131 CC="$CC $ac_cv_prog_cc_c89"
3132 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3133 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3150 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3151 # On Suns, sometimes $CPP names a directory.
3152 if test -n "$CPP" && test -d "$CPP"; then
3155 if test -z "$CPP"; then
3156 if test "${ac_cv_prog_CPP+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 # Double quotes because CPP needs to be expanded
3160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3163 for ac_c_preproc_warn_flag in '' yes
3165 # Use a header file that comes with gcc, so configuring glibc
3166 # with a fresh cross-compiler works.
3167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3168 # <limits.h> exists even on freestanding compilers.
3169 # On the NeXT, cc -E runs the code through the compiler's parser,
3170 # not just through cpp. "Syntax error" is here to catch this case.
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3178 # include <limits.h>
3180 # include <assert.h>
3184 if { (ac_try="$ac_cpp conftest.$ac_ext"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3192 grep -v '^ *+' conftest.er1 >conftest.err
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } >/dev/null && {
3197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3198 test ! -s conftest.err
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3205 # Broken: fails on valid input.
3209 rm -f conftest.err conftest.$ac_ext
3211 # OK, works on sane cases. Now check whether nonexistent headers
3212 # can be detected and how.
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219 #include <ac_nonexistent.h>
3221 if { (ac_try="$ac_cpp conftest.$ac_ext"
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3229 grep -v '^ *+' conftest.er1 >conftest.err
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } >/dev/null && {
3234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3235 test ! -s conftest.err
3237 # Broken: success on invalid input.
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 # Passes both tests.
3248 rm -f conftest.err conftest.$ac_ext
3251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3252 rm -f conftest.err conftest.$ac_ext
3253 if $ac_preproc_ok; then
3265 { echo "$as_me:$LINENO: result: $CPP" >&5
3266 echo "${ECHO_T}$CPP" >&6; }
3268 for ac_c_preproc_warn_flag in '' yes
3270 # Use a header file that comes with gcc, so configuring glibc
3271 # with a fresh cross-compiler works.
3272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3273 # <limits.h> exists even on freestanding compilers.
3274 # On the NeXT, cc -E runs the code through the compiler's parser,
3275 # not just through cpp. "Syntax error" is here to catch this case.
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3283 # include <limits.h>
3285 # include <assert.h>
3289 if { (ac_try="$ac_cpp conftest.$ac_ext"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null && {
3302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3303 test ! -s conftest.err
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 # Broken: fails on valid input.
3314 rm -f conftest.err conftest.$ac_ext
3316 # OK, works on sane cases. Now check whether nonexistent headers
3317 # can be detected and how.
3318 cat >conftest.$ac_ext <<_ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3324 #include <ac_nonexistent.h>
3326 if { (ac_try="$ac_cpp conftest.$ac_ext"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3334 grep -v '^ *+' conftest.er1 >conftest.err
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } >/dev/null && {
3339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3340 test ! -s conftest.err
3342 # Broken: success on invalid input.
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 # Passes both tests.
3353 rm -f conftest.err conftest.$ac_ext
3356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3357 rm -f conftest.err conftest.$ac_ext
3358 if $ac_preproc_ok; then
3361 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3362 See \`config.log' for more details." >&5
3363 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3364 See \`config.log' for more details." >&2;}
3365 { (exit 1); exit 1; }; }
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3376 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3377 if test "${ac_cv_path_GREP+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 # Extract the first word of "grep ggrep" to use in msg output
3381 if test -z "$GREP"; then
3382 set dummy grep ggrep; ac_prog_name=$2
3383 if test "${ac_cv_path_GREP+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 ac_path_GREP_found=false
3387 # Loop through the user's path and test for each of PROGNAME-LIST
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3392 test -z "$as_dir" && as_dir=.
3393 for ac_prog in grep ggrep; do
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3396 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3397 # Check for GNU ac_path_GREP and select it if it is found.
3398 # Check for GNU $ac_path_GREP
3399 case `"$ac_path_GREP" --version 2>&1` in
3401 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3404 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3407 cat "conftest.in" "conftest.in" >"conftest.tmp"
3408 mv "conftest.tmp" "conftest.in"
3409 cp "conftest.in" "conftest.nl"
3410 echo 'GREP' >> "conftest.nl"
3411 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3413 ac_count=`expr $ac_count + 1`
3414 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3415 # Best one so far, save it but keep looking for a better one
3416 ac_cv_path_GREP="$ac_path_GREP"
3417 ac_path_GREP_max=$ac_count
3419 # 10*(2^10) chars as input seems more than enough
3420 test $ac_count -gt 10 && break
3422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3426 $ac_path_GREP_found && break 3
3436 GREP="$ac_cv_path_GREP"
3437 if test -z "$GREP"; then
3438 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3439 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3440 { (exit 1); exit 1; }; }
3444 ac_cv_path_GREP=$GREP
3449 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3450 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3451 GREP="$ac_cv_path_GREP"
3454 { echo "$as_me:$LINENO: checking for egrep" >&5
3455 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3456 if test "${ac_cv_path_EGREP+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3460 then ac_cv_path_EGREP="$GREP -E"
3462 # Extract the first word of "egrep" to use in msg output
3463 if test -z "$EGREP"; then
3464 set dummy egrep; ac_prog_name=$2
3465 if test "${ac_cv_path_EGREP+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 ac_path_EGREP_found=false
3469 # Loop through the user's path and test for each of PROGNAME-LIST
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3474 test -z "$as_dir" && as_dir=.
3475 for ac_prog in egrep; do
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3478 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3479 # Check for GNU ac_path_EGREP and select it if it is found.
3480 # Check for GNU $ac_path_EGREP
3481 case `"$ac_path_EGREP" --version 2>&1` in
3483 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3486 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3489 cat "conftest.in" "conftest.in" >"conftest.tmp"
3490 mv "conftest.tmp" "conftest.in"
3491 cp "conftest.in" "conftest.nl"
3492 echo 'EGREP' >> "conftest.nl"
3493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3495 ac_count=`expr $ac_count + 1`
3496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3497 # Best one so far, save it but keep looking for a better one
3498 ac_cv_path_EGREP="$ac_path_EGREP"
3499 ac_path_EGREP_max=$ac_count
3501 # 10*(2^10) chars as input seems more than enough
3502 test $ac_count -gt 10 && break
3504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3508 $ac_path_EGREP_found && break 3
3518 EGREP="$ac_cv_path_EGREP"
3519 if test -z "$EGREP"; then
3520 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3521 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3522 { (exit 1); exit 1; }; }
3526 ac_cv_path_EGREP=$EGREP
3532 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3533 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3534 EGREP="$ac_cv_path_EGREP"
3538 { echo "$as_me:$LINENO: checking for AIX" >&5
3539 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3552 $EGREP "yes" >/dev/null 2>&1; then
3553 { echo "$as_me:$LINENO: result: yes" >&5
3554 echo "${ECHO_T}yes" >&6; }
3555 cat >>confdefs.h <<\_ACEOF
3556 #define _ALL_SOURCE 1
3560 { echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6; }
3566 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3568 if test "${ac_cv_header_stdc+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 cat >conftest.$ac_ext <<_ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3590 rm -f conftest.$ac_objext
3591 if { (ac_try="$ac_compile"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_compile") 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } && {
3604 test -z "$ac_c_werror_flag" ||
3605 test ! -s conftest.err
3606 } && test -s conftest.$ac_objext; then
3607 ac_cv_header_stdc=yes
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3612 ac_cv_header_stdc=no
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 if test $ac_cv_header_stdc = yes; then
3618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3619 cat >conftest.$ac_ext <<_ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629 $EGREP "memchr" >/dev/null 2>&1; then
3632 ac_cv_header_stdc=no
3638 if test $ac_cv_header_stdc = yes; then
3639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 $EGREP "free" >/dev/null 2>&1; then
3653 ac_cv_header_stdc=no
3659 if test $ac_cv_header_stdc = yes; then
3660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3661 if test "$cross_compiling" = yes; then
3664 cat >conftest.$ac_ext <<_ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3672 #if ((' ' & 0x0FF) == 0x020)
3673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3676 # define ISLOWER(c) \
3677 (('a' <= (c) && (c) <= 'i') \
3678 || ('j' <= (c) && (c) <= 'r') \
3679 || ('s' <= (c) && (c) <= 'z'))
3680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3688 for (i = 0; i < 256; i++)
3689 if (XOR (islower (i), ISLOWER (i))
3690 || toupper (i) != TOUPPER (i))
3695 rm -f conftest$ac_exeext
3696 if { (ac_try="$ac_link"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_link") 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3706 { (case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_try") 2>&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3717 echo "$as_me: program exited with status $ac_status" >&5
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3722 ac_cv_header_stdc=no
3724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3730 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3731 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3732 if test $ac_cv_header_stdc = yes; then
3734 cat >>confdefs.h <<\_ACEOF
3735 #define STDC_HEADERS 1
3740 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3750 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3751 inttypes.h stdint.h unistd.h
3753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 $ac_includes_default
3767 #include <$ac_header>
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_compile") 2>conftest.er1
3778 grep -v '^ *+' conftest.er1 >conftest.err
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } && {
3783 test -z "$ac_c_werror_flag" ||
3784 test ! -s conftest.err
3785 } && test -s conftest.$ac_objext; then
3786 eval "$as_ac_Header=yes"
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3791 eval "$as_ac_Header=no"
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 ac_res=`eval echo '${'$as_ac_Header'}'`
3797 { echo "$as_me:$LINENO: result: $ac_res" >&5
3798 echo "${ECHO_T}$ac_res" >&6; }
3799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3800 cat >>confdefs.h <<_ACEOF
3801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3809 if test "${ac_cv_header_minix_config_h+set}" = set; then
3810 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3811 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3812 if test "${ac_cv_header_minix_config_h+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3816 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3818 # Is the header compilable?
3819 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3820 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3821 cat >conftest.$ac_ext <<_ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 $ac_includes_default
3828 #include <minix/config.h>
3830 rm -f conftest.$ac_objext
3831 if { (ac_try="$ac_compile"
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_compile") 2>conftest.er1
3839 grep -v '^ *+' conftest.er1 >conftest.err
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } && {
3844 test -z "$ac_c_werror_flag" ||
3845 test ! -s conftest.err
3846 } && test -s conftest.$ac_objext; then
3847 ac_header_compiler=yes
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 ac_header_compiler=no
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3857 echo "${ECHO_T}$ac_header_compiler" >&6; }
3859 # Is the header present?
3860 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3861 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 #include <minix/config.h>
3870 if { (ac_try="$ac_cpp conftest.$ac_ext"
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3878 grep -v '^ *+' conftest.er1 >conftest.err
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } >/dev/null && {
3883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3884 test ! -s conftest.err
3886 ac_header_preproc=yes
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 ac_header_preproc=no
3894 rm -f conftest.err conftest.$ac_ext
3895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3896 echo "${ECHO_T}$ac_header_preproc" >&6; }
3898 # So? What about this header?
3899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3901 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3902 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3904 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3905 ac_header_preproc=yes
3908 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3909 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3910 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3911 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3912 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3913 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3914 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3915 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3916 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3917 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3918 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3919 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3921 ## ------------------------------- ##
3922 ## Report this to www.asterisk.org ##
3923 ## ------------------------------- ##
3925 ) | sed "s/^/$as_me: WARNING: /" >&2
3928 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3929 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3930 if test "${ac_cv_header_minix_config_h+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 ac_cv_header_minix_config_h=$ac_header_preproc
3935 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3936 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3939 if test $ac_cv_header_minix_config_h = yes; then
3946 if test "$MINIX" = yes; then
3948 cat >>confdefs.h <<\_ACEOF
3949 #define _POSIX_SOURCE 1
3953 cat >>confdefs.h <<\_ACEOF
3954 #define _POSIX_1_SOURCE 2
3958 cat >>confdefs.h <<\_ACEOF
3974 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3975 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3976 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 cat >conftest.$ac_ext <<_ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3986 # define __EXTENSIONS__ 1
3987 $ac_includes_default
3996 rm -f conftest.$ac_objext
3997 if { (ac_try="$ac_compile"
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_compile") 2>conftest.er1
4005 grep -v '^ *+' conftest.er1 >conftest.err
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && {
4010 test -z "$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4012 } && test -s conftest.$ac_objext; then
4013 ac_cv_safe_to_define___extensions__=yes
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 ac_cv_safe_to_define___extensions__=no
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4024 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4025 test $ac_cv_safe_to_define___extensions__ = yes &&
4026 cat >>confdefs.h <<\_ACEOF
4027 #define __EXTENSIONS__ 1
4030 cat >>confdefs.h <<\_ACEOF
4031 #define _POSIX_PTHREAD_SEMANTICS 1
4034 cat >>confdefs.h <<\_ACEOF
4035 #define _TANDEM_SOURCE 1
4038 # note- does not work on FreeBSD
4040 case "${host_os}" in
4042 ac_default_prefix=/usr/local
4043 CPPFLAGS=-I/usr/local/include
4044 LDFLAGS=-L/usr/local/lib
4048 ac_default_prefix=/usr
4049 if test ${sysconfdir} = '${prefix}/etc'; then
4052 if test ${mandir} = '${prefix}/man'; then
4053 mandir=/usr/share/man
4058 if test ${localstatedir} = '${prefix}/var'; then
4062 BUILD_PLATFORM=${build}
4063 BUILD_CPU=${build_cpu}
4064 BUILD_VENDOR=${build_vendor}
4065 BUILD_OS=${build_os}
4072 HOST_PLATFORM=${host}
4073 HOST_CPU=${host_cpu}
4074 HOST_VENDOR=${host_vendor}
4084 case "${host_os}" in
4114 if test -n "$ac_tool_prefix"; then
4115 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4116 set dummy ${ac_tool_prefix}uname; ac_word=$2
4117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4119 if test "${ac_cv_path_UNAME+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 UNAME=$ac_cv_path_UNAME
4146 if test -n "$UNAME"; then
4147 { echo "$as_me:$LINENO: result: $UNAME" >&5
4148 echo "${ECHO_T}$UNAME" >&6; }
4150 { echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6; }
4156 if test -z "$ac_cv_path_UNAME"; then
4158 # Extract the first word of "uname", so it can be a program name with args.
4159 set dummy uname; ac_word=$2
4160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4162 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 case $ac_pt_UNAME in
4167 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4189 if test -n "$ac_pt_UNAME"; then
4190 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4191 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4193 { echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6; }
4197 if test "x$ac_pt_UNAME" = x; then
4200 case $cross_compiling:$ac_tool_warned in
4202 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4203 whose name does not start with the host triplet. If you think this
4204 configuration is useful to you, please write to autoconf@gnu.org." >&5
4205 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4206 whose name does not start with the host triplet. If you think this
4207 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4208 ac_tool_warned=yes ;;
4213 UNAME="$ac_cv_path_UNAME"
4216 if test ! x"${UNAME}" = xNo; then
4217 PBX_OSREV=$(${UNAME} -r)
4227 # cross-compile checks
4228 if test "${cross_compiling}" = "yes";
4230 if test -n "$ac_tool_prefix"; then
4231 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4232 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4235 if test "${ac_cv_prog_CC+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 if test -n "$CC"; then
4260 { echo "$as_me:$LINENO: result: $CC" >&5
4261 echo "${ECHO_T}$CC" >&6; }
4263 { echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6; }
4269 if test -z "$ac_cv_prog_CC"; then
4271 # Extract the first word of "gcc", so it can be a program name with args.
4272 set dummy gcc; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 if test -n "$ac_ct_CC"; then
4279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_prog_ac_ct_CC="gcc"
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4299 if test -n "$ac_ct_CC"; then
4300 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4301 echo "${ECHO_T}$ac_ct_CC" >&6; }
4303 { echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6; }
4307 if test "x$ac_ct_CC" = x; then
4310 case $cross_compiling:$ac_tool_warned in
4312 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4313 whose name does not start with the host triplet. If you think this
4314 configuration is useful to you, please write to autoconf@gnu.org." >&5
4315 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4316 whose name does not start with the host triplet. If you think this
4317 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4318 ac_tool_warned=yes ;;
4326 if test -n "$ac_tool_prefix"; then
4327 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4328 set dummy ${ac_tool_prefix}g++; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_prog_CXX+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 if test -n "$CXX"; then
4335 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 if test -n "$CXX"; then
4356 { echo "$as_me:$LINENO: result: $CXX" >&5
4357 echo "${ECHO_T}$CXX" >&6; }
4359 { echo "$as_me:$LINENO: result: no" >&5
4360 echo "${ECHO_T}no" >&6; }
4365 if test -z "$ac_cv_prog_CXX"; then
4367 # Extract the first word of "g++", so it can be a program name with args.
4368 set dummy g++; ac_word=$2
4369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4371 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 if test -n "$ac_ct_CXX"; then
4375 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_prog_ac_ct_CXX="g++"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4395 if test -n "$ac_ct_CXX"; then
4396 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4397 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4399 { echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6; }
4403 if test "x$ac_ct_CXX" = x; then
4406 case $cross_compiling:$ac_tool_warned in
4408 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4409 whose name does not start with the host triplet. If you think this
4410 configuration is useful to you, please write to autoconf@gnu.org." >&5
4411 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4412 whose name does not start with the host triplet. If you think this
4413 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4414 ac_tool_warned=yes ;;
4419 CXX="$ac_cv_prog_CXX"
4422 if test -n "$ac_tool_prefix"; then
4423 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4424 set dummy ${ac_tool_prefix}ld; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_LD+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if test -n "$LD"; then
4431 ac_cv_prog_LD="$LD" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_LD="${ac_tool_prefix}ld"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 if test -n "$LD"; then
4452 { echo "$as_me:$LINENO: result: $LD" >&5
4453 echo "${ECHO_T}$LD" >&6; }
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4461 if test -z "$ac_cv_prog_LD"; then
4463 # Extract the first word of "ld", so it can be a program name with args.
4464 set dummy ld; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 if test -n "$ac_ct_LD"; then
4471 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 ac_cv_prog_ac_ct_LD="ld"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4491 if test -n "$ac_ct_LD"; then
4492 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4493 echo "${ECHO_T}$ac_ct_LD" >&6; }
4495 { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4499 if test "x$ac_ct_LD" = x; then
4502 case $cross_compiling:$ac_tool_warned in
4504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4505 whose name does not start with the host triplet. If you think this
4506 configuration is useful to you, please write to autoconf@gnu.org." >&5
4507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4508 whose name does not start with the host triplet. If you think this
4509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4510 ac_tool_warned=yes ;;
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4523 if test "${ac_cv_prog_RANLIB+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 if test -n "$RANLIB"; then
4527 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 RANLIB=$ac_cv_prog_RANLIB
4547 if test -n "$RANLIB"; then
4548 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4549 echo "${ECHO_T}$RANLIB" >&6; }
4551 { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4557 if test -z "$ac_cv_prog_RANLIB"; then
4558 ac_ct_RANLIB=$RANLIB
4559 # Extract the first word of "ranlib", so it can be a program name with args.
4560 set dummy ranlib; ac_word=$2
4561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4563 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 if test -n "$ac_ct_RANLIB"; then
4567 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_ac_ct_RANLIB="ranlib"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4587 if test -n "$ac_ct_RANLIB"; then
4588 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4589 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4591 { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4595 if test "x$ac_ct_RANLIB" = x; then
4598 case $cross_compiling:$ac_tool_warned in
4600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4601 whose name does not start with the host triplet. If you think this
4602 configuration is useful to you, please write to autoconf@gnu.org." >&5
4603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4604 whose name does not start with the host triplet. If you think this
4605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4606 ac_tool_warned=yes ;;
4608 RANLIB=$ac_ct_RANLIB
4611 RANLIB="$ac_cv_prog_RANLIB"
4616 # Checks for programs.
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 if test -n "$ac_tool_prefix"; then
4623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_prog_CC+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 if test -n "$CC"; then
4631 ac_cv_prog_CC="$CC" # Let the user override the test.
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 if test -n "$CC"; then
4652 { echo "$as_me:$LINENO: result: $CC" >&5
4653 echo "${ECHO_T}$CC" >&6; }
4655 { echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6; }
4661 if test -z "$ac_cv_prog_CC"; then
4663 # Extract the first word of "gcc", so it can be a program name with args.
4664 set dummy gcc; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 if test -n "$ac_ct_CC"; then
4671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_ac_ct_CC="gcc"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4691 if test -n "$ac_ct_CC"; then
4692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4693 echo "${ECHO_T}$ac_ct_CC" >&6; }
4695 { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4699 if test "x$ac_ct_CC" = x; then
4702 case $cross_compiling:$ac_tool_warned in
4704 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4705 whose name does not start with the host triplet. If you think this
4706 configuration is useful to you, please write to autoconf@gnu.org." >&5
4707 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4708 whose name does not start with the host triplet. If you think this
4709 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4710 ac_tool_warned=yes ;;
4718 if test -z "$CC"; then
4719 if test -n "$ac_tool_prefix"; then
4720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4721 set dummy ${ac_tool_prefix}cc; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_CC+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 if test -n "$CC"; then
4728 ac_cv_prog_CC="$CC" # Let the user override the test.
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_CC="${ac_tool_prefix}cc"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5