2 # From configure.ac Revision: 49022 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
582 ac_unique_file
="asterisk"
583 ac_unique_file
="main/asterisk.c"
584 # Factoring default headers for most tests.
585 ac_includes_default
="\
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
597 # ifdef HAVE_STDLIB_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
631 program_transform_name
859 ac_precious_vars
='build_alias
874 # Initialize some variables set by options.
876 ac_init_version
=false
877 # The variables have the same names as the options, with
878 # dashes changed to underlines.
886 program_transform_name
=s
,x
,x
,
894 # Installation directory options.
895 # These are left unexpanded so users can "make install exec_prefix=/foo"
896 # and all the variables that are supposed to be based on exec_prefix
897 # by default will actually change.
898 # Use braces instead of parens because sh, perl, etc. also accept them.
899 # (The list follows the same order as the GNU Coding Standards.)
900 bindir
='${exec_prefix}/bin'
901 sbindir
='${exec_prefix}/sbin'
902 libexecdir
='${exec_prefix}/libexec'
903 datarootdir
='${prefix}/share'
904 datadir
='${datarootdir}'
905 sysconfdir
='${prefix}/etc'
906 sharedstatedir
='${prefix}/com'
907 localstatedir
='${prefix}/var'
908 includedir
='${prefix}/include'
909 oldincludedir
='/usr/include'
910 docdir
='${datarootdir}/doc/${PACKAGE}'
911 infodir
='${datarootdir}/info'
916 libdir
='${exec_prefix}/lib'
917 localedir
='${datarootdir}/locale'
918 mandir
='${datarootdir}/man'
924 # If the previous option needs an argument, assign it.
925 if test -n "$ac_prev"; then
926 eval $ac_prev=\
$ac_option
932 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936 # Accept the important Cygnus configure options, so we can diagnose typos.
938 case $ac_dashdash$ac_option in
942 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
944 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
947 -build |
--build |
--buil |
--bui |
--bu)
948 ac_prev
=build_alias
;;
949 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
950 build_alias
=$ac_optarg ;;
952 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
953 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
954 ac_prev
=cache_file
;;
955 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
956 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
957 cache_file
=$ac_optarg ;;
960 cache_file
=config.cache
;;
962 -datadir |
--datadir |
--datadi |
--datad)
964 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
965 datadir
=$ac_optarg ;;
967 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
968 |
--dataroo |
--dataro |
--datar)
969 ac_prev
=datarootdir
;;
970 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
971 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
972 datarootdir
=$ac_optarg ;;
974 -disable-* |
--disable-*)
975 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
978 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
979 { (exit 1); exit 1; }; }
980 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
981 eval enable_
$ac_feature=no
;;
983 -docdir |
--docdir |
--docdi |
--doc |
--do)
985 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
988 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
990 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
993 -enable-* |
--enable-*)
994 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
997 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998 { (exit 1); exit 1; }; }
999 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1000 eval enable_
$ac_feature=\
$ac_optarg ;;
1002 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1003 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1004 |
--exec |
--exe |
--ex)
1005 ac_prev
=exec_prefix
;;
1006 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1007 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1008 |
--exec=* |
--exe=* |
--ex=*)
1009 exec_prefix
=$ac_optarg ;;
1011 -gas |
--gas |
--ga |
--g)
1012 # Obsolete; use --with-gas.
1015 -help |
--help |
--hel |
--he |
-h)
1016 ac_init_help
=long
;;
1017 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1018 ac_init_help
=recursive
;;
1019 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1020 ac_init_help
=short
;;
1022 -host |
--host |
--hos |
--ho)
1023 ac_prev
=host_alias
;;
1024 -host=* |
--host=* |
--hos=* |
--ho=*)
1025 host_alias
=$ac_optarg ;;
1027 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1029 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1031 htmldir
=$ac_optarg ;;
1033 -includedir |
--includedir |
--includedi |
--included |
--include \
1034 |
--includ |
--inclu |
--incl |
--inc)
1035 ac_prev
=includedir
;;
1036 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1037 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1038 includedir
=$ac_optarg ;;
1040 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1042 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1043 infodir
=$ac_optarg ;;
1045 -libdir |
--libdir |
--libdi |
--libd)
1047 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1048 libdir
=$ac_optarg ;;
1050 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1051 |
--libexe |
--libex |
--libe)
1052 ac_prev
=libexecdir
;;
1053 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1054 |
--libexe=* |
--libex=* |
--libe=*)
1055 libexecdir
=$ac_optarg ;;
1057 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1058 ac_prev
=localedir
;;
1059 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1060 localedir
=$ac_optarg ;;
1062 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1063 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1064 ac_prev
=localstatedir
;;
1065 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1066 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1067 localstatedir
=$ac_optarg ;;
1069 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1071 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1072 mandir
=$ac_optarg ;;
1074 -nfp |
--nfp |
--nf)
1075 # Obsolete; use --without-fp.
1078 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1079 |
--no-cr |
--no-c |
-n)
1082 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1083 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1086 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1087 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1088 |
--oldin |
--oldi |
--old |
--ol |
--o)
1089 ac_prev
=oldincludedir
;;
1090 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1091 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1092 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1093 oldincludedir
=$ac_optarg ;;
1095 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1097 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1098 prefix
=$ac_optarg ;;
1100 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1101 |
--program-pre |
--program-pr |
--program-p)
1102 ac_prev
=program_prefix
;;
1103 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1104 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1105 program_prefix
=$ac_optarg ;;
1107 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1108 |
--program-suf |
--program-su |
--program-s)
1109 ac_prev
=program_suffix
;;
1110 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1111 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1112 program_suffix
=$ac_optarg ;;
1114 -program-transform-name |
--program-transform-name \
1115 |
--program-transform-nam |
--program-transform-na \
1116 |
--program-transform-n |
--program-transform- \
1117 |
--program-transform |
--program-transfor \
1118 |
--program-transfo |
--program-transf \
1119 |
--program-trans |
--program-tran \
1120 |
--progr-tra |
--program-tr |
--program-t)
1121 ac_prev
=program_transform_name
;;
1122 -program-transform-name=* |
--program-transform-name=* \
1123 |
--program-transform-nam=* |
--program-transform-na=* \
1124 |
--program-transform-n=* |
--program-transform-=* \
1125 |
--program-transform=* |
--program-transfor=* \
1126 |
--program-transfo=* |
--program-transf=* \
1127 |
--program-trans=* |
--program-tran=* \
1128 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1129 program_transform_name
=$ac_optarg ;;
1131 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1133 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1134 pdfdir
=$ac_optarg ;;
1136 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1138 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1141 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1142 |
-silent |
--silent |
--silen |
--sile |
--sil)
1145 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1147 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1149 sbindir
=$ac_optarg ;;
1151 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1152 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1153 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1155 ac_prev
=sharedstatedir
;;
1156 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1157 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1158 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1160 sharedstatedir
=$ac_optarg ;;
1162 -site |
--site |
--sit)
1164 -site=* |
--site=* |
--sit=*)
1167 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1169 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1170 srcdir
=$ac_optarg ;;
1172 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1173 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1174 ac_prev
=sysconfdir
;;
1175 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1176 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1177 sysconfdir
=$ac_optarg ;;
1179 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1180 ac_prev
=target_alias
;;
1181 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1182 target_alias
=$ac_optarg ;;
1184 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1187 -version |
--version |
--versio |
--versi |
--vers |
-V)
1188 ac_init_version
=: ;;
1191 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1194 { echo "$as_me: error: invalid package name: $ac_package" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1197 eval with_
$ac_package=\
$ac_optarg ;;
1199 -without-* |
--without-*)
1200 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1203 { echo "$as_me: error: invalid package name: $ac_package" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1206 eval with_
$ac_package=no
;;
1209 # Obsolete; use --with-x.
1212 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1213 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1214 ac_prev
=x_includes
;;
1215 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1216 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1217 x_includes
=$ac_optarg ;;
1219 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1220 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1221 ac_prev
=x_libraries
;;
1222 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1223 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1224 x_libraries
=$ac_optarg ;;
1226 -*) { echo "$as_me: error: unrecognized option: $ac_option
1227 Try \`$0 --help' for more information." >&2
1228 { (exit 1); exit 1; }; }
1232 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1235 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1236 { (exit 1); exit 1; }; }
1237 eval $ac_envvar=\
$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1244 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 if test -n "$ac_prev"; then
1252 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1253 { echo "$as_me: error: missing argument to $ac_option" >&2
1254 { (exit 1); exit 1; }; }
1257 # Be sure to have absolute directory names.
1258 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val
=\$
$ac_var
1265 [\\/$
]* | ?
:[\\/]* ) continue;;
1266 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1268 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1269 { (exit 1); exit 1; }; }
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1277 target
=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x
; then
1281 if test "x$build_alias" = x
; then
1282 cross_compiling
=maybe
1283 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1291 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1293 test "$silent" = yes && exec 6>/dev
/null
1296 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di
=`ls -di .` &&
1298 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1299 { echo "$as_me: error: Working directory cannot be determined" >&2
1300 { (exit 1); exit 1; }; }
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 { echo "$as_me: error: pwd does not report name of working directory" >&2
1303 { (exit 1); exit 1; }; }
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted
=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir
=`$as_dirname -- "$0" ||
1311 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$0" : 'X\(//\)[^/]' \| \
1313 X"$0" : 'X\(//\)$' \| \
1314 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1338 ac_srcdir_defaulted
=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1342 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1343 { (exit 1); exit 1; }; }
1345 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1348 { (exit 1); exit 1; }; }
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var
in $ac_precious_vars; do
1361 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1363 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures this package to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1432 --build=BUILD configure
for building on BUILD
[guessed
]
1433 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1437 if test -n "$ac_init_help"; then
1442 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1443 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1444 --enable-dev-mode Turn on developer mode
1445 --disable-largefile omit support
for large files
1448 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1449 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1450 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1451 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1452 --with-curl=PATH use cURL files
in PATH
1453 --with-curses=PATH use curses files
in PATH
1454 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1456 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1457 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1458 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1459 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1460 --with-kde=PATH use KDE files
in PATH
1461 --with-misdn=PATH use mISDN User Library files
in PATH
1462 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1463 --with-ncurses=PATH use ncurses files
in PATH
1464 --with-netsnmp=PATH use Net-SNMP files
in PATH
1465 --with-newt=PATH use newt files
in PATH
1466 --with-odbc=PATH use unixODBC files
in PATH
1467 --with-ogg=PATH use OGG files
in PATH
1468 --with-osptk=PATH use OSP Toolkit files
in PATH
1469 --with-oss=PATH use Open Sound System files
in PATH
1470 --with-popt=PATH use popt files
in PATH
1471 --with-postgres=PATH use PostgreSQL files
in PATH
1472 --with-pri=PATH use ISDN PRI files
in PATH
1473 --with-pwlib=PATH use PWlib files
in PATH
1474 --with-h323=PATH use OpenH323 files
in PATH
1475 --with-qt=PATH use Qt files
in PATH
1476 --with-radius=PATH use Radius Client files
in PATH
1477 --with-speex=PATH use Speex files
in PATH
1478 --with-sqlite=PATH use SQLite files
in PATH
1479 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1480 --with-ssl=PATH use OpenSSL files
in PATH
1481 --with-tds=PATH use FreeTDS files
in PATH
1482 --with-termcap=PATH use Termcap files
in PATH
1483 --with-tinfo=PATH use Term Info files
in PATH
1484 --with-tonezone=PATH use tonezone files
in PATH
1485 --with-vorbis=PATH use Vorbis files
in PATH
1486 --with-vpb=PATH use Voicetronix API files
in PATH
1487 --with-z=PATH use zlib files
in PATH
1488 --with-zaptel=PATH use Zaptel files
in PATH
1490 Some influential environment variables
:
1491 CC C compiler
command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1494 nonstandard directory
<lib dir
>
1495 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1496 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1497 you have headers
in a nonstandard directory
<include dir
>
1499 CXX C
++ compiler
command
1500 CXXFLAGS C
++ compiler flags
1501 CXXCPP C
++ preprocessor
1503 Use these variables to override the choices made by
`configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" || continue
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1533 .) # We are building in place.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1557 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1567 generated by GNU Autoconf 2.61
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1582 It was created by $as_me, which was
1583 generated by GNU Autoconf 2.61. Invocation command line was
1595 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1596 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1597 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1598 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1599 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1601 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1602 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1604 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1605 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1606 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1607 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1608 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1609 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1610 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_must_keep_next=false
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1654 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 -* ) ac_must_keep_next=true ;;
1675 ac_configure_args="$ac_configure_args '$ac_arg'"
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log. We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1699 # The following way of writing the cache mishandles newlines in values,
1701 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1702 eval ac_val=\$$ac_var
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1716 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1736 for ac_var in $ac_subst_vars
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 echo "$ac_var='\''$ac_val'\''"
1746 if test -n "$ac_subst_files"; then
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1753 for ac_var in $ac_subst_files
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 echo "$ac_var='\''$ac_val'\''"
1764 if test -s confdefs.h; then
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
1830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1838 if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1855 ac_header_list="$ac_header_list sys/time.h"
1856 ac_header_list="$ac_header_list unistd.h"
1857 ac_func_list="$ac_func_list alarm"
1858 ac_header_list="$ac_header_list utime.h"
1859 # Check that the precious variables saved in the cache have kept the same
1861 ac_cache_corrupted=false
1862 for ac_var in $ac_precious_vars; do
1863 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864 eval ac_new_set=\$ac_env_${ac_var}_set
1865 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866 eval ac_new_val=\$ac_env_${ac_var}_value
1867 case $ac_old_set,$ac_new_set in
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1870 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1874 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1878 if test "x$ac_old_val" != "x$ac_new_val"; then
1879 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1880 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1881 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1882 echo "$as_me: former value
: $ac_old_val" >&2;}
1883 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1884 echo "$as_me: current value
: $ac_new_val" >&2;}
1885 ac_cache_corrupted=:
1888 # Pass precious variables to config.status.
1889 if test "$ac_new_set" = set; then
1891 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1892 *) ac_arg=$ac_var=$ac_new_val ;;
1894 case " $ac_configure_args " in
1895 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1896 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900 if $ac_cache_corrupted; then
1901 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1902 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1903 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1904 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1905 { (exit 1); exit 1; }; }
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 # cross-compile macros
1934 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1935 if test -f "$ac_dir/install-sh"; then
1937 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 elif test -f "$ac_dir/install.sh"; then
1941 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 elif test -f "$ac_dir/shtool"; then
1945 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 if test -z "$ac_aux_dir"; then
1950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1951 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1952 { (exit 1); exit 1; }; }
1955 # These three variables are undocumented and unsupported,
1956 # and are intended to be withdrawn in a future Autoconf release.
1957 # They can cause serious problems if a builder's source tree is in a directory
1958 # whose full name contains unusual characters.
1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1961 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1964 # Make sure we can run config.sub.
1965 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1966 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1967 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1968 { (exit 1); exit 1; }; }
1970 { echo "$as_me:$LINENO: checking build system type" >&5
1971 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1972 if test "${ac_cv_build+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 ac_build_alias=$build_alias
1976 test "x$ac_build_alias" = x &&
1977 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1978 test "x$ac_build_alias" = x &&
1979 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1980 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1981 { (exit 1); exit 1; }; }
1982 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1983 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1984 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1985 { (exit 1); exit 1; }; }
1988 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1989 echo "${ECHO_T}$ac_cv_build" >&6; }
1990 case $ac_cv_build in
1992 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1993 echo "$as_me: error: invalid value of canonical build" >&2;}
1994 { (exit 1); exit 1; }; };;
1997 ac_save_IFS=$IFS; IFS='-'
2003 # Remember, the first character of IFS is used to create $*,
2004 # except with old shells:
2007 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2010 { echo "$as_me:$LINENO: checking host system type" >&5
2011 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2012 if test "${ac_cv_host+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test "x$host_alias" = x; then
2016 ac_cv_host=$ac_cv_build
2018 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2019 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2020 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2021 { (exit 1); exit 1; }; }
2025 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2026 echo "${ECHO_T}$ac_cv_host" >&6; }
2029 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2030 echo "$as_me: error: invalid value of canonical host" >&2;}
2031 { (exit 1); exit 1; }; };;
2034 ac_save_IFS=$IFS; IFS='-'
2040 # Remember, the first character of IFS is used to create $*,
2041 # except with old shells:
2044 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2048 # check existence of the package
2051 # specify output header file
2052 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2059 cat >>confdefs.h <<\_ACEOF
2060 #define _GNU_SOURCE 1
2065 ac_cpp='$CPP $CPPFLAGS'
2066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2069 if test -n "$ac_tool_prefix"; then
2070 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2071 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2074 if test "${ac_cv_prog_CC+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 if test -n "$CC"; then
2078 ac_cv_prog_CC="$CC" # Let the user override the test.
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
2086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2087 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 if test -n "$CC"; then
2099 { echo "$as_me:$LINENO: result: $CC" >&5
2100 echo "${ECHO_T}$CC" >&6; }
2102 { echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6; }
2108 if test -z "$ac_cv_prog_CC"; then
2110 # Extract the first word of "gcc", so it can be a program name with args.
2111 set dummy gcc; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 if test -n "$ac_ct_CC"; then
2118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_ac_ct_CC="gcc"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 echo "${ECHO_T}$ac_ct_CC" >&6; }
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2146 if test "x$ac_ct_CC" = x; then
2149 case $cross_compiling:$ac_tool_warned in
2151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2152 whose name does not start with the host triplet. If you think this
2153 configuration is useful to you, please write to autoconf@gnu.org." >&5
2154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2155 whose name does not start with the host triplet. If you think this
2156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2157 ac_tool_warned=yes ;;
2165 if test -z "$CC"; then
2166 if test -n "$ac_tool_prefix"; then
2167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2168 set dummy ${ac_tool_prefix}cc; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_CC="${ac_tool_prefix}cc"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 if test -n "$CC"; then
2196 { echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6; }
2199 { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2206 if test -z "$CC"; then
2207 # Extract the first word of "cc", so it can be a program name with args.
2208 set dummy cc; ac_word=$2
2209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2211 if test "${ac_cv_prog_CC+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2226 ac_prog_rejected=yes
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 if test $ac_prog_rejected = yes; then
2238 # We found a bogon in the path, so make sure we never use it.
2239 set dummy $ac_cv_prog_CC
2241 if test $# != 0; then
2242 # We chose a different compiler from the bogus one.
2243 # However, it has the same basename, so the bogon will be chosen
2244 # first if we set CC to just the basename; use the full file name.
2246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2252 if test -n "$CC"; then
2253 { echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6; }
2256 { echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6; }
2262 if test -z "$CC"; then
2263 if test -n "$ac_tool_prefix"; then
2264 for ac_prog in cl.exe
2266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 if test -n "$CC"; then
2295 { echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6; }
2298 { echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6; }
2303 test -n "$CC" && break
2306 if test -z "$CC"; then
2308 for ac_prog in cl.exe
2310 # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$ac_ct_CC"; then
2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_ac_ct_CC="$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2338 if test -n "$ac_ct_CC"; then
2339 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2340 echo "${ECHO_T}$ac_ct_CC" >&6; }
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2347 test -n "$ac_ct_CC" && break
2350 if test "x$ac_ct_CC" = x; then
2353 case $cross_compiling:$ac_tool_warned in
2355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2356 whose name does not start with the host triplet. If you think this
2357 configuration is useful to you, please write to autoconf@gnu.org." >&5
2358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2359 whose name does not start with the host triplet. If you think this
2360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2361 ac_tool_warned=yes ;;
2370 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2371 See \`config.log
' for more details." >&5
2372 echo "$as_me: error: no acceptable C compiler found in \$PATH
2373 See \`config.log' for more details.
" >&2;}
2374 { (exit 1); exit 1; }; }
2376 # Provide some information about the compiler.
2377 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2378 ac_compiler=`set X $ac_compile; echo $2`
2379 { (ac_try="$ac_compiler --version >&5"
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2385 (eval "$ac_compiler --version >&5") 2>&5
2387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2388 (exit $ac_status); }
2389 { (ac_try="$ac_compiler -v >&5"
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_compiler -v >&5") 2>&5
2397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2398 (exit $ac_status); }
2399 { (ac_try="$ac_compiler -V >&5"
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_compiler -V >&5") 2>&5
2407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2408 (exit $ac_status); }
2410 cat >conftest.$ac_ext <<_ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2425 ac_clean_files_save=$ac_clean_files
2426 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2427 # Try to create an executable without -o first, disregard a.out.
2428 # It will help us diagnose broken compilers, and finding out an intuition
2430 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2431 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2432 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2434 # List of possible output files, starting from the most likely.
2435 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2436 # only as a last resort. b.out is created by i960 compilers.
2437 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2439 # The IRIX 6 linker writes into existing files which may not be
2440 # executable, retaining their permissions. Remove them first so a
2441 # subsequent execution test works.
2443 for ac_file in $ac_files
2446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2447 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2452 if { (ac_try="$ac_link_default"
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_link_default") 2>&5
2460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2461 (exit $ac_status); }; then
2462 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2463 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2464 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2465 # so that the user can short-circuit this test for compilers unknown to
2467 for ac_file in $ac_files ''
2469 test -f "$ac_file" || continue
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2474 # We found the default executable, but exeext='' is most
2478 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2480 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2482 # We set ac_cv_exeext here because the later test for it is not
2483 # safe: cross compilers may not add the suffix if given an `-o'
2484 # argument, so we may need to know it at that point already.
2485 # Even if this section looks crufty: it has the advantage of
2492 test "$ac_cv_exeext" = no && ac_cv_exeext=
2498 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2499 echo "${ECHO_T}$ac_file" >&6; }
2500 if test -z "$ac_file"; then
2501 echo "$as_me: failed program was
:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2504 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2505 See \
`config.log' for more details." >&5
2506 echo "$as_me: error: C compiler cannot create executables
2507 See \`config.log
' for more details." >&2;}
2508 { (exit 77); exit 77; }; }
2511 ac_exeext=$ac_cv_exeext
2513 # Check that the compiler produces executables we can run. If not, either
2514 # the compiler is broken, or we cross compile.
2515 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2516 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2517 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2518 # If not cross compiling, check that we can run a simple program.
2519 if test "$cross_compiling" != yes; then
2520 if { ac_try='.
/$ac_file'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2532 if test "$cross_compiling" = maybe; then
2535 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2536 If you meant to cross compile, use \`--host'.
2537 See \
`config.log' for more details." >&5
2538 echo "$as_me: error: cannot run C compiled programs.
2539 If you meant to cross compile, use \`--host'.
2540 See \`config.log' for more details.
" >&2;}
2541 { (exit 1); exit 1; }; }
2545 { echo "$as_me:$LINENO: result
: yes" >&5
2546 echo "${ECHO_T}yes" >&6; }
2548 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2549 ac_clean_files=$ac_clean_files_save
2550 # Check that the compiler produces executables we can run. If not, either
2551 # the compiler is broken, or we cross compile.
2552 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2553 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2554 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2555 echo "${ECHO_T}$cross_compiling" >&6; }
2557 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2558 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2559 if { (ac_try="$ac_link"
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_link") 2>&5
2567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2568 (exit $ac_status); }; then
2569 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2570 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2571 # work properly (i.e., refer to `conftest.exe'), while it won't with
2573 for ac_file in conftest.exe conftest conftest.*; do
2574 test -f "$ac_file" || continue
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2577 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2583 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2584 See \
`config.log' for more details." >&5
2585 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2586 See \`config.log
' for more details." >&2;}
2587 { (exit 1); exit 1; }; }
2590 rm -f conftest$ac_cv_exeext
2591 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2592 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2594 rm -f conftest.$ac_ext
2595 EXEEXT=$ac_cv_exeext
2597 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2598 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2599 if test "${ac_cv_objext+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 cat >conftest.$ac_ext <<_ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2617 rm -f conftest.o conftest.obj
2618 if { (ac_try="$ac_compile"
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_compile") 2>&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; then
2628 for ac_file in conftest.o conftest.obj conftest.*; do
2629 test -f "$ac_file" || continue;
2631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2632 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2637 echo "$as_me: failed program was:" >&5
2638 sed 's
/^
/|
/' conftest.$ac_ext >&5
2640 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2641 See \`config.log' for more details.
" >&5
2642 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2643 See \
`config.log' for more details." >&2;}
2644 { (exit 1); exit 1; }; }
2647 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2649 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2650 echo "${ECHO_T}$ac_cv_objext" >&6; }
2651 OBJEXT=$ac_cv_objext
2653 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2654 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2655 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 cat >conftest.$ac_ext <<_ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2676 rm -f conftest.$ac_objext
2677 if { (ac_try="$ac_compile"
2679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2680 *) ac_try_echo
=$ac_try;;
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compile") 2>conftest.er1
2685 grep -v '^ *+' conftest.er1
>conftest.err
2687 cat conftest.err
>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } && {
2690 test -z "$ac_c_werror_flag" ||
2691 test ! -s conftest.err
2692 } && test -s conftest.
$ac_objext; then
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.
$ac_ext >&5
2701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2702 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2705 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2706 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2707 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2708 ac_test_CFLAGS
=${CFLAGS+set}
2709 ac_save_CFLAGS
=$CFLAGS
2710 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2711 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_cc_g+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 ac_save_c_werror_flag
=$ac_c_werror_flag
2716 ac_c_werror_flag
=yes
2719 cat >conftest.
$ac_ext <<_ACEOF
2722 cat confdefs.h
>>conftest.
$ac_ext
2723 cat >>conftest.
$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2734 rm -f conftest.
$ac_objext
2735 if { (ac_try
="$ac_compile"
2737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compile") 2>conftest.er1
2743 grep -v '^ *+' conftest.er1 >conftest.err
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } && {
2748 test -z "$ac_c_werror_flag" ||
2749 test ! -s conftest.err
2750 } && test -s conftest.$ac_objext; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2772 rm -f conftest.$ac_objext
2773 if { (ac_try="$ac_compile"
2775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2776 *) ac_try_echo
=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_compile") 2>conftest.er1
2781 grep -v '^ *+' conftest.er1
>conftest.err
2783 cat conftest.err
>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } && {
2786 test -z "$ac_c_werror_flag" ||
2787 test ! -s conftest.err
2788 } && test -s conftest.
$ac_objext; then
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.
$ac_ext >&5
2794 ac_c_werror_flag
=$ac_save_c_werror_flag
2796 cat >conftest.
$ac_ext <<_ACEOF
2799 cat confdefs.h
>>conftest.
$ac_ext
2800 cat >>conftest.
$ac_ext <<_ACEOF
2801 /* end confdefs.h. */
2811 rm -f conftest.
$ac_objext
2812 if { (ac_try
="$ac_compile"
2814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compile") 2>conftest.er1
2820 grep -v '^ *+' conftest.er1 >conftest.err
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 ac_c_werror_flag=$ac_save_c_werror_flag
2845 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2846 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2847 if test "$ac_test_CFLAGS" = set; then
2848 CFLAGS=$ac_save_CFLAGS
2849 elif test $ac_cv_prog_cc_g = yes; then
2850 if test "$GCC" = yes; then
2856 if test "$GCC" = yes; then
2862 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2863 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_cc_c89+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 ac_cv_prog_cc_c89=no
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2877 #include <sys/types.h>
2878 #include <sys/stat.h>
2879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2880 struct buf { int x; };
2881 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2882 static char *e (p, i)
2888 static char *f (char * (*g) (char **, int), char **p, ...)
2893 s = g (p, va_arg (v,int));
2898 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2899 function prototypes and stuff, but not '\xHH' hex character constants.
2900 These don't provoke an error unfortunately, instead are silently treated
2901 as 'x'. The following induces an error, until -std is added to get
2902 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2903 array size at least. It's necessary to write '\x00'==0 to get something
2904 that's true only with -std. */
2905 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2907 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2908 inside strings and character constants. */
2910 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2912 int test (int i, double x);
2913 struct s1 {int (*f) (int a);};
2914 struct s2 {int (*f) (double a);};
2915 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2921 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2926 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2927 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2929 CC="$ac_save_CC $ac_arg"
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2934 *) ac_try_echo
=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1
>conftest.err
2941 cat conftest.err
>&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.
$ac_objext; then
2947 ac_cv_prog_cc_c89
=$ac_arg
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.
$ac_ext >&5
2955 rm -f core conftest.err conftest.
$ac_objext
2956 test "x$ac_cv_prog_cc_c89" != "xno" && break
2958 rm -f conftest.
$ac_ext
2963 case "x$ac_cv_prog_cc_c89" in
2965 { echo "$as_me:$LINENO: result: none needed" >&5
2966 echo "${ECHO_T}none needed" >&6; } ;;
2968 { echo "$as_me:$LINENO: result: unsupported" >&5
2969 echo "${ECHO_T}unsupported" >&6; } ;;
2971 CC
="$CC $ac_cv_prog_cc_c89"
2972 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2973 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2978 ac_cpp
='$CPP $CPPFLAGS'
2979 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2985 ac_cpp
='$CPP $CPPFLAGS'
2986 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2989 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2990 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2991 # On Suns, sometimes $CPP names a directory.
2992 if test -n "$CPP" && test -d "$CPP"; then
2995 if test -z "$CPP"; then
2996 if test "${ac_cv_prog_CPP+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 # Double quotes because CPP needs to be expanded
3000 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3003 for ac_c_preproc_warn_flag
in '' yes
3005 # Use a header file that comes with gcc, so configuring glibc
3006 # with a fresh cross-compiler works.
3007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3008 # <limits.h> exists even on freestanding compilers.
3009 # On the NeXT, cc -E runs the code through the compiler's parser,
3010 # not just through cpp. "Syntax error" is here to catch this case.
3011 cat >conftest.
$ac_ext <<_ACEOF
3014 cat confdefs.h
>>conftest.
$ac_ext
3015 cat >>conftest.
$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3018 # include <limits.h>
3020 # include <assert.h>
3024 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } >/dev/null && {
3037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 # Broken: fails on valid input.
3049 rm -f conftest.err conftest.$ac_ext
3051 # OK, works on sane cases. Now check whether nonexistent headers
3052 # can be detected and how.
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3061 if { (ac_try="$ac_cpp conftest.$ac_ext"
3063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3064 *) ac_try_echo
=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3069 grep -v '^ *+' conftest.er1
>conftest.err
3071 cat conftest.err
>&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } >/dev
/null
&& {
3074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3075 test ! -s conftest.err
3077 # Broken: success on invalid input.
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.
$ac_ext >&5
3083 # Passes both tests.
3088 rm -f conftest.err conftest.
$ac_ext
3091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092 rm -f conftest.err conftest.
$ac_ext
3093 if $ac_preproc_ok; then
3105 { echo "$as_me:$LINENO: result: $CPP" >&5
3106 echo "${ECHO_T}$CPP" >&6; }
3108 for ac_c_preproc_warn_flag
in '' yes
3110 # Use a header file that comes with gcc, so configuring glibc
3111 # with a fresh cross-compiler works.
3112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113 # <limits.h> exists even on freestanding compilers.
3114 # On the NeXT, cc -E runs the code through the compiler's parser,
3115 # not just through cpp. "Syntax error" is here to catch this case.
3116 cat >conftest.
$ac_ext <<_ACEOF
3119 cat confdefs.h
>>conftest.
$ac_ext
3120 cat >>conftest.
$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3123 # include <limits.h>
3125 # include <assert.h>
3129 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137 grep -v '^ *+' conftest.er1 >conftest.err
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev/null && {
3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 # Broken: fails on valid input.
3154 rm -f conftest.err conftest.$ac_ext
3156 # OK, works on sane cases. Now check whether nonexistent headers
3157 # can be detected and how.
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164 #include <ac_nonexistent.h>
3166 if { (ac_try="$ac_cpp conftest.$ac_ext"
3168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3169 *) ac_try_echo
=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1
>conftest.err
3176 cat conftest.err
>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev
/null
&& {
3179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3182 # Broken: success on invalid input.
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.
$ac_ext >&5
3188 # Passes both tests.
3193 rm -f conftest.err conftest.
$ac_ext
3196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3197 rm -f conftest.err conftest.
$ac_ext
3198 if $ac_preproc_ok; then
3201 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3202 See \`config.log' for more details." >&5
3203 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3204 See \`config.log' for more details." >&2;}
3205 { (exit 1); exit 1; }; }
3209 ac_cpp
='$CPP $CPPFLAGS'
3210 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3215 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3216 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3217 if test "${ac_cv_path_GREP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 # Extract the first word of "grep ggrep" to use in msg output
3221 if test -z "$GREP"; then
3222 set dummy
grep ggrep
; ac_prog_name
=$2
3223 if test "${ac_cv_path_GREP+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 ac_path_GREP_found
=false
3227 # Loop through the user's path and test for each of PROGNAME-LIST
3228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3229 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3232 test -z "$as_dir" && as_dir
=.
3233 for ac_prog
in grep ggrep
; do
3234 for ac_exec_ext
in '' $ac_executable_extensions; do
3235 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3236 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3237 # Check for GNU ac_path_GREP and select it if it is found.
3238 # Check for GNU $ac_path_GREP
3239 case `"$ac_path_GREP" --version 2>&1` in
3241 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3244 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3247 cat "conftest.in" "conftest.in" >"conftest.tmp"
3248 mv "conftest.tmp" "conftest.in"
3249 cp "conftest.in" "conftest.nl"
3250 echo 'GREP' >> "conftest.nl"
3251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3252 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3253 ac_count
=`expr $ac_count + 1`
3254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3255 # Best one so far, save it but keep looking for a better one
3256 ac_cv_path_GREP
="$ac_path_GREP"
3257 ac_path_GREP_max
=$ac_count
3259 # 10*(2^10) chars as input seems more than enough
3260 test $ac_count -gt 10 && break
3262 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3266 $ac_path_GREP_found && break 3
3276 GREP
="$ac_cv_path_GREP"
3277 if test -z "$GREP"; then
3278 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3279 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3280 { (exit 1); exit 1; }; }
3284 ac_cv_path_GREP
=$GREP
3289 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3290 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3291 GREP
="$ac_cv_path_GREP"
3294 { echo "$as_me:$LINENO: checking for egrep" >&5
3295 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3296 if test "${ac_cv_path_EGREP+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3300 then ac_cv_path_EGREP
="$GREP -E"
3302 # Extract the first word of "egrep" to use in msg output
3303 if test -z "$EGREP"; then
3304 set dummy
egrep; ac_prog_name
=$2
3305 if test "${ac_cv_path_EGREP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 ac_path_EGREP_found
=false
3309 # Loop through the user's path and test for each of PROGNAME-LIST
3310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3311 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3314 test -z "$as_dir" && as_dir
=.
3315 for ac_prog
in egrep; do
3316 for ac_exec_ext
in '' $ac_executable_extensions; do
3317 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3318 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3319 # Check for GNU ac_path_EGREP and select it if it is found.
3320 # Check for GNU $ac_path_EGREP
3321 case `"$ac_path_EGREP" --version 2>&1` in
3323 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3326 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3329 cat "conftest.in" "conftest.in" >"conftest.tmp"
3330 mv "conftest.tmp" "conftest.in"
3331 cp "conftest.in" "conftest.nl"
3332 echo 'EGREP' >> "conftest.nl"
3333 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3334 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3335 ac_count
=`expr $ac_count + 1`
3336 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3337 # Best one so far, save it but keep looking for a better one
3338 ac_cv_path_EGREP
="$ac_path_EGREP"
3339 ac_path_EGREP_max
=$ac_count
3341 # 10*(2^10) chars as input seems more than enough
3342 test $ac_count -gt 10 && break
3344 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3348 $ac_path_EGREP_found && break 3
3358 EGREP
="$ac_cv_path_EGREP"
3359 if test -z "$EGREP"; then
3360 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3361 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3362 { (exit 1); exit 1; }; }
3366 ac_cv_path_EGREP
=$EGREP
3372 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3373 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3374 EGREP
="$ac_cv_path_EGREP"
3378 { echo "$as_me:$LINENO: checking for AIX" >&5
3379 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3380 cat >conftest.
$ac_ext <<_ACEOF
3383 cat confdefs.h
>>conftest.
$ac_ext
3384 cat >>conftest.
$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3392 $EGREP "yes" >/dev
/null
2>&1; then
3393 { echo "$as_me:$LINENO: result: yes" >&5
3394 echo "${ECHO_T}yes" >&6; }
3395 cat >>confdefs.h
<<\_ACEOF
3396 #define _ALL_SOURCE 1
3400 { echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6; }
3406 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3407 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3408 if test "${ac_cv_header_stdc+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 cat >conftest.
$ac_ext <<_ACEOF
3414 cat confdefs.h
>>conftest.
$ac_ext
3415 cat >>conftest.
$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3430 rm -f conftest.
$ac_objext
3431 if { (ac_try
="$ac_compile"
3433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 ac_cv_header_stdc=yes
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 ac_cv_header_stdc=no
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 if test $ac_cv_header_stdc = yes; then
3458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3469 $EGREP "memchr" >/dev/null 2>&1; then
3472 ac_cv_header_stdc=no
3478 if test $ac_cv_header_stdc = yes; then
3479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490 $EGREP "free" >/dev/null 2>&1; then
3493 ac_cv_header_stdc=no
3499 if test $ac_cv_header_stdc = yes; then
3500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3501 if test "$cross_compiling" = yes; then
3504 cat >conftest.$ac_ext <<_ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3512 #if ((' ' & 0x0FF) == 0x020)
3513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3516 # define ISLOWER(c) \
3517 (('a' <= (c) && (c) <= 'i') \
3518 || ('j' <= (c) && (c) <= 'r') \
3519 || ('s' <= (c) && (c) <= 'z'))
3520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3528 for (i = 0; i < 256; i++)
3529 if (XOR (islower (i), ISLOWER (i))
3530 || toupper (i) != TOUPPER (i))
3535 rm -f conftest$ac_exeext
3536 if { (ac_try="$ac_link"
3538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3539 *) ac_try_echo
=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_link") 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3546 { (case "(($ac_try" in
3547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_try") 2>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3557 echo "$as_me: program exited with status $ac_status" >&5
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3562 ac_cv_header_stdc=no
3564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3570 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3571 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3572 if test $ac_cv_header_stdc = yes; then
3574 cat >>confdefs.h <<\_ACEOF
3575 #define STDC_HEADERS 1
3580 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3590 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3591 inttypes.h stdint.h unistd.h
3593 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 $ac_includes_default
3607 #include <$ac_header>
3609 rm -f conftest.$ac_objext
3610 if { (ac_try="$ac_compile"
3612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3613 *) ac_try_echo
=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_compile") 2>conftest.er1
3618 grep -v '^ *+' conftest.er1
>conftest.err
3620 cat conftest.err
>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && {
3623 test -z "$ac_c_werror_flag" ||
3624 test ! -s conftest.err
3625 } && test -s conftest.
$ac_objext; then
3626 eval "$as_ac_Header=yes"
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.
$ac_ext >&5
3631 eval "$as_ac_Header=no"
3634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3636 ac_res
=`eval echo '${'$as_ac_Header'}'`
3637 { echo "$as_me:$LINENO: result: $ac_res" >&5
3638 echo "${ECHO_T}$ac_res" >&6; }
3639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3640 cat >>confdefs.h
<<_ACEOF
3641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3649 if test "${ac_cv_header_minix_config_h+set}" = set; then
3650 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3651 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3652 if test "${ac_cv_header_minix_config_h+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3656 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3658 # Is the header compilable?
3659 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3660 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3661 cat >conftest.
$ac_ext <<_ACEOF
3664 cat confdefs.h
>>conftest.
$ac_ext
3665 cat >>conftest.
$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 $ac_includes_default
3668 #include <minix/config.h>
3670 rm -f conftest.
$ac_objext
3671 if { (ac_try
="$ac_compile"
3673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_compile") 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } && {
3684 test -z "$ac_c_werror_flag" ||
3685 test ! -s conftest.err
3686 } && test -s conftest.$ac_objext; then
3687 ac_header_compiler=yes
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 ac_header_compiler=no
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3697 echo "${ECHO_T}$ac_header_compiler" >&6; }
3699 # Is the header present?
3700 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3701 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3702 cat >conftest.$ac_ext <<_ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 #include <minix/config.h>
3710 if { (ac_try="$ac_cpp conftest.$ac_ext"
3712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3713 *) ac_try_echo
=$ac_try;;
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3718 grep -v '^ *+' conftest.er1
>conftest.err
3720 cat conftest.err
>&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev
/null
&& {
3723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3726 ac_header_preproc
=yes
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.
$ac_ext >&5
3731 ac_header_preproc
=no
3734 rm -f conftest.err conftest.
$ac_ext
3735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3736 echo "${ECHO_T}$ac_header_preproc" >&6; }
3738 # So? What about this header?
3739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3741 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3742 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3743 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3744 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3745 ac_header_preproc
=yes
3748 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3749 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3751 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3752 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3753 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3755 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3757 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3758 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3759 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3763 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3764 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3765 if test "${ac_cv_header_minix_config_h+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 ac_cv_header_minix_config_h
=$ac_header_preproc
3770 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3771 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3774 if test $ac_cv_header_minix_config_h = yes; then
3781 if test "$MINIX" = yes; then
3783 cat >>confdefs.h
<<\_ACEOF
3784 #define _POSIX_SOURCE 1
3788 cat >>confdefs.h
<<\_ACEOF
3789 #define _POSIX_1_SOURCE 2
3793 cat >>confdefs.h
<<\_ACEOF
3809 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3810 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3811 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 cat >conftest.
$ac_ext <<_ACEOF
3817 cat confdefs.h
>>conftest.
$ac_ext
3818 cat >>conftest.
$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3821 # define __EXTENSIONS__ 1
3822 $ac_includes_default
3831 rm -f conftest.
$ac_objext
3832 if { (ac_try
="$ac_compile"
3834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3840 grep -v '^ *+' conftest.er1 >conftest.err
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } && {
3845 test -z "$ac_c_werror_flag" ||
3846 test ! -s conftest.err
3847 } && test -s conftest.$ac_objext; then
3848 ac_cv_safe_to_define___extensions__=yes
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 ac_cv_safe_to_define___extensions__=no
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3859 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3860 test $ac_cv_safe_to_define___extensions__ = yes &&
3861 cat >>confdefs.h <<\_ACEOF
3862 #define __EXTENSIONS__ 1
3865 cat >>confdefs.h <<\_ACEOF
3866 #define _POSIX_PTHREAD_SEMANTICS 1
3869 cat >>confdefs.h <<\_ACEOF
3870 #define _TANDEM_SOURCE 1
3875 case "${host_os}" in
3877 ac_default_prefix=/usr/local
3878 CPPFLAGS=-I/usr/local/include
3879 LDFLAGS=-L/usr/local/lib
3882 ac_default_prefix=/usr
3883 if test ${sysconfdir} = '${prefix}/etc'; then
3886 if test ${mandir} = '${prefix}/man'; then
3887 mandir=/usr/share/man
3892 if test ${localstatedir} = '${prefix}/var'; then
3896 BUILD_PLATFORM=${build}
3897 BUILD_CPU=${build_cpu}
3898 BUILD_VENDOR=${build_vendor}
3899 BUILD_OS=${build_os}
3906 HOST_PLATFORM=${host}
3907 HOST_CPU=${host_cpu}
3908 HOST_VENDOR=${host_vendor}
3916 case "${host_os}" in
3937 if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3939 set dummy ${ac_tool_prefix}uname; ac_word=$2
3940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3942 if test "${ac_cv_path_UNAME+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 UNAME=$ac_cv_path_UNAME
3969 if test -n "$UNAME"; then
3970 { echo "$as_me:$LINENO: result: $UNAME" >&5
3971 echo "${ECHO_T}$UNAME" >&6; }
3973 { echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6; }
3979 if test -z "$ac_cv_path_UNAME"; then
3981 # Extract the first word of "uname", so it can be a program name with args.
3982 set dummy uname; ac_word=$2
3983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3985 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 case $ac_pt_UNAME in
3990 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4012 if test -n "$ac_pt_UNAME"; then
4013 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4014 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4016 { echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6; }
4020 if test "x$ac_pt_UNAME" = x; then
4023 case $cross_compiling:$ac_tool_warned in
4025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4026 whose name does not start with the host triplet. If you think this
4027 configuration is useful to you, please write to autoconf@gnu.org." >&5
4028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4029 whose name does not start with the host triplet. If you think this
4030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4031 ac_tool_warned=yes ;;
4036 UNAME="$ac_cv_path_UNAME"
4039 if test ! x"${UNAME}" = xNo; then
4040 PBX_OSREV=$(${UNAME} -r)
4050 # cross-compile checks
4051 if test "${cross_compiling}" = "yes";
4053 if test -n "$ac_tool_prefix"; then
4054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4058 if test "${ac_cv_prog_CC+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 if test -n "$CC"; then
4062 ac_cv_prog_CC="$CC" # Let the user override the test.
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4071 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 if test -n "$CC"; then
4083 { echo "$as_me:$LINENO: result: $CC" >&5
4084 echo "${ECHO_T}$CC" >&6; }
4086 { echo "$as_me:$LINENO: result: no" >&5
4087 echo "${ECHO_T}no" >&6; }
4092 if test -z "$ac_cv_prog_CC"; then
4094 # Extract the first word of "gcc", so it can be a program name with args.
4095 set dummy gcc; ac_word=$2
4096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 if test -n "$ac_ct_CC"; then
4102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111 ac_cv_prog_ac_ct_CC="gcc"
4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4122 if test -n "$ac_ct_CC"; then
4123 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4124 echo "${ECHO_T}$ac_ct_CC" >&6; }
4126 { echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6; }
4130 if test "x$ac_ct_CC" = x; then
4133 case $cross_compiling:$ac_tool_warned in
4135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4136 whose name does not start with the host triplet. If you think this
4137 configuration is useful to you, please write to autoconf@gnu.org." >&5
4138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4139 whose name does not start with the host triplet. If you think this
4140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4141 ac_tool_warned=yes ;;
4149 if test -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}g++; ac_word=$2
4152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4154 if test "${ac_cv_prog_CXX+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 if test -n "$CXX"; then
4158 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4167 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 if test -n "$CXX"; then
4179 { echo "$as_me:$LINENO: result: $CXX" >&5
4180 echo "${ECHO_T}$CXX" >&6; }
4182 { echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6; }
4188 if test -z "$ac_cv_prog_CXX"; then
4190 # Extract the first word of "g++", so it can be a program name with args.
4191 set dummy g++; ac_word=$2
4192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4194 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 if test -n "$ac_ct_CXX"; then
4198 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_ac_ct_CXX="g++"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4218 if test -n "$ac_ct_CXX"; then
4219 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4220 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4222 { echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6; }
4226 if test "x$ac_ct_CXX" = x; then
4229 case $cross_compiling:$ac_tool_warned in
4231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4232 whose name does not start with the host triplet. If you think this
4233 configuration is useful to you, please write to autoconf@gnu.org." >&5
4234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4235 whose name does not start with the host triplet. If you think this
4236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4237 ac_tool_warned=yes ;;
4242 CXX="$ac_cv_prog_CXX"
4245 if test -n "$ac_tool_prefix"; then
4246 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4247 set dummy ${ac_tool_prefix}ld; ac_word=$2
4248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4250 if test "${ac_cv_prog_LD+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test -n "$LD"; then
4254 ac_cv_prog_LD="$LD" # Let the user override the test.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_prog_LD="${ac_tool_prefix}ld"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 if test -n "$LD"; then
4275 { echo "$as_me:$LINENO: result: $LD" >&5
4276 echo "${ECHO_T}$LD" >&6; }
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4284 if test -z "$ac_cv_prog_LD"; then
4286 # Extract the first word of "ld", so it can be a program name with args.
4287 set dummy ld; ac_word=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 if test -n "$ac_ct_LD"; then
4294 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_ac_ct_LD="ld"
4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4314 if test -n "$ac_ct_LD"; then
4315 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4316 echo "${ECHO_T}$ac_ct_LD" >&6; }
4318 { echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6; }
4322 if test "x$ac_ct_LD" = x; then
4325 case $cross_compiling:$ac_tool_warned in
4327 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4328 whose name does not start with the host triplet. If you think this
4329 configuration is useful to you, please write to autoconf@gnu.org." >&5
4330 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4331 whose name does not start with the host triplet. If you think this
4332 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4333 ac_tool_warned=yes ;;
4341 if test -n "$ac_tool_prefix"; then
4342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_RANLIB+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test -n "$RANLIB"; then
4350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 RANLIB=$ac_cv_prog_RANLIB
4370 if test -n "$RANLIB"; then
4371 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4372 echo "${ECHO_T}$RANLIB" >&6; }
4374 { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4380 if test -z "$ac_cv_prog_RANLIB"; then
4381 ac_ct_RANLIB=$RANLIB
4382 # Extract the first word of "ranlib", so it can be a program name with args.
4383 set dummy ranlib; ac_word=$2
4384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 if test -n "$ac_ct_RANLIB"; then
4390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_ac_ct_RANLIB="ranlib"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4410 if test -n "$ac_ct_RANLIB"; then
4411 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4412 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4414 { echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6; }
4418 if test "x$ac_ct_RANLIB" = x; then
4421 case $cross_compiling:$ac_tool_warned in
4423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4424 whose name does not start with the host triplet. If you think this
4425 configuration is useful to you, please write to autoconf@gnu.org." >&5
4426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4427 whose name does not start with the host triplet. If you think this
4428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4429 ac_tool_warned=yes ;;
4431 RANLIB=$ac_ct_RANLIB
4434 RANLIB="$ac_cv_prog_RANLIB"
4437 if test -n "$ac_tool_prefix"; then
4438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}ar; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_AR+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 if test -n "$AR"; then
4446 ac_cv_prog_AR="$AR" # Let the user override the test.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_AR="${ac_tool_prefix}ar"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 if test -n "$AR"; then
4467 { echo "$as_me:$LINENO: result: $AR" >&5
4468 echo "${ECHO_T}$AR" >&6; }
4470 { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4476 if test -z "$ac_cv_prog_AR"; then
4478 # Extract the first word of "ar", so it can be a program name with args.
4479 set dummy ar; ac_word=$2
4480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 if test -n "$ac_ct_AR"; then
4486 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 ac_cv_prog_ac_ct_AR="ar"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4506 if test -n "$ac_ct_AR"; then
4507 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4508 echo "${ECHO_T}$ac_ct_AR" >&6; }
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4514 if test "x$ac_ct_AR" = x; then
4517 case $cross_compiling:$ac_tool_warned in
4519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4520 whose name does not start with the host triplet. If you think this
4521 configuration is useful to you, please write to autoconf@gnu.org." >&5
4522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4523 whose name does not start with the host triplet. If you think this
4524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4525 ac_tool_warned=yes ;;
4535 # Checks for programs.
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 if test -n "$ac_tool_prefix"; then
4542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4546 if test "${ac_cv_prog_CC+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 if test -n "$CC"; then
4550 ac_cv_prog_CC="$CC" # Let the user override the test.
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 if test -n "$CC"; then
4571 { echo "$as_me:$LINENO: result: $CC" >&5
4572 echo "${ECHO_T}$CC" >&6; }
4574 { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4580 if test -z "$ac_cv_prog_CC"; then
4582 # Extract the first word of "gcc", so it can be a program name with args.
4583 set dummy gcc; ac_word=$2
4584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 if test -n "$ac_ct_CC"; then
4590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_prog_ac_ct_CC="gcc"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4610 if test -n "$ac_ct_CC"; then
4611 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4612 echo "${ECHO_T}$ac_ct_CC" >&6; }
4614 { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4618 if test "x$ac_ct_CC" = x; then
4621 case $cross_compiling:$ac_tool_warned in
4623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4624 whose name does not start with the host triplet. If you think this
4625 configuration is useful to you, please write to autoconf@gnu.org." >&5
4626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4627 whose name does not start with the host triplet. If you think this
4628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4629 ac_tool_warned=yes ;;
4637 if test -z "$CC"; then
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4640 set dummy ${ac_tool_prefix}cc; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_CC+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 if test -n "$CC"; then
4647 ac_cv_prog_CC="$CC" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_CC="${ac_tool_prefix}cc"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 if test -n "$CC"; then
4668 { echo "$as_me:$LINENO: result: $CC" >&5
4669 echo "${ECHO_T}$CC" >&6; }
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4678 if test -z "$CC"; then
4679 # Extract the first word of "cc", so it can be a program name with args.
4680 set dummy cc; ac_word=$2
4681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683 if test "${ac_cv_prog_CC+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 if test -n "$CC"; then
4687 ac_cv_prog_CC="$CC" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4698 ac_prog_rejected=yes
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 if test $ac_prog_rejected = yes; then
4710 # We found a bogon in the path, so make sure we never use it.
4711 set dummy $ac_cv_prog_CC
4713 if test $# != 0; then
4714 # We chose a different compiler from the bogus one.
4715 # However, it has the same basename, so the bogon will be chosen
4716 # first if we set CC to just the basename; use the full file name.
4718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4724 if test -n "$CC"; then
4725 { echo "$as_me:$LINENO: result: $CC" >&5
4726 echo "${ECHO_T}$CC" >&6; }
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4734 if test -z "$CC"; then
4735 if test -n "$ac_tool_prefix"; then
4736 for ac_prog in cl.exe
4738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_prog_CC+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 if test -n "$CC"; then
4746 ac_cv_prog_CC="$CC" # Let the user override the test.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 if test -n "$CC"; then
4767 { echo "$as_me:$LINENO: result: $CC" >&5
4768 echo "${ECHO_T}$CC" >&6; }
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4775 test -n "$CC" && break
4778 if test -z "$CC"; then
4780 for ac_prog in cl.exe
4782 # Extract the first word of "$ac_prog", so it can be a program name with args.
4783 set dummy $ac_prog; ac_word=$2
4784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 if test -n "$ac_ct_CC"; then
4790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_ac_ct_CC="$ac_prog"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4810 if test -n "$ac_ct_CC"; then
4811 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4812 echo "${ECHO_T}$ac_ct_CC" >&6; }
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4819 test -n "$ac_ct_CC" && break
4822 if test "x$ac_ct_CC" = x; then
4825 case $cross_compiling:$ac_tool_warned in
4827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4828 whose name does not start with the host triplet. If you think this
4829 configuration is useful to you, please write to autoconf@gnu.org." >&5
4830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4831 whose name does not start with the host triplet. If you think this
4832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4833 ac_tool_warned=yes ;;
4842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4843 See \`config.log
' for more details." >&5
4844 echo "$as_me: error: no acceptable C compiler found in \$PATH
4845 See \`config.log' for more details.
" >&2;}
4846 { (exit 1); exit 1; }; }
4848 # Provide some information about the compiler.
4849 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4850 ac_compiler=`set X $ac_compile; echo $2`
4851 { (ac_try="$ac_compiler --version >&5"
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4857 (eval "$ac_compiler --version >&5") 2>&5
4859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4860 (exit $ac_status); }
4861 { (ac_try="$ac_compiler -v >&5"
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_compiler -v >&5") 2>&5
4869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4870 (exit $ac_status); }
4871 { (ac_try="$ac_compiler -V >&5"
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4876 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4877 (eval "$ac_compiler -V >&5") 2>&5
4879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4880 (exit $ac_status); }
4882 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4883 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4884 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4885 echo $ECHO_N "(cached
) $ECHO_C" >&6
4887 cat >conftest.$ac_ext <<_ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4905 rm -f conftest.$ac_objext
4906 if { (ac_try="$ac_compile"
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_compile") 2>conftest.er1
4914 grep -v '^ *+' conftest.er1 >conftest.err
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest.$ac_objext; then
4924 echo "$as_me: failed program was
:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4934 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4935 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4936 GCC=`test $ac_compiler_gnu = yes && echo yes`
4937 ac_test_CFLAGS=${CFLAGS+set}
4938 ac_save_CFLAGS=$CFLAGS
4939 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4940 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4941 if test "${ac_cv_prog_cc_g+set}" = set; then
4942 echo $ECHO_N "(cached
) $ECHO_C" >&6
4944 ac_save_c_werror_flag=$ac_c_werror_flag
4945 ac_c_werror_flag=yes
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4963 rm -f conftest.$ac_objext
4964 if { (ac_try="$ac_compile"
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_compile") 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4976 (exit $ac_status); } && {
4977 test -z "$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 } && test -s conftest.$ac_objext; then
4982 echo "$as_me: failed program was
:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4986 cat >conftest.$ac_ext <<_ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
5001 rm -f conftest.$ac_objext
5002 if { (ac_try="$ac_compile"
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5008 (eval "$ac_compile") 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5014 (exit $ac_status); } && {
5015 test -z "$ac_c_werror_flag" ||
5016 test ! -s conftest.err
5017 } && test -s conftest.$ac_objext; then
5020 echo "$as_me: failed program was
:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 ac_c_werror_flag=$ac_save_c_werror_flag
5025 cat >conftest.$ac_ext <<_ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5040 rm -f conftest.$ac_objext
5041 if { (ac_try="$ac_compile"
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_compile") 2>conftest.er1
5049 grep -v '^ *+' conftest.er1 >conftest.err
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest.$ac_objext; then
5059 echo "$as_me: failed program was
:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072 ac_c_werror_flag=$ac_save_c_werror_flag
5074 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5075 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5076 if test "$ac_test_CFLAGS" = set; then
5077 CFLAGS=$ac_save_CFLAGS
5078 elif test $ac_cv_prog_cc_g = yes; then
5079 if test "$GCC" = yes; then
5085 if test "$GCC" = yes; then
5091 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5092 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5093 if test "${ac_cv_prog_cc_c89+set}" = set; then
5094 echo $ECHO_N "(cached
) $ECHO_C" >&6
5096 ac_cv_prog_cc_c89=no
5098 cat >conftest.$ac_ext <<_ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5106 #include <sys/types.h>
5107 #include <sys/stat.h>
5108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5109 struct buf { int x; };
5110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5111 static char *e (p, i)
5117 static char *f (char * (*g) (char **, int), char **p, ...)
5122 s = g (p, va_arg (v,int));
5127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5128 function prototypes and stuff, but not '\xHH' hex character constants.
5129 These don't provoke an error unfortunately, instead are silently treated
5130 as 'x'. The following induces an error, until -std is added to get
5131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5132 array size at least. It's necessary to write '\x00'==0 to get something
5133 that's true only with -std. */
5134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5136 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5137 inside strings and character constants. */
5139 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5141 int test (int i, double x);
5142 struct s1 {int (*f) (int a);};
5143 struct s2 {int (*f) (double a);};
5144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5155 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5156 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5158 CC="$ac_save_CC $ac_arg"
5159 rm -f conftest.$ac_objext
5160 if { (ac_try="$ac_compile"
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_compile") 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5172 (exit $ac_status); } && {
5173 test -z "$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 } && test -s conftest.$ac_objext; then
5176 ac_cv_prog_cc_c89=$ac_arg
5178 echo "$as_me: failed program was
:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5184 rm -f core conftest.err conftest.$ac_objext
5185 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5187 rm -f conftest.$ac_ext
5192 case "x
$ac_cv_prog_cc_c89" in
5194 { echo "$as_me:$LINENO: result
: none needed
" >&5
5195 echo "${ECHO_T}none needed
" >&6; } ;;
5197 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5198 echo "${ECHO_T}unsupported
" >&6; } ;;
5200 CC="$CC $ac_cv_prog_cc_c89"
5201 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5202 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5207 ac_cpp='$CPP $CPPFLAGS'
5208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213 ac_cpp='$CXXCPP $CPPFLAGS'
5214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5217 if test -z "$CXX"; then
5218 if test -n "$CCC"; then
5221 if test -n "$ac_tool_prefix"; then
5222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5226 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5227 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5228 if test "${ac_cv_prog_CXX+set}" = set; then
5229 echo $ECHO_N "(cached
) $ECHO_C" >&6
5231 if test -n "$CXX"; then
5232 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5242 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5252 if test -n "$CXX"; then
5253 { echo "$as_me:$LINENO: result
: $CXX" >&5
5254 echo "${ECHO_T}$CXX" >&6; }
5256 { echo "$as_me:$LINENO: result
: no
" >&5
5257 echo "${ECHO_T}no
" >&6; }
5261 test -n "$CXX" && break
5264 if test -z "$CXX"; then
5266 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5268 # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5271 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5272 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5273 echo $ECHO_N "(cached
) $ECHO_C" >&6
5275 if test -n "$ac_ct_CXX"; then
5276 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_ac_ct_CXX="$ac_prog"
5286 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5295 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5296 if test -n "$ac_ct_CXX"; then
5297 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5298 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5300 { echo "$as_me:$LINENO: result
: no
" >&5
5301 echo "${ECHO_T}no
" >&6; }
5305 test -n "$ac_ct_CXX" && break
5308 if test "x
$ac_ct_CXX" = x; then
5311 case $cross_compiling:$ac_tool_warned in
5313 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5314 whose name does not start with the
host triplet. If you think this
5315 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5316 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5317 whose name does not start with the
host triplet. If you think this
5318 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5319 ac_tool_warned=yes ;;
5327 # Provide some information about the compiler.
5328 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5329 ac_compiler=`set X $ac_compile; echo $2`
5330 { (ac_try="$ac_compiler --version >&5"
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compiler --version >&5") 2>&5
5338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5339 (exit $ac_status); }
5340 { (ac_try="$ac_compiler -v >&5"
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compiler -v >&5") 2>&5
5348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5349 (exit $ac_status); }
5350 { (ac_try="$ac_compiler -V >&5"
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_compiler -V >&5") 2>&5
5358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5359 (exit $ac_status); }
5361 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5362 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5363 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5364 echo $ECHO_N "(cached
) $ECHO_C" >&6
5366 cat >conftest.$ac_ext <<_ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5384 rm -f conftest.$ac_objext
5385 if { (ac_try="$ac_compile"
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_compile") 2>conftest.er1
5393 grep -v '^ *+' conftest.er1 >conftest.err
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5397 (exit $ac_status); } && {
5398 test -z "$ac_cxx_werror_flag" ||
5399 test ! -s conftest.err
5400 } && test -s conftest.$ac_objext; then
5403 echo "$as_me: failed program was
:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5413 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5414 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5415 GXX=`test $ac_compiler_gnu = yes && echo yes`
5416 ac_test_CXXFLAGS=${CXXFLAGS+set}
5417 ac_save_CXXFLAGS=$CXXFLAGS
5418 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5419 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5420 if test "${ac_cv_prog_cxx_g+set}" = set; then
5421 echo $ECHO_N "(cached
) $ECHO_C" >&6
5423 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5424 ac_cxx_werror_flag=yes
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
5451 grep -v '^ *+' conftest.er1 >conftest.err
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_cxx_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest.$ac_objext; then
5459 ac_cv_prog_cxx_g=yes
5461 echo "$as_me: failed program was
:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5465 cat >conftest.$ac_ext <<_ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5480 rm -f conftest.$ac_objext
5481 if { (ac_try="$ac_compile"
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_compile") 2>conftest.er1
5489 grep -v '^ *+' conftest.er1 >conftest.err
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5493 (exit $ac_status); } && {
5494 test -z "$ac_cxx_werror_flag" ||
5495 test ! -s conftest.err
5496 } && test -s conftest.$ac_objext; then
5499 echo "$as_me: failed program was
:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5519 rm -f conftest.$ac_objext
5520 if { (ac_try="$ac_compile"
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_compile") 2>conftest.er1
5528 grep -v '^ *+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5532 (exit $ac_status); } && {
5533 test -z "$ac_cxx_werror_flag" ||
5534 test ! -s conftest.err
5535 } && test -s conftest.$ac_objext; then
5536 ac_cv_prog_cxx_g=yes
5538 echo "$as_me: failed program was
:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5553 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5554 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5555 if test "$ac_test_CXXFLAGS" = set; then
5556 CXXFLAGS=$ac_save_CXXFLAGS
5557 elif test $ac_cv_prog_cxx_g = yes; then
5558 if test "$GXX" = yes; then
5564 if test "$GXX" = yes; then
5571 ac_cpp='$CPP $CPPFLAGS'
5572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5577 ac_cpp='$CPP $CPPFLAGS'
5578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5581 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5582 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5583 # On Suns, sometimes $CPP names a directory.
5584 if test -n "$CPP" && test -d "$CPP"; then
5587 if test -z "$CPP"; then
5588 if test "${ac_cv_prog_CPP+set}" = set; then
5589 echo $ECHO_N "(cached
) $ECHO_C" >&6
5591 # Double quotes because CPP needs to be expanded
5592 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5595 for ac_c_preproc_warn_flag in '' yes
5597 # Use a header file that comes with gcc, so configuring glibc
5598 # with a fresh cross-compiler works.
5599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5600 # <limits.h> exists even on freestanding compilers.
5601 # On the NeXT, cc -E runs the code through the compiler's parser,
5602 # not just through cpp. "Syntax error
" is here to catch this case.
5603 cat >conftest.$ac_ext <<_ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5610 # include <limits.h>
5612 # include <assert.h>
5616 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5624 grep -v '^ *+' conftest.er1 >conftest.err
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5628 (exit $ac_status); } >/dev/null && {
5629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5634 echo "$as_me: failed program was
:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5637 # Broken: fails on valid input.
5641 rm -f conftest.err conftest.$ac_ext
5643 # OK, works on sane cases. Now check whether nonexistent headers
5644 # can be detected and how.
5645 cat >conftest.$ac_ext <<_ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 #include <ac_nonexistent.h>
5653 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5661 grep -v '^ *+' conftest.er1 >conftest.err
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5665 (exit $ac_status); } >/dev/null && {
5666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5669 # Broken: success on invalid input.
5672 echo "$as_me: failed program was
:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 # Passes both tests.
5680 rm -f conftest.err conftest.$ac_ext
5683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5684 rm -f conftest.err conftest.$ac_ext
5685 if $ac_preproc_ok; then
5697 { echo "$as_me:$LINENO: result
: $CPP" >&5
5698 echo "${ECHO_T}$CPP" >&6; }
5700 for ac_c_preproc_warn_flag in '' yes
5702 # Use a header file that comes with gcc, so configuring glibc
5703 # with a fresh cross-compiler works.
5704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5705 # <limits.h> exists even on freestanding compilers.
5706 # On the NeXT, cc -E runs the code through the compiler's parser,
5707 # not just through cpp. "Syntax error
" is here to catch this case.
5708 cat >conftest.$ac_ext <<_ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5715 # include <limits.h>
5717 # include <assert.h>
5721 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5729 grep -v '^ *+' conftest.er1 >conftest.err
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5733 (exit $ac_status); } >/dev/null && {
5734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5739 echo "$as_me: failed program was
:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 # Broken: fails on valid input.
5746 rm -f conftest.err conftest.$ac_ext
5748 # OK, works on sane cases. Now check whether nonexistent headers
5749 # can be detected and how.
5750 cat >conftest.$ac_ext <<_ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 #include <ac_nonexistent.h>
5758 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5766 grep -v '^ *+' conftest.er1 >conftest.err
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5770 (exit $ac_status); } >/dev/null && {
5771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5772 test ! -s conftest.err
5774 # Broken: success on invalid input.
5777 echo "$as_me: failed program was
:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5780 # Passes both tests.
5785 rm -f conftest.err conftest.$ac_ext
5788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789 rm -f conftest.err conftest.$ac_ext
5790 if $ac_preproc_ok; then
5793 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5794 See \
`config.log' for more details." >&5
5795 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5796 See \`config.log
' for more details." >&2;}
5797 { (exit 1); exit 1; }; }
5801 ac_cpp='$CPP $CPPFLAGS'
5802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5803 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5807 ac_cpp='$CXXCPP $CPPFLAGS'
5808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5809 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5811 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5812 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5813 if test -z "$CXXCPP"; then
5814 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 # Double quotes because CXXCPP needs to be expanded
5818 for CXXCPP in "$CXX -E" "/lib/cpp"
5821 for ac_cxx_preproc_warn_flag in '' yes
5823 # Use a header file that comes with gcc, so configuring glibc
5824 # with a fresh cross-compiler works.
5825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826 # <limits.h> exists even on freestanding compilers.
5827 # On the NeXT, cc -E runs the code through the compiler's parser
,
5828 # not just through cpp. "Syntax error" is here to catch this case.
5829 cat >conftest.
$ac_ext <<_ACEOF
5832 cat confdefs.h
>>conftest.
$ac_ext
5833 cat >>conftest.
$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5836 # include <limits.h>
5838 # include <assert.h>
5842 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5850 grep -v '^ *+' conftest.er1 >conftest.err
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null && {
5855 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5856 test ! -s conftest.err
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 # Broken: fails on valid input.
5867 rm -f conftest.err conftest.$ac_ext
5869 # OK, works on sane cases. Now check whether nonexistent headers
5870 # can be detected and how.
5871 cat >conftest.$ac_ext <<_ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 #include <ac_nonexistent.h>
5879 if { (ac_try="$ac_cpp conftest.$ac_ext"
5881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5882 *) ac_try_echo
=$ac_try;;
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5887 grep -v '^ *+' conftest.er1
>conftest.err
5889 cat conftest.err
>&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } >/dev
/null
&& {
5892 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5893 test ! -s conftest.err
5895 # Broken: success on invalid input.
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.
$ac_ext >&5
5901 # Passes both tests.
5906 rm -f conftest.err conftest.
$ac_ext
5909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5910 rm -f conftest.err conftest.
$ac_ext
5911 if $ac_preproc_ok; then
5916 ac_cv_prog_CXXCPP
=$CXXCPP
5919 CXXCPP
=$ac_cv_prog_CXXCPP
5921 ac_cv_prog_CXXCPP
=$CXXCPP
5923 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5924 echo "${ECHO_T}$CXXCPP" >&6; }
5926 for ac_cxx_preproc_warn_flag
in '' yes
5928 # Use a header file that comes with gcc, so configuring glibc
5929 # with a fresh cross-compiler works.
5930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5931 # <limits.h> exists even on freestanding compilers.
5932 # On the NeXT, cc -E runs the code through the compiler's parser,
5933 # not just through cpp. "Syntax error" is here to catch this case.
5934 cat >conftest.
$ac_ext <<_ACEOF
5937 cat confdefs.h
>>conftest.
$ac_ext
5938 cat >>conftest.
$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5941 # include <limits.h>
5943 # include <assert.h>
5947 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } >/dev/null && {
5960 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5961 test ! -s conftest.err
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 # Broken: fails on valid input.
5972 rm -f conftest.err conftest.$ac_ext
5974 # OK, works on sane cases. Now check whether nonexistent headers
5975 # can be detected and how.
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <ac_nonexistent.h>
5984 if { (ac_try="$ac_cpp conftest.$ac_ext"
5986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5987 *) ac_try_echo
=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5992 grep -v '^ *+' conftest.er1
>conftest.err
5994 cat conftest.err
>&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } >/dev
/null
&& {
5997 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5998 test ! -s conftest.err
6000 # Broken: success on invalid input.
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.
$ac_ext >&5
6006 # Passes both tests.
6011 rm -f conftest.err conftest.
$ac_ext
6014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6015 rm -f conftest.err conftest.
$ac_ext
6016 if $ac_preproc_ok; then
6019 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6020 See \`config.log' for more details." >&5
6021 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6022 See \`config.log' for more details." >&2;}
6023 { (exit 1); exit 1; }; }
6027 ac_cpp
='$CPP $CPPFLAGS'
6028 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6032 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6033 # the developers regenerating the configure script don't have to install libtool.
6034 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6035 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6036 if test "${ac_cv_path_SED+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6040 for ac_i
in 1 2 3 4 5 6 7; do
6041 ac_script
="$ac_script$as_nl$ac_script"
6043 echo "$ac_script" |
sed 99q
>conftest.
sed
6044 $as_unset ac_script || ac_script
=
6045 # Extract the first word of "sed gsed" to use in msg output
6046 if test -z "$SED"; then
6047 set dummy
sed gsed
; ac_prog_name
=$2
6048 if test "${ac_cv_path_SED+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 ac_path_SED_found
=false
6052 # Loop through the user's path and test for each of PROGNAME-LIST
6053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir
=.
6058 for ac_prog
in sed gsed
; do
6059 for ac_exec_ext
in '' $ac_executable_extensions; do
6060 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6061 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6062 # Check for GNU ac_path_SED and select it if it is found.
6063 # Check for GNU $ac_path_SED
6064 case `"$ac_path_SED" --version 2>&1` in
6066 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6072 cat "conftest.in" "conftest.in" >"conftest.tmp"
6073 mv "conftest.tmp" "conftest.in"
6074 cp "conftest.in" "conftest.nl"
6075 echo '' >> "conftest.nl"
6076 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6077 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6078 ac_count
=`expr $ac_count + 1`
6079 if test $ac_count -gt ${ac_path_SED_max-0}; then
6080 # Best one so far, save it but keep looking for a better one
6081 ac_cv_path_SED
="$ac_path_SED"
6082 ac_path_SED_max
=$ac_count
6084 # 10*(2^10) chars as input seems more than enough
6085 test $ac_count -gt 10 && break
6087 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6091 $ac_path_SED_found && break 3
6101 SED
="$ac_cv_path_SED"
6102 if test -z "$SED"; then
6103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6104 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6105 { (exit 1); exit 1; }; }
6113 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6114 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6115 SED
="$ac_cv_path_SED"
6118 { echo "$as_me:$LINENO: checking for egrep" >&5
6119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6120 if test "${ac_cv_prog_egrep+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6124 then ac_cv_prog_egrep
='grep -E'
6125 else ac_cv_prog_egrep
='egrep'
6128 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6130 EGREP
=$ac_cv_prog_egrep
6134 # Check whether --with-gnu-ld was given.
6135 if test "${with_gnu_ld+set}" = set; then
6136 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6142 if test "$GCC" = yes; then
6143 # Check if gcc -print-prog-name=ld gives a path.
6144 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6145 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6148 # gcc leaves a trailing carriage return which upsets mingw
6149 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6151 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6154 # Accept absolute paths.
6156 re_direlt
='/[^/][^/]*/\.\./'
6157 # Canonicalize the pathname of ld
6158 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6159 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6160 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6162 test -z "$LD" && LD
="$ac_prog"
6165 # If it fails, then pretend we aren't using GCC.
6169 # If it is relative, then search for the first ld in PATH.
6173 elif test "$with_gnu_ld" = yes; then
6174 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6175 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6177 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6178 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6180 if test "${lt_cv_path_LD+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 if test -z "$LD"; then
6184 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6185 for ac_dir
in $PATH; do
6187 test -z "$ac_dir" && ac_dir
=.
6188 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6189 lt_cv_path_LD
="$ac_dir/$ac_prog"
6190 # Check to see if the program is GNU ld. I'd rather use --version,
6191 # but apparently some variants of GNU ld only accept -v.
6192 # Break only if it was the GNU/non-GNU ld that we prefer.
6193 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6194 *GNU
* |
*'with BFD'*)
6195 test "$with_gnu_ld" != no
&& break
6198 test "$with_gnu_ld" != yes && break
6205 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6210 if test -n "$LD"; then
6211 { echo "$as_me:$LINENO: result: $LD" >&5
6212 echo "${ECHO_T}$LD" >&6; }
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6217 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6218 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6219 { (exit 1); exit 1; }; }
6220 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6221 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6222 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6226 case `$LD -v 2>&1 </dev/null` in
6227 *GNU
* |
*'with BFD'*)
6228 lt_cv_prog_gnu_ld
=yes
6231 lt_cv_prog_gnu_ld
=no
6235 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6236 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6237 with_gnu_ld
=$lt_cv_prog_gnu_ld
6240 for ac_prog
in gawk mawk nawk
awk
6242 # Extract the first word of "$ac_prog", so it can be a program name with args.
6243 set dummy
$ac_prog; ac_word
=$2
6244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6246 if test "${ac_cv_prog_AWK+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 if test -n "$AWK"; then
6250 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6256 test -z "$as_dir" && as_dir
=.
6257 for ac_exec_ext
in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_prog_AWK
="$ac_prog"
6260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 if test -n "$AWK"; then
6271 { echo "$as_me:$LINENO: result: $AWK" >&5
6272 echo "${ECHO_T}$AWK" >&6; }
6274 { echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6; }
6279 test -n "$AWK" && break
6282 # Find a good install program. We prefer a C program (faster),
6283 # so one script is as good as another. But avoid the broken or
6284 # incompatible versions:
6285 # SysV /etc/install, /usr/sbin/install
6286 # SunOS /usr/etc/install
6287 # IRIX /sbin/install
6289 # AmigaOS /C/install, which installs bootblocks on floppy discs
6290 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6291 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6292 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6293 # OS/2's system install, which has a completely different semantic
6294 # ./install, which can be erroneously created by make from ./install.sh.
6295 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6296 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6297 if test -z "$INSTALL"; then
6298 if test "${ac_cv_path_install+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir
=.
6306 # Account for people who put trailing slashes in PATH elements.
6308 .
/ | .
// |
/cC
/* | \
6309 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6310 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6313 # OSF1 and SCO ODT 3.0 have their own names for install.
6314 # Don't use installbsd from OSF since it installs stuff as root
6316 for ac_prog
in ginstall scoinst
install; do
6317 for ac_exec_ext
in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6319 if test $ac_prog = install &&
6320 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6321 # AIX install. It has an incompatible calling convention.
6323 elif test $ac_prog = install &&
6324 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6325 # program-specific install script used by HP pwplus--don't use.
6328 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6341 if test "${ac_cv_path_install+set}" = set; then
6342 INSTALL
=$ac_cv_path_install
6344 # As a last resort, use the slow shell script. Don't cache a
6345 # value for INSTALL within a source directory, because that will
6346 # break other packages using the cache if that directory is
6347 # removed, or if the value is a relative name.
6348 INSTALL
=$ac_install_sh
6351 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6352 echo "${ECHO_T}$INSTALL" >&6; }
6354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6355 # It thinks the first close brace ends the variable substitution.
6356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6360 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6362 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6363 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6365 if test "$LN_S" = "ln -s"; then
6366 { echo "$as_me:$LINENO: result: yes" >&5
6367 echo "${ECHO_T}yes" >&6; }
6369 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6370 echo "${ECHO_T}no, using $LN_S" >&6; }
6373 if test -n "$ac_tool_prefix"; then
6374 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6375 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_prog_RANLIB+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 if test -n "$RANLIB"; then
6382 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6388 test -z "$as_dir" && as_dir
=.
6389 for ac_exec_ext
in '' $ac_executable_extensions; do
6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 RANLIB
=$ac_cv_prog_RANLIB
6402 if test -n "$RANLIB"; then
6403 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6404 echo "${ECHO_T}$RANLIB" >&6; }
6406 { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6412 if test -z "$ac_cv_prog_RANLIB"; then
6413 ac_ct_RANLIB
=$RANLIB
6414 # Extract the first word of "ranlib", so it can be a program name with args.
6415 set dummy ranlib
; ac_word
=$2
6416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6418 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 if test -n "$ac_ct_RANLIB"; then
6422 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6428 test -z "$as_dir" && as_dir
=.
6429 for ac_exec_ext
in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6442 if test -n "$ac_ct_RANLIB"; then
6443 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6444 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6446 { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6450 if test "x$ac_ct_RANLIB" = x
; then
6453 case $cross_compiling:$ac_tool_warned in
6455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6456 whose name does not start with the host triplet. If you think this
6457 configuration is useful to you, please write to autoconf@gnu.org." >&5
6458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6459 whose name does not start with the host triplet. If you think this
6460 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6461 ac_tool_warned
=yes ;;
6463 RANLIB
=$ac_ct_RANLIB
6466 RANLIB
="$ac_cv_prog_RANLIB"
6469 { echo "$as_me:$LINENO: checking for GNU make" >&5
6470 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6471 if test "${GNU_MAKE+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 GNU_MAKE
='Not Found' ;
6475 GNU_MAKE_VERSION_MAJOR
=0 ;
6476 GNU_MAKE_VERSION_MINOR
=0 ;
6477 for a
in make gmake gnumake
; do
6478 if test -z "$a" ; then continue ; fi ;
6479 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6481 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6482 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6488 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6489 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6490 if test "x$GNU_MAKE" = "xNot Found" ; then
6491 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6492 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6493 { (exit 1); exit 1; }; }
6500 if test "x$with_gnu_ld" = "xyes" ; then
6505 # Extract the first word of "grep", so it can be a program name with args.
6506 set dummy
grep; ac_word
=$2
6507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6509 if test "${ac_cv_path_GREP+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir
=.
6522 for ac_exec_ext
in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6536 GREP
=$ac_cv_path_GREP
6537 if test -n "$GREP"; then
6538 { echo "$as_me:$LINENO: result: $GREP" >&5
6539 echo "${ECHO_T}$GREP" >&6; }
6541 { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6546 # Extract the first word of "ar", so it can be a program name with args.
6547 set dummy
ar; ac_word
=$2
6548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6550 if test "${ac_cv_path_AR+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6562 test -z "$as_dir" && as_dir
=.
6563 for ac_exec_ext
in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 test -z "$ac_cv_path_AR" && ac_cv_path_AR
=":"
6578 if test -n "$AR"; then
6579 { echo "$as_me:$LINENO: result: $AR" >&5
6580 echo "${ECHO_T}$AR" >&6; }
6582 { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6587 # Extract the first word of "find", so it can be a program name with args.
6588 set dummy
find; ac_word
=$2
6589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591 if test "${ac_cv_path_FIND+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir
=.
6604 for ac_exec_ext
in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6618 FIND
=$ac_cv_path_FIND
6619 if test -n "$FIND"; then
6620 { echo "$as_me:$LINENO: result: $FIND" >&5
6621 echo "${ECHO_T}$FIND" >&6; }
6623 { echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6; }
6628 # Extract the first word of "compress", so it can be a program name with args.
6629 set dummy
compress; ac_word
=$2
6630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632 if test "${ac_cv_path_COMPRESS+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir
=.
6645 for ac_exec_ext
in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6659 COMPRESS
=$ac_cv_path_COMPRESS
6660 if test -n "$COMPRESS"; then
6661 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6662 echo "${ECHO_T}$COMPRESS" >&6; }
6664 { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6669 # Extract the first word of "basename", so it can be a program name with args.
6670 set dummy
basename; ac_word
=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_path_BASENAME+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir
=.
6686 for ac_exec_ext
in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6700 BASENAME
=$ac_cv_path_BASENAME
6701 if test -n "$BASENAME"; then
6702 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6703 echo "${ECHO_T}$BASENAME" >&6; }
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6710 # Extract the first word of "id", so it can be a program name with args.
6711 set dummy id
; ac_word
=$2
6712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714 if test "${ac_cv_path_ID+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir
=.
6727 for ac_exec_ext
in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6742 if test -n "$ID"; then
6743 { echo "$as_me:$LINENO: result: $ID" >&5
6744 echo "${ECHO_T}$ID" >&6; }
6746 { echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6; }
6751 # Extract the first word of "dirname", so it can be a program name with args.
6752 set dummy
dirname; ac_word
=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_DIRNAME+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir
=.
6768 for ac_exec_ext
in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6782 DIRNAME
=$ac_cv_path_DIRNAME
6783 if test -n "$DIRNAME"; then
6784 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6785 echo "${ECHO_T}$DIRNAME" >&6; }
6787 { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6792 # Extract the first word of "sh", so it can be a program name with args.
6793 set dummy sh
; ac_word
=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_SHELL+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir
=.
6809 for ac_exec_ext
in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
6823 SHELL
=$ac_cv_path_SHELL
6824 if test -n "$SHELL"; then
6825 { echo "$as_me:$LINENO: result: $SHELL" >&5
6826 echo "${ECHO_T}$SHELL" >&6; }
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6833 # Extract the first word of "ln", so it can be a program name with args.
6834 set dummy
ln; ac_word
=$2
6835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837 if test "${ac_cv_path_LN+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6842 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
6845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6849 test -z "$as_dir" && as_dir
=.
6850 for ac_exec_ext
in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
6853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
6865 if test -n "$LN"; then
6866 { echo "$as_me:$LINENO: result: $LN" >&5
6867 echo "${ECHO_T}$LN" >&6; }
6869 { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6874 # Extract the first word of "dot", so it can be a program name with args.
6875 set dummy dot
; ac_word
=$2
6876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6878 if test "${ac_cv_path_DOT+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
6886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir
=.
6891 for ac_exec_ext
in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
6894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
6906 if test -n "$DOT"; then
6907 { echo "$as_me:$LINENO: result: $DOT" >&5
6908 echo "${ECHO_T}$DOT" >&6; }
6910 { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6915 # Extract the first word of "strip", so it can be a program name with args.
6916 set dummy strip
; ac_word
=$2
6917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6919 if test "${ac_cv_path_STRIP+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir
=.
6932 for ac_exec_ext
in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP
=":"
6946 STRIP
=$ac_cv_path_STRIP
6947 if test -n "$STRIP"; then
6948 { echo "$as_me:$LINENO: result: $STRIP" >&5
6949 echo "${ECHO_T}$STRIP" >&6; }
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6956 # Extract the first word of "wget", so it can be a program name with args.
6957 set dummy wget
; ac_word
=$2
6958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960 if test "${ac_cv_path_WGET+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
6968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir
=.
6973 for ac_exec_ext
in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
6987 WGET
=$ac_cv_path_WGET
6988 if test -n "$WGET"; then
6989 { echo "$as_me:$LINENO: result: $WGET" >&5
6990 echo "${ECHO_T}$WGET" >&6; }
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6997 if test "${WGET}" != ":" ; then
7000 # Extract the first word of "fetch", so it can be a program name with args.
7001 set dummy fetch
; ac_word
=$2
7002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004 if test "${ac_cv_path_FETCH+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7016 test -z "$as_dir" && as_dir
=.
7017 for ac_exec_ext
in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7031 FETCH
=$ac_cv_path_FETCH
7032 if test -n "$FETCH"; then
7033 { echo "$as_me:$LINENO: result: $FETCH" >&5
7034 echo "${ECHO_T}$FETCH" >&6; }
7036 { echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6; }
7046 ac_cpp
='$CPP $CPPFLAGS'
7047 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7052 # Check whether --enable-dev-mode was given.
7053 if test "${enable_dev_mode+set}" = set; then
7054 enableval
=$enable_dev_mode; case "${enableval}" in
7055 y|ye|
yes) AST_DEVMODE
=yes ;;
7056 n|no
) AST_DEVMODE
=no
;;
7057 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7058 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7059 { (exit 1); exit 1; }; } ;;
7065 # package option names should be in alphabetical order
7066 # by the --with option name, to make things easier for the users :-)
7069 ALSA_DESCRIP
="Advanced Linux Sound Architecture"
7070 ALSA_OPTION
="asound"
7072 # Check whether --with-asound was given.
7073 if test "${with_asound+set}" = set; then
7074 withval
=$with_asound;
7080 ALSA_MANDATORY
="yes"
7083 ALSA_DIR
="${withval}"
7084 ALSA_MANDATORY
="yes"
7099 # Check whether --with-curl was given.
7100 if test "${with_curl+set}" = set; then
7107 CURL_MANDATORY
="yes"
7110 CURL_DIR
="${withval}"
7111 CURL_MANDATORY
="yes"
7123 CURSES_DESCRIP
="curses"
7124 CURSES_OPTION
="curses"
7126 # Check whether --with-curses was given.
7127 if test "${with_curses+set}" = set; then
7128 withval
=$with_curses;
7134 CURSES_MANDATORY
="yes"
7137 CURSES_DIR
="${withval}"
7138 CURSES_MANDATORY
="yes"
7150 GNUTLS_DESCRIP
="GNU TLS support (used for iksemel only)"
7151 GNUTLS_OPTION
="gnutls"
7153 # Check whether --with-gnutls was given.
7154 if test "${with_gnutls+set}" = set; then
7155 withval
=$with_gnutls;
7161 GNUTLS_MANDATORY
="yes"
7164 GNUTLS_DIR
="${withval}"
7165 GNUTLS_MANDATORY
="yes"
7180 # Check whether --with-gsm was given.
7181 if test "${with_gsm+set}" = set; then
7191 GSM_DIR
="${withval}"
7204 IKSEMEL_DESCRIP
="Iksemel Jabber Library"
7205 IKSEMEL_OPTION
="iksemel"
7207 # Check whether --with-iksemel was given.
7208 if test "${with_iksemel+set}" = set; then
7209 withval
=$with_iksemel;
7215 IKSEMEL_MANDATORY
="yes"
7218 IKSEMEL_DIR
="${withval}"
7219 IKSEMEL_MANDATORY
="yes"
7231 IMAP_TK_DESCRIP
="UW IMAP Toolkit"
7232 IMAP_TK_OPTION
="imap"
7234 # Check whether --with-imap was given.
7235 if test "${with_imap+set}" = set; then
7242 IMAP_TK_MANDATORY
="yes"
7245 IMAP_TK_DIR
="${withval}"
7246 IMAP_TK_MANDATORY
="yes"
7258 ISDNNET_DESCRIP
="ISDN4Linux Library"
7259 ISDNNET_OPTION
="isdnnet"
7261 # Check whether --with-isdnnet was given.
7262 if test "${with_isdnnet+set}" = set; then
7263 withval
=$with_isdnnet;
7269 ISDNNET_MANDATORY
="yes"
7272 ISDNNET_DIR
="${withval}"
7273 ISDNNET_MANDATORY
="yes"
7288 # Check whether --with-kde was given.
7289 if test "${with_kde+set}" = set; then
7299 KDE_DIR
="${withval}"
7312 MISDN_DESCRIP
="mISDN User Library"
7313 MISDN_OPTION
="misdn"
7315 # Check whether --with-misdn was given.
7316 if test "${with_misdn+set}" = set; then
7317 withval
=$with_misdn;
7323 MISDN_MANDATORY
="yes"
7326 MISDN_DIR
="${withval}"
7327 MISDN_MANDATORY
="yes"
7339 NBS_DESCRIP
="Network Broadcast Sound"
7342 # Check whether --with-nbs was given.
7343 if test "${with_nbs+set}" = set; then
7353 NBS_DIR
="${withval}"
7366 NCURSES_DESCRIP
="ncurses"
7367 NCURSES_OPTION
="ncurses"
7369 # Check whether --with-ncurses was given.
7370 if test "${with_ncurses+set}" = set; then
7371 withval
=$with_ncurses;
7377 NCURSES_MANDATORY
="yes"
7380 NCURSES_DIR
="${withval}"
7381 NCURSES_MANDATORY
="yes"
7393 NETSNMP_DESCRIP
="Net-SNMP"
7394 NETSNMP_OPTION
="netsnmp"
7396 # Check whether --with-netsnmp was given.
7397 if test "${with_netsnmp+set}" = set; then
7398 withval
=$with_netsnmp;
7404 NETSNMP_MANDATORY
="yes"
7407 NETSNMP_DIR
="${withval}"
7408 NETSNMP_MANDATORY
="yes"
7423 # Check whether --with-newt was given.
7424 if test "${with_newt+set}" = set; then
7431 NEWT_MANDATORY
="yes"
7434 NEWT_DIR
="${withval}"
7435 NEWT_MANDATORY
="yes"
7447 UNIXODBC_DESCRIP
="unixODBC"
7448 UNIXODBC_OPTION
="odbc"
7450 # Check whether --with-odbc was given.
7451 if test "${with_odbc+set}" = set; then
7458 UNIXODBC_MANDATORY
="yes"
7461 UNIXODBC_DIR
="${withval}"
7462 UNIXODBC_MANDATORY
="yes"
7477 # Check whether --with-ogg was given.
7478 if test "${with_ogg+set}" = set; then
7488 OGG_DIR
="${withval}"
7501 OSPTK_DESCRIP
="OSP Toolkit"
7502 OSPTK_OPTION
="osptk"
7504 # Check whether --with-osptk was given.
7505 if test "${with_osptk+set}" = set; then
7506 withval
=$with_osptk;
7512 OSPTK_MANDATORY
="yes"
7515 OSPTK_DIR
="${withval}"
7516 OSPTK_MANDATORY
="yes"
7528 OSS_DESCRIP
="Open Sound System"
7531 # Check whether --with-oss was given.
7532 if test "${with_oss+set}" = set; then
7542 OSS_DIR
="${withval}"
7558 # Check whether --with-popt was given.
7559 if test "${with_popt+set}" = set; then
7566 POPT_MANDATORY
="yes"
7569 POPT_DIR
="${withval}"
7570 POPT_MANDATORY
="yes"
7582 PGSQL_DESCRIP
="PostgreSQL"
7583 PGSQL_OPTION
="postgres"
7585 # Check whether --with-postgres was given.
7586 if test "${with_postgres+set}" = set; then
7587 withval
=$with_postgres;
7593 PGSQL_MANDATORY
="yes"
7596 PGSQL_DIR
="${withval}"
7597 PGSQL_MANDATORY
="yes"
7609 PRI_DESCRIP
="ISDN PRI"
7612 # Check whether --with-pri was given.
7613 if test "${with_pri+set}" = set; then
7623 PRI_DIR
="${withval}"
7636 PWLIB_DESCRIP
="PWlib"
7637 PWLIB_OPTION
="pwlib"
7639 # Check whether --with-pwlib was given.
7640 if test "${with_pwlib+set}" = set; then
7641 withval
=$with_pwlib;
7647 PWLIB_MANDATORY
="yes"
7650 PWLIB_DIR
="${withval}"
7651 PWLIB_MANDATORY
="yes"
7663 OPENH323_DESCRIP
="OpenH323"
7664 OPENH323_OPTION
="h323"
7666 # Check whether --with-h323 was given.
7667 if test "${with_h323+set}" = set; then
7674 OPENH323_MANDATORY
="yes"
7677 OPENH323_DIR
="${withval}"
7678 OPENH323_MANDATORY
="yes"
7693 # Check whether --with-qt was given.
7694 if test "${with_qt+set}" = set; then
7717 RADIUS_DESCRIP
="Radius Client"
7718 RADIUS_OPTION
="radius"
7720 # Check whether --with-radius was given.
7721 if test "${with_radius+set}" = set; then
7722 withval
=$with_radius;
7728 RADIUS_MANDATORY
="yes"
7731 RADIUS_DIR
="${withval}"
7732 RADIUS_MANDATORY
="yes"
7744 SPEEX_DESCRIP
="Speex"
7745 SPEEX_OPTION
="speex"
7747 # Check whether --with-speex was given.
7748 if test "${with_speex+set}" = set; then
7749 withval
=$with_speex;
7755 SPEEX_MANDATORY
="yes"
7758 SPEEX_DIR
="${withval}"
7759 SPEEX_MANDATORY
="yes"
7771 SQLITE_DESCRIP
="SQLite"
7772 SQLITE_OPTION
="sqlite"
7774 # Check whether --with-sqlite was given.
7775 if test "${with_sqlite+set}" = set; then
7776 withval
=$with_sqlite;
7782 SQLITE_MANDATORY
="yes"
7785 SQLITE_DIR
="${withval}"
7786 SQLITE_MANDATORY
="yes"
7798 SUPPSERV_DESCRIP
="mISDN Supplemental Services"
7799 SUPPSERV_OPTION
="suppserv"
7801 # Check whether --with-suppserv was given.
7802 if test "${with_suppserv+set}" = set; then
7803 withval
=$with_suppserv;
7809 SUPPSERV_MANDATORY
="yes"
7812 SUPPSERV_DIR
="${withval}"
7813 SUPPSERV_MANDATORY
="yes"
7825 OPENSSL_DESCRIP
="OpenSSL"
7826 OPENSSL_OPTION
="ssl"
7828 # Check whether --with-ssl was given.
7829 if test "${with_ssl+set}" = set; then
7836 OPENSSL_MANDATORY
="yes"
7839 OPENSSL_DIR
="${withval}"
7840 OPENSSL_MANDATORY
="yes"
7852 FREETDS_DESCRIP
="FreeTDS"
7853 FREETDS_OPTION
="tds"
7855 # Check whether --with-tds was given.
7856 if test "${with_tds+set}" = set; then
7863 FREETDS_MANDATORY
="yes"
7866 FREETDS_DIR
="${withval}"
7867 FREETDS_MANDATORY
="yes"
7879 TERMCAP_DESCRIP
="Termcap"
7880 TERMCAP_OPTION
="termcap"
7882 # Check whether --with-termcap was given.
7883 if test "${with_termcap+set}" = set; then
7884 withval
=$with_termcap;
7890 TERMCAP_MANDATORY
="yes"
7893 TERMCAP_DIR
="${withval}"
7894 TERMCAP_MANDATORY
="yes"
7906 TINFO_DESCRIP
="Term Info"
7907 TINFO_OPTION
="tinfo"
7909 # Check whether --with-tinfo was given.
7910 if test "${with_tinfo+set}" = set; then
7911 withval
=$with_tinfo;
7917 TINFO_MANDATORY
="yes"
7920 TINFO_DIR
="${withval}"
7921 TINFO_MANDATORY
="yes"
7933 TONEZONE_DESCRIP
="tonezone"
7934 TONEZONE_OPTION
="tonezone"
7936 # Check whether --with-tonezone was given.
7937 if test "${with_tonezone+set}" = set; then
7938 withval
=$with_tonezone;
7944 TONEZONE_MANDATORY
="yes"
7947 TONEZONE_DIR
="${withval}"
7948 TONEZONE_MANDATORY
="yes"
7960 VORBIS_DESCRIP
="Vorbis"
7961 VORBIS_OPTION
="vorbis"
7963 # Check whether --with-vorbis was given.
7964 if test "${with_vorbis+set}" = set; then
7965 withval
=$with_vorbis;
7971 VORBIS_MANDATORY
="yes"
7974 VORBIS_DIR
="${withval}"
7975 VORBIS_MANDATORY
="yes"
7987 VPB_DESCRIP
="Voicetronix API"
7990 # Check whether --with-vpb was given.
7991 if test "${with_vpb+set}" = set; then
8001 VPB_DIR
="${withval}"
8017 # Check whether --with-z was given.
8018 if test "${with_z+set}" = set; then
8025 ZLIB_MANDATORY
="yes"
8028 ZLIB_DIR
="${withval}"
8029 ZLIB_MANDATORY
="yes"
8041 ZAPTEL_DESCRIP
="Zaptel"
8042 ZAPTEL_OPTION
="zaptel"
8044 # Check whether --with-zaptel was given.
8045 if test "${with_zaptel+set}" = set; then
8046 withval
=$with_zaptel;
8052 ZAPTEL_MANDATORY
="yes"
8055 ZAPTEL_DIR
="${withval}"
8056 ZAPTEL_MANDATORY
="yes"
8068 # check for basic system features and functionality before
8069 # checking for package libraries
8071 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8072 # for constant arguments. Useless!
8073 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8074 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8075 if test "${ac_cv_working_alloca_h+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 cat >conftest.
$ac_ext <<_ACEOF
8081 cat confdefs.h
>>conftest.
$ac_ext
8082 cat >>conftest.
$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8088 char *p = (char *) alloca (2 * sizeof (int));
8094 rm -f conftest.
$ac_objext conftest
$ac_exeext
8095 if { (ac_try
="$ac_link"
8097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_link") 2>conftest.er1
8103 grep -v '^ *+' conftest.er1 >conftest.err
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } && {
8108 test -z "$ac_c_werror_flag" ||
8109 test ! -s conftest.err
8110 } && test -s conftest$ac_exeext &&
8111 $as_test_x conftest$ac_exeext; then
8112 ac_cv_working_alloca_h=yes
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8117 ac_cv_working_alloca_h=no
8120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8121 conftest$ac_exeext conftest.$ac_ext
8123 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8124 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8125 if test $ac_cv_working_alloca_h = yes; then
8127 cat >>confdefs.h <<\_ACEOF
8128 #define HAVE_ALLOCA_H 1
8133 { echo "$as_me:$LINENO: checking for alloca" >&5
8134 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8135 if test "${ac_cv_func_alloca_works+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8145 # define alloca __builtin_alloca
8148 # include <malloc.h>
8149 # define alloca _alloca
8151 # ifdef HAVE_ALLOCA_H
8152 # include <alloca.h>
8157 # ifndef alloca /* predefined by HP cc +Olibcalls */
8168 char *p = (char *) alloca (1);
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (ac_try="$ac_link"
8177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8178 *) ac_try_echo
=$ac_try;;
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_link") 2>conftest.er1
8183 grep -v '^ *+' conftest.er1
>conftest.err
8185 cat conftest.err
>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && {
8188 test -z "$ac_c_werror_flag" ||
8189 test ! -s conftest.err
8190 } && test -s conftest
$ac_exeext &&
8191 $as_test_x conftest
$ac_exeext; then
8192 ac_cv_func_alloca_works
=yes
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.
$ac_ext >&5
8197 ac_cv_func_alloca_works
=no
8200 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8201 conftest
$ac_exeext conftest.
$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8204 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8206 if test $ac_cv_func_alloca_works = yes; then
8208 cat >>confdefs.h
<<\_ACEOF
8209 #define HAVE_ALLOCA 1
8213 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8214 # that cause trouble. Some versions do not even contain alloca or
8215 # contain a buggy version. If you still want to use their alloca,
8216 # use ar to extract alloca.o from them instead of compiling alloca.c.
8218 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8220 cat >>confdefs.h
<<\_ACEOF
8225 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8226 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8227 if test "${ac_cv_os_cray+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 cat >conftest.
$ac_ext <<_ACEOF
8233 cat confdefs.h
>>conftest.
$ac_ext
8234 cat >>conftest.
$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 #if defined CRAY && ! defined CRAY2
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 $EGREP "webecray" >/dev
/null
2>&1; then
8252 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8253 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8254 if test $ac_cv_os_cray = yes; then
8255 for ac_func
in _getb67 GETB67 getb67
; do
8256 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8259 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 cat >conftest.
$ac_ext <<_ACEOF
8265 cat confdefs.h
>>conftest.
$ac_ext
8266 cat >>conftest.
$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8270 #define $ac_func innocuous_$ac_func
8272 /* System header to define __stub macros and hopefully few prototypes,
8273 which can conflict with char $ac_func (); below.
8274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8275 <limits.h> exists even on freestanding compilers. */
8278 # include <limits.h>
8280 # include <assert.h>
8285 /* Override any GCC internal prototype to avoid an error.
8286 Use char because int might match the return type of a GCC
8287 builtin and then its argument prototype would still apply. */
8292 /* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295 #if defined __stub_$ac_func || defined __stub___$ac_func
8307 rm -f conftest.
$ac_objext conftest
$ac_exeext
8308 if { (ac_try
="$ac_link"
8310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_link") 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest$ac_exeext &&
8324 $as_test_x conftest$ac_exeext; then
8325 eval "$as_ac_var=yes"
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8330 eval "$as_ac_var=no"
8333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8334 conftest$ac_exeext conftest.$ac_ext
8336 ac_res=`eval echo '${'$as_ac_var'}'`
8337 { echo "$as_me:$LINENO: result: $ac_res" >&5
8338 echo "${ECHO_T}$ac_res" >&6; }
8339 if test `eval echo '${'$as_ac_var'}'` = yes; then
8341 cat >>confdefs.h <<_ACEOF
8342 #define CRAY_STACKSEG_END $ac_func
8351 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8352 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8353 if test "${ac_cv_c_stack_direction+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 if test "$cross_compiling" = yes; then
8357 ac_cv_c_stack_direction=0
8359 cat >conftest.$ac_ext <<_ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 $ac_includes_default
8367 find_stack_direction ()
8369 static char *addr = 0;
8374 return find_stack_direction ();
8377 return (&dummy > addr) ? 1 : -1;
8383 return find_stack_direction () < 0;
8386 rm -f conftest$ac_exeext
8387 if { (ac_try="$ac_link"
8389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8390 *) ac_try_echo
=$ac_try;;
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_link") 2>&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8397 { (case "(($ac_try" in
8398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_try") 2>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_cv_c_stack_direction=1
8408 echo "$as_me: program exited with status $ac_status" >&5
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_cv_c_stack_direction=-1
8415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8420 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8421 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8423 cat >>confdefs.h <<_ACEOF
8424 #define STACK_DIRECTION $ac_cv_c_stack_direction
8436 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8437 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
8438 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8439 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 #include <sys/types.h>
8461 rm -f conftest.$ac_objext
8462 if { (ac_try="$ac_compile"
8464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8465 *) ac_try_echo
=$ac_try;;
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_compile") 2>conftest.er1
8470 grep -v '^ *+' conftest.er1
>conftest.err
8472 cat conftest.err
>&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } && {
8475 test -z "$ac_c_werror_flag" ||
8476 test ! -s conftest.err
8477 } && test -s conftest.
$ac_objext; then
8478 eval "$as_ac_Header=yes"
8480 echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.
$ac_ext >&5
8483 eval "$as_ac_Header=no"
8486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8488 ac_res
=`eval echo '${'$as_ac_Header'}'`
8489 { echo "$as_me:$LINENO: result: $ac_res" >&5
8490 echo "${ECHO_T}$ac_res" >&6; }
8491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8492 cat >>confdefs.h
<<_ACEOF
8493 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8496 ac_header_dirent
=$ac_hdr; break
8500 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8501 if test $ac_header_dirent = dirent.h
; then
8502 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8503 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8504 if test "${ac_cv_search_opendir+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 ac_func_search_save_LIBS
=$LIBS
8508 cat >conftest.
$ac_ext <<_ACEOF
8511 cat confdefs.h
>>conftest.
$ac_ext
8512 cat >>conftest.
$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8515 /* Override any GCC internal prototype to avoid an error.
8516 Use char because int might match the return type of a GCC
8517 builtin and then its argument prototype would still apply. */
8530 for ac_lib
in '' dir
; do
8531 if test -z "$ac_lib"; then
8532 ac_res
="none required"
8535 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8537 rm -f conftest.
$ac_objext conftest
$ac_exeext
8538 if { (ac_try
="$ac_link"
8540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_link") 2>conftest.er1
8546 grep -v '^ *+' conftest.er1 >conftest.err
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } && {
8551 test -z "$ac_c_werror_flag" ||
8552 test ! -s conftest.err
8553 } && test -s conftest$ac_exeext &&
8554 $as_test_x conftest$ac_exeext; then
8555 ac_cv_search_opendir=$ac_res
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8565 if test "${ac_cv_search_opendir+set}" = set; then
8569 if test "${ac_cv_search_opendir+set}" = set; then
8572 ac_cv_search_opendir=no
8575 LIBS=$ac_func_search_save_LIBS
8577 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8578 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8579 ac_res=$ac_cv_search_opendir
8580 if test "$ac_res" != no; then
8581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8586 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8587 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8588 if test "${ac_cv_search_opendir+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 ac_func_search_save_LIBS=$LIBS
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8599 /* Override any GCC internal prototype to avoid an error.
8600 Use char because int might match the return type of a GCC
8601 builtin and then its argument prototype would still apply. */
8614 for ac_lib in '' x; do
8615 if test -z "$ac_lib"; then
8616 ac_res="none required"
8619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (ac_try="$ac_link"
8624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8625 *) ac_try_echo
=$ac_try;;
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_link") 2>conftest.er1
8630 grep -v '^ *+' conftest.er1
>conftest.err
8632 cat conftest.err
>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } && {
8635 test -z "$ac_c_werror_flag" ||
8636 test ! -s conftest.err
8637 } && test -s conftest
$ac_exeext &&
8638 $as_test_x conftest
$ac_exeext; then
8639 ac_cv_search_opendir
=$ac_res
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.
$ac_ext >&5
8647 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8649 if test "${ac_cv_search_opendir+set}" = set; then
8653 if test "${ac_cv_search_opendir+set}" = set; then
8656 ac_cv_search_opendir
=no
8659 LIBS
=$ac_func_search_save_LIBS
8661 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8662 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8663 ac_res
=$ac_cv_search_opendir
8664 if test "$ac_res" != no
; then
8665 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8671 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8672 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8673 if test "${ac_cv_header_stdc+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 cat >conftest.
$ac_ext <<_ACEOF
8679 cat confdefs.h
>>conftest.
$ac_ext
8680 cat >>conftest.
$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8695 rm -f conftest.
$ac_objext
8696 if { (ac_try
="$ac_compile"
8698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_compile") 2>conftest.er1
8704 grep -v '^ *+' conftest.er1 >conftest.err
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } && {
8709 test -z "$ac_c_werror_flag" ||
8710 test ! -s conftest.err
8711 } && test -s conftest.$ac_objext; then
8712 ac_cv_header_stdc=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_header_stdc=no
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 if test $ac_cv_header_stdc = yes; then
8723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8734 $EGREP "memchr" >/dev/null 2>&1; then
8737 ac_cv_header_stdc=no
8743 if test $ac_cv_header_stdc = yes; then
8744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8745 cat >conftest.$ac_ext <<_ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8755 $EGREP "free" >/dev/null 2>&1; then
8758 ac_cv_header_stdc=no
8764 if test $ac_cv_header_stdc = yes; then
8765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8766 if test "$cross_compiling" = yes; then
8769 cat >conftest.$ac_ext <<_ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8777 #if ((' ' & 0x0FF) == 0x020)
8778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8781 # define ISLOWER(c) \
8782 (('a' <= (c) && (c) <= 'i') \
8783 || ('j' <= (c) && (c) <= 'r') \
8784 || ('s' <= (c) && (c) <= 'z'))
8785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8793 for (i = 0; i < 256; i++)
8794 if (XOR (islower (i), ISLOWER (i))
8795 || toupper (i) != TOUPPER (i))
8800 rm -f conftest$ac_exeext
8801 if { (ac_try="$ac_link"
8803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8804 *) ac_try_echo
=$ac_try;;
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_link") 2>&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8811 { (case "(($ac_try" in
8812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_try") 2>&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8822 echo "$as_me: program exited with status $ac_status" >&5
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8827 ac_cv_header_stdc=no
8829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8835 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8836 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8837 if test $ac_cv_header_stdc = yes; then
8839 cat >>confdefs.h <<\_ACEOF
8840 #define STDC_HEADERS 1
8845 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8846 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8847 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 cat >conftest.$ac_ext <<_ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 #include <sys/types.h>
8857 #include <sys/wait.h>
8859 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8862 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8870 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8875 rm -f conftest.$ac_objext
8876 if { (ac_try="$ac_compile"
8878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8879 *) ac_try_echo
=$ac_try;;
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_compile") 2>conftest.er1
8884 grep -v '^ *+' conftest.er1
>conftest.err
8886 cat conftest.err
>&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest.
$ac_objext; then
8892 ac_cv_header_sys_wait_h
=yes
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.
$ac_ext >&5
8897 ac_cv_header_sys_wait_h
=no
8900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8902 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8903 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8904 if test $ac_cv_header_sys_wait_h = yes; then
8906 cat >>confdefs.h
<<\_ACEOF
8907 #define HAVE_SYS_WAIT_H 1
8935 for ac_header
in arpa
/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet
/in.h stddef.h stdint.h stdlib.h string.h
strings.h sys
/file.h sys
/ioctl.h sys
/param.h sys
/socket.h sys
/time.h syslog.h termios.h unistd.h utime.h
8937 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8938 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8941 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 ac_res
=`eval echo '${'$as_ac_Header'}'`
8945 { echo "$as_me:$LINENO: result: $ac_res" >&5
8946 echo "${ECHO_T}$ac_res" >&6; }
8948 # Is the header compilable?
8949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8951 cat >conftest.
$ac_ext <<_ACEOF
8954 cat confdefs.h
>>conftest.
$ac_ext
8955 cat >>conftest.
$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 $ac_includes_default
8958 #include <$ac_header>
8960 rm -f conftest.
$ac_objext
8961 if { (ac_try
="$ac_compile"
8963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_compile") 2>conftest.er1
8969 grep -v '^ *+' conftest.er1 >conftest.err
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } && {
8974 test -z "$ac_c_werror_flag" ||
8975 test ! -s conftest.err
8976 } && test -s conftest.$ac_objext; then
8977 ac_header_compiler=yes
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 ac_header_compiler=no
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8987 echo "${ECHO_T}$ac_header_compiler" >&6; }
8989 # Is the header present?
8990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8992 cat >conftest.$ac_ext <<_ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998 #include <$ac_header>
9000 if { (ac_try="$ac_cpp conftest.$ac_ext"
9002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9003 *) ac_try_echo
=$ac_try;;
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9008 grep -v '^ *+' conftest.er1
>conftest.err
9010 cat conftest.err
>&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } >/dev
/null
&& {
9013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9016 ac_header_preproc
=yes
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.
$ac_ext >&5
9021 ac_header_preproc
=no
9024 rm -f conftest.err conftest.
$ac_ext
9025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9026 echo "${ECHO_T}$ac_header_preproc" >&6; }
9028 # So? What about this header?
9029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9035 ac_header_preproc
=yes
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9055 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 eval "$as_ac_Header=\$ac_header_preproc"
9060 ac_res
=`eval echo '${'$as_ac_Header'}'`
9061 { echo "$as_me:$LINENO: result: $ac_res" >&5
9062 echo "${ECHO_T}$ac_res" >&6; }
9065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9066 cat >>confdefs.h
<<_ACEOF
9067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9075 # Check whether --enable-largefile was given.
9076 if test "${enable_largefile+set}" = set; then
9077 enableval
=$enable_largefile;
9080 if test "$enable_largefile" != no
; then
9082 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9083 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9084 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 ac_cv_sys_largefile_CC
=no
9088 if test "$GCC" != yes; then
9091 # IRIX 6.2 and later do not support large files by default,
9092 # so use the C compiler's -n32 option if that helps.
9093 cat >conftest.
$ac_ext <<_ACEOF
9096 cat confdefs.h
>>conftest.
$ac_ext
9097 cat >>conftest.
$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 #include <sys/types.h>
9100 /* Check that off_t can represent 2**63 - 1 correctly.
9101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9102 since some C++ compilers masquerading as C compilers
9103 incorrectly reject 9223372036854775807. */
9104 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9106 && LARGE_OFF_T % 2147483647 == 1)
9116 rm -f conftest.
$ac_objext
9117 if { (ac_try
="$ac_compile"
9119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_compile") 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.$ac_objext; then
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9141 rm -f core conftest.err conftest.$ac_objext
9143 rm -f conftest.$ac_objext
9144 if { (ac_try="$ac_compile"
9146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9147 *) ac_try_echo
=$ac_try;;
9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_compile") 2>conftest.er1
9152 grep -v '^ *+' conftest.er1
>conftest.err
9154 cat conftest.err
>&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest.
$ac_objext; then
9160 ac_cv_sys_largefile_CC
=' -n32'; break
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.
$ac_ext >&5
9168 rm -f core conftest.err conftest.
$ac_objext
9172 rm -f conftest.
$ac_ext
9175 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9176 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9177 if test "$ac_cv_sys_largefile_CC" != no
; then
9178 CC
=$CC$ac_cv_sys_largefile_CC
9181 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9182 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9183 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 cat >conftest.
$ac_ext <<_ACEOF
9190 cat confdefs.h
>>conftest.
$ac_ext
9191 cat >>conftest.
$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 #include <sys/types.h>
9194 /* Check that off_t can represent 2**63 - 1 correctly.
9195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9196 since some C++ compilers masquerading as C compilers
9197 incorrectly reject 9223372036854775807. */
9198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9200 && LARGE_OFF_T % 2147483647 == 1)
9210 rm -f conftest.
$ac_objext
9211 if { (ac_try
="$ac_compile"
9213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_compile") 2>conftest.er1
9219 grep -v '^ *+' conftest.er1 >conftest.err
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } && {
9224 test -z "$ac_c_werror_flag" ||
9225 test ! -s conftest.err
9226 } && test -s conftest.$ac_objext; then
9227 ac_cv_sys_file_offset_bits=no; break
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 cat >conftest.$ac_ext <<_ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9242 #define _FILE_OFFSET_BITS 64
9243 #include <sys/types.h>
9244 /* Check that off_t can represent 2**63 - 1 correctly.
9245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9246 since some C++ compilers masquerading as C compilers
9247 incorrectly reject 9223372036854775807. */
9248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9250 && LARGE_OFF_T % 2147483647 == 1)
9260 rm -f conftest.$ac_objext
9261 if { (ac_try="$ac_compile"
9263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9264 *) ac_try_echo
=$ac_try;;
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_compile") 2>conftest.er1
9269 grep -v '^ *+' conftest.er1
>conftest.err
9271 cat conftest.err
>&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest.
$ac_objext; then
9277 ac_cv_sys_file_offset_bits
=64; break
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.
$ac_ext >&5
9285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9286 ac_cv_sys_file_offset_bits
=unknown
9290 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9291 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9292 case $ac_cv_sys_file_offset_bits in #(
9295 cat >>confdefs.h
<<_ACEOF
9296 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9301 if test $ac_cv_sys_file_offset_bits = unknown
; then
9302 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9303 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9304 if test "${ac_cv_sys_large_files+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 cat >conftest.
$ac_ext <<_ACEOF
9311 cat confdefs.h
>>conftest.
$ac_ext
9312 cat >>conftest.
$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9314 #include <sys/types.h>
9315 /* Check that off_t can represent 2**63 - 1 correctly.
9316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9317 since some C++ compilers masquerading as C compilers
9318 incorrectly reject 9223372036854775807. */
9319 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9321 && LARGE_OFF_T % 2147483647 == 1)
9331 rm -f conftest.
$ac_objext
9332 if { (ac_try
="$ac_compile"
9334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9335 *) ac_try_echo=$ac_try;;
9337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338 (eval "$ac_compile") 2>conftest.er1
9340 grep -v '^ *+' conftest.er1 >conftest.err
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } && {
9345 test -z "$ac_c_werror_flag" ||
9346 test ! -s conftest.err
9347 } && test -s conftest.$ac_objext; then
9348 ac_cv_sys_large_files=no; break
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 cat >conftest.$ac_ext <<_ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9363 #define _LARGE_FILES 1
9364 #include <sys/types.h>
9365 /* Check that off_t can represent 2**63 - 1 correctly.
9366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9367 since some C++ compilers masquerading as C compilers
9368 incorrectly reject 9223372036854775807. */
9369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9371 && LARGE_OFF_T % 2147483647 == 1)
9381 rm -f conftest.$ac_objext
9382 if { (ac_try="$ac_compile"
9384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9385 *) ac_try_echo
=$ac_try;;
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_compile") 2>conftest.er1
9390 grep -v '^ *+' conftest.er1
>conftest.err
9392 cat conftest.err
>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest.
$ac_objext; then
9398 ac_cv_sys_large_files
=1; break
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.
$ac_ext >&5
9406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9407 ac_cv_sys_large_files
=unknown
9411 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9412 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9413 case $ac_cv_sys_large_files in #(
9416 cat >>confdefs.h
<<_ACEOF
9417 #define _LARGE_FILES $ac_cv_sys_large_files
9426 # Checks for typedefs, structures, and compiler characteristics.
9427 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9428 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
9429 if test "${ac_cv_header_stdbool_h+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 cat >conftest.
$ac_ext <<_ACEOF
9435 cat confdefs.h
>>conftest.
$ac_ext
9436 cat >>conftest.
$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9439 #include <stdbool.h>
9441 "error: bool is not defined"
9444 "error: false is not defined"
9447 "error: false is not 0"
9450 "error: true is not defined"
9453 "error: true is not 1"
9455 #ifndef __bool_true_false_are_defined
9456 "error: __bool_true_false_are_defined is not defined"
9459 struct s { _Bool s: 1; _Bool t; } s;
9461 char a[true == 1 ? 1 : -1];
9462 char b[false == 0 ? 1 : -1];
9463 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9464 char d[(bool) 0.5 == true ? 1 : -1];
9466 char f[(_Bool) 0.0 == false ? 1 : -1];
9468 char h[sizeof (_Bool)];
9470 enum { j = false, k = true, l = false * true, m = true * 256 };
9472 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9473 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9474 # if defined __xlc__ || defined __GNUC__
9475 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9476 reported by James Lemley on 2005-10-05; see
9477 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9478 This test is not quite right, since xlc is allowed to
9479 reject this program, as the initializer for xlcbug is
9480 not one of the forms that C requires support for.
9481 However, doing the test right would require a runtime
9482 test, and that would make cross-compilation harder.
9483 Let us hope that IBM fixes the xlc bug, and also adds
9484 support for this kind of constant expression. In the
9485 meantime, this test will reject xlc, which is OK, since
9486 our stdbool.h substitute should suffice. We also test
9487 this with GCC, where it should work, to detect more
9488 quickly whether someone messes up the test in the
9490 char digs[] = "0123456789";
9491 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9493 /* Catch a bug in an HP-UX C compiler. See
9494 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9495 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9506 /* Refer to every declared value, to avoid compiler optimizations. */
9507 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9508 + !m + !n + !o + !p + !q + !pq);
9514 rm -f conftest.
$ac_objext
9515 if { (ac_try
="$ac_compile"
9517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_compile") 2>conftest.er1
9523 grep -v '^ *+' conftest.er1 >conftest.err
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && {
9528 test -z "$ac_c_werror_flag" ||
9529 test ! -s conftest.err
9530 } && test -s conftest.$ac_objext; then
9531 ac_cv_header_stdbool_h=yes
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 ac_cv_header_stdbool_h=no
9539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9542 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
9543 { echo "$as_me:$LINENO: checking for _Bool" >&5
9544 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
9545 if test "${ac_cv_type__Bool+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 $ac_includes_default
9555 typedef _Bool ac__type_new_;
9559 if ((ac__type_new_ *) 0)
9561 if (sizeof (ac__type_new_))
9567 rm -f conftest.$ac_objext
9568 if { (ac_try="$ac_compile"
9570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9571 *) ac_try_echo
=$ac_try;;
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_compile") 2>conftest.er1
9576 grep -v '^ *+' conftest.er1
>conftest.err
9578 cat conftest.err
>&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest.
$ac_objext; then
9584 ac_cv_type__Bool
=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.
$ac_ext >&5
9592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9594 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9595 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
9596 if test $ac_cv_type__Bool = yes; then
9598 cat >>confdefs.h
<<_ACEOF
9599 #define HAVE__BOOL 1
9605 if test $ac_cv_header_stdbool_h = yes; then
9607 cat >>confdefs.h
<<\_ACEOF
9608 #define HAVE_STDBOOL_H 1
9613 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9614 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9615 if test "${ac_cv_c_const+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 cat >conftest.
$ac_ext <<_ACEOF
9621 cat confdefs.h
>>conftest.
$ac_ext
9622 cat >>conftest.
$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9628 /* FIXME: Include the comments suggested by Paul. */
9630 /* Ultrix mips cc rejects this. */
9631 typedef int charset[2];
9633 /* SunOS 4.1.1 cc rejects this. */
9634 char const *const *pcpcc;
9636 /* NEC SVR4.0.2 mips cc rejects this. */
9637 struct point {int x, y;};
9638 static struct point const zero = {0,0};
9639 /* AIX XL C 1.02.0.0 rejects this.
9640 It does not let you subtract one const X* pointer from another in
9641 an arm of an if-expression whose if-part is not a constant
9643 const char *g = "string";
9644 pcpcc = &g + (g ? g-g : 0);
9645 /* HPUX 7.0 cc rejects these. */
9647 ppc = (char**) pcpcc;
9648 pcpcc = (char const *const *) ppc;
9649 { /* SCO 3.2v4 cc rejects this. */
9651 char const *s = 0 ? (char *) 0 : (char const *) 0;
9656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9658 const int *foo = &x[0];
9661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9662 typedef const int *iptr;
9666 { /* AIX XL C 1.02.0.0 rejects this saying
9667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9668 struct s { int j; const int *ap[3]; };
9669 struct s *b; b->j = 5;
9671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9675 return !cs[0] && !zero.x;
9682 rm -f conftest.
$ac_objext
9683 if { (ac_try
="$ac_compile"
9685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9686 *) ac_try_echo=$ac_try;;
9688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9689 (eval "$ac_compile") 2>conftest.er1
9691 grep -v '^ *+' conftest.er1 >conftest.err
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } && {
9696 test -z "$ac_c_werror_flag" ||
9697 test ! -s conftest.err
9698 } && test -s conftest.$ac_objext; then
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9710 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9711 if test $ac_cv_c_const = no; then
9713 cat >>confdefs.h <<\_ACEOF
9719 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9720 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
9721 if test "${ac_cv_type_uid_t+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 #include <sys/types.h>
9733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9734 $EGREP "uid_t" >/dev/null 2>&1; then
9735 ac_cv_type_uid_t=yes
9742 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9743 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
9744 if test $ac_cv_type_uid_t = no; then
9746 cat >>confdefs.h <<\_ACEOF
9751 cat >>confdefs.h <<\_ACEOF
9757 { echo "$as_me:$LINENO: checking for inline" >&5
9758 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9759 if test "${ac_cv_c_inline+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 for ac_kw in inline __inline__ __inline; do
9764 cat >conftest.$ac_ext <<_ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9772 static $ac_kw foo_t static_foo () {return 0; }
9773 $ac_kw foo_t foo () {return 0; }
9777 rm -f conftest.$ac_objext
9778 if { (ac_try="$ac_compile"
9780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9781 *) ac_try_echo
=$ac_try;;
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_compile") 2>conftest.er1
9786 grep -v '^ *+' conftest.er1
>conftest.err
9788 cat conftest.err
>&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && {
9791 test -z "$ac_c_werror_flag" ||
9792 test ! -s conftest.err
9793 } && test -s conftest.
$ac_objext; then
9794 ac_cv_c_inline
=$ac_kw
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.
$ac_ext >&5
9802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9803 test "$ac_cv_c_inline" != no
&& break
9807 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9808 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9811 case $ac_cv_c_inline in
9814 case $ac_cv_c_inline in
9816 *) ac_val
=$ac_cv_c_inline;;
9818 cat >>confdefs.h
<<_ACEOF
9820 #define inline $ac_val
9826 { echo "$as_me:$LINENO: checking for mode_t" >&5
9827 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
9828 if test "${ac_cv_type_mode_t+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 cat >conftest.
$ac_ext <<_ACEOF
9834 cat confdefs.h
>>conftest.
$ac_ext
9835 cat >>conftest.
$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9837 $ac_includes_default
9838 typedef mode_t ac__type_new_;
9842 if ((ac__type_new_ *) 0)
9844 if (sizeof (ac__type_new_))
9850 rm -f conftest.
$ac_objext
9851 if { (ac_try
="$ac_compile"
9853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_compile") 2>conftest.er1
9859 grep -v '^ *+' conftest.er1 >conftest.err
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && {
9864 test -z "$ac_c_werror_flag" ||
9865 test ! -s conftest.err
9866 } && test -s conftest.$ac_objext; then
9867 ac_cv_type_mode_t=yes
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 ac_cv_type_mode_t=no
9875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9878 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
9879 if test $ac_cv_type_mode_t = yes; then
9883 cat >>confdefs.h <<_ACEOF
9889 { echo "$as_me:$LINENO: checking for off_t" >&5
9890 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9891 if test "${ac_cv_type_off_t+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 cat >conftest.$ac_ext <<_ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 $ac_includes_default
9901 typedef off_t ac__type_new_;
9905 if ((ac__type_new_ *) 0)
9907 if (sizeof (ac__type_new_))
9913 rm -f conftest.$ac_objext
9914 if { (ac_try="$ac_compile"
9916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9917 *) ac_try_echo
=$ac_try;;
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_compile") 2>conftest.er1
9922 grep -v '^ *+' conftest.er1
>conftest.err
9924 cat conftest.err
>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } && {
9927 test -z "$ac_c_werror_flag" ||
9928 test ! -s conftest.err
9929 } && test -s conftest.
$ac_objext; then
9930 ac_cv_type_off_t
=yes
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.
$ac_ext >&5
9938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9940 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9941 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9942 if test $ac_cv_type_off_t = yes; then
9946 cat >>confdefs.h
<<_ACEOF
9947 #define off_t long int
9952 { echo "$as_me:$LINENO: checking for pid_t" >&5
9953 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9954 if test "${ac_cv_type_pid_t+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 cat >conftest.
$ac_ext <<_ACEOF
9960 cat confdefs.h
>>conftest.
$ac_ext
9961 cat >>conftest.
$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 $ac_includes_default
9964 typedef pid_t ac__type_new_;
9968 if ((ac__type_new_ *) 0)
9970 if (sizeof (ac__type_new_))
9976 rm -f conftest.
$ac_objext
9977 if { (ac_try
="$ac_compile"
9979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_compile") 2>conftest.er1
9985 grep -v '^ *+' conftest.er1 >conftest.err
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest.$ac_objext; then
9993 ac_cv_type_pid_t=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
10001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10004 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10005 if test $ac_cv_type_pid_t = yes; then
10009 cat >>confdefs.h <<_ACEOF
10015 { echo "$as_me:$LINENO: checking for size_t" >&5
10016 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10017 if test "${ac_cv_type_size_t+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026 $ac_includes_default
10027 typedef size_t ac__type_new_;
10031 if ((ac__type_new_ *) 0)
10033 if (sizeof (ac__type_new_))
10039 rm -f conftest.$ac_objext
10040 if { (ac_try="$ac_compile"
10041 case "(($ac_try" in
10042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10043 *) ac_try_echo
=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_compile") 2>conftest.er1
10048 grep -v '^ *+' conftest.er1
>conftest.err
10050 cat conftest.err
>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } && {
10053 test -z "$ac_c_werror_flag" ||
10054 test ! -s conftest.err
10055 } && test -s conftest.
$ac_objext; then
10056 ac_cv_type_size_t
=yes
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.
$ac_ext >&5
10061 ac_cv_type_size_t
=no
10064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10066 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10067 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10068 if test $ac_cv_type_size_t = yes; then
10072 cat >>confdefs.h
<<_ACEOF
10073 #define size_t unsigned int
10078 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10079 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10080 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 cat >conftest.
$ac_ext <<_ACEOF
10086 cat confdefs.h
>>conftest.
$ac_ext
10087 cat >>conftest.
$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 $ac_includes_default
10093 static struct stat ac_aggr;
10094 if (ac_aggr.st_blksize)
10100 rm -f conftest.
$ac_objext
10101 if { (ac_try
="$ac_compile"
10102 case "(($ac_try" in
10103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_compile") 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest.$ac_objext; then
10117 ac_cv_member_struct_stat_st_blksize=yes
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10132 static struct stat ac_aggr;
10133 if (sizeof ac_aggr.st_blksize)
10139 rm -f conftest.$ac_objext
10140 if { (ac_try="$ac_compile"
10141 case "(($ac_try" in
10142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10143 *) ac_try_echo
=$ac_try;;
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_compile") 2>conftest.er1
10148 grep -v '^ *+' conftest.er1
>conftest.err
10150 cat conftest.err
>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } && {
10153 test -z "$ac_c_werror_flag" ||
10154 test ! -s conftest.err
10155 } && test -s conftest.
$ac_objext; then
10156 ac_cv_member_struct_stat_st_blksize
=yes
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.
$ac_ext >&5
10161 ac_cv_member_struct_stat_st_blksize
=no
10164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10169 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10170 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10171 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10173 cat >>confdefs.h
<<_ACEOF
10174 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10180 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10181 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10182 if test "${ac_cv_header_time+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 cat >conftest.
$ac_ext <<_ACEOF
10188 cat confdefs.h
>>conftest.
$ac_ext
10189 cat >>conftest.
$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 #include <sys/types.h>
10192 #include <sys/time.h>
10198 if ((struct tm *) 0)
10204 rm -f conftest.
$ac_objext
10205 if { (ac_try
="$ac_compile"
10206 case "(($ac_try" in
10207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest.$ac_objext; then
10221 ac_cv_header_time=yes
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_cv_header_time=no
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10231 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10232 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10233 if test $ac_cv_header_time = yes; then
10235 cat >>confdefs.h <<\_ACEOF
10236 #define TIME_WITH_SYS_TIME 1
10241 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10242 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10243 if test "${ac_cv_struct_tm+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 cat >conftest.$ac_ext <<_ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <sys/types.h>
10259 int *p = &tm.tm_sec;
10265 rm -f conftest.$ac_objext
10266 if { (ac_try="$ac_compile"
10267 case "(($ac_try" in
10268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10269 *) ac_try_echo
=$ac_try;;
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_compile") 2>conftest.er1
10274 grep -v '^ *+' conftest.er1
>conftest.err
10276 cat conftest.err
>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && {
10279 test -z "$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 } && test -s conftest.
$ac_objext; then
10282 ac_cv_struct_tm
=time.h
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.
$ac_ext >&5
10287 ac_cv_struct_tm
=sys
/time.h
10290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10292 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10293 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10294 if test $ac_cv_struct_tm = sys
/time.h
; then
10296 cat >>confdefs.h
<<\_ACEOF
10297 #define TM_IN_SYS_TIME 1
10302 { echo "$as_me:$LINENO: checking for working volatile" >&5
10303 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10304 if test "${ac_cv_c_volatile+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 cat >conftest.
$ac_ext <<_ACEOF
10310 cat confdefs.h
>>conftest.
$ac_ext
10311 cat >>conftest.
$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10319 int * volatile y = (int *) 0;
10325 rm -f conftest.
$ac_objext
10326 if { (ac_try
="$ac_compile"
10327 case "(($ac_try" in
10328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_compile") 2>conftest.er1
10334 grep -v '^ *+' conftest.er1 >conftest.err
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest.$ac_objext; then
10342 ac_cv_c_volatile=yes
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10347 ac_cv_c_volatile=no
10350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10353 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10354 if test $ac_cv_c_volatile = no; then
10356 cat >>confdefs.h <<\_ACEOF
10362 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10363 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10364 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 cat >conftest.$ac_ext <<_ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 $ac_includes_default
10374 typedef ptrdiff_t ac__type_new_;
10378 if ((ac__type_new_ *) 0)
10380 if (sizeof (ac__type_new_))
10386 rm -f conftest.$ac_objext
10387 if { (ac_try="$ac_compile"
10388 case "(($ac_try" in
10389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10390 *) ac_try_echo
=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_compile") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1
>conftest.err
10397 cat conftest.err
>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest.
$ac_objext; then
10403 ac_cv_type_ptrdiff_t
=yes
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.
$ac_ext >&5
10408 ac_cv_type_ptrdiff_t
=no
10411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10413 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10414 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10415 if test $ac_cv_type_ptrdiff_t = yes; then
10417 cat >>confdefs.h
<<_ACEOF
10418 #define HAVE_PTRDIFF_T 1
10425 # Checks for library functions.
10427 for ac_header
in unistd.h
10429 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10430 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10433 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 ac_res
=`eval echo '${'$as_ac_Header'}'`
10437 { echo "$as_me:$LINENO: result: $ac_res" >&5
10438 echo "${ECHO_T}$ac_res" >&6; }
10440 # Is the header compilable?
10441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10443 cat >conftest.
$ac_ext <<_ACEOF
10446 cat confdefs.h
>>conftest.
$ac_ext
10447 cat >>conftest.
$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449 $ac_includes_default
10450 #include <$ac_header>
10452 rm -f conftest.
$ac_objext
10453 if { (ac_try
="$ac_compile"
10454 case "(($ac_try" in
10455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_compile") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1 >conftest.err
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest.$ac_objext; then
10469 ac_header_compiler=yes
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_header_compiler=no
10477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10479 echo "${ECHO_T}$ac_header_compiler" >&6; }
10481 # Is the header present?
10482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10484 cat >conftest.$ac_ext <<_ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 #include <$ac_header>
10492 if { (ac_try="$ac_cpp conftest.$ac_ext"
10493 case "(($ac_try" in
10494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10495 *) ac_try_echo
=$ac_try;;
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10500 grep -v '^ *+' conftest.er1
>conftest.err
10502 cat conftest.err
>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } >/dev
/null
&& {
10505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10506 test ! -s conftest.err
10508 ac_header_preproc
=yes
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.
$ac_ext >&5
10513 ac_header_preproc
=no
10516 rm -f conftest.err conftest.
$ac_ext
10517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10518 echo "${ECHO_T}$ac_header_preproc" >&6; }
10520 # So? What about this header?
10521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10527 ac_header_preproc
=yes
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10547 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10550 eval "$as_ac_Header=\$ac_header_preproc"
10552 ac_res
=`eval echo '${'$as_ac_Header'}'`
10553 { echo "$as_me:$LINENO: result: $ac_res" >&5
10554 echo "${ECHO_T}$ac_res" >&6; }
10557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10558 cat >>confdefs.h
<<_ACEOF
10559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10566 { echo "$as_me:$LINENO: checking for working chown" >&5
10567 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10568 if test "${ac_cv_func_chown_works+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 if test "$cross_compiling" = yes; then
10572 ac_cv_func_chown_works
=no
10574 cat >conftest.
$ac_ext <<_ACEOF
10577 cat confdefs.h
>>conftest.
$ac_ext
10578 cat >>conftest.
$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580 $ac_includes_default
10586 char *f = "conftest.chown";
10587 struct stat before, after;
10589 if (creat (f, 0600) < 0)
10591 if (stat (f, &before) < 0)
10593 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10595 if (stat (f, &after) < 0)
10597 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10603 rm -f conftest
$ac_exeext
10604 if { (ac_try
="$ac_link"
10605 case "(($ac_try" in
10606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_link") 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10614 { (case "(($ac_try" in
10615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10616 *) ac_try_echo
=$ac_try;;
10618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619 (eval "$ac_try") 2>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_cv_func_chown_works
=yes
10625 echo "$as_me: program exited with status $ac_status" >&5
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.
$ac_ext >&5
10629 ( exit $ac_status )
10630 ac_cv_func_chown_works
=no
10632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10636 rm -f conftest.chown
10639 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10640 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10641 if test $ac_cv_func_chown_works = yes; then
10643 cat >>confdefs.h
<<\_ACEOF
10644 #define HAVE_CHOWN 1
10649 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10650 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
10651 if test "${ac_cv_func_closedir_void+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 if test "$cross_compiling" = yes; then
10655 ac_cv_func_closedir_void
=yes
10657 cat >conftest.
$ac_ext <<_ACEOF
10660 cat confdefs.h
>>conftest.
$ac_ext
10661 cat >>conftest.
$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663 $ac_includes_default
10664 #include <$ac_header_dirent>
10665 #ifndef __cplusplus
10672 return closedir (opendir (".")) != 0;
10677 rm -f conftest
$ac_exeext
10678 if { (ac_try
="$ac_link"
10679 case "(($ac_try" in
10680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_link") 2>&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10688 { (case "(($ac_try" in
10689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10690 *) ac_try_echo
=$ac_try;;
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_try") 2>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
10697 ac_cv_func_closedir_void
=no
10699 echo "$as_me: program exited with status $ac_status" >&5
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.
$ac_ext >&5
10703 ( exit $ac_status )
10704 ac_cv_func_closedir_void
=yes
10706 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10711 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10712 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
10713 if test $ac_cv_func_closedir_void = yes; then
10715 cat >>confdefs.h
<<\_ACEOF
10716 #define CLOSEDIR_VOID 1
10721 { echo "$as_me:$LINENO: checking for error_at_line" >&5
10722 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
10723 if test "${ac_cv_lib_error_at_line+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 cat >conftest.
$ac_ext <<_ACEOF
10729 cat confdefs.h
>>conftest.
$ac_ext
10730 cat >>conftest.
$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10736 error_at_line (0, 0, "", 0, "an error occurred");
10741 rm -f conftest.
$ac_objext conftest
$ac_exeext
10742 if { (ac_try
="$ac_link"
10743 case "(($ac_try" in
10744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } && {
10755 test -z "$ac_c_werror_flag" ||
10756 test ! -s conftest.err
10757 } && test -s conftest$ac_exeext &&
10758 $as_test_x conftest$ac_exeext; then
10759 ac_cv_lib_error_at_line=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_cv_lib_error_at_line=no
10767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768 conftest$ac_exeext conftest.$ac_ext
10770 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10771 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10772 if test $ac_cv_lib_error_at_line = no; then
10773 case " $LIBOBJS " in
10774 *" error.$ac_objext "* ) ;;
10775 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10782 for ac_header in vfork.h
10784 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 ac_res=`eval echo '${'$as_ac_Header'}'`
10792 { echo "$as_me:$LINENO: result: $ac_res" >&5
10793 echo "${ECHO_T}$ac_res" >&6; }
10795 # Is the header compilable?
10796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10798 cat >conftest.$ac_ext <<_ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10804 $ac_includes_default
10805 #include <$ac_header>
10807 rm -f conftest.$ac_objext
10808 if { (ac_try="$ac_compile"
10809 case "(($ac_try" in
10810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10811 *) ac_try_echo
=$ac_try;;
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_compile") 2>conftest.er1
10816 grep -v '^ *+' conftest.er1
>conftest.err
10818 cat conftest.err
>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_c_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest.
$ac_objext; then
10824 ac_header_compiler
=yes
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.
$ac_ext >&5
10829 ac_header_compiler
=no
10832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10834 echo "${ECHO_T}$ac_header_compiler" >&6; }
10836 # Is the header present?
10837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10839 cat >conftest.
$ac_ext <<_ACEOF
10842 cat confdefs.h
>>conftest.
$ac_ext
10843 cat >>conftest.
$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 #include <$ac_header>
10847 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10848 case "(($ac_try" in
10849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10855 grep -v '^ *+' conftest.er1 >conftest.err
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } >/dev/null && {
10860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10861 test ! -s conftest.err
10863 ac_header_preproc=yes
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10868 ac_header_preproc=no
10871 rm -f conftest.err conftest.$ac_ext
10872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10873 echo "${ECHO_T}$ac_header_preproc" >&6; }
10875 # So? What about this header?
10876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10882 ac_header_preproc=yes
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 eval "$as_ac_Header=\$ac_header_preproc"
10907 ac_res=`eval echo '${'$as_ac_Header'}'`
10908 { echo "$as_me:$LINENO: result: $ac_res" >&5
10909 echo "${ECHO_T}$ac_res" >&6; }
10912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10913 cat >>confdefs.h <<_ACEOF
10914 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10923 for ac_func in fork vfork
10925 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6
10931 cat >conftest.$ac_ext <<_ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10939 #define $ac_func innocuous_$ac_func
10941 /* System header to define __stub macros and hopefully few prototypes,
10942 which can conflict with char $ac_func (); below.
10943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10944 <limits.h> exists even on freestanding compilers. */
10947 # include <limits.h>
10949 # include <assert.h>
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10961 /* The GNU C library defines this for functions which it implements
10962 to always fail with ENOSYS. Some functions are actually named
10963 something starting with __ and the normal name is an alias. */
10964 #if defined __stub_$ac_func || defined __stub___$ac_func
10971 return $ac_func ();
10976 rm -f conftest.$ac_objext conftest$ac_exeext
10977 if { (ac_try="$ac_link"
10978 case "(($ac_try" in
10979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10980 *) ac_try_echo
=$ac_try;;
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_link") 2>conftest.er1
10985 grep -v '^ *+' conftest.er1
>conftest.err
10987 cat conftest.err
>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } && {
10990 test -z "$ac_c_werror_flag" ||
10991 test ! -s conftest.err
10992 } && test -s conftest
$ac_exeext &&
10993 $as_test_x conftest
$ac_exeext; then
10994 eval "$as_ac_var=yes"
10996 echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.
$ac_ext >&5
10999 eval "$as_ac_var=no"
11002 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11003 conftest
$ac_exeext conftest.
$ac_ext
11005 ac_res
=`eval echo '${'$as_ac_var'}'`
11006 { echo "$as_me:$LINENO: result: $ac_res" >&5
11007 echo "${ECHO_T}$ac_res" >&6; }
11008 if test `eval echo '${'$as_ac_var'}'` = yes; then
11009 cat >>confdefs.h
<<_ACEOF
11010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11016 if test "x$ac_cv_func_fork" = xyes
; then
11017 { echo "$as_me:$LINENO: checking for working fork" >&5
11018 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11019 if test "${ac_cv_func_fork_works+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 if test "$cross_compiling" = yes; then
11023 ac_cv_func_fork_works
=cross
11025 cat >conftest.
$ac_ext <<_ACEOF
11028 cat confdefs.h
>>conftest.
$ac_ext
11029 cat >>conftest.
$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 $ac_includes_default
11036 /* By Ruediger Kuhlmann. */
11037 return fork () < 0;
11043 rm -f conftest
$ac_exeext
11044 if { (ac_try
="$ac_link"
11045 case "(($ac_try" in
11046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_link") 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11056 *) ac_try_echo
=$ac_try;;
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_cv_func_fork_works
=yes
11065 echo "$as_me: program exited with status $ac_status" >&5
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.
$ac_ext >&5
11069 ( exit $ac_status )
11070 ac_cv_func_fork_works
=no
11072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11077 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11078 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11081 ac_cv_func_fork_works
=$ac_cv_func_fork
11083 if test "x$ac_cv_func_fork_works" = xcross
; then
11085 *-*-amigaos* |
*-*-msdosdjgpp* |
*-*-uclinux* )
11086 # Override, as these systems have only a dummy fork() stub
11087 ac_cv_func_fork_works
=no
11090 ac_cv_func_fork_works
=yes
11093 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11094 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11096 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11097 if test "x$ac_cv_func_vfork" = xyes
; then
11098 { echo "$as_me:$LINENO: checking for working vfork" >&5
11099 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11100 if test "${ac_cv_func_vfork_works+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 if test "$cross_compiling" = yes; then
11104 ac_cv_func_vfork_works
=cross
11106 cat >conftest.
$ac_ext <<_ACEOF
11109 cat confdefs.h
>>conftest.
$ac_ext
11110 cat >>conftest.
$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 /* Thanks to Paul Eggert for this test. */
11113 $ac_includes_default
11114 #include <sys/wait.h>
11115 #ifdef HAVE_VFORK_H
11116 # include <vfork.h>
11118 /* On some sparc systems, changes by the child to local and incoming
11119 argument registers are propagated back to the parent. The compiler
11120 is told about this with #include <vfork.h>, but some compilers
11121 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11122 static variable whose address is put into a register that is
11123 clobbered by the vfork. */
11126 sparc_address_test (int arg)
11128 sparc_address_test (arg) int arg;
11131 static pid_t child;
11149 pid_t parent = getpid ();
11152 sparc_address_test (0);
11157 /* Here is another test for sparc vfork register problems. This
11158 test uses lots of local variables, at least as many local
11159 variables as main has allocated so far including compiler
11160 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11161 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11162 reuse the register of parent for one of the local variables,
11163 since it will think that parent can't possibly be used any more
11164 in this routine. Assigning to the local variable will thus
11165 munge parent in the parent process. */
11167 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11168 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11169 /* Convince the compiler that p..p7 are live; otherwise, it might
11170 use the same hardware register for all 8 local variables. */
11171 if (p != p1 || p != p2 || p != p3 || p != p4
11172 || p != p5 || p != p6 || p != p7)
11175 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11176 from child file descriptors. If the child closes a descriptor
11177 before it execs or exits, this munges the parent's descriptor
11178 as well. Test for this by closing stdout in the child. */
11179 _exit(close(fileno(stdout)) != 0);
11184 while (wait(&status) != child)
11187 /* Was there some problem with vforking? */
11190 /* Did the child fail? (This shouldn't happen.) */
11193 /* Did the vfork/compiler bug occur? */
11194 || parent != getpid()
11196 /* Did the file descriptor bug occur? */
11197 || fstat(fileno(stdout), &st) != 0
11202 rm -f conftest
$ac_exeext
11203 if { (ac_try
="$ac_link"
11204 case "(($ac_try" in
11205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_link") 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11213 { (case "(($ac_try" in
11214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11215 *) ac_try_echo
=$ac_try;;
11217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_try") 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_func_vfork_works
=yes
11224 echo "$as_me: program exited with status $ac_status" >&5
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.
$ac_ext >&5
11228 ( exit $ac_status )
11229 ac_cv_func_vfork_works
=no
11231 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11236 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11237 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11240 if test "x$ac_cv_func_fork_works" = xcross
; then
11241 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11242 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11243 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11246 if test "x$ac_cv_func_vfork_works" = xyes
; then
11248 cat >>confdefs.h
<<\_ACEOF
11249 #define HAVE_WORKING_VFORK 1
11254 cat >>confdefs.h
<<\_ACEOF
11259 if test "x$ac_cv_func_fork_works" = xyes
; then
11261 cat >>confdefs.h
<<\_ACEOF
11262 #define HAVE_WORKING_FORK 1
11267 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11268 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11269 if test "${ac_cv_sys_largefile_source+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 cat >conftest.
$ac_ext <<_ACEOF
11276 cat confdefs.h
>>conftest.
$ac_ext
11277 cat >>conftest.
$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 #include <sys/types.h> /* for off_t */
11284 int (*fp) (FILE *, off_t, int) = fseeko;
11285 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11290 rm -f conftest.
$ac_objext conftest
$ac_exeext
11291 if { (ac_try
="$ac_link"
11292 case "(($ac_try" in
11293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_link") 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } && {
11304 test -z "$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 } && test -s conftest$ac_exeext &&
11307 $as_test_x conftest$ac_exeext; then
11308 ac_cv_sys_largefile_source=no; break
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11317 conftest$ac_exeext conftest.$ac_ext
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 #define _LARGEFILE_SOURCE 1
11325 #include <sys/types.h> /* for off_t */
11330 int (*fp) (FILE *, off_t, int) = fseeko;
11331 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (ac_try="$ac_link"
11338 case "(($ac_try" in
11339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11340 *) ac_try_echo
=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_link") 2>conftest.er1
11345 grep -v '^ *+' conftest.er1
>conftest.err
11347 cat conftest.err
>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } && {
11350 test -z "$ac_c_werror_flag" ||
11351 test ! -s conftest.err
11352 } && test -s conftest
$ac_exeext &&
11353 $as_test_x conftest
$ac_exeext; then
11354 ac_cv_sys_largefile_source
=1; break
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.
$ac_ext >&5
11362 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11363 conftest
$ac_exeext conftest.
$ac_ext
11364 ac_cv_sys_largefile_source
=unknown
11368 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11369 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11370 case $ac_cv_sys_largefile_source in #(
11373 cat >>confdefs.h
<<_ACEOF
11374 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11380 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11381 # in glibc 2.1.3, but that breaks too many other things.
11382 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11383 if test $ac_cv_sys_largefile_source != unknown
; then
11385 cat >>confdefs.h
<<\_ACEOF
11386 #define HAVE_FSEEKO 1
11391 if test $ac_cv_c_compiler_gnu = yes; then
11392 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11393 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11394 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 ac_pattern
="Autoconf.*'x'"
11398 cat >conftest.
$ac_ext <<_ACEOF
11401 cat confdefs.h
>>conftest.
$ac_ext
11402 cat >>conftest.
$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11408 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11409 ac_cv_prog_gcc_traditional
=yes
11411 ac_cv_prog_gcc_traditional
=no
11416 if test $ac_cv_prog_gcc_traditional = no
; then
11417 cat >conftest.
$ac_ext <<_ACEOF
11420 cat confdefs.h
>>conftest.
$ac_ext
11421 cat >>conftest.
$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 #include <termio.h>
11426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11428 ac_cv_prog_gcc_traditional
=yes
11434 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11435 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11436 if test $ac_cv_prog_gcc_traditional = yes; then
11437 CC
="$CC -traditional"
11441 # XXX: these are commented out until we determine whether it matters if our malloc()
11442 # acts exactly like glibc's or not
11445 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11446 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11447 if test "${ac_cv_func_memcmp_working+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 if test "$cross_compiling" = yes; then
11451 ac_cv_func_memcmp_working
=no
11453 cat >conftest.
$ac_ext <<_ACEOF
11456 cat confdefs.h
>>conftest.
$ac_ext
11457 cat >>conftest.
$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 $ac_includes_default
11464 /* Some versions of memcmp are not 8-bit clean. */
11465 char c0 = '\100', c1 = '\200', c2 = '\201';
11466 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11469 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11470 or more and with at least one buffer not starting on a 4-byte boundary.
11471 William Lewis provided this test program. */
11476 for (i = 0; i < 4; i++)
11480 strcpy (a, "--------01111111");
11481 strcpy (b, "--------10000000");
11482 if (memcmp (a, b, 16) >= 0)
11492 rm -f conftest
$ac_exeext
11493 if { (ac_try
="$ac_link"
11494 case "(($ac_try" in
11495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_link") 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11503 { (case "(($ac_try" in
11504 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11505 *) ac_try_echo
=$ac_try;;
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_try") 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_cv_func_memcmp_working
=yes
11514 echo "$as_me: program exited with status $ac_status" >&5
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.
$ac_ext >&5
11518 ( exit $ac_status )
11519 ac_cv_func_memcmp_working
=no
11521 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11526 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11527 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11528 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
11529 *" memcmp.$ac_objext "* ) ;;
11530 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
11539 for ac_header
in $ac_header_list
11541 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11542 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 ac_res
=`eval echo '${'$as_ac_Header'}'`
11549 { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11552 # Is the header compilable?
11553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11555 cat >conftest.
$ac_ext <<_ACEOF
11558 cat confdefs.h
>>conftest.
$ac_ext
11559 cat >>conftest.
$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 $ac_includes_default
11562 #include <$ac_header>
11564 rm -f conftest.
$ac_objext
11565 if { (ac_try
="$ac_compile"
11566 case "(($ac_try" in
11567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_compile") 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest.$ac_objext; then
11581 ac_header_compiler=yes
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 ac_header_compiler=no
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11591 echo "${ECHO_T}$ac_header_compiler" >&6; }
11593 # Is the header present?
11594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11596 cat >conftest.$ac_ext <<_ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11602 #include <$ac_header>
11604 if { (ac_try="$ac_cpp conftest.$ac_ext"
11605 case "(($ac_try" in
11606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11607 *) ac_try_echo
=$ac_try;;
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11612 grep -v '^ *+' conftest.er1
>conftest.err
11614 cat conftest.err
>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } >/dev
/null
&& {
11617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11618 test ! -s conftest.err
11620 ac_header_preproc
=yes
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.
$ac_ext >&5
11625 ac_header_preproc
=no
11628 rm -f conftest.err conftest.
$ac_ext
11629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11630 echo "${ECHO_T}$ac_header_preproc" >&6; }
11632 # So? What about this header?
11633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11639 ac_header_preproc
=yes
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11659 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 eval "$as_ac_Header=\$ac_header_preproc"
11664 ac_res
=`eval echo '${'$as_ac_Header'}'`
11665 { echo "$as_me:$LINENO: result: $ac_res" >&5
11666 echo "${ECHO_T}$ac_res" >&6; }
11669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11670 cat >>confdefs.h
<<_ACEOF
11671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11686 for ac_func
in $ac_func_list
11688 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11691 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 cat >conftest.
$ac_ext <<_ACEOF
11697 cat confdefs.h
>>conftest.
$ac_ext
11698 cat >>conftest.
$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11702 #define $ac_func innocuous_$ac_func
11704 /* System header to define __stub macros and hopefully few prototypes,
11705 which can conflict with char $ac_func (); below.
11706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11707 <limits.h> exists even on freestanding compilers. */
11710 # include <limits.h>
11712 # include <assert.h>
11717 /* Override any GCC internal prototype to avoid an error.
11718 Use char because int might match the return type of a GCC
11719 builtin and then its argument prototype would still apply. */
11724 /* The GNU C library defines this for functions which it implements
11725 to always fail with ENOSYS. Some functions are actually named
11726 something starting with __ and the normal name is an alias. */
11727 #if defined __stub_$ac_func || defined __stub___$ac_func
11734 return $ac_func ();
11739 rm -f conftest.
$ac_objext conftest
$ac_exeext
11740 if { (ac_try
="$ac_link"
11741 case "(($ac_try" in
11742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_link") 2>conftest.er1
11748 grep -v '^ *+' conftest.er1 >conftest.err
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } && {
11753 test -z "$ac_c_werror_flag" ||
11754 test ! -s conftest.err
11755 } && test -s conftest$ac_exeext &&
11756 $as_test_x conftest$ac_exeext; then
11757 eval "$as_ac_var=yes"
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 eval "$as_ac_var=no"
11765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11766 conftest$ac_exeext conftest.$ac_ext
11768 ac_res=`eval echo '${'$as_ac_var'}'`
11769 { echo "$as_me:$LINENO: result: $ac_res" >&5
11770 echo "${ECHO_T}$ac_res" >&6; }
11771 if test `eval echo '${'$as_ac_var'}'` = yes; then
11772 cat >>confdefs.h <<_ACEOF
11773 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11795 { echo "$as_me:$LINENO: checking for working mktime" >&5
11796 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
11797 if test "${ac_cv_func_working_mktime+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 if test "$cross_compiling" = yes; then
11801 ac_cv_func_working_mktime=no
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 /* Test program from Paul Eggert and Tony Leneis. */
11810 #ifdef TIME_WITH_SYS_TIME
11811 # include <sys/time.h>
11814 # ifdef HAVE_SYS_TIME_H
11815 # include <sys/time.h>
11821 #include <stdlib.h>
11823 #ifdef HAVE_UNISTD_H
11824 # include <unistd.h>
11828 # define alarm(X) /* empty */
11831 /* Work around redefinition to rpl_putenv by other config tests. */
11834 static time_t time_t_max;
11835 static time_t time_t_min;
11837 /* Values we'll use to set the TZ environment variable. */
11838 static char *tz_strings[] = {
11839 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11840 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11842 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11844 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11845 Based on a problem report from Andreas Jaeger. */
11847 spring_forward_gap ()
11849 /* glibc (up to about 1998-10-07) failed this test. */
11852 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11853 instead of "TZ=America/Vancouver" in order to detect the bug even
11854 on systems that don't support the Olson extension, or don't have the
11855 full zoneinfo tables installed. */
11856 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11865 return mktime (&tm) != (time_t) -1;
11873 return ! (lt = localtime (&now)) || mktime (lt) == now;
11880 return (mktime_test1 (now)
11881 && mktime_test1 ((time_t) (time_t_max - now))
11882 && mktime_test1 ((time_t) (time_t_min + now)));
11888 /* Based on code from Ariel Faigon. */
11898 return tm.tm_mon == 2 && tm.tm_mday == 31;
11907 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11908 now = mktime (&tm);
11909 if (now != (time_t) -1)
11911 struct tm *lt = localtime (&now);
11913 && lt->tm_year == tm.tm_year
11914 && lt->tm_mon == tm.tm_mon
11915 && lt->tm_mday == tm.tm_mday
11916 && lt->tm_hour == tm.tm_hour
11917 && lt->tm_min == tm.tm_min
11918 && lt->tm_sec == tm.tm_sec
11919 && lt->tm_yday == tm.tm_yday
11920 && lt->tm_wday == tm.tm_wday
11921 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11922 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11931 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11932 ignoring leap seconds. */
11933 unsigned long int answer = 2527315200UL;
11937 tm.tm_year = 2050 - 1900;
11940 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11943 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11944 instead of "TZ=America/Vancouver" in order to detect the bug even
11945 on systems that don't support the Olson extension, or don't have the
11946 full zoneinfo tables installed. */
11947 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11951 /* Check that the result is either a failure, or close enough
11952 to the correct answer that we can assume the discrepancy is
11953 due to leap seconds. */
11954 return (t == (time_t) -1
11955 || (0 < t && answer - 120 <= t && t <= answer + 120));
11964 /* This test makes some buggy mktime implementations loop.
11965 Give up after 60 seconds; a mktime slower than that
11966 isn't worth using anyway. */
11969 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11972 if ((time_t) -1 < 0)
11973 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11975 delta = time_t_max / 997; /* a suitable prime number */
11976 for (i = 0; i < N_STRINGS; i++)
11979 putenv (tz_strings[i]);
11981 for (t = 0; t <= time_t_max - delta; t += delta)
11982 if (! mktime_test (t))
11984 if (! (mktime_test ((time_t) 1)
11985 && mktime_test ((time_t) (60 * 60))
11986 && mktime_test ((time_t) (60 * 60 * 24))))
11989 for (j = 1; 0 < j; j *= 2)
11990 if (! bigtime_test (j))
11992 if (! bigtime_test (j - 1))
11995 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11998 rm -f conftest$ac_exeext
11999 if { (ac_try="$ac_link"
12000 case "(($ac_try" in
12001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12002 *) ac_try_echo
=$ac_try;;
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_link") 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12009 { (case "(($ac_try" in
12010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014 (eval "$ac_try") 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 ac_cv_func_working_mktime=yes
12020 echo "$as_me: program exited with status $ac_status" >&5
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12024 ( exit $ac_status )
12025 ac_cv_func_working_mktime=no
12027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12032 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12033 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12034 if test $ac_cv_func_working_mktime = no; then
12035 case " $LIBOBJS " in
12036 *" mktime.$ac_objext "* ) ;;
12037 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12045 for ac_header in stdlib.h unistd.h
12047 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 ac_res=`eval echo '${'$as_ac_Header'}'`
12055 { echo "$as_me:$LINENO: result: $ac_res" >&5
12056 echo "${ECHO_T}$ac_res" >&6; }
12058 # Is the header compilable?
12059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12061 cat >conftest.$ac_ext <<_ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 $ac_includes_default
12068 #include <$ac_header>
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12074 *) ac_try_echo
=$ac_try;;
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_compile") 2>conftest.er1
12079 grep -v '^ *+' conftest.er1
>conftest.err
12081 cat conftest.err
>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } && {
12084 test -z "$ac_c_werror_flag" ||
12085 test ! -s conftest.err
12086 } && test -s conftest.
$ac_objext; then
12087 ac_header_compiler
=yes
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.
$ac_ext >&5
12092 ac_header_compiler
=no
12095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12097 echo "${ECHO_T}$ac_header_compiler" >&6; }
12099 # Is the header present?
12100 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12102 cat >conftest.
$ac_ext <<_ACEOF
12105 cat confdefs.h
>>conftest.
$ac_ext
12106 cat >>conftest.
$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 #include <$ac_header>
12110 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12111 case "(($ac_try" in
12112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12118 grep -v '^ *+' conftest.er1 >conftest.err
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } >/dev/null && {
12123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12126 ac_header_preproc=yes
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 ac_header_preproc=no
12134 rm -f conftest.err conftest.$ac_ext
12135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12136 echo "${ECHO_T}$ac_header_preproc" >&6; }
12138 # So? What about this header?
12139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12145 ac_header_preproc=yes
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 eval "$as_ac_Header=\$ac_header_preproc"
12170 ac_res=`eval echo '${'$as_ac_Header'}'`
12171 { echo "$as_me:$LINENO: result: $ac_res" >&5
12172 echo "${ECHO_T}$ac_res" >&6; }
12175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12176 cat >>confdefs.h <<_ACEOF
12177 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12185 for ac_func in getpagesize
12187 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 cat >conftest.$ac_ext <<_ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12201 #define $ac_func innocuous_$ac_func
12203 /* System header to define __stub macros and hopefully few prototypes,
12204 which can conflict with char $ac_func (); below.
12205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206 <limits.h> exists even on freestanding compilers. */
12209 # include <limits.h>
12211 # include <assert.h>
12216 /* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
12223 /* The GNU C library defines this for functions which it implements
12224 to always fail with ENOSYS. Some functions are actually named
12225 something starting with __ and the normal name is an alias. */
12226 #if defined __stub_$ac_func || defined __stub___$ac_func
12233 return $ac_func ();
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (ac_try="$ac_link"
12240 case "(($ac_try" in
12241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12242 *) ac_try_echo
=$ac_try;;
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_link") 2>conftest.er1
12247 grep -v '^ *+' conftest.er1
>conftest.err
12249 cat conftest.err
>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } && {
12252 test -z "$ac_c_werror_flag" ||
12253 test ! -s conftest.err
12254 } && test -s conftest
$ac_exeext &&
12255 $as_test_x conftest
$ac_exeext; then
12256 eval "$as_ac_var=yes"
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.
$ac_ext >&5
12261 eval "$as_ac_var=no"
12264 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12265 conftest
$ac_exeext conftest.
$ac_ext
12267 ac_res
=`eval echo '${'$as_ac_var'}'`
12268 { echo "$as_me:$LINENO: result: $ac_res" >&5
12269 echo "${ECHO_T}$ac_res" >&6; }
12270 if test `eval echo '${'$as_ac_var'}'` = yes; then
12271 cat >>confdefs.h
<<_ACEOF
12272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12278 { echo "$as_me:$LINENO: checking for working mmap" >&5
12279 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12280 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 if test "$cross_compiling" = yes; then
12284 ac_cv_func_mmap_fixed_mapped
=no
12286 cat >conftest.
$ac_ext <<_ACEOF
12289 cat confdefs.h
>>conftest.
$ac_ext
12290 cat >>conftest.
$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 $ac_includes_default
12293 /* malloc might have been renamed as rpl_malloc. */
12296 /* Thanks to Mike Haertel and Jim Avera for this test.
12297 Here is a matrix of mmap possibilities:
12298 mmap private not fixed
12299 mmap private fixed at somewhere currently unmapped
12300 mmap private fixed at somewhere already mapped
12301 mmap shared not fixed
12302 mmap shared fixed at somewhere currently unmapped
12303 mmap shared fixed at somewhere already mapped
12304 For private mappings, we should verify that changes cannot be read()
12305 back from the file, nor mmap's back from the file at a different
12306 address. (There have been systems where private was not correctly
12307 implemented like the infamous i386 svr4.0, and systems where the
12308 VM page cache was not coherent with the file system buffer cache
12309 like early versions of FreeBSD and possibly contemporary NetBSD.)
12310 For shared mappings, we should conversely verify that changes get
12311 propagated back to all the places they're supposed to be.
12313 Grep wants private fixed already mapped.
12314 The main things grep needs to know about mmap are:
12315 * does it exist and is it safe to write into the mmap'd area
12316 * how to use it (BSD variants) */
12319 #include <sys/mman.h>
12321 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12325 /* This mess was copied from the GNU getpagesize.h. */
12326 #ifndef HAVE_GETPAGESIZE
12327 /* Assume that all systems that can run configure have sys/param.h. */
12328 # ifndef HAVE_SYS_PARAM_H
12329 # define HAVE_SYS_PARAM_H 1
12332 # ifdef _SC_PAGESIZE
12333 # define getpagesize() sysconf(_SC_PAGESIZE)
12334 # else /* no _SC_PAGESIZE */
12335 # ifdef HAVE_SYS_PARAM_H
12336 # include <sys/param.h>
12337 # ifdef EXEC_PAGESIZE
12338 # define getpagesize() EXEC_PAGESIZE
12339 # else /* no EXEC_PAGESIZE */
12341 # define getpagesize() NBPG * CLSIZE
12344 # endif /* no CLSIZE */
12345 # else /* no NBPG */
12347 # define getpagesize() NBPC
12348 # else /* no NBPC */
12350 # define getpagesize() PAGESIZE
12351 # endif /* PAGESIZE */
12352 # endif /* no NBPC */
12353 # endif /* no NBPG */
12354 # endif /* no EXEC_PAGESIZE */
12355 # else /* no HAVE_SYS_PARAM_H */
12356 # define getpagesize() 8192 /* punt totally */
12357 # endif /* no HAVE_SYS_PARAM_H */
12358 # endif /* no _SC_PAGESIZE */
12360 #endif /* no HAVE_GETPAGESIZE */
12365 char *data, *data2, *data3;
12369 pagesize = getpagesize ();
12371 /* First, make a file with some known garbage in it. */
12372 data = (char *) malloc (pagesize);
12375 for (i = 0; i < pagesize; ++i)
12376 *(data + i) = rand ();
12378 fd = creat ("conftest.mmap", 0600);
12381 if (write (fd, data, pagesize) != pagesize)
12385 /* Next, try to mmap the file at a fixed address which already has
12386 something else allocated at it. If we can, also make sure that
12387 we see the same garbage. */
12388 fd = open ("conftest.mmap", O_RDWR);
12391 data2 = (char *) malloc (2 * pagesize);
12394 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12398 for (i = 0; i < pagesize; ++i)
12399 if (*(data + i) != *(data2 + i))
12402 /* Finally, make sure that changes to the mapped area do not
12403 percolate back to the file as seen by read(). (This is a bug on
12404 some variants of i386 svr4.0.) */
12405 for (i = 0; i < pagesize; ++i)
12406 *(data2 + i) = *(data2 + i) + 1;
12407 data3 = (char *) malloc (pagesize);
12410 if (read (fd, data3, pagesize) != pagesize)
12412 for (i = 0; i < pagesize; ++i)
12413 if (*(data + i) != *(data3 + i))
12419 rm -f conftest
$ac_exeext
12420 if { (ac_try
="$ac_link"
12421 case "(($ac_try" in
12422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_link") 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12430 { (case "(($ac_try" in
12431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12432 *) ac_try_echo
=$ac_try;;
12434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_try") 2>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_cv_func_mmap_fixed_mapped
=yes
12441 echo "$as_me: program exited with status $ac_status" >&5
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.
$ac_ext >&5
12445 ( exit $ac_status )
12446 ac_cv_func_mmap_fixed_mapped
=no
12448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12453 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12454 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12455 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12457 cat >>confdefs.h
<<\_ACEOF
12458 #define HAVE_MMAP 1
12462 rm -f conftest.mmap
12466 for ac_header
in sys
/select.h sys
/socket.h
12468 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12469 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12472 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 ac_res
=`eval echo '${'$as_ac_Header'}'`
12476 { echo "$as_me:$LINENO: result: $ac_res" >&5
12477 echo "${ECHO_T}$ac_res" >&6; }
12479 # Is the header compilable?
12480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12482 cat >conftest.
$ac_ext <<_ACEOF
12485 cat confdefs.h
>>conftest.
$ac_ext
12486 cat >>conftest.
$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 $ac_includes_default
12489 #include <$ac_header>
12491 rm -f conftest.
$ac_objext
12492 if { (ac_try
="$ac_compile"
12493 case "(($ac_try" in
12494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_compile") 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } && {
12505 test -z "$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12507 } && test -s conftest.$ac_objext; then
12508 ac_header_compiler=yes
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12513 ac_header_compiler=no
12516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12518 echo "${ECHO_T}$ac_header_compiler" >&6; }
12520 # Is the header present?
12521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12523 cat >conftest.$ac_ext <<_ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 #include <$ac_header>
12531 if { (ac_try="$ac_cpp conftest.$ac_ext"
12532 case "(($ac_try" in
12533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12534 *) ac_try_echo
=$ac_try;;
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12539 grep -v '^ *+' conftest.er1
>conftest.err
12541 cat conftest.err
>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } >/dev
/null
&& {
12544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12545 test ! -s conftest.err
12547 ac_header_preproc
=yes
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.
$ac_ext >&5
12552 ac_header_preproc
=no
12555 rm -f conftest.err conftest.
$ac_ext
12556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12557 echo "${ECHO_T}$ac_header_preproc" >&6; }
12559 # So? What about this header?
12560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12566 ac_header_preproc
=yes
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12586 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 eval "$as_ac_Header=\$ac_header_preproc"
12591 ac_res
=`eval echo '${'$as_ac_Header'}'`
12592 { echo "$as_me:$LINENO: result: $ac_res" >&5
12593 echo "${ECHO_T}$ac_res" >&6; }
12596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12597 cat >>confdefs.h
<<_ACEOF
12598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12605 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12606 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12607 if test "${ac_cv_func_select_args+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12611 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12612 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12613 cat >conftest.
$ac_ext <<_ACEOF
12616 cat confdefs.h
>>conftest.
$ac_ext
12617 cat >>conftest.
$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 $ac_includes_default
12620 #ifdef HAVE_SYS_SELECT_H
12621 # include <sys/select.h>
12623 #ifdef HAVE_SYS_SOCKET_H
12624 # include <sys/socket.h>
12630 extern int select ($ac_arg1,
12631 $ac_arg234, $ac_arg234, $ac_arg234,
12637 rm -f conftest.
$ac_objext
12638 if { (ac_try
="$ac_compile"
12639 case "(($ac_try" in
12640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_compile") 2>conftest.er1
12646 grep -v '^ *+' conftest.er1 >conftest.err
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } && {
12651 test -z "$ac_c_werror_flag" ||
12652 test ! -s conftest.err
12653 } && test -s conftest.$ac_objext; then
12654 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666 # Provide a safe default value.
12667 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12670 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12671 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12672 ac_save_IFS=$IFS; IFS=','
12673 set dummy `echo "$ac_cv_func_select_args" |
sed 's/\*/\*/g'`
12677 cat >>confdefs.h <<_ACEOF
12678 #define SELECT_TYPE_ARG1 $1
12682 cat >>confdefs.h <<_ACEOF
12683 #define SELECT_TYPE_ARG234 ($2)
12687 cat >>confdefs.h <<_ACEOF
12688 #define SELECT_TYPE_ARG5 ($3)
12693 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12694 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12695 if test "$ac_cv_prog_cc_c89" != no; then
12696 { echo "$as_me:$LINENO: result: yes" >&5
12697 echo "${ECHO_T}yes" >&6; }
12699 cat >>confdefs.h <<\_ACEOF
12700 #define PROTOTYPES 1
12704 cat >>confdefs.h <<\_ACEOF
12705 #define __PROTOTYPES 1
12709 { echo "$as_me:$LINENO: result: no" >&5
12710 echo "${ECHO_T}no" >&6; }
12713 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12714 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12715 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 ac_cv_func_setvbuf_reversed=no
12719 cat >conftest.$ac_ext <<_ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12727 int (setvbuf) (FILE *, int, char *, size_t);
12732 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (ac_try="$ac_link"
12739 case "(($ac_try" in
12740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12741 *) ac_try_echo
=$ac_try;;
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_link") 2>conftest.er1
12746 grep -v '^ *+' conftest.er1
>conftest.err
12748 cat conftest.err
>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest
$ac_exeext &&
12754 $as_test_x conftest
$ac_exeext; then
12755 cat >conftest.
$ac_ext <<_ACEOF
12758 cat confdefs.h
>>conftest.
$ac_ext
12759 cat >>conftest.
$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12763 int (setvbuf) (FILE *, int, char *, size_t);
12768 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12773 rm -f conftest.
$ac_objext conftest
$ac_exeext
12774 if { (ac_try
="$ac_link"
12775 case "(($ac_try" in
12776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_link") 2>conftest.er1
12782 grep -v '^ *+' conftest.er1 >conftest.err
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest$ac_exeext &&
12790 $as_test_x conftest$ac_exeext; then
12791 # It compiles and links either way, so it must not be declared
12792 # with a prototype and most likely this is a K&R C compiler.
12794 if test "$cross_compiling" = yes; then
12795 : # Assume setvbuf is not reversed when cross-compiling.
12797 cat >conftest.$ac_ext <<_ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 $ac_includes_default
12807 /* This call has the arguments reversed.
12808 A reversed system may check and see that the address of buf
12809 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12811 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12814 return 0; /* Non-reversed systems SEGV here. */
12819 rm -f conftest$ac_exeext
12820 if { (ac_try="$ac_link"
12821 case "(($ac_try" in
12822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12823 *) ac_try_echo
=$ac_try;;
12825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12826 (eval "$ac_link") 2>&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12830 { (case "(($ac_try" in
12831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_try") 2>&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 ac_cv_func_setvbuf_reversed=yes
12841 echo "$as_me: program exited with status $ac_status" >&5
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12850 ac_cv_func_setvbuf_reversed=yes
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12859 conftest$ac_exeext conftest.$ac_ext
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12868 conftest$ac_exeext conftest.$ac_ext
12870 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12871 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12872 if test $ac_cv_func_setvbuf_reversed = yes; then
12874 cat >>confdefs.h <<\_ACEOF
12875 #define SETVBUF_REVERSED 1
12880 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12881 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12882 if test "${ac_cv_type_signal+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 cat >conftest.$ac_ext <<_ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 #include <sys/types.h>
12892 #include <signal.h>
12897 return *(signal (0, 0)) (0) == 1;
12902 rm -f conftest.$ac_objext
12903 if { (ac_try="$ac_compile"
12904 case "(($ac_try" in
12905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12906 *) ac_try_echo
=$ac_try;;
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_compile") 2>conftest.er1
12911 grep -v '^ *+' conftest.er1
>conftest.err
12913 cat conftest.err
>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } && {
12916 test -z "$ac_c_werror_flag" ||
12917 test ! -s conftest.err
12918 } && test -s conftest.
$ac_objext; then
12919 ac_cv_type_signal
=int
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.
$ac_ext >&5
12924 ac_cv_type_signal
=void
12927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12929 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12930 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12932 cat >>confdefs.h
<<_ACEOF
12933 #define RETSIGTYPE $ac_cv_type_signal
12937 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12938 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12939 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 rm -f conftest.sym conftest.
file
12943 echo >conftest.
file
12944 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
12945 if test "$cross_compiling" = yes; then
12946 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12948 cat >conftest.
$ac_ext <<_ACEOF
12951 cat confdefs.h
>>conftest.
$ac_ext
12952 cat >>conftest.
$ac_ext <<_ACEOF
12953 /* end confdefs.h. */
12954 $ac_includes_default
12959 /* Linux will dereference the symlink and fail.
12960 That is better in the sense that it means we will not
12961 have to compile and use the lstat wrapper. */
12962 return lstat ("conftest.sym/", &sbuf) == 0;
12967 rm -f conftest
$ac_exeext
12968 if { (ac_try
="$ac_link"
12969 case "(($ac_try" in
12970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_link") 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12980 *) ac_try_echo
=$ac_try;;
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
12989 echo "$as_me: program exited with status $ac_status" >&5
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.
$ac_ext >&5
12993 ( exit $ac_status )
12994 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12996 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13001 # If the `ln -s' command failed, then we probably don't even
13002 # have an lstat function.
13003 ac_cv_func_lstat_dereferences_slashed_symlink
=no
13005 rm -f conftest.sym conftest.
file
13008 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13009 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13011 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13013 cat >>confdefs.h
<<_ACEOF
13014 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13018 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
13019 case " $LIBOBJS " in
13020 *" lstat.$ac_objext "* ) ;;
13021 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
13027 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13028 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13029 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 if test "$cross_compiling" = yes; then
13033 ac_cv_func_stat_empty_string_bug
=yes
13035 cat >conftest.
$ac_ext <<_ACEOF
13038 cat confdefs.h
>>conftest.
$ac_ext
13039 cat >>conftest.
$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 $ac_includes_default
13046 return stat ("", &sbuf) == 0;
13051 rm -f conftest
$ac_exeext
13052 if { (ac_try
="$ac_link"
13053 case "(($ac_try" in
13054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_link") 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13062 { (case "(($ac_try" in
13063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13064 *) ac_try_echo
=$ac_try;;
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_try") 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_cv_func_stat_empty_string_bug
=no
13073 echo "$as_me: program exited with status $ac_status" >&5
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.
$ac_ext >&5
13077 ( exit $ac_status )
13078 ac_cv_func_stat_empty_string_bug
=yes
13080 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13085 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13086 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13087 if test $ac_cv_func_stat_empty_string_bug = yes; then
13088 case " $LIBOBJS " in
13089 *" stat.$ac_objext "* ) ;;
13090 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
13095 cat >>confdefs.h
<<_ACEOF
13096 #define HAVE_STAT_EMPTY_STRING_BUG 1
13101 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13102 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13103 if test "${ac_cv_func_strcoll_works+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 if test "$cross_compiling" = yes; then
13107 ac_cv_func_strcoll_works
=no
13109 cat >conftest.
$ac_ext <<_ACEOF
13112 cat confdefs.h
>>conftest.
$ac_ext
13113 cat >>conftest.
$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 $ac_includes_default
13119 return (strcoll ("abc", "def") >= 0 ||
13120 strcoll ("ABC", "DEF") >= 0 ||
13121 strcoll ("123", "456") >= 0)
13126 rm -f conftest
$ac_exeext
13127 if { (ac_try
="$ac_link"
13128 case "(($ac_try" in
13129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_link") 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13137 { (case "(($ac_try" in
13138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13139 *) ac_try_echo
=$ac_try;;
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_try") 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; }; then
13146 ac_cv_func_strcoll_works
=yes
13148 echo "$as_me: program exited with status $ac_status" >&5
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.
$ac_ext >&5
13152 ( exit $ac_status )
13153 ac_cv_func_strcoll_works
=no
13155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13160 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13161 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13162 if test $ac_cv_func_strcoll_works = yes; then
13164 cat >>confdefs.h
<<\_ACEOF
13165 #define HAVE_STRCOLL 1
13171 for ac_func
in strftime
13173 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13176 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 cat >conftest.
$ac_ext <<_ACEOF
13182 cat confdefs.h
>>conftest.
$ac_ext
13183 cat >>conftest.
$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13187 #define $ac_func innocuous_$ac_func
13189 /* System header to define __stub macros and hopefully few prototypes,
13190 which can conflict with char $ac_func (); below.
13191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13192 <limits.h> exists even on freestanding compilers. */
13195 # include <limits.h>
13197 # include <assert.h>
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13209 /* The GNU C library defines this for functions which it implements
13210 to always fail with ENOSYS. Some functions are actually named
13211 something starting with __ and the normal name is an alias. */
13212 #if defined __stub_$ac_func || defined __stub___$ac_func
13219 return $ac_func ();
13224 rm -f conftest.
$ac_objext conftest
$ac_exeext
13225 if { (ac_try
="$ac_link"
13226 case "(($ac_try" in
13227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13233 grep -v '^ *+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } && {
13238 test -z "$ac_c_werror_flag" ||
13239 test ! -s conftest.err
13240 } && test -s conftest$ac_exeext &&
13241 $as_test_x conftest$ac_exeext; then
13242 eval "$as_ac_var=yes"
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 eval "$as_ac_var=no"
13250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13251 conftest$ac_exeext conftest.$ac_ext
13253 ac_res=`eval echo '${'$as_ac_var'}'`
13254 { echo "$as_me:$LINENO: result: $ac_res" >&5
13255 echo "${ECHO_T}$ac_res" >&6; }
13256 if test `eval echo '${'$as_ac_var'}'` = yes; then
13257 cat >>confdefs.h <<_ACEOF
13258 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13262 # strftime is in -lintl on SCO UNIX.
13263 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13264 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13265 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 ac_check_lib_save_LIBS=$LIBS
13269 LIBS="-lintl $LIBS"
13270 cat >conftest.$ac_ext <<_ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13277 /* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
13287 return strftime ();
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (ac_try="$ac_link"
13294 case "(($ac_try" in
13295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13296 *) ac_try_echo
=$ac_try;;
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_link") 2>conftest.er1
13301 grep -v '^ *+' conftest.er1
>conftest.err
13303 cat conftest.err
>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } && {
13306 test -z "$ac_c_werror_flag" ||
13307 test ! -s conftest.err
13308 } && test -s conftest
$ac_exeext &&
13309 $as_test_x conftest
$ac_exeext; then
13310 ac_cv_lib_intl_strftime
=yes
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.
$ac_ext >&5
13315 ac_cv_lib_intl_strftime
=no
13318 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13319 conftest
$ac_exeext conftest.
$ac_ext
13320 LIBS
=$ac_check_lib_save_LIBS
13322 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13323 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13324 if test $ac_cv_lib_intl_strftime = yes; then
13325 cat >>confdefs.h
<<\_ACEOF
13326 #define HAVE_STRFTIME 1
13329 LIBS
="-lintl $LIBS"
13335 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13336 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13337 if test "${ac_cv_func_strnlen_working+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 if test "$cross_compiling" = yes; then
13341 ac_cv_func_strnlen_working
=no
13343 cat >conftest.
$ac_ext <<_ACEOF
13346 cat confdefs.h
>>conftest.
$ac_ext
13347 cat >>conftest.
$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 $ac_includes_default
13355 #define S_LEN (sizeof S - 1)
13357 /* At least one implementation is buggy: that of AIX 4.3 would
13358 give strnlen (S, 1) == 3. */
13361 for (i = 0; i < S_LEN + 1; ++i)
13363 int expected = i <= S_LEN ? i : S_LEN;
13364 if (strnlen (S, i) != expected)
13373 rm -f conftest
$ac_exeext
13374 if { (ac_try
="$ac_link"
13375 case "(($ac_try" in
13376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13384 { (case "(($ac_try" in
13385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13386 *) ac_try_echo
=$ac_try;;
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_try") 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_cv_func_strnlen_working
=yes
13395 echo "$as_me: program exited with status $ac_status" >&5
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.
$ac_ext >&5
13399 ( exit $ac_status )
13400 ac_cv_func_strnlen_working
=no
13402 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13407 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13408 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13409 test $ac_cv_func_strnlen_working = no
&& case " $LIBOBJS " in
13410 *" strnlen.$ac_objext "* ) ;;
13411 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
13416 { echo "$as_me:$LINENO: checking for working strtod" >&5
13417 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13418 if test "${ac_cv_func_strtod+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 if test "$cross_compiling" = yes; then
13422 ac_cv_func_strtod
=no
13424 cat >conftest.
$ac_ext <<_ACEOF
13427 cat confdefs.h
>>conftest.
$ac_ext
13428 cat >>conftest.
$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13431 $ac_includes_default
13439 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13440 char *string = " +69";
13443 value = strtod (string, &term);
13444 if (value != 69 || term != (string + 4))
13449 /* Under Solaris 2.4, strtod returns the wrong value for the
13450 terminating character under some conditions. */
13451 char *string = "NaN";
13453 strtod (string, &term);
13454 if (term != string && *(term - 1) == 0)
13461 rm -f conftest
$ac_exeext
13462 if { (ac_try
="$ac_link"
13463 case "(($ac_try" in
13464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_link") 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13474 *) ac_try_echo
=$ac_try;;
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481 ac_cv_func_strtod
=yes
13483 echo "$as_me: program exited with status $ac_status" >&5
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.
$ac_ext >&5
13487 ( exit $ac_status )
13488 ac_cv_func_strtod
=no
13490 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13495 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13496 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13497 if test $ac_cv_func_strtod = no
; then
13498 case " $LIBOBJS " in
13499 *" strtod.$ac_objext "* ) ;;
13500 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
13504 { echo "$as_me:$LINENO: checking for pow" >&5
13505 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13506 if test "${ac_cv_func_pow+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 cat >conftest.
$ac_ext <<_ACEOF
13512 cat confdefs.h
>>conftest.
$ac_ext
13513 cat >>conftest.
$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13517 #define pow innocuous_pow
13519 /* System header to define __stub macros and hopefully few prototypes,
13520 which can conflict with char pow (); below.
13521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13522 <limits.h> exists even on freestanding compilers. */
13525 # include <limits.h>
13527 # include <assert.h>
13532 /* Override any GCC internal prototype to avoid an error.
13533 Use char because int might match the return type of a GCC
13534 builtin and then its argument prototype would still apply. */
13539 /* The GNU C library defines this for functions which it implements
13540 to always fail with ENOSYS. Some functions are actually named
13541 something starting with __ and the normal name is an alias. */
13542 #if defined __stub_pow || defined __stub___pow
13554 rm -f conftest.
$ac_objext conftest
$ac_exeext
13555 if { (ac_try
="$ac_link"
13556 case "(($ac_try" in
13557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_link") 2>conftest.er1
13563 grep -v '^ *+' conftest.er1 >conftest.err
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } && {
13568 test -z "$ac_c_werror_flag" ||
13569 test ! -s conftest.err
13570 } && test -s conftest$ac_exeext &&
13571 $as_test_x conftest$ac_exeext; then
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13581 conftest$ac_exeext conftest.$ac_ext
13583 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13584 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13586 if test $ac_cv_func_pow = no; then
13587 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13588 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13589 if test "${ac_cv_lib_m_pow+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 ac_check_lib_save_LIBS=$LIBS
13594 cat >conftest.$ac_ext <<_ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (ac_try="$ac_link"
13618 case "(($ac_try" in
13619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13620 *) ac_try_echo
=$ac_try;;
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_link") 2>conftest.er1
13625 grep -v '^ *+' conftest.er1
>conftest.err
13627 cat conftest.err
>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest
$ac_exeext &&
13633 $as_test_x conftest
$ac_exeext; then
13634 ac_cv_lib_m_pow
=yes
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.
$ac_ext >&5
13642 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13643 conftest
$ac_exeext conftest.
$ac_ext
13644 LIBS
=$ac_check_lib_save_LIBS
13646 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13647 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13648 if test $ac_cv_lib_m_pow = yes; then
13651 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13652 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13667 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
13668 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
13669 if test "${ac_cv_func_utime_null+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 rm -f conftest.data
; >conftest.data
13673 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13674 if test "$cross_compiling" = yes; then
13675 ac_cv_func_utime_null
=no
13677 cat >conftest.
$ac_ext <<_ACEOF
13680 cat confdefs.h
>>conftest.
$ac_ext
13681 cat >>conftest.
$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13683 $ac_includes_default
13684 #ifdef HAVE_UTIME_H
13685 # include <utime.h>
13691 return ! (stat ("conftest.data", &s) == 0
13692 && utime ("conftest.data", 0) == 0
13693 && stat ("conftest.data", &t) == 0
13694 && t.st_mtime >= s.st_mtime
13695 && t.st_mtime - s.st_mtime < 120);
13700 rm -f conftest
$ac_exeext
13701 if { (ac_try
="$ac_link"
13702 case "(($ac_try" in
13703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_link") 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13711 { (case "(($ac_try" in
13712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13713 *) ac_try_echo
=$ac_try;;
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_try") 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; }; then
13720 ac_cv_func_utime_null
=yes
13722 echo "$as_me: program exited with status $ac_status" >&5
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.
$ac_ext >&5
13726 ( exit $ac_status )
13727 ac_cv_func_utime_null
=no
13729 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13734 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
13735 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
13736 if test $ac_cv_func_utime_null = yes; then
13738 cat >>confdefs.h
<<\_ACEOF
13739 #define HAVE_UTIME_NULL 1
13743 rm -f conftest.data
13746 for ac_func
in vprintf
13748 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13751 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 cat >conftest.
$ac_ext <<_ACEOF
13757 cat confdefs.h
>>conftest.
$ac_ext
13758 cat >>conftest.
$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13762 #define $ac_func innocuous_$ac_func
13764 /* System header to define __stub macros and hopefully few prototypes,
13765 which can conflict with char $ac_func (); below.
13766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767 <limits.h> exists even on freestanding compilers. */
13770 # include <limits.h>
13772 # include <assert.h>
13777 /* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
13784 /* The GNU C library defines this for functions which it implements
13785 to always fail with ENOSYS. Some functions are actually named
13786 something starting with __ and the normal name is an alias. */
13787 #if defined __stub_$ac_func || defined __stub___$ac_func
13794 return $ac_func ();
13799 rm -f conftest.
$ac_objext conftest
$ac_exeext
13800 if { (ac_try
="$ac_link"
13801 case "(($ac_try" in
13802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_link") 2>conftest.er1
13808 grep -v '^ *+' conftest.er1 >conftest.err
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && {
13813 test -z "$ac_c_werror_flag" ||
13814 test ! -s conftest.err
13815 } && test -s conftest$ac_exeext &&
13816 $as_test_x conftest$ac_exeext; then
13817 eval "$as_ac_var=yes"
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13822 eval "$as_ac_var=no"
13825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13826 conftest$ac_exeext conftest.$ac_ext
13828 ac_res=`eval echo '${'$as_ac_var'}'`
13829 { echo "$as_me:$LINENO: result: $ac_res" >&5
13830 echo "${ECHO_T}$ac_res" >&6; }
13831 if test `eval echo '${'$as_ac_var'}'` = yes; then
13832 cat >>confdefs.h <<_ACEOF
13833 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13836 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13837 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13838 if test "${ac_cv_func__doprnt+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 cat >conftest.$ac_ext <<_ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13849 #define _doprnt innocuous__doprnt
13851 /* System header to define __stub macros and hopefully few prototypes,
13852 which can conflict with char _doprnt (); below.
13853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13854 <limits.h> exists even on freestanding compilers. */
13857 # include <limits.h>
13859 # include <assert.h>
13864 /* Override any GCC internal prototype to avoid an error.
13865 Use char because int might match the return type of a GCC
13866 builtin and then its argument prototype would still apply. */
13871 /* The GNU C library defines this for functions which it implements
13872 to always fail with ENOSYS. Some functions are actually named
13873 something starting with __ and the normal name is an alias. */
13874 #if defined __stub__doprnt || defined __stub____doprnt
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (ac_try="$ac_link"
13888 case "(($ac_try" in
13889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13890 *) ac_try_echo
=$ac_try;;
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_link") 2>conftest.er1
13895 grep -v '^ *+' conftest.er1
>conftest.err
13897 cat conftest.err
>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } && {
13900 test -z "$ac_c_werror_flag" ||
13901 test ! -s conftest.err
13902 } && test -s conftest
$ac_exeext &&
13903 $as_test_x conftest
$ac_exeext; then
13904 ac_cv_func__doprnt
=yes
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.
$ac_ext >&5
13909 ac_cv_func__doprnt
=no
13912 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13913 conftest
$ac_exeext conftest.
$ac_ext
13915 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13916 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13917 if test $ac_cv_func__doprnt = yes; then
13919 cat >>confdefs.h
<<\_ACEOF
13920 #define HAVE_DOPRNT 1
13976 for ac_func
in asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint
select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
13978 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13981 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 cat >conftest.
$ac_ext <<_ACEOF
13987 cat confdefs.h
>>conftest.
$ac_ext
13988 cat >>conftest.
$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13992 #define $ac_func innocuous_$ac_func
13994 /* System header to define __stub macros and hopefully few prototypes,
13995 which can conflict with char $ac_func (); below.
13996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13997 <limits.h> exists even on freestanding compilers. */
14000 # include <limits.h>
14002 # include <assert.h>
14007 /* Override any GCC internal prototype to avoid an error.
14008 Use char because int might match the return type of a GCC
14009 builtin and then its argument prototype would still apply. */
14014 /* The GNU C library defines this for functions which it implements
14015 to always fail with ENOSYS. Some functions are actually named
14016 something starting with __ and the normal name is an alias. */
14017 #if defined __stub_$ac_func || defined __stub___$ac_func
14024 return $ac_func ();
14029 rm -f conftest.
$ac_objext conftest
$ac_exeext
14030 if { (ac_try
="$ac_link"
14031 case "(($ac_try" in
14032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_link") 2>conftest.er1
14038 grep -v '^ *+' conftest.er1 >conftest.err
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest$ac_exeext &&
14046 $as_test_x conftest$ac_exeext; then
14047 eval "$as_ac_var=yes"
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 eval "$as_ac_var=no"
14055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14056 conftest$ac_exeext conftest.$ac_ext
14058 ac_res=`eval echo '${'$as_ac_var'}'`
14059 { echo "$as_me:$LINENO: result: $ac_res" >&5
14060 echo "${ECHO_T}$ac_res" >&6; }
14061 if test `eval echo '${'$as_ac_var'}'` = yes; then
14062 cat >>confdefs.h <<_ACEOF
14063 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14070 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14071 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <pthread.h>
14082 int foo = PTHREAD_RWLOCK_INITIALIZER;
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (ac_try="$ac_link"
14089 case "(($ac_try" in
14090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14091 *) ac_try_echo
=$ac_try;;
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_link") 2>conftest.er1
14096 grep -v '^ *+' conftest.er1
>conftest.err
14098 cat conftest.err
>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && {
14101 test -z "$ac_c_werror_flag" ||
14102 test ! -s conftest.err
14103 } && test -s conftest
$ac_exeext &&
14104 $as_test_x conftest
$ac_exeext; then
14105 { echo "$as_me:$LINENO: result: yes" >&5
14106 echo "${ECHO_T}yes" >&6; }
14108 cat >>confdefs.h
<<\_ACEOF
14109 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.
$ac_ext >&5
14116 { echo "$as_me:$LINENO: result: no" >&5
14117 echo "${ECHO_T}no" >&6; }
14121 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14122 conftest
$ac_exeext conftest.
$ac_ext
14124 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14125 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14126 cat >conftest.
$ac_ext <<_ACEOF
14129 cat confdefs.h
>>conftest.
$ac_ext
14130 cat >>conftest.
$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 #include <pthread.h>
14136 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14141 rm -f conftest.
$ac_objext conftest
$ac_exeext
14142 if { (ac_try
="$ac_link"
14143 case "(($ac_try" in
14144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_link") 2>conftest.er1
14150 grep -v '^ *+' conftest.er1 >conftest.err
14152 cat conftest.err >&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } && {
14155 test -z "$ac_c_werror_flag" ||
14156 test ! -s conftest.err
14157 } && test -s conftest$ac_exeext &&
14158 $as_test_x conftest$ac_exeext; then
14159 { echo "$as_me:$LINENO: result: yes" >&5
14160 echo "${ECHO_T}yes" >&6; }
14162 cat >>confdefs.h <<\_ACEOF
14163 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 { echo "$as_me:$LINENO: result: no" >&5
14171 echo "${ECHO_T}no" >&6; }
14175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14176 conftest$ac_exeext conftest.$ac_ext
14178 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14179 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14180 cat >conftest.$ac_ext <<_ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14190 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14195 rm -f conftest.$ac_objext conftest$ac_exeext
14196 if { (ac_try="$ac_link"
14197 case "(($ac_try" in
14198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14199 *) ac_try_echo
=$ac_try;;
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_link") 2>conftest.er1
14204 grep -v '^ *+' conftest.er1
>conftest.err
14206 cat conftest.err
>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && {
14209 test -z "$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 } && test -s conftest
$ac_exeext &&
14212 $as_test_x conftest
$ac_exeext; then
14213 { echo "$as_me:$LINENO: result: yes" >&5
14214 echo "${ECHO_T}yes" >&6; }
14216 cat >>confdefs.h
<<\_ACEOF
14217 #define HAVE_GCC_ATOMICS 1
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.
$ac_ext >&5
14224 { echo "$as_me:$LINENO: result: no" >&5
14225 echo "${ECHO_T}no" >&6; }
14229 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14230 conftest
$ac_exeext conftest.
$ac_ext
14233 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14234 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14235 cat >conftest.
$ac_ext <<_ACEOF
14238 cat confdefs.h
>>conftest.
$ac_ext
14239 cat >>conftest.
$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 static int __attribute__((pure)) test(void) {}
14250 rm -f conftest.
$ac_objext
14251 if { (ac_try
="$ac_compile"
14252 case "(($ac_try" in
14253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_compile") 2>conftest.er1
14259 grep -v '^ *+' conftest.er1 >conftest.err
14261 cat conftest.err >&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } && {
14264 test -z "$ac_c_werror_flag" ||
14265 test ! -s conftest.err
14266 } && test -s conftest.$ac_objext; then
14267 { echo "$as_me:$LINENO: result: yes" >&5
14268 echo "${ECHO_T}yes" >&6; }
14270 cat >>confdefs.h <<_ACEOF
14271 #define HAVE_ATTRIBUTE_pure 1
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 { echo "$as_me:$LINENO: result: no" >&5
14279 echo "${ECHO_T}no" >&6; }
14282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14285 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14286 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 static int __attribute__((malloc)) test(void) {}
14302 rm -f conftest.$ac_objext
14303 if { (ac_try="$ac_compile"
14304 case "(($ac_try" in
14305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14306 *) ac_try_echo
=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14311 grep -v '^ *+' conftest.er1
>conftest.err
14313 cat conftest.err
>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } && {
14316 test -z "$ac_c_werror_flag" ||
14317 test ! -s conftest.err
14318 } && test -s conftest.
$ac_objext; then
14319 { echo "$as_me:$LINENO: result: yes" >&5
14320 echo "${ECHO_T}yes" >&6; }
14322 cat >>confdefs.h
<<_ACEOF
14323 #define HAVE_ATTRIBUTE_malloc 1
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.
$ac_ext >&5
14330 { echo "$as_me:$LINENO: result: no" >&5
14331 echo "${ECHO_T}no" >&6; }
14334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14337 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14338 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14339 cat >conftest.
$ac_ext <<_ACEOF
14342 cat confdefs.h
>>conftest.
$ac_ext
14343 cat >>conftest.
$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 static int __attribute__((const)) test(void) {}
14354 rm -f conftest.
$ac_objext
14355 if { (ac_try
="$ac_compile"
14356 case "(($ac_try" in
14357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_compile") 2>conftest.er1
14363 grep -v '^ *+' conftest.er1 >conftest.err
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } && {
14368 test -z "$ac_c_werror_flag" ||
14369 test ! -s conftest.err
14370 } && test -s conftest.$ac_objext; then
14371 { echo "$as_me:$LINENO: result: yes" >&5
14372 echo "${ECHO_T}yes" >&6; }
14374 cat >>confdefs.h <<_ACEOF
14375 #define HAVE_ATTRIBUTE_const 1
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 { echo "$as_me:$LINENO: result: no" >&5
14383 echo "${ECHO_T}no" >&6; }
14386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
14390 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 static int __attribute__((unused)) test(void) {}
14406 rm -f conftest.$ac_objext
14407 if { (ac_try="$ac_compile"
14408 case "(($ac_try" in
14409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14410 *) ac_try_echo
=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_compile") 2>conftest.er1
14415 grep -v '^ *+' conftest.er1
>conftest.err
14417 cat conftest.err
>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest.
$ac_objext; then
14423 { echo "$as_me:$LINENO: result: yes" >&5
14424 echo "${ECHO_T}yes" >&6; }
14426 cat >>confdefs.h
<<_ACEOF
14427 #define HAVE_ATTRIBUTE_unused 1
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.
$ac_ext >&5
14434 { echo "$as_me:$LINENO: result: no" >&5
14435 echo "${ECHO_T}no" >&6; }
14438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14441 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
14442 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
14443 cat >conftest.
$ac_ext <<_ACEOF
14446 cat confdefs.h
>>conftest.
$ac_ext
14447 cat >>conftest.
$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14449 static int __attribute__((always_inline)) test(void) {}
14458 rm -f conftest.
$ac_objext
14459 if { (ac_try
="$ac_compile"
14460 case "(($ac_try" in
14461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465 (eval "$ac_compile") 2>conftest.er1
14467 grep -v '^ *+' conftest.er1 >conftest.err
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } && {
14472 test -z "$ac_c_werror_flag" ||
14473 test ! -s conftest.err
14474 } && test -s conftest.$ac_objext; then
14475 { echo "$as_me:$LINENO: result: yes" >&5
14476 echo "${ECHO_T}yes" >&6; }
14478 cat >>confdefs.h <<_ACEOF
14479 #define HAVE_ATTRIBUTE_always_inline 1
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 { echo "$as_me:$LINENO: result: no" >&5
14487 echo "${ECHO_T}no" >&6; }
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
14494 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
14495 saved_CFLAGS="${CFLAGS}"
14496 CFLAGS="${CFLAGS} -ffunction-sections"
14497 cat >conftest.$ac_ext <<_ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14512 rm -f conftest.$ac_objext
14513 if { (ac_try="$ac_compile"
14514 case "(($ac_try" in
14515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14516 *) ac_try_echo
=$ac_try;;
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_compile") 2>conftest.er1
14521 grep -v '^ *+' conftest.er1
>conftest.err
14523 cat conftest.err
>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } && {
14526 test -z "$ac_c_werror_flag" ||
14527 test ! -s conftest.err
14528 } && test -s conftest.
$ac_objext; then
14529 { echo "$as_me:$LINENO: result: yes" >&5
14530 echo "${ECHO_T}yes" >&6; }
14531 saved_LDFLAGS
="${LDFLAGS}"
14532 LDFLAGS
="${LDFLAGS} -Wl,--gc-sections"
14533 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
14534 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
14535 cat >conftest.
$ac_ext <<_ACEOF
14538 cat confdefs.h
>>conftest.
$ac_ext
14539 cat >>conftest.
$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14550 rm -f conftest.
$ac_objext conftest
$ac_exeext
14551 if { (ac_try
="$ac_link"
14552 case "(($ac_try" in
14553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_link") 2>conftest.er1
14559 grep -v '^ *+' conftest.er1 >conftest.err
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && {
14564 test -z "$ac_c_werror_flag" ||
14565 test ! -s conftest.err
14566 } && test -s conftest$ac_exeext &&
14567 $as_test_x conftest$ac_exeext; then
14568 { echo "$as_me:$LINENO: result: yes" >&5
14569 echo "${ECHO_T}yes" >&6; }
14570 GC_CFLAGS="-ffunction-sections"
14571 GC_LDFLAGS="-Wl,--gc-sections"
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14576 { echo "$as_me:$LINENO: result: no" >&5
14577 echo "${ECHO_T}no" >&6; }
14581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LDFLAGS="${saved_LDFLAGS}"
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 { echo "$as_me:$LINENO: result: no" >&5
14589 echo "${ECHO_T}no" >&6; }
14593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14594 CFLAGS="${saved_CFLAGS}"
14598 { echo "$as_me:$LINENO: checking for res_ninit" >&5
14599 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
14600 cat >conftest.$ac_ext <<_ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 #include <resolv.h>
14610 int foo = res_ninit(NULL);
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (ac_try="$ac_link"
14617 case "(($ac_try" in
14618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14619 *) ac_try_echo
=$ac_try;;
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_link") 2>conftest.er1
14624 grep -v '^ *+' conftest.er1
>conftest.err
14626 cat conftest.err
>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } && {
14629 test -z "$ac_c_werror_flag" ||
14630 test ! -s conftest.err
14631 } && test -s conftest
$ac_exeext &&
14632 $as_test_x conftest
$ac_exeext; then
14633 { echo "$as_me:$LINENO: result: yes" >&5
14634 echo "${ECHO_T}yes" >&6; }
14636 cat >>confdefs.h
<<\_ACEOF
14637 #define HAVE_RES_NINIT 1
14641 echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.
$ac_ext >&5
14644 { echo "$as_me:$LINENO: result: no" >&5
14645 echo "${ECHO_T}no" >&6; }
14649 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14650 conftest
$ac_exeext conftest.
$ac_ext
14652 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
14653 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
14654 cat >conftest.
$ac_ext <<_ACEOF
14657 cat confdefs.h
>>conftest.
$ac_ext
14658 cat >>conftest.
$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14664 int foo = RTLD_NOLOAD;
14669 rm -f conftest.
$ac_objext conftest
$ac_exeext
14670 if { (ac_try
="$ac_link"
14671 case "(($ac_try" in
14672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_link") 2>conftest.er1
14678 grep -v '^ *+' conftest.er1 >conftest.err
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } && {
14683 test -z "$ac_c_werror_flag" ||
14684 test ! -s conftest.err
14685 } && test -s conftest$ac_exeext &&
14686 $as_test_x conftest$ac_exeext; then
14687 { echo "$as_me:$LINENO: result: yes" >&5
14688 echo "${ECHO_T}yes" >&6; }
14690 cat >>confdefs.h <<\_ACEOF
14691 #define HAVE_RTLD_NOLOAD 1
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 { echo "$as_me:$LINENO: result: no" >&5
14699 echo "${ECHO_T}no" >&6; }
14703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14704 conftest$ac_exeext conftest.$ac_ext
14706 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
14707 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 #include <netinet/in.h>
14718 int foo = IP_MTU_DISCOVER;
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (ac_try="$ac_link"
14725 case "(($ac_try" in
14726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14727 *) ac_try_echo
=$ac_try;;
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_link") 2>conftest.er1
14732 grep -v '^ *+' conftest.er1
>conftest.err
14734 cat conftest.err
>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } && {
14737 test -z "$ac_c_werror_flag" ||
14738 test ! -s conftest.err
14739 } && test -s conftest
$ac_exeext &&
14740 $as_test_x conftest
$ac_exeext; then
14741 { echo "$as_me:$LINENO: result: yes" >&5
14742 echo "${ECHO_T}yes" >&6; }
14744 cat >>confdefs.h
<<\_ACEOF
14745 #define HAVE_IP_MTU_DISCOVER 1
14749 echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.
$ac_ext >&5
14752 { echo "$as_me:$LINENO: result: no" >&5
14753 echo "${ECHO_T}no" >&6; }
14757 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14758 conftest
$ac_exeext conftest.
$ac_ext
14760 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14761 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14762 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14763 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14767 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14769 # Is the header compilable?
14770 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14771 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14772 cat >conftest.
$ac_ext <<_ACEOF
14775 cat confdefs.h
>>conftest.
$ac_ext
14776 cat >>conftest.
$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 $ac_includes_default
14779 #include <libkern/OSAtomic.h>
14781 rm -f conftest.
$ac_objext
14782 if { (ac_try
="$ac_compile"
14783 case "(($ac_try" in
14784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14785 *) ac_try_echo=$ac_try;;
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788 (eval "$ac_compile") 2>conftest.er1
14790 grep -v '^ *+' conftest.er1 >conftest.err
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } && {
14795 test -z "$ac_c_werror_flag" ||
14796 test ! -s conftest.err
14797 } && test -s conftest.$ac_objext; then
14798 ac_header_compiler=yes
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 ac_header_compiler=no
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808 echo "${ECHO_T}$ac_header_compiler" >&6; }
14810 # Is the header present?
14811 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14812 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 #include <libkern/OSAtomic.h>
14821 if { (ac_try="$ac_cpp conftest.$ac_ext"
14822 case "(($ac_try" in
14823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14824 *) ac_try_echo
=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1
>conftest.err
14831 cat conftest.err
>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } >/dev
/null
&& {
14834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14835 test ! -s conftest.err
14837 ac_header_preproc
=yes
14839 echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.
$ac_ext >&5
14842 ac_header_preproc
=no
14845 rm -f conftest.err conftest.
$ac_ext
14846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14847 echo "${ECHO_T}$ac_header_preproc" >&6; }
14849 # So? What about this header?
14850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14852 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14853 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14855 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14856 ac_header_preproc
=yes
14859 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14860 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14862 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14863 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14864 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14866 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14868 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14870 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14874 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14875 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14876 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 ac_cv_header_libkern_OSAtomic_h
=$ac_header_preproc
14881 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14882 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14885 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14887 cat >>confdefs.h
<<_ACEOF
14888 #define HAVE_OSX_ATOMICS 1
14895 { echo "$as_me:$LINENO: checking for int" >&5
14896 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14897 if test "${ac_cv_type_int+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 cat >conftest.
$ac_ext <<_ACEOF
14903 cat confdefs.h
>>conftest.
$ac_ext
14904 cat >>conftest.
$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 $ac_includes_default
14907 typedef int ac__type_new_;
14911 if ((ac__type_new_ *) 0)
14913 if (sizeof (ac__type_new_))
14919 rm -f conftest.
$ac_objext
14920 if { (ac_try
="$ac_compile"
14921 case "(($ac_try" in
14922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_compile") 2>conftest.er1
14928 grep -v '^ *+' conftest.er1 >conftest.err
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } && {
14933 test -z "$ac_c_werror_flag" ||
14934 test ! -s conftest.err
14935 } && test -s conftest.$ac_objext; then
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14947 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14949 # The cast to long int works around a bug in the HP C Compiler
14950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14951 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
14952 # This bug is HP SR number 8606223364.
14953 { echo "$as_me:$LINENO: checking size of int" >&5
14954 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14955 if test "${ac_cv_sizeof_int+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 if test "$cross_compiling" = yes; then
14959 # Depending upon the size, compute the lo and hi bounds.
14960 cat >conftest.$ac_ext <<_ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 $ac_includes_default
14967 typedef int ac__type_sizeof_;
14971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14978 rm -f conftest.$ac_objext
14979 if { (ac_try="$ac_compile"
14980 case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_compile") 2>conftest.er1
14987 grep -v '^
*+' conftest.er1 >conftest.err
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_c_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest.$ac_objext; then
14997 cat >conftest.$ac_ext <<_ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 $ac_includes_default
15004 typedef int ac__type_sizeof_;
15008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15015 rm -f conftest.$ac_objext
15016 if { (ac_try="$ac_compile"
15017 case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_compile") 2>conftest.er1
15024 grep -v '^
*+' conftest.er1 >conftest.err
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } && {
15029 test -z "$ac_c_werror_flag" ||
15030 test ! -s conftest.err
15031 } && test -s conftest.$ac_objext; then
15032 ac_hi=$ac_mid; break
15034 echo "$as_me: failed program was:" >&5
15035 sed 's
/^
/|
/' conftest.$ac_ext >&5
15037 ac_lo=`expr $ac_mid + 1`
15038 if test $ac_lo -le $ac_mid; then
15042 ac_mid=`expr 2 '*' $ac_mid + 1`
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15048 echo "$as_me: failed program was:" >&5
15049 sed 's
/^
/|
/' conftest.$ac_ext >&5
15051 cat >conftest.$ac_ext <<_ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 $ac_includes_default
15058 typedef int ac__type_sizeof_;
15062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15069 rm -f conftest.$ac_objext
15070 if { (ac_try="$ac_compile"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_compile") 2>conftest.er1
15078 grep -v '^
*+' conftest.er1 >conftest.err
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } && {
15083 test -z "$ac_c_werror_flag" ||
15084 test ! -s conftest.err
15085 } && test -s conftest.$ac_objext; then
15088 cat >conftest.$ac_ext <<_ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15094 $ac_includes_default
15095 typedef int ac__type_sizeof_;
15099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15106 rm -f conftest.$ac_objext
15107 if { (ac_try="$ac_compile"
15108 case "(($ac_try" in
15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_compile") 2>conftest.er1
15115 grep -v '^
*+' conftest.er1 >conftest.err
15117 cat conftest.err >&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } && {
15120 test -z "$ac_c_werror_flag" ||
15121 test ! -s conftest.err
15122 } && test -s conftest.$ac_objext; then
15123 ac_lo=$ac_mid; break
15125 echo "$as_me: failed program was:" >&5
15126 sed 's
/^
/|
/' conftest.$ac_ext >&5
15128 ac_hi=`expr '(' $ac_mid ')' - 1`
15129 if test $ac_mid -le $ac_hi; then
15133 ac_mid=`expr 2 '*' $ac_mid`
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15139 echo "$as_me: failed program was:" >&5
15140 sed 's
/^
/|
/' conftest.$ac_ext >&5
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15149 # Binary search between lo and hi bounds.
15150 while test "x$ac_lo" != "x$ac_hi"; do
15151 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15152 cat >conftest.$ac_ext <<_ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 $ac_includes_default
15159 typedef int ac__type_sizeof_;
15163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15170 rm -f conftest.$ac_objext
15171 if { (ac_try="$ac_compile"
15172 case "(($ac_try" in
15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_compile") 2>conftest.er1
15179 grep -v '^
*+' conftest.er1 >conftest.err
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } && {
15184 test -z "$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 } && test -s conftest.$ac_objext; then
15189 echo "$as_me: failed program was:" >&5
15190 sed 's
/^
/|
/' conftest.$ac_ext >&5
15192 ac_lo=`expr '(' $ac_mid ')' + 1`
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 ?*) ac_cv_sizeof_int=$ac_lo;;
15199 '') if test "$ac_cv_type_int" = yes; then
15200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15201 See \`config.log' for more details.
" >&5
15202 echo "$as_me: error
: cannot compute sizeof
(int
)
15203 See \
`config.log' for more details." >&2;}
15204 { (exit 77); exit 77; }; }
15210 cat >conftest.$ac_ext <<_ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 $ac_includes_default
15217 typedef int ac__type_sizeof_;
15218 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15219 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15221 #include <stdlib.h>
15226 FILE *f = fopen ("conftest.val", "w");
15229 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15231 long int i = longval ();
15232 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15234 fprintf (f, "%ld\n", i);
15238 unsigned long int i = ulongval ();
15239 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15241 fprintf (f, "%lu\n", i);
15243 return ferror (f) || fclose (f) != 0;
15249 rm -f conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15253 *) ac_try_echo
=$ac_try;;
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15260 { (case "(($ac_try" in
15261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_try") 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_cv_sizeof_int=`cat conftest.val
`
15271 echo "$as_me: program exited with status $ac_status" >&5
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ( exit $ac_status )
15276 if test "$ac_cv_type_int" = yes; then
15277 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15278 See \`config.log
' for more details." >&5
15279 echo "$as_me: error: cannot compute sizeof (int)
15280 See \`config.log' for more details.
" >&2;}
15281 { (exit 77); exit 77; }; }
15286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15290 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
15291 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15295 cat >>confdefs.h <<_ACEOF
15296 #define SIZEOF_INT $ac_cv_sizeof_int
15301 # do the package library checks now
15304 if test "${USE_ALSA}" != "no
"; then
15306 if test "x
${ALSA_DIR}" != "x
"; then
15307 if test -d ${ALSA_DIR}/lib; then
15308 pbxlibdir="-L${ALSA_DIR}/lib
"
15310 pbxlibdir="-L${ALSA_DIR}"
15313 { echo "$as_me:$LINENO: checking
for snd_spcm_init
in -lasound" >&5
15314 echo $ECHO_N "checking
for snd_spcm_init
in -lasound...
$ECHO_C" >&6; }
15315 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15316 echo $ECHO_N "(cached
) $ECHO_C" >&6
15318 ac_check_lib_save_LIBS=$LIBS
15319 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15320 cat >conftest.$ac_ext <<_ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15327 /* Override any GCC internal prototype to avoid an error.
15328 Use char because int might match the return type of a GCC
15329 builtin and then its argument prototype would still apply. */
15333 char snd_spcm_init ();
15337 return snd_spcm_init ();
15342 rm -f conftest.$ac_objext conftest$ac_exeext
15343 if { (ac_try="$ac_link"
15344 case "(($ac_try" in
15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346 *) ac_try_echo=$ac_try;;
15348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_link") 2>conftest.er1
15351 grep -v '^ *+' conftest.er1 >conftest.err
15353 cat conftest.err >&5
15354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15355 (exit $ac_status); } && {
15356 test -z "$ac_c_werror_flag" ||
15357 test ! -s conftest.err
15358 } && test -s conftest$ac_exeext &&
15359 $as_test_x conftest$ac_exeext; then
15360 ac_cv_lib_asound_snd_spcm_init=yes
15362 echo "$as_me: failed program was
:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 ac_cv_lib_asound_snd_spcm_init=no
15368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15369 conftest$ac_exeext conftest.$ac_ext
15370 LIBS=$ac_check_lib_save_LIBS
15372 { echo "$as_me:$LINENO: result
: $ac_cv_lib_asound_snd_spcm_init" >&5
15373 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15374 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15381 if test "${AST_ALSA_FOUND}" = "yes"; then
15382 ALSA_LIB="-lasound -lm -ldl"
15383 ALSA_HEADER_FOUND="1"
15384 if test "x
${ALSA_DIR}" != "x
"; then
15385 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15386 ALSA_INCLUDE="-I${ALSA_DIR}/include
"
15387 if test "xalsa
/asoundlib.h
" != "x
" ; then
15388 as_ac_Header=`echo "ac_cv_header_
${ALSA_DIR}/include
/alsa
/asoundlib.h
" | $as_tr_sh`
15389 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15390 { echo "$as_me:$LINENO: checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h
" >&5
15391 echo $ECHO_N "checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h...
$ECHO_C" >&6; }
15392 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15393 echo $ECHO_N "(cached
) $ECHO_C" >&6
15395 ac_res=`eval echo '${'$as_ac_Header'}'`
15396 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15397 echo "${ECHO_T}$ac_res" >&6; }
15399 # Is the header compilable?
15400 { echo "$as_me:$LINENO: checking
${ALSA_DIR}/include
/alsa
/asoundlib.h usability
" >&5
15401 echo $ECHO_N "checking
${ALSA_DIR}/include
/alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
15402 cat >conftest.$ac_ext <<_ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 $ac_includes_default
15409 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15411 rm -f conftest.$ac_objext
15412 if { (ac_try="$ac_compile"
15413 case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_compile") 2>conftest.er1
15420 grep -v '^ *+' conftest.er1 >conftest.err
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15424 (exit $ac_status); } && {
15425 test -z "$ac_c_werror_flag" ||
15426 test ! -s conftest.err
15427 } && test -s conftest.$ac_objext; then
15428 ac_header_compiler=yes
15430 echo "$as_me: failed program was
:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_header_compiler=no
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15438 echo "${ECHO_T}$ac_header_compiler" >&6; }
15440 # Is the header present?
15441 { echo "$as_me:$LINENO: checking
${ALSA_DIR}/include
/alsa
/asoundlib.h presence
" >&5
15442 echo $ECHO_N "checking
${ALSA_DIR}/include
/alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
15443 cat >conftest.$ac_ext <<_ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15449 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15451 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15463 (exit $ac_status); } >/dev/null && {
15464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15465 test ! -s conftest.err
15467 ac_header_preproc=yes
15469 echo "$as_me: failed program was
:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_header_preproc=no
15475 rm -f conftest.err conftest.$ac_ext
15476 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15477 echo "${ECHO_T}$ac_header_preproc" >&6; }
15479 # So? What about this header?
15480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15482 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15483 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15484 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
15485 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
15486 ac_header_preproc=yes
15489 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: present but cannot be compiled
" >&5
15490 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
15491 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
15492 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
15493 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
15494 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
15495 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15496 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15497 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
15498 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
15499 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
15500 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
15504 { echo "$as_me:$LINENO: checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h
" >&5
15505 echo $ECHO_N "checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h...
$ECHO_C" >&6; }
15506 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15507 echo $ECHO_N "(cached
) $ECHO_C" >&6
15509 eval "$as_ac_Header=\
$ac_header_preproc"
15511 ac_res=`eval echo '${'$as_ac_Header'}'`
15512 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15513 echo "${ECHO_T}$ac_res" >&6; }
15516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15517 ALSA_HEADER_FOUND=1
15519 ALSA_HEADER_FOUND=0
15525 if test "xalsa
/asoundlib.h
" != "x
" ; then
15526 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15527 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
15528 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
15529 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15530 echo $ECHO_N "(cached
) $ECHO_C" >&6
15532 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
15533 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15535 # Is the header compilable?
15536 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h usability
" >&5
15537 echo $ECHO_N "checking alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
15538 cat >conftest.$ac_ext <<_ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15544 $ac_includes_default
15545 #include <alsa/asoundlib.h>
15547 rm -f conftest.$ac_objext
15548 if { (ac_try="$ac_compile"
15549 case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_compile") 2>conftest.er1
15556 grep -v '^ *+' conftest.er1 >conftest.err
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15560 (exit $ac_status); } && {
15561 test -z "$ac_c_werror_flag" ||
15562 test ! -s conftest.err
15563 } && test -s conftest.$ac_objext; then
15564 ac_header_compiler=yes
15566 echo "$as_me: failed program was
:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569 ac_header_compiler=no
15572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15574 echo "${ECHO_T}$ac_header_compiler" >&6; }
15576 # Is the header present?
15577 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h presence
" >&5
15578 echo $ECHO_N "checking alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
15579 cat >conftest.$ac_ext <<_ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 #include <alsa/asoundlib.h>
15587 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15595 grep -v '^ *+' conftest.er1 >conftest.err
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15599 (exit $ac_status); } >/dev/null && {
15600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15601 test ! -s conftest.err
15603 ac_header_preproc=yes
15605 echo "$as_me: failed program was
:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_header_preproc=no
15611 rm -f conftest.err conftest.$ac_ext
15612 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15613 echo "${ECHO_T}$ac_header_preproc" >&6; }
15615 # So? What about this header?
15616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15618 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15619 echo "$as_me: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15620 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
15621 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
15622 ac_header_preproc=yes
15625 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&5
15626 echo "$as_me: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
15627 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
15628 echo "$as_me: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
15629 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
15630 echo "$as_me: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
15631 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15632 echo "$as_me: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15633 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
15634 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
15635 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
15636 echo "$as_me: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
15640 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
15641 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
15642 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15643 echo $ECHO_N "(cached
) $ECHO_C" >&6
15645 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15647 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
15648 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15651 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15652 ALSA_HEADER_FOUND=1
15654 ALSA_HEADER_FOUND=0
15660 if test "x
${ALSA_HEADER_FOUND}" = "x0
" ; then
15661 if test ! -z "${ALSA_MANDATORY}" ;
15663 { echo "$as_me:$LINENO: ***" >&5
15664 echo "$as_me: ***" >&6;}
15665 { echo "$as_me:$LINENO: *** It appears that you
do not have the asound development package installed.
" >&5
15666 echo "$as_me: *** It appears that you
do not have the asound development package installed.
" >&6;}
15667 { echo "$as_me:$LINENO: *** Please
install it to include
${ALSA_DESCRIP} support
, or re-run configure
" >&5
15668 echo "$as_me: *** Please
install it to include
${ALSA_DESCRIP} support
, or re-run configure
" >&6;}
15669 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ALSA_OPTION}" >&5
15670 echo "$as_me: *** without explicitly specifying
--with-${ALSA_OPTION}" >&6;}
15679 cat >>confdefs.h <<_ACEOF
15680 #define HAVE_ALSA 1
15684 elif test ! -z "${ALSA_MANDATORY}";
15686 { echo "$as_me:$LINENO: ***" >&5
15687 echo "$as_me: ***" >&6;}
15688 { echo "$as_me:$LINENO: *** The
${ALSA_DESCRIP} installation on this system appears to be broken.
" >&5
15689 echo "$as_me: *** The
${ALSA_DESCRIP} installation on this system appears to be broken.
" >&6;}
15690 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
15691 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
15692 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ALSA_OPTION}" >&5
15693 echo "$as_me: *** without explicitly specifying
--with-${ALSA_OPTION}" >&6;}
15700 if test "${USE_CURSES}" != "no
"; then
15702 if test "x
${CURSES_DIR}" != "x
"; then
15703 if test -d ${CURSES_DIR}/lib; then
15704 pbxlibdir="-L${CURSES_DIR}/lib
"
15706 pbxlibdir="-L${CURSES_DIR}"
15709 { echo "$as_me:$LINENO: checking
for initscr
in -lcurses" >&5
15710 echo $ECHO_N "checking
for initscr
in -lcurses...
$ECHO_C" >&6; }
15711 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15712 echo $ECHO_N "(cached
) $ECHO_C" >&6
15714 ac_check_lib_save_LIBS=$LIBS
15715 LIBS="-lcurses ${pbxlibdir} $LIBS"
15716 cat >conftest.$ac_ext <<_ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15723 /* Override any GCC internal prototype to avoid an error.
15724 Use char because int might match the return type of a GCC
15725 builtin and then its argument prototype would still apply. */
15738 rm -f conftest.$ac_objext conftest$ac_exeext
15739 if { (ac_try="$ac_link"
15740 case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_link") 2>conftest.er1
15747 grep -v '^ *+' conftest.er1 >conftest.err
15749 cat conftest.err >&5
15750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15751 (exit $ac_status); } && {
15752 test -z "$ac_c_werror_flag" ||
15753 test ! -s conftest.err
15754 } && test -s conftest$ac_exeext &&
15755 $as_test_x conftest$ac_exeext; then
15756 ac_cv_lib_curses_initscr=yes
15758 echo "$as_me: failed program was
:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15761 ac_cv_lib_curses_initscr=no
15764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15765 conftest$ac_exeext conftest.$ac_ext
15766 LIBS=$ac_check_lib_save_LIBS
15768 { echo "$as_me:$LINENO: result
: $ac_cv_lib_curses_initscr" >&5
15769 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15770 if test $ac_cv_lib_curses_initscr = yes; then
15771 AST_CURSES_FOUND=yes
15773 AST_CURSES_FOUND=no
15777 if test "${AST_CURSES_FOUND}" = "yes"; then
15778 CURSES_LIB="-lcurses "
15779 CURSES_HEADER_FOUND="1"
15780 if test "x
${CURSES_DIR}" != "x
"; then
15781 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15782 CURSES_INCLUDE="-I${CURSES_DIR}/include
"
15783 if test "xcurses.h
" != "x
" ; then
15784 as_ac_Header=`echo "ac_cv_header_
${CURSES_DIR}/include
/curses.h
" | $as_tr_sh`
15785 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15786 { echo "$as_me:$LINENO: checking
for ${CURSES_DIR}/include
/curses.h
" >&5
15787 echo $ECHO_N "checking
for ${CURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
15788 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached
) $ECHO_C" >&6
15791 ac_res=`eval echo '${'$as_ac_Header'}'`
15792 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15793 echo "${ECHO_T}$ac_res" >&6; }
15795 # Is the header compilable?
15796 { echo "$as_me:$LINENO: checking
${CURSES_DIR}/include
/curses.h usability
" >&5
15797 echo $ECHO_N "checking
${CURSES_DIR}/include
/curses.h usability...
$ECHO_C" >&6; }
15798 cat >conftest.$ac_ext <<_ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 $ac_includes_default
15805 #include <${CURSES_DIR}/include/curses.h>
15807 rm -f conftest.$ac_objext
15808 if { (ac_try="$ac_compile"
15809 case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15816 grep -v '^ *+' conftest.er1 >conftest.err
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15820 (exit $ac_status); } && {
15821 test -z "$ac_c_werror_flag" ||
15822 test ! -s conftest.err
15823 } && test -s conftest.$ac_objext; then
15824 ac_header_compiler=yes
15826 echo "$as_me: failed program was
:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_header_compiler=no
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15834 echo "${ECHO_T}$ac_header_compiler" >&6; }
15836 # Is the header present?
15837 { echo "$as_me:$LINENO: checking
${CURSES_DIR}/include
/curses.h presence
" >&5
15838 echo $ECHO_N "checking
${CURSES_DIR}/include
/curses.h presence...
$ECHO_C" >&6; }
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 #include <${CURSES_DIR}/include/curses.h>
15847 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15848 case "(($ac_try" in
15849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15850 *) ac_try_echo=$ac_try;;
15852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15853 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15855 grep -v '^ *+' conftest.er1 >conftest.err
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15859 (exit $ac_status); } >/dev/null && {
15860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15861 test ! -s conftest.err
15863 ac_header_preproc=yes
15865 echo "$as_me: failed program was
:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_header_preproc=no
15871 rm -f conftest.err conftest.$ac_ext
15872 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15873 echo "${ECHO_T}$ac_header_preproc" >&6; }
15875 # So? What about this header?
15876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15878 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15879 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15880 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the compiler
's result" >&5
15881 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result
" >&2;}
15882 ac_header_preproc=yes
15885 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&5
15886 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&2;}
15887 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&5
15888 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&2;}
15889 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&5
15890 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&2;}
15891 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15892 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15893 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the preprocessor
's result" >&5
15894 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result
" >&2;}
15895 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&5
15896 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&2;}
15900 { echo "$as_me:$LINENO: checking
for ${CURSES_DIR}/include
/curses.h
" >&5
15901 echo $ECHO_N "checking
for ${CURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
15902 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15903 echo $ECHO_N "(cached
) $ECHO_C" >&6
15905 eval "$as_ac_Header=\
$ac_header_preproc"
15907 ac_res=`eval echo '${'$as_ac_Header'}'`
15908 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15909 echo "${ECHO_T}$ac_res" >&6; }
15912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15913 CURSES_HEADER_FOUND=1
15915 CURSES_HEADER_FOUND=0
15921 if test "xcurses.h
" != "x
" ; then
15922 if test "${ac_cv_header_curses_h+set}" = set; then
15923 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
15924 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
15925 if test "${ac_cv_header_curses_h+set}" = set; then
15926 echo $ECHO_N "(cached
) $ECHO_C" >&6
15928 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
15929 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15931 # Is the header compilable?
15932 { echo "$as_me:$LINENO: checking curses.h usability
" >&5
15933 echo $ECHO_N "checking curses.h usability...
$ECHO_C" >&6; }
15934 cat >conftest.$ac_ext <<_ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 $ac_includes_default
15941 #include <curses.h>
15943 rm -f conftest.$ac_objext
15944 if { (ac_try="$ac_compile"
15945 case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15952 grep -v '^ *+' conftest.er1 >conftest.err
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15956 (exit $ac_status); } && {
15957 test -z "$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 } && test -s conftest.$ac_objext; then
15960 ac_header_compiler=yes
15962 echo "$as_me: failed program was
:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 ac_header_compiler=no
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15970 echo "${ECHO_T}$ac_header_compiler" >&6; }
15972 # Is the header present?
15973 { echo "$as_me:$LINENO: checking curses.h presence
" >&5
15974 echo $ECHO_N "checking curses.h presence...
$ECHO_C" >&6; }
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 #include <curses.h>
15983 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15984 case "(($ac_try" in
15985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15986 *) ac_try_echo=$ac_try;;
15988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15989 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15991 grep -v '^ *+' conftest.er1 >conftest.err
15993 cat conftest.err >&5
15994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15995 (exit $ac_status); } >/dev/null && {
15996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15997 test ! -s conftest.err
15999 ac_header_preproc=yes
16001 echo "$as_me: failed program was
:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16004 ac_header_preproc=no
16007 rm -f conftest.err conftest.$ac_ext
16008 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16009 echo "${ECHO_T}$ac_header_preproc" >&6; }
16011 # So? What about this header?
16012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16014 { echo "$as_me:$LINENO: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16015 echo "$as_me: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16016 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the compiler
's result" >&5
16017 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result
" >&2;}
16018 ac_header_preproc=yes
16021 { echo "$as_me:$LINENO: WARNING
: curses.h
: present but cannot be compiled
" >&5
16022 echo "$as_me: WARNING
: curses.h
: present but cannot be compiled
" >&2;}
16023 { echo "$as_me:$LINENO: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&5
16024 echo "$as_me: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&2;}
16025 { echo "$as_me:$LINENO: WARNING
: curses.h
: see the Autoconf documentation
" >&5
16026 echo "$as_me: WARNING
: curses.h
: see the Autoconf documentation
" >&2;}
16027 { echo "$as_me:$LINENO: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16028 echo "$as_me: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16029 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&5
16030 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result
" >&2;}
16031 { echo "$as_me:$LINENO: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&5
16032 echo "$as_me: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&2;}
16036 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
16037 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
16038 if test "${ac_cv_header_curses_h+set}" = set; then
16039 echo $ECHO_N "(cached
) $ECHO_C" >&6
16041 ac_cv_header_curses_h=$ac_header_preproc
16043 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
16044 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16047 if test $ac_cv_header_curses_h = yes; then
16048 CURSES_HEADER_FOUND=1
16050 CURSES_HEADER_FOUND=0
16056 if test "x
${CURSES_HEADER_FOUND}" = "x0
" ; then
16057 if test ! -z "${CURSES_MANDATORY}" ;
16059 { echo "$as_me:$LINENO: ***" >&5
16060 echo "$as_me: ***" >&6;}
16061 { echo "$as_me:$LINENO: *** It appears that you
do not have the curses development package installed.
" >&5
16062 echo "$as_me: *** It appears that you
do not have the curses development package installed.
" >&6;}
16063 { echo "$as_me:$LINENO: *** Please
install it to include
${CURSES_DESCRIP} support
, or re-run configure
" >&5
16064 echo "$as_me: *** Please
install it to include
${CURSES_DESCRIP} support
, or re-run configure
" >&6;}
16065 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${CURSES_OPTION}" >&5
16066 echo "$as_me: *** without explicitly specifying
--with-${CURSES_OPTION}" >&6;}
16075 cat >>confdefs.h <<_ACEOF
16076 #define HAVE_CURSES 1
16080 elif test ! -z "${CURSES_MANDATORY}";
16082 { echo "$as_me:$LINENO: ***" >&5
16083 echo "$as_me: ***" >&6;}
16084 { echo "$as_me:$LINENO: *** The
${CURSES_DESCRIP} installation on this system appears to be broken.
" >&5
16085 echo "$as_me: *** The
${CURSES_DESCRIP} installation on this system appears to be broken.
" >&6;}
16086 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
16087 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
16088 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${CURSES_OPTION}" >&5
16089 echo "$as_me: *** without explicitly specifying
--with-${CURSES_OPTION}" >&6;}
16098 if test "${USE_GSM}" != "no
"; then
16099 if test "${GSM_DIR}" = "internal
"; then
16101 elif test "${GSM_DIR}" != ""; then
16104 if test "${GSM_SYSTEM}" = "yes"; then
16106 if test "x
${GSM_DIR}" != "x
"; then
16107 if test -d ${GSM_DIR}/lib; then
16108 gsmlibdir="-L${GSM_DIR}/lib
"
16110 gsmlibdir="-L${GSM_DIR}"
16113 { echo "$as_me:$LINENO: checking
for gsm_create
in -lgsm" >&5
16114 echo $ECHO_N "checking
for gsm_create
in -lgsm...
$ECHO_C" >&6; }
16115 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16116 echo $ECHO_N "(cached
) $ECHO_C" >&6
16118 ac_check_lib_save_LIBS=$LIBS
16119 LIBS="-lgsm ${gsmlibdir} $LIBS"
16120 cat >conftest.$ac_ext <<_ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h. */
16127 /* Override any GCC internal prototype to avoid an error.
16128 Use char because int might match the return type of a GCC
16129 builtin and then its argument prototype would still apply. */
16133 char gsm_create ();
16137 return gsm_create ();
16142 rm -f conftest.$ac_objext conftest$ac_exeext
16143 if { (ac_try="$ac_link"
16144 case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_link") 2>conftest.er1
16151 grep -v '^ *+' conftest.er1 >conftest.err
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16155 (exit $ac_status); } && {
16156 test -z "$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16158 } && test -s conftest$ac_exeext &&
16159 $as_test_x conftest$ac_exeext; then
16160 ac_cv_lib_gsm_gsm_create=yes
16162 echo "$as_me: failed program was
:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 ac_cv_lib_gsm_gsm_create=no
16168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16169 conftest$ac_exeext conftest.$ac_ext
16170 LIBS=$ac_check_lib_save_LIBS
16172 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gsm_gsm_create" >&5
16173 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16174 if test $ac_cv_lib_gsm_gsm_create = yes; then
16176 cat >>confdefs.h <<_ACEOF
16182 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16184 if test "x
${GSM_DIR}" != "x
"; then
16185 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16186 GSM_INCLUDE="-I${GSM_DIR}/include
"
16192 if test "${GSM_INTERNAL}" = "yes"; then
16198 if test "${USE_IKSEMEL}" != "no
"; then
16200 if test "x
${IKSEMEL_DIR}" != "x
"; then
16201 if test -d ${IKSEMEL_DIR}/lib; then
16202 pbxlibdir="-L${IKSEMEL_DIR}/lib
"
16204 pbxlibdir="-L${IKSEMEL_DIR}"
16207 { echo "$as_me:$LINENO: checking
for iks_start_sasl
in -liksemel" >&5
16208 echo $ECHO_N "checking
for iks_start_sasl
in -liksemel...
$ECHO_C" >&6; }
16209 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16210 echo $ECHO_N "(cached
) $ECHO_C" >&6
16212 ac_check_lib_save_LIBS=$LIBS
16213 LIBS="-liksemel ${pbxlibdir} $LIBS"
16214 cat >conftest.$ac_ext <<_ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16221 /* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
16227 char iks_start_sasl ();
16231 return iks_start_sasl ();
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (ac_try="$ac_link"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_link") 2>conftest.er1
16245 grep -v '^ *+' conftest.er1 >conftest.err
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16249 (exit $ac_status); } && {
16250 test -z "$ac_c_werror_flag" ||
16251 test ! -s conftest.err
16252 } && test -s conftest$ac_exeext &&
16253 $as_test_x conftest$ac_exeext; then
16254 ac_cv_lib_iksemel_iks_start_sasl=yes
16256 echo "$as_me: failed program was
:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16259 ac_cv_lib_iksemel_iks_start_sasl=no
16262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16263 conftest$ac_exeext conftest.$ac_ext
16264 LIBS=$ac_check_lib_save_LIBS
16266 { echo "$as_me:$LINENO: result
: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16267 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16268 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16269 AST_IKSEMEL_FOUND=yes
16271 AST_IKSEMEL_FOUND=no
16275 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16276 IKSEMEL_LIB="-liksemel "
16277 IKSEMEL_HEADER_FOUND="1"
16278 if test "x
${IKSEMEL_DIR}" != "x
"; then
16279 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16280 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include
"
16281 if test "xiksemel.h
" != "x
" ; then
16282 as_ac_Header=`echo "ac_cv_header_
${IKSEMEL_DIR}/include
/iksemel.h
" | $as_tr_sh`
16283 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16284 { echo "$as_me:$LINENO: checking
for ${IKSEMEL_DIR}/include
/iksemel.h
" >&5
16285 echo $ECHO_N "checking
for ${IKSEMEL_DIR}/include
/iksemel.h...
$ECHO_C" >&6; }
16286 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16287 echo $ECHO_N "(cached
) $ECHO_C" >&6
16289 ac_res=`eval echo '${'$as_ac_Header'}'`
16290 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16291 echo "${ECHO_T}$ac_res" >&6; }
16293 # Is the header compilable?
16294 { echo "$as_me:$LINENO: checking
${IKSEMEL_DIR}/include
/iksemel.h usability
" >&5
16295 echo $ECHO_N "checking
${IKSEMEL_DIR}/include
/iksemel.h usability...
$ECHO_C" >&6; }
16296 cat >conftest.$ac_ext <<_ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 $ac_includes_default
16303 #include <${IKSEMEL_DIR}/include/iksemel.h>
16305 rm -f conftest.$ac_objext
16306 if { (ac_try="$ac_compile"
16307 case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_compile") 2>conftest.er1
16314 grep -v '^ *+' conftest.er1 >conftest.err
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16318 (exit $ac_status); } && {
16319 test -z "$ac_c_werror_flag" ||
16320 test ! -s conftest.err
16321 } && test -s conftest.$ac_objext; then
16322 ac_header_compiler=yes
16324 echo "$as_me: failed program was
:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16327 ac_header_compiler=no
16330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16331 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16332 echo "${ECHO_T}$ac_header_compiler" >&6; }
16334 # Is the header present?
16335 { echo "$as_me:$LINENO: checking
${IKSEMEL_DIR}/include
/iksemel.h presence
" >&5
16336 echo $ECHO_N "checking
${IKSEMEL_DIR}/include
/iksemel.h presence...
$ECHO_C" >&6; }
16337 cat >conftest.$ac_ext <<_ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 #include <${IKSEMEL_DIR}/include/iksemel.h>
16345 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16346 case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16353 grep -v '^ *+' conftest.er1 >conftest.err
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16357 (exit $ac_status); } >/dev/null && {
16358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16359 test ! -s conftest.err
16361 ac_header_preproc=yes
16363 echo "$as_me: failed program was
:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16366 ac_header_preproc=no
16369 rm -f conftest.err conftest.$ac_ext
16370 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16371 echo "${ECHO_T}$ac_header_preproc" >&6; }
16373 # So? What about this header?
16374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16376 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16377 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16378 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the compiler
's result" >&5
16379 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result
" >&2;}
16380 ac_header_preproc=yes
16383 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: present but cannot be compiled
" >&5
16384 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: present but cannot be compiled
" >&2;}
16385 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: check
for missing prerequisite headers?
" >&5
16386 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: check
for missing prerequisite headers?
" >&2;}
16387 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: see the Autoconf documentation
" >&5
16388 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: see the Autoconf documentation
" >&2;}
16389 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16390 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16391 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the preprocessor
's result" >&5
16392 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result
" >&2;}
16393 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: in the future
, the compiler will take precedence
" >&5
16394 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: in the future
, the compiler will take precedence
" >&2;}
16398 { echo "$as_me:$LINENO: checking
for ${IKSEMEL_DIR}/include
/iksemel.h
" >&5
16399 echo $ECHO_N "checking
for ${IKSEMEL_DIR}/include
/iksemel.h...
$ECHO_C" >&6; }
16400 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16401 echo $ECHO_N "(cached
) $ECHO_C" >&6
16403 eval "$as_ac_Header=\
$ac_header_preproc"
16405 ac_res=`eval echo '${'$as_ac_Header'}'`
16406 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16407 echo "${ECHO_T}$ac_res" >&6; }
16410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16411 IKSEMEL_HEADER_FOUND=1
16413 IKSEMEL_HEADER_FOUND=0
16419 if test "xiksemel.h
" != "x
" ; then
16420 if test "${ac_cv_header_iksemel_h+set}" = set; then
16421 { echo "$as_me:$LINENO: checking
for iksemel.h
" >&5
16422 echo $ECHO_N "checking
for iksemel.h...
$ECHO_C" >&6; }
16423 if test "${ac_cv_header_iksemel_h+set}" = set; then
16424 echo $ECHO_N "(cached
) $ECHO_C" >&6
16426 { echo "$as_me:$LINENO: result
: $ac_cv_header_iksemel_h" >&5
16427 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16429 # Is the header compilable?
16430 { echo "$as_me:$LINENO: checking iksemel.h usability
" >&5
16431 echo $ECHO_N "checking iksemel.h usability...
$ECHO_C" >&6; }
16432 cat >conftest.$ac_ext <<_ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 $ac_includes_default
16439 #include <iksemel.h>
16441 rm -f conftest.$ac_objext
16442 if { (ac_try="$ac_compile"
16443 case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_compile") 2>conftest.er1
16450 grep -v '^ *+' conftest.er1 >conftest.err
16452 cat conftest.err >&5
16453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16454 (exit $ac_status); } && {
16455 test -z "$ac_c_werror_flag" ||
16456 test ! -s conftest.err
16457 } && test -s conftest.$ac_objext; then
16458 ac_header_compiler=yes
16460 echo "$as_me: failed program was
:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16463 ac_header_compiler=no
16466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16467 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16468 echo "${ECHO_T}$ac_header_compiler" >&6; }
16470 # Is the header present?
16471 { echo "$as_me:$LINENO: checking iksemel.h presence
" >&5
16472 echo $ECHO_N "checking iksemel.h presence...
$ECHO_C" >&6; }
16473 cat >conftest.$ac_ext <<_ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 #include <iksemel.h>
16481 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16489 grep -v '^ *+' conftest.er1 >conftest.err
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16493 (exit $ac_status); } >/dev/null && {
16494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16495 test ! -s conftest.err
16497 ac_header_preproc=yes
16499 echo "$as_me: failed program was
:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 ac_header_preproc=no
16505 rm -f conftest.err conftest.$ac_ext
16506 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16507 echo "${ECHO_T}$ac_header_preproc" >&6; }
16509 # So? What about this header?
16510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16512 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16513 echo "$as_me: WARNING
: iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16514 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: proceeding with the compiler
's result" >&5
16515 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result
" >&2;}
16516 ac_header_preproc=yes
16519 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: present but cannot be compiled
" >&5
16520 echo "$as_me: WARNING
: iksemel.h
: present but cannot be compiled
" >&2;}
16521 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: check
for missing prerequisite headers?
" >&5
16522 echo "$as_me: WARNING
: iksemel.h
: check
for missing prerequisite headers?
" >&2;}
16523 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: see the Autoconf documentation
" >&5
16524 echo "$as_me: WARNING
: iksemel.h
: see the Autoconf documentation
" >&2;}
16525 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16526 echo "$as_me: WARNING
: iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16527 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: proceeding with the preprocessor
's result" >&5
16528 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result
" >&2;}
16529 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: in the future
, the compiler will take precedence
" >&5
16530 echo "$as_me: WARNING
: iksemel.h
: in the future
, the compiler will take precedence
" >&2;}
16534 { echo "$as_me:$LINENO: checking
for iksemel.h
" >&5
16535 echo $ECHO_N "checking
for iksemel.h...
$ECHO_C" >&6; }
16536 if test "${ac_cv_header_iksemel_h+set}" = set; then
16537 echo $ECHO_N "(cached
) $ECHO_C" >&6
16539 ac_cv_header_iksemel_h=$ac_header_preproc
16541 { echo "$as_me:$LINENO: result
: $ac_cv_header_iksemel_h" >&5
16542 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16545 if test $ac_cv_header_iksemel_h = yes; then
16546 IKSEMEL_HEADER_FOUND=1
16548 IKSEMEL_HEADER_FOUND=0
16554 if test "x
${IKSEMEL_HEADER_FOUND}" = "x0
" ; then
16555 if test ! -z "${IKSEMEL_MANDATORY}" ;
16557 { echo "$as_me:$LINENO: ***" >&5
16558 echo "$as_me: ***" >&6;}
16559 { echo "$as_me:$LINENO: *** It appears that you
do not have the iksemel development package installed.
" >&5
16560 echo "$as_me: *** It appears that you
do not have the iksemel development package installed.
" >&6;}
16561 { echo "$as_me:$LINENO: *** Please
install it to include
${IKSEMEL_DESCRIP} support
, or re-run configure
" >&5
16562 echo "$as_me: *** Please
install it to include
${IKSEMEL_DESCRIP} support
, or re-run configure
" >&6;}
16563 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&5
16564 echo "$as_me: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&6;}
16573 cat >>confdefs.h <<_ACEOF
16574 #define HAVE_IKSEMEL 1
16578 elif test ! -z "${IKSEMEL_MANDATORY}";
16580 { echo "$as_me:$LINENO: ***" >&5
16581 echo "$as_me: ***" >&6;}
16582 { echo "$as_me:$LINENO: *** The
${IKSEMEL_DESCRIP} installation on this system appears to be broken.
" >&5
16583 echo "$as_me: *** The
${IKSEMEL_DESCRIP} installation on this system appears to be broken.
" >&6;}
16584 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
16585 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
16586 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&5
16587 echo "$as_me: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&6;}
16593 if test "${PBX_IKSEMEL}" = 1; then
16595 if test "${USE_GNUTLS}" != "no
"; then
16597 if test "x
${GNUTLS_DIR}" != "x
"; then
16598 if test -d ${GNUTLS_DIR}/lib; then
16599 pbxlibdir="-L${GNUTLS_DIR}/lib
"
16601 pbxlibdir="-L${GNUTLS_DIR}"
16604 { echo "$as_me:$LINENO: checking
for gnutls_bye
in -lgnutls" >&5
16605 echo $ECHO_N "checking
for gnutls_bye
in -lgnutls...
$ECHO_C" >&6; }
16606 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
16607 echo $ECHO_N "(cached
) $ECHO_C" >&6
16609 ac_check_lib_save_LIBS=$LIBS
16610 LIBS="-lgnutls ${pbxlibdir} $LIBS"
16611 cat >conftest.$ac_ext <<_ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16618 /* Override any GCC internal prototype to avoid an error.
16619 Use char because int might match the return type of a GCC
16620 builtin and then its argument prototype would still apply. */
16624 char gnutls_bye ();
16628 return gnutls_bye ();
16633 rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (ac_try="$ac_link"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_link") 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
16649 } && test -s conftest$ac_exeext &&
16650 $as_test_x conftest$ac_exeext; then
16651 ac_cv_lib_gnutls_gnutls_bye=yes
16653 echo "$as_me: failed program was
:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_cv_lib_gnutls_gnutls_bye=no
16659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16660 conftest$ac_exeext conftest.$ac_ext
16661 LIBS=$ac_check_lib_save_LIBS
16663 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gnutls_gnutls_bye" >&5
16664 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
16665 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
16666 AST_GNUTLS_FOUND=yes
16668 AST_GNUTLS_FOUND=no
16672 if test "${AST_GNUTLS_FOUND}" = "yes"; then
16673 GNUTLS_LIB="-lgnutls "
16674 GNUTLS_HEADER_FOUND="1"
16675 if test "x
${GNUTLS_DIR}" != "x
"; then
16676 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
16677 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include
"
16678 if test "x
" != "x
" ; then
16679 as_ac_Header=`echo "ac_cv_header_
${GNUTLS_DIR}/include
/" | $as_tr_sh`
16680 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16681 { echo "$as_me:$LINENO: checking
for ${GNUTLS_DIR}/include
/" >&5
16682 echo $ECHO_N "checking
for ${GNUTLS_DIR}/include
/...
$ECHO_C" >&6; }
16683 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16684 echo $ECHO_N "(cached
) $ECHO_C" >&6
16686 ac_res=`eval echo '${'$as_ac_Header'}'`
16687 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16688 echo "${ECHO_T}$ac_res" >&6; }
16690 # Is the header compilable?
16691 { echo "$as_me:$LINENO: checking
${GNUTLS_DIR}/include
/ usability
" >&5
16692 echo $ECHO_N "checking
${GNUTLS_DIR}/include
/ usability...
$ECHO_C" >&6; }
16693 cat >conftest.$ac_ext <<_ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16699 $ac_includes_default
16700 #include <${GNUTLS_DIR}/include/>
16702 rm -f conftest.$ac_objext
16703 if { (ac_try="$ac_compile"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_compile") 2>conftest.er1
16711 grep -v '^ *+' conftest.er1 >conftest.err
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16715 (exit $ac_status); } && {
16716 test -z "$ac_c_werror_flag" ||
16717 test ! -s conftest.err
16718 } && test -s conftest.$ac_objext; then
16719 ac_header_compiler=yes
16721 echo "$as_me: failed program was
:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_header_compiler=no
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16729 echo "${ECHO_T}$ac_header_compiler" >&6; }
16731 # Is the header present?
16732 { echo "$as_me:$LINENO: checking
${GNUTLS_DIR}/include
/ presence
" >&5
16733 echo $ECHO_N "checking
${GNUTLS_DIR}/include
/ presence...
$ECHO_C" >&6; }
16734 cat >conftest.$ac_ext <<_ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 #include <${GNUTLS_DIR}/include/>
16742 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16743 case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16750 grep -v '^ *+' conftest.er1 >conftest.err
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16754 (exit $ac_status); } >/dev/null && {
16755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16756 test ! -s conftest.err
16758 ac_header_preproc=yes
16760 echo "$as_me: failed program was
:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 ac_header_preproc=no
16766 rm -f conftest.err conftest.$ac_ext
16767 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16768 echo "${ECHO_T}$ac_header_preproc" >&6; }
16770 # So? What about this header?
16771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16773 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&5
16774 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16775 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: proceeding with the compiler
's result" >&5
16776 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result
" >&2;}
16777 ac_header_preproc=yes
16780 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: present but cannot be compiled
" >&5
16781 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: present but cannot be compiled
" >&2;}
16782 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: check
for missing prerequisite headers?
" >&5
16783 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: check
for missing prerequisite headers?
" >&2;}
16784 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: see the Autoconf documentation
" >&5
16785 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: see the Autoconf documentation
" >&2;}
16786 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&5
16787 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&2;}
16788 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: proceeding with the preprocessor
's result" >&5
16789 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result
" >&2;}
16790 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: in the future
, the compiler will take precedence
" >&5
16791 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: in the future
, the compiler will take precedence
" >&2;}
16795 { echo "$as_me:$LINENO: checking
for ${GNUTLS_DIR}/include
/" >&5
16796 echo $ECHO_N "checking
for ${GNUTLS_DIR}/include
/...
$ECHO_C" >&6; }
16797 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16798 echo $ECHO_N "(cached
) $ECHO_C" >&6
16800 eval "$as_ac_Header=\
$ac_header_preproc"
16802 ac_res=`eval echo '${'$as_ac_Header'}'`
16803 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16804 echo "${ECHO_T}$ac_res" >&6; }
16807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16808 GNUTLS_HEADER_FOUND=1
16810 GNUTLS_HEADER_FOUND=0
16816 if test "x
" != "x
" ; then
16817 if test "${ac_cv_header_+set}" = set; then
16818 { echo "$as_me:$LINENO: checking
for " >&5
16819 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
16820 if test "${ac_cv_header_+set}" = set; then
16821 echo $ECHO_N "(cached
) $ECHO_C" >&6
16823 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
16824 echo "${ECHO_T}$ac_cv_header_" >&6; }
16826 # Is the header compilable?
16827 { echo "$as_me:$LINENO: checking usability
" >&5
16828 echo $ECHO_N "checking usability...
$ECHO_C" >&6; }
16829 cat >conftest.$ac_ext <<_ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h. */
16835 $ac_includes_default
16838 rm -f conftest.$ac_objext
16839 if { (ac_try="$ac_compile"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_compile") 2>conftest.er1
16847 grep -v '^ *+' conftest.er1 >conftest.err
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest.$ac_objext; then
16855 ac_header_compiler=yes
16857 echo "$as_me: failed program was
:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ac_header_compiler=no
16863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16865 echo "${ECHO_T}$ac_header_compiler" >&6; }
16867 # Is the header present?
16868 { echo "$as_me:$LINENO: checking presence
" >&5
16869 echo $ECHO_N "checking presence...
$ECHO_C" >&6; }
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16878 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16879 case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16883 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16886 grep -v '^ *+' conftest.er1 >conftest.err
16888 cat conftest.err >&5
16889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16890 (exit $ac_status); } >/dev/null && {
16891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16892 test ! -s conftest.err
16894 ac_header_preproc=yes
16896 echo "$as_me: failed program was
:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 ac_header_preproc=no
16902 rm -f conftest.err conftest.$ac_ext
16903 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16904 echo "${ECHO_T}$ac_header_preproc" >&6; }
16906 # So? What about this header?
16907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16909 { echo "$as_me:$LINENO: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&5
16910 echo "$as_me: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16911 { echo "$as_me:$LINENO: WARNING
: : proceeding with the compiler
's result" >&5
16912 echo "$as_me: WARNING: : proceeding with the compiler's result
" >&2;}
16913 ac_header_preproc=yes
16916 { echo "$as_me:$LINENO: WARNING
: : present but cannot be compiled
" >&5
16917 echo "$as_me: WARNING
: : present but cannot be compiled
" >&2;}
16918 { echo "$as_me:$LINENO: WARNING
: : check
for missing prerequisite headers?
" >&5
16919 echo "$as_me: WARNING
: : check
for missing prerequisite headers?
" >&2;}
16920 { echo "$as_me:$LINENO: WARNING
: : see the Autoconf documentation
" >&5
16921 echo "$as_me: WARNING
: : see the Autoconf documentation
" >&2;}
16922 { echo "$as_me:$LINENO: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&5
16923 echo "$as_me: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&2;}
16924 { echo "$as_me:$LINENO: WARNING
: : proceeding with the preprocessor
's result" >&5
16925 echo "$as_me: WARNING: : proceeding with the preprocessor's result
" >&2;}
16926 { echo "$as_me:$LINENO: WARNING
: : in the future
, the compiler will take precedence
" >&5
16927 echo "$as_me: WARNING
: : in the future
, the compiler will take precedence
" >&2;}
16931 { echo "$as_me:$LINENO: checking
for " >&5
16932 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
16933 if test "${ac_cv_header_+set}" = set; then
16934 echo $ECHO_N "(cached
) $ECHO_C" >&6
16936 ac_cv_header_=$ac_header_preproc
16938 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
16939 echo "${ECHO_T}$ac_cv_header_" >&6; }
16942 if test $ac_cv_header_ = yes; then
16943 GNUTLS_HEADER_FOUND=1
16945 GNUTLS_HEADER_FOUND=0
16951 if test "x
${GNUTLS_HEADER_FOUND}" = "x0
" ; then
16952 if test ! -z "${GNUTLS_MANDATORY}" ;
16954 { echo "$as_me:$LINENO: ***" >&5
16955 echo "$as_me: ***" >&6;}
16956 { echo "$as_me:$LINENO: *** It appears that you
do not have the gnutls development package installed.
" >&5
16957 echo "$as_me: *** It appears that you
do not have the gnutls development package installed.
" >&6;}
16958 { echo "$as_me:$LINENO: *** Please
install it to include
${GNUTLS_DESCRIP} support
, or re-run configure
" >&5
16959 echo "$as_me: *** Please
install it to include
${GNUTLS_DESCRIP} support
, or re-run configure
" >&6;}
16960 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&5
16961 echo "$as_me: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&6;}
16970 cat >>confdefs.h <<_ACEOF
16971 #define HAVE_GNUTLS 1
16975 elif test ! -z "${GNUTLS_MANDATORY}";
16977 { echo "$as_me:$LINENO: ***" >&5
16978 echo "$as_me: ***" >&6;}
16979 { echo "$as_me:$LINENO: *** The
${GNUTLS_DESCRIP} installation on this system appears to be broken.
" >&5
16980 echo "$as_me: *** The
${GNUTLS_DESCRIP} installation on this system appears to be broken.
" >&6;}
16981 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
16982 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
16983 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&5
16984 echo "$as_me: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&6;}
16989 if test "${PBX_GNUTLS}" = 1; then
16990 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
16994 if test "${USE_IMAP_TK}" != "no
"; then
16995 if test "${IMAP_TK_DIR}" = ""; then
16996 IMAP_TK_DIR=`pwd`"/..
/imap-2004g
"
16998 { echo "$as_me:$LINENO: checking
for UW IMAP Toolkit c-client library
" >&5
16999 echo $ECHO_N "checking
for UW IMAP Toolkit c-client library...
$ECHO_C" >&6; }
17000 saved_cppflags="${CPPFLAGS}"
17001 saved_libs="${LIBS}"
17002 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
17003 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
17005 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client
"
17006 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17007 cat >conftest.$ac_ext <<_ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17013 #include "c-client.h"
17014 void mm_searched (MAILSTREAM *stream,unsigned long number)
17017 void mm_exists (MAILSTREAM *stream,unsigned long number)
17020 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17023 void mm_flags (MAILSTREAM *stream,unsigned long number)
17026 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17029 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17032 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17035 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17038 void mm_log (char *string,long errflg)
17041 void mm_dlog (char *string)
17044 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17047 void mm_critical (MAILSTREAM *stream)
17050 void mm_nocritical (MAILSTREAM *stream)
17053 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17056 void mm_fatal (char *string)
17063 MAILSTREAM *foo = mail_open(NULL, "", 0);
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (ac_try="$ac_link"
17072 case "(($ac_try" in
17073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17074 *) ac_try_echo
=$ac_try;;
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_link") 2>conftest.er1
17079 grep -v '^ *+' conftest.er1
>conftest.err
17081 cat conftest.err
>&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && {
17084 test -z "$ac_c_werror_flag" ||
17085 test ! -s conftest.err
17086 } && test -s conftest
$ac_exeext &&
17087 $as_test_x conftest
$ac_exeext; then
17088 ac_cv_imap_tk
="yes"
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.
$ac_ext >&5
17097 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17098 conftest
$ac_exeext conftest.
$ac_ext
17099 if test "${ac_cv_imap_tk}" = "yes"; then
17100 cat >conftest.
$ac_ext <<_ACEOF
17103 cat confdefs.h
>>conftest.
$ac_ext
17104 cat >>conftest.
$ac_ext <<_ACEOF
17105 /* end confdefs.h. */
17106 #include "c-client.h"
17107 void mm_searched (MAILSTREAM *stream,unsigned long number)
17110 void mm_exists (MAILSTREAM *stream,unsigned long number)
17113 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17116 void mm_flags (MAILSTREAM *stream,unsigned long number)
17119 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17122 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17125 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17128 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17131 void mm_log (char *string,long errflg)
17134 void mm_dlog (char *string)
17137 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17140 void mm_critical (MAILSTREAM *stream)
17143 void mm_nocritical (MAILSTREAM *stream)
17146 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17149 void mm_fatal (char *string)
17156 long check = mail_expunge_full(NULL, "", 0);
17163 rm -f conftest.
$ac_objext conftest
$ac_exeext
17164 if { (ac_try
="$ac_link"
17165 case "(($ac_try" in
17166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_link") 2>conftest.er1
17172 grep -v '^ *+' conftest.er1 >conftest.err
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } && {
17177 test -z "$ac_c_werror_flag" ||
17178 test ! -s conftest.err
17179 } && test -s conftest$ac_exeext &&
17180 $as_test_x conftest$ac_exeext; then
17181 ac_cv_imap_tk2006="yes"
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17186 ac_cv_imap_tk2006="no"
17190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17191 conftest$ac_exeext conftest.$ac_ext
17193 CPPFLAGS="${saved_cppflags}"
17194 LIBS="${saved_libs}"
17195 if test "${ac_cv_imap_tk}" = "yes"; then
17196 { echo "$as_me:$LINENO: result: yes" >&5
17197 echo "${ECHO_T}yes" >&6; }
17198 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17199 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17202 cat >>confdefs.h <<\_ACEOF
17203 #define HAVE_IMAP_TK 1
17206 if test "${ac_cv_imap_tk2006}" = "yes"; then
17208 cat >>confdefs.h <<\_ACEOF
17209 #define HAVE_IMAP_TK2006 1
17213 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17214 { echo "$as_me:$LINENO: result: no" >&5
17215 echo "${ECHO_T}no" >&6; }
17216 { echo "$as_me:$LINENO: ***" >&5
17217 echo "$as_me: ***" >&6;}
17218 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17219 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17220 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17221 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17222 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17223 echo "$as_me: *** including --without-imap." >&6;}
17226 { echo "$as_me:$LINENO: result: no" >&5
17227 echo "${ECHO_T}no" >&6; }
17232 ac_cpp='$CXXCPP $CPPFLAGS'
17233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17238 if test "${USE_KDE}" != "no"; then
17239 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17240 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17241 saved_libs="${LIBS}"
17242 saved_cppflags="${CPPFLAGS}"
17243 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17244 if test -d ${KDE_DIR}/lib; then
17245 kdelibdir="${KDE_DIR}/lib"
17247 kdelibdir="${KDE_DIR}"
17249 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17252 cat >conftest.$ac_ext <<_ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 #include "kcrash.h"
17262 KCrash::defaultCrashHandler(1);
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17272 *) ac_try_echo
=$ac_try;;
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_link") 2>conftest.er1
17277 grep -v '^ *+' conftest.er1
>conftest.err
17279 cat conftest.err
>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } && {
17282 test -z "$ac_cxx_werror_flag" ||
17283 test ! -s conftest.err
17284 } && test -s conftest
$ac_exeext &&
17285 $as_test_x conftest
$ac_exeext; then
17286 ac_cv_lib_kde_crash
="yes"
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.
$ac_ext >&5
17291 ac_cv_lib_kde_crash
="no"
17294 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17295 conftest
$ac_exeext conftest.
$ac_ext
17297 LIBS
="${saved_libs}"
17298 CPPFLAGS
="${saved_cppflags}"
17300 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17301 { echo "$as_me:$LINENO: result: yes" >&5
17302 echo "${ECHO_T}yes" >&6; }
17303 KDE_LIB
="-lkdecore -lkdeui"
17304 if test "${KDE_DIR}" != ""; then
17305 KDE_LIB
="-L${kdelibdir} ${KDE_LIB}"
17306 KDE_INCLUDE
="-I${KDE_DIR}/include"
17310 cat >>confdefs.h
<<\_ACEOF
17311 #define HAVE_LIBKDE 1
17314 elif test ! -z "${KDE_MANDATORY}"; then
17315 { echo "$as_me:$LINENO: result: no" >&5
17316 echo "${ECHO_T}no" >&6; }
17317 { echo "$as_me:$LINENO: ***" >&5
17318 echo "$as_me: ***" >&6;}
17319 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17320 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17321 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17322 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17323 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17324 echo "$as_me: *** including --without-kde." >&6;}
17327 { echo "$as_me:$LINENO: result: no" >&5
17328 echo "${ECHO_T}no" >&6; }
17331 if test "${PBX_KDE}" = 1; then
17332 if test -n "$ac_tool_prefix"; then
17333 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17334 set dummy
${ac_tool_prefix}kdeinit
; ac_word
=$2
17335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17337 if test "${ac_cv_path_KDEINIT+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 ac_cv_path_KDEINIT
="$KDEINIT" # Let the user override the test with a path.
17345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17346 for as_dir
in $PATH
17349 test -z "$as_dir" && as_dir
=.
17350 for ac_exec_ext
in '' $ac_executable_extensions; do
17351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17352 ac_cv_path_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
17353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17363 KDEINIT
=$ac_cv_path_KDEINIT
17364 if test -n "$KDEINIT"; then
17365 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17366 echo "${ECHO_T}$KDEINIT" >&6; }
17368 { echo "$as_me:$LINENO: result: no" >&5
17369 echo "${ECHO_T}no" >&6; }
17374 if test -z "$ac_cv_path_KDEINIT"; then
17375 ac_pt_KDEINIT
=$KDEINIT
17376 # Extract the first word of "kdeinit", so it can be a program name with args.
17377 set dummy kdeinit
; ac_word
=$2
17378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17380 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 case $ac_pt_KDEINIT in
17385 ac_cv_path_ac_pt_KDEINIT
="$ac_pt_KDEINIT" # Let the user override the test with a path.
17388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17389 for as_dir
in $PATH
17392 test -z "$as_dir" && as_dir
=.
17393 for ac_exec_ext
in '' $ac_executable_extensions; do
17394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17395 ac_cv_path_ac_pt_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
17396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17406 ac_pt_KDEINIT
=$ac_cv_path_ac_pt_KDEINIT
17407 if test -n "$ac_pt_KDEINIT"; then
17408 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17409 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17411 { echo "$as_me:$LINENO: result: no" >&5
17412 echo "${ECHO_T}no" >&6; }
17415 if test "x$ac_pt_KDEINIT" = x
; then
17418 case $cross_compiling:$ac_tool_warned in
17420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17421 whose name does not start with the host triplet. If you think this
17422 configuration is useful to you, please write to autoconf@gnu.org." >&5
17423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17424 whose name does not start with the host triplet. If you think this
17425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17426 ac_tool_warned
=yes ;;
17428 KDEINIT
=$ac_pt_KDEINIT
17431 KDEINIT
="$ac_cv_path_KDEINIT"
17434 if test ! x
"${KDEINIT}" = xNo
; then
17435 KDEDIR
=$
(${DIRNAME} ${KDEINIT})
17436 KDEDIR
=$
(${DIRNAME} ${KDEDIR})
17442 ac_cpp
='$CPP $CPPFLAGS'
17443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17449 if test "${USE_MISDN}" != "no"; then
17451 if test "x${MISDN_DIR}" != "x"; then
17452 if test -d ${MISDN_DIR}/lib
; then
17453 pbxlibdir
="-L${MISDN_DIR}/lib"
17455 pbxlibdir
="-L${MISDN_DIR}"
17458 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17459 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17460 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 ac_check_lib_save_LIBS
=$LIBS
17464 LIBS
="-lmISDN ${pbxlibdir} $LIBS"
17465 cat >conftest.
$ac_ext <<_ACEOF
17468 cat confdefs.h
>>conftest.
$ac_ext
17469 cat >>conftest.
$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17472 /* Override any GCC internal prototype to avoid an error.
17473 Use char because int might match the return type of a GCC
17474 builtin and then its argument prototype would still apply. */
17478 char mISDN_open ();
17482 return mISDN_open ();
17487 rm -f conftest.
$ac_objext conftest
$ac_exeext
17488 if { (ac_try
="$ac_link"
17489 case "(($ac_try" in
17490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
17496 grep -v '^ *+' conftest.er1 >conftest.err
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } && {
17501 test -z "$ac_c_werror_flag" ||
17502 test ! -s conftest.err
17503 } && test -s conftest$ac_exeext &&
17504 $as_test_x conftest$ac_exeext; then
17505 ac_cv_lib_mISDN_mISDN_open=yes
17507 echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17510 ac_cv_lib_mISDN_mISDN_open=no
17513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17514 conftest$ac_exeext conftest.$ac_ext
17515 LIBS=$ac_check_lib_save_LIBS
17517 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
17518 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17519 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17520 AST_MISDN_FOUND=yes
17526 if test "${AST_MISDN_FOUND}" = "yes"; then
17527 MISDN_LIB="-lmISDN "
17528 MISDN_HEADER_FOUND="1"
17529 if test "x${MISDN_DIR}" != "x"; then
17530 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17531 MISDN_INCLUDE="-I${MISDN_DIR}/include"
17532 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17533 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" |
$as_tr_sh`
17534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17535 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17536 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 ac_res=`eval echo '${'$as_ac_Header'}'`
17541 { echo "$as_me:$LINENO: result: $ac_res" >&5
17542 echo "${ECHO_T}$ac_res" >&6; }
17544 # Is the header compilable?
17545 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
17546 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17547 cat >conftest.$ac_ext <<_ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 $ac_includes_default
17554 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17556 rm -f conftest.$ac_objext
17557 if { (ac_try="$ac_compile"
17558 case "(($ac_try" in
17559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17560 *) ac_try_echo
=$ac_try;;
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_compile") 2>conftest.er1
17565 grep -v '^ *+' conftest.er1
>conftest.err
17567 cat conftest.err
>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && {
17570 test -z "$ac_c_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest.
$ac_objext; then
17573 ac_header_compiler
=yes
17575 echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.
$ac_ext >&5
17578 ac_header_compiler
=no
17581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17583 echo "${ECHO_T}$ac_header_compiler" >&6; }
17585 # Is the header present?
17586 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
17587 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17588 cat >conftest.
$ac_ext <<_ACEOF
17591 cat confdefs.h
>>conftest.
$ac_ext
17592 cat >>conftest.
$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17596 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17597 case "(($ac_try" in
17598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17599 *) ac_try_echo=$ac_try;;
17601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17604 grep -v '^ *+' conftest.er1 >conftest.err
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } >/dev/null && {
17609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17610 test ! -s conftest.err
17612 ac_header_preproc=yes
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 ac_header_preproc=no
17620 rm -f conftest.err conftest.$ac_ext
17621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17622 echo "${ECHO_T}$ac_header_preproc" >&6; }
17624 # So? What about this header?
17625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17627 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17628 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17629 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17630 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17631 ac_header_preproc=yes
17634 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17635 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17636 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17637 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17638 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17639 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17640 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17641 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17643 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17644 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17645 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17649 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17650 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 eval "$as_ac_Header=\$ac_header_preproc"
17656 ac_res=`eval echo '${'$as_ac_Header'}'`
17657 { echo "$as_me:$LINENO: result: $ac_res" >&5
17658 echo "${ECHO_T}$ac_res" >&6; }
17661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17662 MISDN_HEADER_FOUND=1
17664 MISDN_HEADER_FOUND=0
17670 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17671 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17672 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17673 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17674 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17677 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17678 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17680 # Is the header compilable?
17681 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
17682 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17690 #include <mISDNuser/mISDNlib.h>
17692 rm -f conftest.$ac_objext
17693 if { (ac_try="$ac_compile"
17694 case "(($ac_try" in
17695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17696 *) ac_try_echo
=$ac_try;;
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699 (eval "$ac_compile") 2>conftest.er1
17701 grep -v '^ *+' conftest.er1
>conftest.err
17703 cat conftest.err
>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } && {
17706 test -z "$ac_c_werror_flag" ||
17707 test ! -s conftest.err
17708 } && test -s conftest.
$ac_objext; then
17709 ac_header_compiler
=yes
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.
$ac_ext >&5
17714 ac_header_compiler
=no
17717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17719 echo "${ECHO_T}$ac_header_compiler" >&6; }
17721 # Is the header present?
17722 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
17723 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17724 cat >conftest.
$ac_ext <<_ACEOF
17727 cat confdefs.h
>>conftest.
$ac_ext
17728 cat >>conftest.
$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 #include <mISDNuser/mISDNlib.h>
17732 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17733 case "(($ac_try" in
17734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17740 grep -v '^ *+' conftest.er1 >conftest.err
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } >/dev/null && {
17745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17748 ac_header_preproc=yes
17750 echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17753 ac_header_preproc=no
17756 rm -f conftest.err conftest.$ac_ext
17757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17758 echo "${ECHO_T}$ac_header_preproc" >&6; }
17760 # So? What about this header?
17761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17763 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17764 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17765 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17766 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17767 ac_header_preproc=yes
17770 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17771 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17772 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17773 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17774 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17775 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17776 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17777 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17778 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17779 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17780 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17781 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17785 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17786 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17787 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
17792 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17793 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17796 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
17797 MISDN_HEADER_FOUND=1
17799 MISDN_HEADER_FOUND=0
17805 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
17806 if test ! -z "${MISDN_MANDATORY}" ;
17808 { echo "$as_me:$LINENO: ***" >&5
17809 echo "$as_me: ***" >&6;}
17810 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
17811 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
17812 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
17813 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
17814 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17815 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17824 cat >>confdefs.h <<_ACEOF
17825 #define HAVE_MISDN 1
17829 elif test ! -z "${MISDN_MANDATORY}";
17831 { echo "$as_me:$LINENO: ***" >&5
17832 echo "$as_me: ***" >&6;}
17833 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
17834 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
17835 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17836 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17837 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17838 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17844 if test "${PBX_MISDN}" = 1; then
17846 if test "${USE_ISDNNET}" != "no"; then
17848 if test "x${ISDNNET_DIR}" != "x"; then
17849 if test -d ${ISDNNET_DIR}/lib; then
17850 pbxlibdir="-L${ISDNNET_DIR}/lib"
17852 pbxlibdir="-L${ISDNNET_DIR}"
17855 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
17856 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
17857 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17860 ac_check_lib_save_LIBS=$LIBS
17861 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
17862 cat >conftest.$ac_ext <<_ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17869 /* Override any GCC internal prototype to avoid an error.
17870 Use char because int might match the return type of a GCC
17871 builtin and then its argument prototype would still apply. */
17875 char init_manager ();
17879 return init_manager ();
17884 rm -f conftest.$ac_objext conftest$ac_exeext
17885 if { (ac_try="$ac_link"
17886 case "(($ac_try" in
17887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17888 *) ac_try_echo
=$ac_try;;
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_link") 2>conftest.er1
17893 grep -v '^ *+' conftest.er1
>conftest.err
17895 cat conftest.err
>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } && {
17898 test -z "$ac_c_werror_flag" ||
17899 test ! -s conftest.err
17900 } && test -s conftest
$ac_exeext &&
17901 $as_test_x conftest
$ac_exeext; then
17902 ac_cv_lib_isdnnet_init_manager
=yes
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.
$ac_ext >&5
17907 ac_cv_lib_isdnnet_init_manager
=no
17910 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17911 conftest
$ac_exeext conftest.
$ac_ext
17912 LIBS
=$ac_check_lib_save_LIBS
17914 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
17915 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
17916 if test $ac_cv_lib_isdnnet_init_manager = yes; then
17917 AST_ISDNNET_FOUND
=yes
17919 AST_ISDNNET_FOUND
=no
17923 if test "${AST_ISDNNET_FOUND}" = "yes"; then
17924 ISDNNET_LIB
="-lisdnnet -lmISDN -lpthread"
17925 ISDNNET_HEADER_FOUND
="1"
17926 if test "x${ISDNNET_DIR}" != "x"; then
17927 ISDNNET_LIB
="${pbxlibdir} ${ISDNNET_LIB}"
17928 ISDNNET_INCLUDE
="-I${ISDNNET_DIR}/include"
17929 if test "xmISDNuser/isdn_net.h" != "x" ; then
17930 as_ac_Header
=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
17931 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17932 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
17933 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17934 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 ac_res
=`eval echo '${'$as_ac_Header'}'`
17938 { echo "$as_me:$LINENO: result: $ac_res" >&5
17939 echo "${ECHO_T}$ac_res" >&6; }
17941 # Is the header compilable?
17942 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
17943 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
17944 cat >conftest.
$ac_ext <<_ACEOF
17947 cat confdefs.h
>>conftest.
$ac_ext
17948 cat >>conftest.
$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 $ac_includes_default
17951 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17953 rm -f conftest.
$ac_objext
17954 if { (ac_try
="$ac_compile"
17955 case "(($ac_try" in
17956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960 (eval "$ac_compile") 2>conftest.er1
17962 grep -v '^ *+' conftest.er1 >conftest.err
17964 cat conftest.err >&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } && {
17967 test -z "$ac_c_werror_flag" ||
17968 test ! -s conftest.err
17969 } && test -s conftest.$ac_objext; then
17970 ac_header_compiler=yes
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17975 ac_header_compiler=no
17978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17980 echo "${ECHO_T}$ac_header_compiler" >&6; }
17982 # Is the header present?
17983 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
17984 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
17985 cat >conftest.$ac_ext <<_ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17993 if { (ac_try="$ac_cpp conftest.$ac_ext"
17994 case "(($ac_try" in
17995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17996 *) ac_try_echo
=$ac_try;;
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18001 grep -v '^ *+' conftest.er1
>conftest.err
18003 cat conftest.err
>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } >/dev
/null
&& {
18006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18007 test ! -s conftest.err
18009 ac_header_preproc
=yes
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.
$ac_ext >&5
18014 ac_header_preproc
=no
18017 rm -f conftest.err conftest.
$ac_ext
18018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18019 echo "${ECHO_T}$ac_header_preproc" >&6; }
18021 # So? What about this header?
18022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18024 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18025 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18027 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18028 ac_header_preproc
=yes
18031 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18032 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18033 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18034 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18035 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18036 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18037 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18038 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18040 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18041 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18042 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18046 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18047 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18048 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 eval "$as_ac_Header=\$ac_header_preproc"
18053 ac_res
=`eval echo '${'$as_ac_Header'}'`
18054 { echo "$as_me:$LINENO: result: $ac_res" >&5
18055 echo "${ECHO_T}$ac_res" >&6; }
18058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18059 ISDNNET_HEADER_FOUND
=1
18061 ISDNNET_HEADER_FOUND
=0
18067 if test "xmISDNuser/isdn_net.h" != "x" ; then
18068 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18069 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18070 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18071 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18075 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18077 # Is the header compilable?
18078 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
18079 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18080 cat >conftest.
$ac_ext <<_ACEOF
18083 cat confdefs.h
>>conftest.
$ac_ext
18084 cat >>conftest.
$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 $ac_includes_default
18087 #include <mISDNuser/isdn_net.h>
18089 rm -f conftest.
$ac_objext
18090 if { (ac_try
="$ac_compile"
18091 case "(($ac_try" in
18092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_compile") 2>conftest.er1
18098 grep -v '^ *+' conftest.er1 >conftest.err
18100 cat conftest.err >&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } && {
18103 test -z "$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18105 } && test -s conftest.$ac_objext; then
18106 ac_header_compiler=yes
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_header_compiler=no
18114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18116 echo "${ECHO_T}$ac_header_compiler" >&6; }
18118 # Is the header present?
18119 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18120 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18121 cat >conftest.$ac_ext <<_ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18127 #include <mISDNuser/isdn_net.h>
18129 if { (ac_try="$ac_cpp conftest.$ac_ext"
18130 case "(($ac_try" in
18131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18132 *) ac_try_echo
=$ac_try;;
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18137 grep -v '^ *+' conftest.er1
>conftest.err
18139 cat conftest.err
>&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } >/dev
/null
&& {
18142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18143 test ! -s conftest.err
18145 ac_header_preproc
=yes
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.
$ac_ext >&5
18150 ac_header_preproc
=no
18153 rm -f conftest.err conftest.
$ac_ext
18154 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18155 echo "${ECHO_T}$ac_header_preproc" >&6; }
18157 # So? What about this header?
18158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18160 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18161 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18162 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18163 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18164 ac_header_preproc
=yes
18167 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18168 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18170 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18172 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18174 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18176 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18177 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18178 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18182 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18183 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18184 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18187 ac_cv_header_mISDNuser_isdn_net_h
=$ac_header_preproc
18189 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18190 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18193 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18194 ISDNNET_HEADER_FOUND
=1
18196 ISDNNET_HEADER_FOUND
=0
18202 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18203 if test ! -z "${ISDNNET_MANDATORY}" ;
18205 { echo "$as_me:$LINENO: ***" >&5
18206 echo "$as_me: ***" >&6;}
18207 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18208 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18209 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
18210 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
18211 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18212 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18221 cat >>confdefs.h
<<_ACEOF
18222 #define HAVE_ISDNNET 1
18226 elif test ! -z "${ISDNNET_MANDATORY}";
18228 { echo "$as_me:$LINENO: ***" >&5
18229 echo "$as_me: ***" >&6;}
18230 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18231 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18232 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18233 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18234 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18235 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18241 if test "${USE_SUPPSERV}" != "no"; then
18243 if test "x${SUPPSERV_DIR}" != "x"; then
18244 if test -d ${SUPPSERV_DIR}/lib
; then
18245 pbxlibdir
="-L${SUPPSERV_DIR}/lib"
18247 pbxlibdir
="-L${SUPPSERV_DIR}"
18250 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18251 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18252 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18255 ac_check_lib_save_LIBS
=$LIBS
18256 LIBS
="-lsuppserv ${pbxlibdir} $LIBS"
18257 cat >conftest.
$ac_ext <<_ACEOF
18260 cat confdefs.h
>>conftest.
$ac_ext
18261 cat >>conftest.
$ac_ext <<_ACEOF
18262 /* end confdefs.h. */
18264 /* Override any GCC internal prototype to avoid an error.
18265 Use char because int might match the return type of a GCC
18266 builtin and then its argument prototype would still apply. */
18274 return encodeFac ();
18279 rm -f conftest.
$ac_objext conftest
$ac_exeext
18280 if { (ac_try
="$ac_link"
18281 case "(($ac_try" in
18282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_link") 2>conftest.er1
18288 grep -v '^ *+' conftest.er1 >conftest.err
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } && {
18293 test -z "$ac_c_werror_flag" ||
18294 test ! -s conftest.err
18295 } && test -s conftest$ac_exeext &&
18296 $as_test_x conftest$ac_exeext; then
18297 ac_cv_lib_suppserv_encodeFac=yes
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_cv_lib_suppserv_encodeFac=no
18305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18306 conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18309 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18310 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18311 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18312 AST_SUPPSERV_FOUND=yes
18314 AST_SUPPSERV_FOUND=no
18318 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18319 SUPPSERV_LIB="-lsuppserv "
18320 SUPPSERV_HEADER_FOUND="1"
18321 if test "x${SUPPSERV_DIR}" != "x"; then
18322 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18323 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18324 if test "xmISDNuser/suppserv.h" != "x" ; then
18325 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" |
$as_tr_sh`
18326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18327 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18328 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18332 ac_res=`eval echo '${'$as_ac_Header'}'`
18333 { echo "$as_me:$LINENO: result: $ac_res" >&5
18334 echo "${ECHO_T}$ac_res" >&6; }
18336 # Is the header compilable?
18337 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18338 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18339 cat >conftest.$ac_ext <<_ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h. */
18345 $ac_includes_default
18346 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18348 rm -f conftest.$ac_objext
18349 if { (ac_try="$ac_compile"
18350 case "(($ac_try" in
18351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18352 *) ac_try_echo
=$ac_try;;
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_compile") 2>conftest.er1
18357 grep -v '^ *+' conftest.er1
>conftest.err
18359 cat conftest.err
>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } && {
18362 test -z "$ac_c_werror_flag" ||
18363 test ! -s conftest.err
18364 } && test -s conftest.
$ac_objext; then
18365 ac_header_compiler
=yes
18367 echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.
$ac_ext >&5
18370 ac_header_compiler
=no
18373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18375 echo "${ECHO_T}$ac_header_compiler" >&6; }
18377 # Is the header present?
18378 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18379 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18380 cat >conftest.
$ac_ext <<_ACEOF
18383 cat confdefs.h
>>conftest.
$ac_ext
18384 cat >>conftest.
$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18388 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18389 case "(($ac_try" in
18390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18396 grep -v '^ *+' conftest.er1 >conftest.err
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } >/dev/null && {
18401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18402 test ! -s conftest.err
18404 ac_header_preproc=yes
18406 echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18409 ac_header_preproc=no
18412 rm -f conftest.err conftest.$ac_ext
18413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18414 echo "${ECHO_T}$ac_header_preproc" >&6; }
18416 # So? What about this header?
18417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18419 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18420 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18422 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18423 ac_header_preproc=yes
18426 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18427 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18429 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18431 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18433 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18435 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18436 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18437 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18441 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18442 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 eval "$as_ac_Header=\$ac_header_preproc"
18448 ac_res=`eval echo '${'$as_ac_Header'}'`
18449 { echo "$as_me:$LINENO: result: $ac_res" >&5
18450 echo "${ECHO_T}$ac_res" >&6; }
18453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18454 SUPPSERV_HEADER_FOUND=1
18456 SUPPSERV_HEADER_FOUND=0
18462 if test "xmISDNuser/suppserv.h" != "x" ; then
18463 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18464 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18465 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18466 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18470 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18472 # Is the header compilable?
18473 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
18474 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18475 cat >conftest.$ac_ext <<_ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 $ac_includes_default
18482 #include <mISDNuser/suppserv.h>
18484 rm -f conftest.$ac_objext
18485 if { (ac_try="$ac_compile"
18486 case "(($ac_try" in
18487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18488 *) ac_try_echo
=$ac_try;;
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_compile") 2>conftest.er1
18493 grep -v '^ *+' conftest.er1
>conftest.err
18495 cat conftest.err
>&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } && {
18498 test -z "$ac_c_werror_flag" ||
18499 test ! -s conftest.err
18500 } && test -s conftest.
$ac_objext; then
18501 ac_header_compiler
=yes
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.
$ac_ext >&5
18506 ac_header_compiler
=no
18509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18511 echo "${ECHO_T}$ac_header_compiler" >&6; }
18513 # Is the header present?
18514 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
18515 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18516 cat >conftest.
$ac_ext <<_ACEOF
18519 cat confdefs.h
>>conftest.
$ac_ext
18520 cat >>conftest.
$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 #include <mISDNuser/suppserv.h>
18524 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18525 case "(($ac_try" in
18526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18532 grep -v '^ *+' conftest.er1 >conftest.err
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } >/dev/null && {
18537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18538 test ! -s conftest.err
18540 ac_header_preproc=yes
18542 echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18545 ac_header_preproc=no
18548 rm -f conftest.err conftest.$ac_ext
18549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18550 echo "${ECHO_T}$ac_header_preproc" >&6; }
18552 # So? What about this header?
18553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18555 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18556 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18557 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18558 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18559 ac_header_preproc=yes
18562 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
18563 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18565 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18567 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18569 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18570 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18571 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18572 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18573 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18577 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18578 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18579 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18582 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
18584 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18585 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18588 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
18589 SUPPSERV_HEADER_FOUND=1
18591 SUPPSERV_HEADER_FOUND=0
18597 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
18598 if test ! -z "${SUPPSERV_MANDATORY}" ;
18600 { echo "$as_me:$LINENO: ***" >&5
18601 echo "$as_me: ***" >&6;}
18602 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
18603 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
18604 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
18605 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
18606 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18607 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18611 SUPPSERV_INCLUDE=""
18616 cat >>confdefs.h <<_ACEOF
18617 #define HAVE_SUPPSERV 1
18621 elif test ! -z "${SUPPSERV_MANDATORY}";
18623 { echo "$as_me:$LINENO: ***" >&5
18624 echo "$as_me: ***" >&6;}
18625 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
18626 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
18627 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18628 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18629 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18630 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18638 if test "${USE_NBS}" != "no"; then
18640 if test "x${NBS_DIR}" != "x"; then
18641 if test -d ${NBS_DIR}/lib; then
18642 pbxlibdir="-L${NBS_DIR}/lib"
18644 pbxlibdir="-L${NBS_DIR}"
18647 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
18648 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
18649 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18652 ac_check_lib_save_LIBS=$LIBS
18653 LIBS="-lnbs ${pbxlibdir} $LIBS"
18654 cat >conftest.$ac_ext <<_ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18661 /* Override any GCC internal prototype to avoid an error.
18662 Use char because int might match the return type of a GCC
18663 builtin and then its argument prototype would still apply. */
18667 char nbs_connect ();
18671 return nbs_connect ();
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (ac_try="$ac_link"
18678 case "(($ac_try" in
18679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18680 *) ac_try_echo
=$ac_try;;
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_link") 2>conftest.er1
18685 grep -v '^ *+' conftest.er1
>conftest.err
18687 cat conftest.err
>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } && {
18690 test -z "$ac_c_werror_flag" ||
18691 test ! -s conftest.err
18692 } && test -s conftest
$ac_exeext &&
18693 $as_test_x conftest
$ac_exeext; then
18694 ac_cv_lib_nbs_nbs_connect
=yes
18696 echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.
$ac_ext >&5
18699 ac_cv_lib_nbs_nbs_connect
=no
18702 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18703 conftest
$ac_exeext conftest.
$ac_ext
18704 LIBS
=$ac_check_lib_save_LIBS
18706 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
18707 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
18708 if test $ac_cv_lib_nbs_nbs_connect = yes; then
18715 if test "${AST_NBS_FOUND}" = "yes"; then
18717 NBS_HEADER_FOUND
="1"
18718 if test "x${NBS_DIR}" != "x"; then
18719 NBS_LIB
="${pbxlibdir} ${NBS_LIB}"
18720 NBS_INCLUDE
="-I${NBS_DIR}/include"
18721 if test "xnbs.h" != "x" ; then
18722 as_ac_Header
=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
18723 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18724 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18725 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18726 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 ac_res
=`eval echo '${'$as_ac_Header'}'`
18730 { echo "$as_me:$LINENO: result: $ac_res" >&5
18731 echo "${ECHO_T}$ac_res" >&6; }
18733 # Is the header compilable?
18734 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
18735 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
18736 cat >conftest.
$ac_ext <<_ACEOF
18739 cat confdefs.h
>>conftest.
$ac_ext
18740 cat >>conftest.
$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 $ac_includes_default
18743 #include <${NBS_DIR}/include/nbs.h>
18745 rm -f conftest.
$ac_objext
18746 if { (ac_try
="$ac_compile"
18747 case "(($ac_try" in
18748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_compile") 2>conftest.er1
18754 grep -v '^ *+' conftest.er1 >conftest.err
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } && {
18759 test -z "$ac_c_werror_flag" ||
18760 test ! -s conftest.err
18761 } && test -s conftest.$ac_objext; then
18762 ac_header_compiler=yes
18764 echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18767 ac_header_compiler=no
18770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18772 echo "${ECHO_T}$ac_header_compiler" >&6; }
18774 # Is the header present?
18775 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
18776 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
18777 cat >conftest.$ac_ext <<_ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 #include <${NBS_DIR}/include/nbs.h>
18785 if { (ac_try="$ac_cpp conftest.$ac_ext"
18786 case "(($ac_try" in
18787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18788 *) ac_try_echo
=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18793 grep -v '^ *+' conftest.er1
>conftest.err
18795 cat conftest.err
>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } >/dev
/null
&& {
18798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18799 test ! -s conftest.err
18801 ac_header_preproc
=yes
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.
$ac_ext >&5
18806 ac_header_preproc
=no
18809 rm -f conftest.err conftest.
$ac_ext
18810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18811 echo "${ECHO_T}$ac_header_preproc" >&6; }
18813 # So? What about this header?
18814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18816 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18817 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18818 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
18819 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
18820 ac_header_preproc
=yes
18823 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
18824 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
18825 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
18826 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
18827 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
18828 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18830 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
18832 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
18833 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
18834 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
18838 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18839 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18840 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18843 eval "$as_ac_Header=\$ac_header_preproc"
18845 ac_res
=`eval echo '${'$as_ac_Header'}'`
18846 { echo "$as_me:$LINENO: result: $ac_res" >&5
18847 echo "${ECHO_T}$ac_res" >&6; }
18850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18859 if test "xnbs.h" != "x" ; then
18860 if test "${ac_cv_header_nbs_h+set}" = set; then
18861 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18862 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18863 if test "${ac_cv_header_nbs_h+set}" = set; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18867 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18869 # Is the header compilable?
18870 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
18871 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
18872 cat >conftest.
$ac_ext <<_ACEOF
18875 cat confdefs.h
>>conftest.
$ac_ext
18876 cat >>conftest.
$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 $ac_includes_default
18881 rm -f conftest.
$ac_objext
18882 if { (ac_try
="$ac_compile"
18883 case "(($ac_try" in
18884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_compile") 2>conftest.er1
18890 grep -v '^ *+' conftest.er1 >conftest.err
18892 cat conftest.err >&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } && {
18895 test -z "$ac_c_werror_flag" ||
18896 test ! -s conftest.err
18897 } && test -s conftest.$ac_objext; then
18898 ac_header_compiler=yes
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ac_header_compiler=no
18906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18908 echo "${ECHO_T}$ac_header_compiler" >&6; }
18910 # Is the header present?
18911 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
18912 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
18913 cat >conftest.$ac_ext <<_ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18921 if { (ac_try="$ac_cpp conftest.$ac_ext"
18922 case "(($ac_try" in
18923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18924 *) ac_try_echo
=$ac_try;;
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18929 grep -v '^ *+' conftest.er1
>conftest.err
18931 cat conftest.err
>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } >/dev
/null
&& {
18934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18935 test ! -s conftest.err
18937 ac_header_preproc
=yes
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.
$ac_ext >&5
18942 ac_header_preproc
=no
18945 rm -f conftest.err conftest.
$ac_ext
18946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18947 echo "${ECHO_T}$ac_header_preproc" >&6; }
18949 # So? What about this header?
18950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18952 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18953 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18954 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
18955 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
18956 ac_header_preproc
=yes
18959 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
18960 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
18961 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
18962 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
18963 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
18964 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
18965 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18966 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18967 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
18968 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
18969 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
18970 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
18974 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18975 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18976 if test "${ac_cv_header_nbs_h+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18979 ac_cv_header_nbs_h
=$ac_header_preproc
18981 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18982 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18985 if test $ac_cv_header_nbs_h = yes; then
18994 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
18995 if test ! -z "${NBS_MANDATORY}" ;
18997 { echo "$as_me:$LINENO: ***" >&5
18998 echo "$as_me: ***" >&6;}
18999 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
19000 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
19001 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
19002 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
19003 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19004 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19013 cat >>confdefs.h
<<_ACEOF
19018 elif test ! -z "${NBS_MANDATORY}";
19020 { echo "$as_me:$LINENO: ***" >&5
19021 echo "$as_me: ***" >&6;}
19022 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
19023 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
19024 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19025 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19026 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19027 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19034 if test "${USE_NCURSES}" != "no"; then
19036 if test "x${NCURSES_DIR}" != "x"; then
19037 if test -d ${NCURSES_DIR}/lib
; then
19038 pbxlibdir
="-L${NCURSES_DIR}/lib"
19040 pbxlibdir
="-L${NCURSES_DIR}"
19043 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
19044 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
19045 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 ac_check_lib_save_LIBS
=$LIBS
19049 LIBS
="-lncurses ${pbxlibdir} $LIBS"
19050 cat >conftest.
$ac_ext <<_ACEOF
19053 cat confdefs.h
>>conftest.
$ac_ext
19054 cat >>conftest.
$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19057 /* Override any GCC internal prototype to avoid an error.
19058 Use char because int might match the return type of a GCC
19059 builtin and then its argument prototype would still apply. */
19072 rm -f conftest.
$ac_objext conftest
$ac_exeext
19073 if { (ac_try
="$ac_link"
19074 case "(($ac_try" in
19075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_link") 2>conftest.er1
19081 grep -v '^ *+' conftest.er1 >conftest.err
19083 cat conftest.err >&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } && {
19086 test -z "$ac_c_werror_flag" ||
19087 test ! -s conftest.err
19088 } && test -s conftest$ac_exeext &&
19089 $as_test_x conftest$ac_exeext; then
19090 ac_cv_lib_ncurses_initscr=yes
19092 echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.$ac_ext >&5
19095 ac_cv_lib_ncurses_initscr=no
19098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19099 conftest$ac_exeext conftest.$ac_ext
19100 LIBS=$ac_check_lib_save_LIBS
19102 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
19103 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
19104 if test $ac_cv_lib_ncurses_initscr = yes; then
19105 AST_NCURSES_FOUND=yes
19107 AST_NCURSES_FOUND=no
19111 if test "${AST_NCURSES_FOUND}" = "yes"; then
19112 NCURSES_LIB="-lncurses "
19113 NCURSES_HEADER_FOUND="1"
19114 if test "x${NCURSES_DIR}" != "x"; then
19115 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19116 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19117 if test "xcurses.h" != "x" ; then
19118 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" |
$as_tr_sh`
19119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19120 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19121 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 ac_res=`eval echo '${'$as_ac_Header'}'`
19126 { echo "$as_me:$LINENO: result: $ac_res" >&5
19127 echo "${ECHO_T}$ac_res" >&6; }
19129 # Is the header compilable?
19130 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19131 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19132 cat >conftest.$ac_ext <<_ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 $ac_includes_default
19139 #include <${NCURSES_DIR}/include/curses.h>
19141 rm -f conftest.$ac_objext
19142 if { (ac_try="$ac_compile"
19143 case "(($ac_try" in
19144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19145 *) ac_try_echo
=$ac_try;;
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148 (eval "$ac_compile") 2>conftest.er1
19150 grep -v '^ *+' conftest.er1
>conftest.err
19152 cat conftest.err
>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } && {
19155 test -z "$ac_c_werror_flag" ||
19156 test ! -s conftest.err
19157 } && test -s conftest.
$ac_objext; then
19158 ac_header_compiler
=yes
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.
$ac_ext >&5
19163 ac_header_compiler
=no
19166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19168 echo "${ECHO_T}$ac_header_compiler" >&6; }
19170 # Is the header present?
19171 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19172 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19173 cat >conftest.
$ac_ext <<_ACEOF
19176 cat confdefs.h
>>conftest.
$ac_ext
19177 cat >>conftest.
$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 #include <${NCURSES_DIR}/include/curses.h>
19181 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19182 case "(($ac_try" in
19183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19189 grep -v '^ *+' conftest.er1 >conftest.err
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } >/dev/null && {
19194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19195 test ! -s conftest.err
19197 ac_header_preproc=yes
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_header_preproc=no
19205 rm -f conftest.err conftest.$ac_ext
19206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19207 echo "${ECHO_T}$ac_header_preproc" >&6; }
19209 # So? What about this header?
19210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19212 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19213 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19214 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19215 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19216 ac_header_preproc=yes
19219 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19220 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19221 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19222 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19223 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19224 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19225 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19226 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19227 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19228 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19229 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19230 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19234 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19235 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19239 eval "$as_ac_Header=\$ac_header_preproc"
19241 ac_res=`eval echo '${'$as_ac_Header'}'`
19242 { echo "$as_me:$LINENO: result: $ac_res" >&5
19243 echo "${ECHO_T}$ac_res" >&6; }
19246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19247 NCURSES_HEADER_FOUND=1
19249 NCURSES_HEADER_FOUND=0
19255 if test "xcurses.h" != "x" ; then
19256 if test "${ac_cv_header_curses_h+set}" = set; then
19257 { echo "$as_me:$LINENO: checking for curses.h" >&5
19258 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19259 if test "${ac_cv_header_curses_h+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19262 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19263 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19265 # Is the header compilable?
19266 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19267 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19268 cat >conftest.$ac_ext <<_ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19274 $ac_includes_default
19275 #include <curses.h>
19277 rm -f conftest.$ac_objext
19278 if { (ac_try="$ac_compile"
19279 case "(($ac_try" in
19280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19281 *) ac_try_echo
=$ac_try;;
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_compile") 2>conftest.er1
19286 grep -v '^ *+' conftest.er1
>conftest.err
19288 cat conftest.err
>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } && {
19291 test -z "$ac_c_werror_flag" ||
19292 test ! -s conftest.err
19293 } && test -s conftest.
$ac_objext; then
19294 ac_header_compiler
=yes
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.
$ac_ext >&5
19299 ac_header_compiler
=no
19302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19304 echo "${ECHO_T}$ac_header_compiler" >&6; }
19306 # Is the header present?
19307 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19308 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19309 cat >conftest.
$ac_ext <<_ACEOF
19312 cat confdefs.h
>>conftest.
$ac_ext
19313 cat >>conftest.
$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19315 #include <curses.h>
19317 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19318 case "(($ac_try" in
19319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19325 grep -v '^ *+' conftest.er1 >conftest.err
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } >/dev/null && {
19330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19333 ac_header_preproc=yes
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 ac_header_preproc=no
19341 rm -f conftest.err conftest.$ac_ext
19342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19343 echo "${ECHO_T}$ac_header_preproc" >&6; }
19345 # So? What about this header?
19346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19348 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19349 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19350 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19351 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19352 ac_header_preproc=yes
19355 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19356 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19358 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19360 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19361 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19362 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19363 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19364 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19365 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19366 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19370 { echo "$as_me:$LINENO: checking for curses.h" >&5
19371 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19372 if test "${ac_cv_header_curses_h+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 ac_cv_header_curses_h=$ac_header_preproc
19377 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19378 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19381 if test $ac_cv_header_curses_h = yes; then
19382 NCURSES_HEADER_FOUND=1
19384 NCURSES_HEADER_FOUND=0
19390 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
19391 if test ! -z "${NCURSES_MANDATORY}" ;
19393 { echo "$as_me:$LINENO: ***" >&5
19394 echo "$as_me: ***" >&6;}
19395 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
19396 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
19397 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
19398 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
19399 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19400 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19409 cat >>confdefs.h <<_ACEOF
19410 #define HAVE_NCURSES 1
19414 elif test ! -z "${NCURSES_MANDATORY}";
19416 { echo "$as_me:$LINENO: ***" >&5
19417 echo "$as_me: ***" >&6;}
19418 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
19419 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19420 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19421 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19422 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19423 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19430 if test "${USE_NETSNMP}" != "no"; then
19431 if test "x${NETSNMP_DIR}" != "x"; then
19432 if test -n "$ac_tool_prefix"; then
19433 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19434 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19437 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19440 case $NETSNMP_CONFIG in
19442 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19446 for as_dir in ${NETSNMP_DIR}/bin
19449 test -z "$as_dir" && as_dir=.
19450 for ac_exec_ext in '' $ac_executable_extensions; do
19451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19452 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19463 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19464 if test -n "$NETSNMP_CONFIG"; then
19465 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19466 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19468 { echo "$as_me:$LINENO: result: no" >&5
19469 echo "${ECHO_T}no" >&6; }
19474 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19475 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19476 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19477 set dummy net-snmp-config; ac_word=$2
19478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19480 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19483 case $ac_pt_NETSNMP_CONFIG in
19485 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19489 for as_dir in ${NETSNMP_DIR}/bin
19492 test -z "$as_dir" && as_dir=.
19493 for ac_exec_ext in '' $ac_executable_extensions; do
19494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19495 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19506 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19507 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19508 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19509 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19511 { echo "$as_me:$LINENO: result: no" >&5
19512 echo "${ECHO_T}no" >&6; }
19515 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19516 NETSNMP_CONFIG="No"
19518 case $cross_compiling:$ac_tool_warned in
19520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19521 whose name does not start with the host triplet. If you think this
19522 configuration is useful to you, please write to autoconf@gnu.org." >&5
19523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19524 whose name does not start with the host triplet. If you think this
19525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19526 ac_tool_warned=yes ;;
19528 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19531 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19534 if test x"${NETSNMP_CONFIG}" = xNo; then
19535 { echo "$as_me:$LINENO: ***" >&5
19536 echo "$as_me: ***" >&6;}
19537 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
19538 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
19539 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
19540 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
19541 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19542 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19543 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19544 echo "$as_me: *** including --without-netsnmp" >&6;}
19548 if test -n "$ac_tool_prefix"; then
19549 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19550 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19553 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 case $NETSNMP_CONFIG in
19558 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19562 for as_dir in $PATH
19565 test -z "$as_dir" && as_dir=.
19566 for ac_exec_ext in '' $ac_executable_extensions; do
19567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19568 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19579 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19580 if test -n "$NETSNMP_CONFIG"; then
19581 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19582 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19584 { echo "$as_me:$LINENO: result: no" >&5
19585 echo "${ECHO_T}no" >&6; }
19590 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19591 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19592 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19593 set dummy net-snmp-config; ac_word=$2
19594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19596 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 case $ac_pt_NETSNMP_CONFIG in
19601 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19605 for as_dir in $PATH
19608 test -z "$as_dir" && as_dir=.
19609 for ac_exec_ext in '' $ac_executable_extensions; do
19610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19611 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19622 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19623 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19624 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19625 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19627 { echo "$as_me:$LINENO: result: no" >&5
19628 echo "${ECHO_T}no" >&6; }
19631 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19632 NETSNMP_CONFIG="No"
19634 case $cross_compiling:$ac_tool_warned in
19636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19637 whose name does not start with the host triplet. If you think this
19638 configuration is useful to you, please write to autoconf@gnu.org." >&5
19639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19640 whose name does not start with the host triplet. If you think this
19641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19642 ac_tool_warned=yes ;;
19644 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19647 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19652 if test x"${NETSNMP_CONFIG}" != xNo; then
19653 NETSNMP_libs=`net-snmp-config
--agent-libs`
19655 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
19656 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
19657 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 ac_check_lib_save_LIBS=$LIBS
19661 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
19662 cat >conftest.$ac_ext <<_ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19669 /* Override any GCC internal prototype to avoid an error.
19670 Use char because int might match the return type of a GCC
19671 builtin and then its argument prototype would still apply. */
19675 char snmp_register_callback ();
19679 return snmp_register_callback ();
19684 rm -f conftest.$ac_objext conftest$ac_exeext
19685 if { (ac_try="$ac_link"
19686 case "(($ac_try" in
19687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19688 *) ac_try_echo
=$ac_try;;
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_link") 2>conftest.er1
19693 grep -v '^ *+' conftest.er1
>conftest.err
19695 cat conftest.err
>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } && {
19698 test -z "$ac_c_werror_flag" ||
19699 test ! -s conftest.err
19700 } && test -s conftest
$ac_exeext &&
19701 $as_test_x conftest
$ac_exeext; then
19702 ac_cv_lib_netsnmp_snmp_register_callback
=yes
19704 echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.
$ac_ext >&5
19707 ac_cv_lib_netsnmp_snmp_register_callback
=no
19710 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19711 conftest
$ac_exeext conftest.
$ac_ext
19712 LIBS
=$ac_check_lib_save_LIBS
19714 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
19715 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
19716 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
19718 cat >>confdefs.h
<<_ACEOF
19719 #define HAVE_NETSNMP 1
19725 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
19726 NETSNMP_LIB
="${NETSNMP_libs}"
19728 elif test ! -z "${NETSNMP_MANDATORY}";
19730 { echo "$as_me:$LINENO: ***" >&5
19731 echo "$as_me: ***" >&6;}
19732 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19733 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19734 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19735 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19736 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19737 echo "$as_me: *** including --without-netsnmp" >&6;}
19740 elif test ! -z "${NETSNMP_MANDATORY}";
19742 { echo "$as_me:$LINENO: ***" >&5
19743 echo "$as_me: ***" >&6;}
19744 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19745 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19746 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19747 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19748 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19749 echo "$as_me: *** including --without-netsnmp" >&6;}
19754 if test "${USE_NEWT}" != "no"; then
19756 if test "x${NEWT_DIR}" != "x"; then
19757 if test -d ${NEWT_DIR}/lib
; then
19758 pbxlibdir
="-L${NEWT_DIR}/lib"
19760 pbxlibdir
="-L${NEWT_DIR}"
19763 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
19764 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
19765 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 ac_check_lib_save_LIBS
=$LIBS
19769 LIBS
="-lnewt ${pbxlibdir} $LIBS"
19770 cat >conftest.
$ac_ext <<_ACEOF
19773 cat confdefs.h
>>conftest.
$ac_ext
19774 cat >>conftest.
$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19777 /* Override any GCC internal prototype to avoid an error.
19778 Use char because int might match the return type of a GCC
19779 builtin and then its argument prototype would still apply. */
19787 return newtBell ();
19792 rm -f conftest.
$ac_objext conftest
$ac_exeext
19793 if { (ac_try
="$ac_link"
19794 case "(($ac_try" in
19795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_link") 2>conftest.er1
19801 grep -v '^ *+' conftest.er1 >conftest.err
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } && {
19806 test -z "$ac_c_werror_flag" ||
19807 test ! -s conftest.err
19808 } && test -s conftest$ac_exeext &&
19809 $as_test_x conftest$ac_exeext; then
19810 ac_cv_lib_newt_newtBell=yes
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 ac_cv_lib_newt_newtBell=no
19818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19819 conftest$ac_exeext conftest.$ac_ext
19820 LIBS=$ac_check_lib_save_LIBS
19822 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
19823 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
19824 if test $ac_cv_lib_newt_newtBell = yes; then
19831 if test "${AST_NEWT_FOUND}" = "yes"; then
19833 NEWT_HEADER_FOUND="1"
19834 if test "x${NEWT_DIR}" != "x"; then
19835 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
19836 NEWT_INCLUDE="-I${NEWT_DIR}/include"
19837 if test "xnewt.h" != "x" ; then
19838 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" |
$as_tr_sh`
19839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19840 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19841 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 ac_res=`eval echo '${'$as_ac_Header'}'`
19846 { echo "$as_me:$LINENO: result: $ac_res" >&5
19847 echo "${ECHO_T}$ac_res" >&6; }
19849 # Is the header compilable?
19850 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
19851 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
19852 cat >conftest.$ac_ext <<_ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 $ac_includes_default
19859 #include <${NEWT_DIR}/include/newt.h>
19861 rm -f conftest.$ac_objext
19862 if { (ac_try="$ac_compile"
19863 case "(($ac_try" in
19864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19865 *) ac_try_echo
=$ac_try;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_compile") 2>conftest.er1
19870 grep -v '^ *+' conftest.er1
>conftest.err
19872 cat conftest.err
>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } && {
19875 test -z "$ac_c_werror_flag" ||
19876 test ! -s conftest.err
19877 } && test -s conftest.
$ac_objext; then
19878 ac_header_compiler
=yes
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.
$ac_ext >&5
19883 ac_header_compiler
=no
19886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19888 echo "${ECHO_T}$ac_header_compiler" >&6; }
19890 # Is the header present?
19891 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
19892 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
19893 cat >conftest.
$ac_ext <<_ACEOF
19896 cat confdefs.h
>>conftest.
$ac_ext
19897 cat >>conftest.
$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19899 #include <${NEWT_DIR}/include/newt.h>
19901 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19902 case "(($ac_try" in
19903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19909 grep -v '^ *+' conftest.er1 >conftest.err
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } >/dev/null && {
19914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19915 test ! -s conftest.err
19917 ac_header_preproc=yes
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19922 ac_header_preproc=no
19925 rm -f conftest.err conftest.$ac_ext
19926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19927 echo "${ECHO_T}$ac_header_preproc" >&6; }
19929 # So? What about this header?
19930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19932 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
19933 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
19935 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
19936 ac_header_preproc=yes
19939 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
19940 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
19942 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
19944 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
19946 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
19948 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
19950 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
19954 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19955 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 eval "$as_ac_Header=\$ac_header_preproc"
19961 ac_res=`eval echo '${'$as_ac_Header'}'`
19962 { echo "$as_me:$LINENO: result: $ac_res" >&5
19963 echo "${ECHO_T}$ac_res" >&6; }
19966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19967 NEWT_HEADER_FOUND=1
19969 NEWT_HEADER_FOUND=0
19975 if test "xnewt.h" != "x" ; then
19976 if test "${ac_cv_header_newt_h+set}" = set; then
19977 { echo "$as_me:$LINENO: checking for newt.h" >&5
19978 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
19979 if test "${ac_cv_header_newt_h+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
19983 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
19985 # Is the header compilable?
19986 { echo "$as_me:$LINENO: checking newt.h usability" >&5
19987 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
19988 cat >conftest.$ac_ext <<_ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19994 $ac_includes_default
19997 rm -f conftest.$ac_objext
19998 if { (ac_try="$ac_compile"
19999 case "(($ac_try" in
20000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20001 *) ac_try_echo
=$ac_try;;
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_compile") 2>conftest.er1
20006 grep -v '^ *+' conftest.er1
>conftest.err
20008 cat conftest.err
>&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } && {
20011 test -z "$ac_c_werror_flag" ||
20012 test ! -s conftest.err
20013 } && test -s conftest.
$ac_objext; then
20014 ac_header_compiler
=yes
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.
$ac_ext >&5
20019 ac_header_compiler
=no
20022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20024 echo "${ECHO_T}$ac_header_compiler" >&6; }
20026 # Is the header present?
20027 { echo "$as_me:$LINENO: checking newt.h presence" >&5
20028 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
20029 cat >conftest.
$ac_ext <<_ACEOF
20032 cat confdefs.h
>>conftest.
$ac_ext
20033 cat >>conftest.
$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20037 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20038 case "(($ac_try" in
20039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20045 grep -v '^ *+' conftest.er1 >conftest.err
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } >/dev/null && {
20050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20051 test ! -s conftest.err
20053 ac_header_preproc=yes
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 ac_header_preproc=no
20061 rm -f conftest.err conftest.$ac_ext
20062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20063 echo "${ECHO_T}$ac_header_preproc" >&6; }
20065 # So? What about this header?
20066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20068 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20069 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
20071 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
20072 ac_header_preproc=yes
20075 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
20076 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
20078 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
20080 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
20082 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
20084 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
20086 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
20090 { echo "$as_me:$LINENO: checking for newt.h" >&5
20091 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20092 if test "${ac_cv_header_newt_h+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 ac_cv_header_newt_h=$ac_header_preproc
20097 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20098 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20101 if test $ac_cv_header_newt_h = yes; then
20102 NEWT_HEADER_FOUND=1
20104 NEWT_HEADER_FOUND=0
20110 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20111 if test ! -z "${NEWT_MANDATORY}" ;
20113 { echo "$as_me:$LINENO: ***" >&5
20114 echo "$as_me: ***" >&6;}
20115 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20116 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20117 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
20118 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
20119 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20120 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20129 cat >>confdefs.h <<_ACEOF
20130 #define HAVE_NEWT 1
20134 elif test ! -z "${NEWT_MANDATORY}";
20136 { echo "$as_me:$LINENO: ***" >&5
20137 echo "$as_me: ***" >&6;}
20138 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20139 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20140 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20141 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20142 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20143 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20150 if test "${USE_UNIXODBC}" != "no"; then
20152 if test "x${UNIXODBC_DIR}" != "x"; then
20153 if test -d ${UNIXODBC_DIR}/lib; then
20154 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20156 pbxlibdir="-L${UNIXODBC_DIR}"
20159 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20160 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20161 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 ac_check_lib_save_LIBS=$LIBS
20165 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20173 /* Override any GCC internal prototype to avoid an error.
20174 Use char because int might match the return type of a GCC
20175 builtin and then its argument prototype would still apply. */
20179 char SQLConnect ();
20183 return SQLConnect ();
20188 rm -f conftest.$ac_objext conftest$ac_exeext
20189 if { (ac_try="$ac_link"
20190 case "(($ac_try" in
20191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20192 *) ac_try_echo
=$ac_try;;
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_link") 2>conftest.er1
20197 grep -v '^ *+' conftest.er1
>conftest.err
20199 cat conftest.err
>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } && {
20202 test -z "$ac_c_werror_flag" ||
20203 test ! -s conftest.err
20204 } && test -s conftest
$ac_exeext &&
20205 $as_test_x conftest
$ac_exeext; then
20206 ac_cv_lib_odbc_SQLConnect
=yes
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.
$ac_ext >&5
20211 ac_cv_lib_odbc_SQLConnect
=no
20214 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20215 conftest
$ac_exeext conftest.
$ac_ext
20216 LIBS
=$ac_check_lib_save_LIBS
20218 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
20219 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20220 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20221 AST_UNIXODBC_FOUND
=yes
20223 AST_UNIXODBC_FOUND
=no
20227 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20228 UNIXODBC_LIB
="-lodbc -lltdl"
20229 UNIXODBC_HEADER_FOUND
="1"
20230 if test "x${UNIXODBC_DIR}" != "x"; then
20231 UNIXODBC_LIB
="${pbxlibdir} ${UNIXODBC_LIB}"
20232 UNIXODBC_INCLUDE
="-I${UNIXODBC_DIR}/include"
20233 if test "xsql.h" != "x" ; then
20234 as_ac_Header
=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
20235 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20236 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20237 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20238 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20241 ac_res
=`eval echo '${'$as_ac_Header'}'`
20242 { echo "$as_me:$LINENO: result: $ac_res" >&5
20243 echo "${ECHO_T}$ac_res" >&6; }
20245 # Is the header compilable?
20246 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
20247 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
20248 cat >conftest.
$ac_ext <<_ACEOF
20251 cat confdefs.h
>>conftest.
$ac_ext
20252 cat >>conftest.
$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 $ac_includes_default
20255 #include <${UNIXODBC_DIR}/include/sql.h>
20257 rm -f conftest.
$ac_objext
20258 if { (ac_try
="$ac_compile"
20259 case "(($ac_try" in
20260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_compile") 2>conftest.er1
20266 grep -v '^ *+' conftest.er1 >conftest.err
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } && {
20271 test -z "$ac_c_werror_flag" ||
20272 test ! -s conftest.err
20273 } && test -s conftest.$ac_objext; then
20274 ac_header_compiler=yes
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20279 ac_header_compiler=no
20282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20284 echo "${ECHO_T}$ac_header_compiler" >&6; }
20286 # Is the header present?
20287 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
20288 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20295 #include <${UNIXODBC_DIR}/include/sql.h>
20297 if { (ac_try="$ac_cpp conftest.$ac_ext"
20298 case "(($ac_try" in
20299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20300 *) ac_try_echo
=$ac_try;;
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20305 grep -v '^ *+' conftest.er1
>conftest.err
20307 cat conftest.err
>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } >/dev
/null
&& {
20310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20313 ac_header_preproc
=yes
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.
$ac_ext >&5
20318 ac_header_preproc
=no
20321 rm -f conftest.err conftest.
$ac_ext
20322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20323 echo "${ECHO_T}$ac_header_preproc" >&6; }
20325 # So? What about this header?
20326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20328 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20329 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20330 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
20331 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
20332 ac_header_preproc
=yes
20335 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
20336 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
20337 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
20338 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
20340 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
20342 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
20344 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
20346 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
20350 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20351 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20352 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20355 eval "$as_ac_Header=\$ac_header_preproc"
20357 ac_res
=`eval echo '${'$as_ac_Header'}'`
20358 { echo "$as_me:$LINENO: result: $ac_res" >&5
20359 echo "${ECHO_T}$ac_res" >&6; }
20362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20363 UNIXODBC_HEADER_FOUND
=1
20365 UNIXODBC_HEADER_FOUND
=0
20371 if test "xsql.h" != "x" ; then
20372 if test "${ac_cv_header_sql_h+set}" = set; then
20373 { echo "$as_me:$LINENO: checking for sql.h" >&5
20374 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20375 if test "${ac_cv_header_sql_h+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20379 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20381 # Is the header compilable?
20382 { echo "$as_me:$LINENO: checking sql.h usability" >&5
20383 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
20384 cat >conftest.
$ac_ext <<_ACEOF
20387 cat confdefs.h
>>conftest.
$ac_ext
20388 cat >>conftest.
$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 $ac_includes_default
20393 rm -f conftest.
$ac_objext
20394 if { (ac_try
="$ac_compile"
20395 case "(($ac_try" in
20396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_compile") 2>conftest.er1
20402 grep -v '^ *+' conftest.er1 >conftest.err
20404 cat conftest.err >&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } && {
20407 test -z "$ac_c_werror_flag" ||
20408 test ! -s conftest.err
20409 } && test -s conftest.$ac_objext; then
20410 ac_header_compiler=yes
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20415 ac_header_compiler=no
20418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20420 echo "${ECHO_T}$ac_header_compiler" >&6; }
20422 # Is the header present?
20423 { echo "$as_me:$LINENO: checking sql.h presence" >&5
20424 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
20425 cat >conftest.$ac_ext <<_ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20433 if { (ac_try="$ac_cpp conftest.$ac_ext"
20434 case "(($ac_try" in
20435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20436 *) ac_try_echo
=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20441 grep -v '^ *+' conftest.er1
>conftest.err
20443 cat conftest.err
>&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } >/dev
/null
&& {
20446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20447 test ! -s conftest.err
20449 ac_header_preproc
=yes
20451 echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.
$ac_ext >&5
20454 ac_header_preproc
=no
20457 rm -f conftest.err conftest.
$ac_ext
20458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20459 echo "${ECHO_T}$ac_header_preproc" >&6; }
20461 # So? What about this header?
20462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20464 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20465 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20466 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
20467 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
20468 ac_header_preproc
=yes
20471 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
20472 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
20473 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
20474 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
20475 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
20476 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
20477 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
20478 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
20480 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
20482 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
20486 { echo "$as_me:$LINENO: checking for sql.h" >&5
20487 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20488 if test "${ac_cv_header_sql_h+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 ac_cv_header_sql_h
=$ac_header_preproc
20493 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20494 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20497 if test $ac_cv_header_sql_h = yes; then
20498 UNIXODBC_HEADER_FOUND
=1
20500 UNIXODBC_HEADER_FOUND
=0
20506 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
20507 if test ! -z "${UNIXODBC_MANDATORY}" ;
20509 { echo "$as_me:$LINENO: ***" >&5
20510 echo "$as_me: ***" >&6;}
20511 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
20512 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
20513 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
20514 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
20515 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20516 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20520 UNIXODBC_INCLUDE
=""
20525 cat >>confdefs.h
<<_ACEOF
20526 #define HAVE_UNIXODBC 1
20530 elif test ! -z "${UNIXODBC_MANDATORY}";
20532 { echo "$as_me:$LINENO: ***" >&5
20533 echo "$as_me: ***" >&6;}
20534 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
20535 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
20536 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20537 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20538 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20539 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20546 if test "${USE_OGG}" != "no"; then
20548 if test "x${OGG_DIR}" != "x"; then
20549 if test -d ${OGG_DIR}/lib
; then
20550 pbxlibdir
="-L${OGG_DIR}/lib"
20552 pbxlibdir
="-L${OGG_DIR}"
20555 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
20556 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
20557 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 ac_check_lib_save_LIBS
=$LIBS
20561 LIBS
="-logg ${pbxlibdir} $LIBS"
20562 cat >conftest.
$ac_ext <<_ACEOF
20565 cat confdefs.h
>>conftest.
$ac_ext
20566 cat >>conftest.
$ac_ext <<_ACEOF
20567 /* end confdefs.h. */
20569 /* Override any GCC internal prototype to avoid an error.
20570 Use char because int might match the return type of a GCC
20571 builtin and then its argument prototype would still apply. */
20575 char ogg_sync_init ();
20579 return ogg_sync_init ();
20584 rm -f conftest.
$ac_objext conftest
$ac_exeext
20585 if { (ac_try
="$ac_link"
20586 case "(($ac_try" in
20587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_link") 2>conftest.er1
20593 grep -v '^ *+' conftest.er1 >conftest.err
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } && {
20598 test -z "$ac_c_werror_flag" ||
20599 test ! -s conftest.err
20600 } && test -s conftest$ac_exeext &&
20601 $as_test_x conftest$ac_exeext; then
20602 ac_cv_lib_ogg_ogg_sync_init=yes
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ac_cv_lib_ogg_ogg_sync_init=no
20610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20611 conftest$ac_exeext conftest.$ac_ext
20612 LIBS=$ac_check_lib_save_LIBS
20614 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
20615 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
20616 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
20623 if test "${AST_OGG_FOUND}" = "yes"; then
20625 OGG_HEADER_FOUND="1"
20626 if test "x${OGG_DIR}" != "x"; then
20627 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
20628 OGG_INCLUDE="-I${OGG_DIR}/include"
20629 if test "x" != "x" ; then
20630 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" |
$as_tr_sh`
20631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20632 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20633 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20637 ac_res=`eval echo '${'$as_ac_Header'}'`
20638 { echo "$as_me:$LINENO: result: $ac_res" >&5
20639 echo "${ECHO_T}$ac_res" >&6; }
20641 # Is the header compilable?
20642 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
20643 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650 $ac_includes_default
20651 #include <${OGG_DIR}/include/>
20653 rm -f conftest.$ac_objext
20654 if { (ac_try="$ac_compile"
20655 case "(($ac_try" in
20656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20657 *) ac_try_echo
=$ac_try;;
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_compile") 2>conftest.er1
20662 grep -v '^ *+' conftest.er1
>conftest.err
20664 cat conftest.err
>&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } && {
20667 test -z "$ac_c_werror_flag" ||
20668 test ! -s conftest.err
20669 } && test -s conftest.
$ac_objext; then
20670 ac_header_compiler
=yes
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.
$ac_ext >&5
20675 ac_header_compiler
=no
20678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20680 echo "${ECHO_T}$ac_header_compiler" >&6; }
20682 # Is the header present?
20683 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
20684 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
20685 cat >conftest.
$ac_ext <<_ACEOF
20688 cat confdefs.h
>>conftest.
$ac_ext
20689 cat >>conftest.
$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 #include <${OGG_DIR}/include/>
20693 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20694 case "(($ac_try" in
20695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20701 grep -v '^ *+' conftest.er1 >conftest.err
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } >/dev/null && {
20706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20709 ac_header_preproc=yes
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20714 ac_header_preproc=no
20717 rm -f conftest.err conftest.$ac_ext
20718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20719 echo "${ECHO_T}$ac_header_preproc" >&6; }
20721 # So? What about this header?
20722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20724 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
20725 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
20726 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
20727 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
20728 ac_header_preproc=yes
20731 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
20732 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
20733 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
20734 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
20735 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
20736 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
20737 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
20738 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
20740 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
20741 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
20742 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
20746 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20747 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20751 eval "$as_ac_Header=\$ac_header_preproc"
20753 ac_res=`eval echo '${'$as_ac_Header'}'`
20754 { echo "$as_me:$LINENO: result: $ac_res" >&5
20755 echo "${ECHO_T}$ac_res" >&6; }
20758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20767 if test "x" != "x" ; then
20768 if test "${ac_cv_header_+set}" = set; then
20769 { echo "$as_me:$LINENO: checking for " >&5
20770 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20771 if test "${ac_cv_header_+set}" = set; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20774 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20775 echo "${ECHO_T}$ac_cv_header_" >&6; }
20777 # Is the header compilable?
20778 { echo "$as_me:$LINENO: checking usability" >&5
20779 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20780 cat >conftest.$ac_ext <<_ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20786 $ac_includes_default
20789 rm -f conftest.$ac_objext
20790 if { (ac_try="$ac_compile"
20791 case "(($ac_try" in
20792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20793 *) ac_try_echo
=$ac_try;;
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_compile") 2>conftest.er1
20798 grep -v '^ *+' conftest.er1
>conftest.err
20800 cat conftest.err
>&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest.
$ac_objext; then
20806 ac_header_compiler
=yes
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.
$ac_ext >&5
20811 ac_header_compiler
=no
20814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20816 echo "${ECHO_T}$ac_header_compiler" >&6; }
20818 # Is the header present?
20819 { echo "$as_me:$LINENO: checking presence" >&5
20820 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20821 cat >conftest.
$ac_ext <<_ACEOF
20824 cat confdefs.h
>>conftest.
$ac_ext
20825 cat >>conftest.
$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20829 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20830 case "(($ac_try" in
20831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20837 grep -v '^ *+' conftest.er1 >conftest.err
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } >/dev/null && {
20842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20843 test ! -s conftest.err
20845 ac_header_preproc=yes
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20850 ac_header_preproc=no
20853 rm -f conftest.err conftest.$ac_ext
20854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20855 echo "${ECHO_T}$ac_header_preproc" >&6; }
20857 # So? What about this header?
20858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20860 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20861 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20862 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20863 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20864 ac_header_preproc=yes
20867 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20868 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20869 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20870 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20871 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20872 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20873 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20874 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20876 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20877 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20878 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20882 { echo "$as_me:$LINENO: checking for " >&5
20883 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20884 if test "${ac_cv_header_+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20887 ac_cv_header_=$ac_header_preproc
20889 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20890 echo "${ECHO_T}$ac_cv_header_" >&6; }
20893 if test $ac_cv_header_ = yes; then
20902 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
20903 if test ! -z "${OGG_MANDATORY}" ;
20905 { echo "$as_me:$LINENO: ***" >&5
20906 echo "$as_me: ***" >&6;}
20907 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
20908 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
20909 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
20910 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
20911 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20912 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20921 cat >>confdefs.h <<_ACEOF
20926 elif test ! -z "${OGG_MANDATORY}";
20928 { echo "$as_me:$LINENO: ***" >&5
20929 echo "$as_me: ***" >&6;}
20930 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
20931 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
20932 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20933 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20934 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20935 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20942 if test "${USE_OSPTK}" != "no"; then
20944 if test "x${OSPTK_DIR}" != "x"; then
20945 if test -d ${OSPTK_DIR}/lib; then
20946 pbxlibdir="-L${OSPTK_DIR}/lib"
20948 pbxlibdir="-L${OSPTK_DIR}"
20951 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
20952 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
20953 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 ac_check_lib_save_LIBS=$LIBS
20957 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
20958 cat >conftest.$ac_ext <<_ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20965 /* Override any GCC internal prototype to avoid an error.
20966 Use char because int might match the return type of a GCC
20967 builtin and then its argument prototype would still apply. */
20971 char OSPPCryptoDecrypt ();
20975 return OSPPCryptoDecrypt ();
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (ac_try="$ac_link"
20982 case "(($ac_try" in
20983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20984 *) ac_try_echo
=$ac_try;;
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987 (eval "$ac_link") 2>conftest.er1
20989 grep -v '^ *+' conftest.er1
>conftest.err
20991 cat conftest.err
>&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } && {
20994 test -z "$ac_c_werror_flag" ||
20995 test ! -s conftest.err
20996 } && test -s conftest
$ac_exeext &&
20997 $as_test_x conftest
$ac_exeext; then
20998 ac_cv_lib_osptk_OSPPCryptoDecrypt
=yes
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.
$ac_ext >&5
21003 ac_cv_lib_osptk_OSPPCryptoDecrypt
=no
21006 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21007 conftest
$ac_exeext conftest.
$ac_ext
21008 LIBS
=$ac_check_lib_save_LIBS
21010 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
21011 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
21012 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
21013 AST_OSPTK_FOUND
=yes
21019 if test "${AST_OSPTK_FOUND}" = "yes"; then
21020 OSPTK_LIB
="-losptk -lcrypto -lssl"
21021 OSPTK_HEADER_FOUND
="1"
21022 if test "x${OSPTK_DIR}" != "x"; then
21023 OSPTK_LIB
="${pbxlibdir} ${OSPTK_LIB}"
21024 OSPTK_INCLUDE
="-I${OSPTK_DIR}/include"
21025 if test "xosp/osp.h" != "x" ; then
21026 as_ac_Header
=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
21027 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21028 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21029 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21030 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 ac_res
=`eval echo '${'$as_ac_Header'}'`
21034 { echo "$as_me:$LINENO: result: $ac_res" >&5
21035 echo "${ECHO_T}$ac_res" >&6; }
21037 # Is the header compilable?
21038 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
21039 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
21040 cat >conftest.
$ac_ext <<_ACEOF
21043 cat confdefs.h
>>conftest.
$ac_ext
21044 cat >>conftest.
$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 $ac_includes_default
21047 #include <${OSPTK_DIR}/include/osp/osp.h>
21049 rm -f conftest.
$ac_objext
21050 if { (ac_try
="$ac_compile"
21051 case "(($ac_try" in
21052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21058 grep -v '^ *+' conftest.er1 >conftest.err
21060 cat conftest.err >&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.$ac_objext; then
21066 ac_header_compiler=yes
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21071 ac_header_compiler=no
21074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21076 echo "${ECHO_T}$ac_header_compiler" >&6; }
21078 # Is the header present?
21079 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
21080 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
21081 cat >conftest.$ac_ext <<_ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h. */
21087 #include <${OSPTK_DIR}/include/osp/osp.h>
21089 if { (ac_try="$ac_cpp conftest.$ac_ext"
21090 case "(($ac_try" in
21091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21092 *) ac_try_echo
=$ac_try;;
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21097 grep -v '^ *+' conftest.er1
>conftest.err
21099 cat conftest.err
>&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } >/dev
/null
&& {
21102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21103 test ! -s conftest.err
21105 ac_header_preproc
=yes
21107 echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.
$ac_ext >&5
21110 ac_header_preproc
=no
21113 rm -f conftest.err conftest.
$ac_ext
21114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21115 echo "${ECHO_T}$ac_header_preproc" >&6; }
21117 # So? What about this header?
21118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21120 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21121 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
21123 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
21124 ac_header_preproc
=yes
21127 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
21128 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
21130 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
21132 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21134 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
21136 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
21138 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
21142 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21143 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21144 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21147 eval "$as_ac_Header=\$ac_header_preproc"
21149 ac_res
=`eval echo '${'$as_ac_Header'}'`
21150 { echo "$as_me:$LINENO: result: $ac_res" >&5
21151 echo "${ECHO_T}$ac_res" >&6; }
21154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21155 OSPTK_HEADER_FOUND
=1
21157 OSPTK_HEADER_FOUND
=0
21163 if test "xosp/osp.h" != "x" ; then
21164 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21165 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21166 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21167 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21170 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21171 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21173 # Is the header compilable?
21174 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
21175 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
21176 cat >conftest.
$ac_ext <<_ACEOF
21179 cat confdefs.h
>>conftest.
$ac_ext
21180 cat >>conftest.
$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 $ac_includes_default
21183 #include <osp/osp.h>
21185 rm -f conftest.
$ac_objext
21186 if { (ac_try
="$ac_compile"
21187 case "(($ac_try" in
21188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_compile") 2>conftest.er1
21194 grep -v '^ *+' conftest.er1 >conftest.err
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } && {
21199 test -z "$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 } && test -s conftest.$ac_objext; then
21202 ac_header_compiler=yes
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ac_header_compiler=no
21210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21212 echo "${ECHO_T}$ac_header_compiler" >&6; }
21214 # Is the header present?
21215 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
21216 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
21217 cat >conftest.$ac_ext <<_ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 #include <osp/osp.h>
21225 if { (ac_try="$ac_cpp conftest.$ac_ext"
21226 case "(($ac_try" in
21227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21228 *) ac_try_echo
=$ac_try;;
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21233 grep -v '^ *+' conftest.er1
>conftest.err
21235 cat conftest.err
>&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } >/dev
/null
&& {
21238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21239 test ! -s conftest.err
21241 ac_header_preproc
=yes
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.
$ac_ext >&5
21246 ac_header_preproc
=no
21249 rm -f conftest.err conftest.
$ac_ext
21250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21251 echo "${ECHO_T}$ac_header_preproc" >&6; }
21253 # So? What about this header?
21254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21256 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21257 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
21259 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
21260 ac_header_preproc
=yes
21263 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
21264 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
21265 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
21266 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
21267 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
21268 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21270 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
21272 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
21274 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
21278 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21279 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21280 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 ac_cv_header_osp_osp_h
=$ac_header_preproc
21285 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21286 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21289 if test $ac_cv_header_osp_osp_h = yes; then
21290 OSPTK_HEADER_FOUND
=1
21292 OSPTK_HEADER_FOUND
=0
21298 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
21299 if test ! -z "${OSPTK_MANDATORY}" ;
21301 { echo "$as_me:$LINENO: ***" >&5
21302 echo "$as_me: ***" >&6;}
21303 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
21304 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
21305 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
21306 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
21307 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21308 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21317 cat >>confdefs.h
<<_ACEOF
21318 #define HAVE_OSPTK 1
21322 elif test ! -z "${OSPTK_MANDATORY}";
21324 { echo "$as_me:$LINENO: ***" >&5
21325 echo "$as_me: ***" >&6;}
21326 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
21327 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
21328 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21329 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21330 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21331 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21338 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21339 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21340 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21341 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21342 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21345 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21347 # Is the header compilable?
21348 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
21349 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
21350 cat >conftest.
$ac_ext <<_ACEOF
21353 cat confdefs.h
>>conftest.
$ac_ext
21354 cat >>conftest.
$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 $ac_includes_default
21357 #include <linux/soundcard.h>
21359 rm -f conftest.
$ac_objext
21360 if { (ac_try
="$ac_compile"
21361 case "(($ac_try" in
21362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_compile") 2>conftest.er1
21368 grep -v '^ *+' conftest.er1 >conftest.err
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest.$ac_objext; then
21376 ac_header_compiler=yes
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21381 ac_header_compiler=no
21384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21386 echo "${ECHO_T}$ac_header_compiler" >&6; }
21388 # Is the header present?
21389 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
21390 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
21391 cat >conftest.$ac_ext <<_ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 #include <linux/soundcard.h>
21399 if { (ac_try="$ac_cpp conftest.$ac_ext"
21400 case "(($ac_try" in
21401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21402 *) ac_try_echo
=$ac_try;;
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21407 grep -v '^ *+' conftest.er1
>conftest.err
21409 cat conftest.err
>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } >/dev
/null
&& {
21412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21415 ac_header_preproc
=yes
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.
$ac_ext >&5
21420 ac_header_preproc
=no
21423 rm -f conftest.err conftest.
$ac_ext
21424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21425 echo "${ECHO_T}$ac_header_preproc" >&6; }
21427 # So? What about this header?
21428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21430 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21431 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21432 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
21433 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
21434 ac_header_preproc
=yes
21437 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
21438 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
21440 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
21442 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21444 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
21446 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
21448 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
21452 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21453 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21454 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 ac_cv_header_linux_soundcard_h
=$ac_header_preproc
21459 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21460 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21463 if test $ac_cv_header_linux_soundcard_h = yes; then
21467 cat >>confdefs.h
<<_ACEOF
21475 if test "$PBX_OSS" = "0"; then
21476 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21477 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21478 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21479 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21482 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21483 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21485 # Is the header compilable?
21486 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
21487 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
21488 cat >conftest.
$ac_ext <<_ACEOF
21491 cat confdefs.h
>>conftest.
$ac_ext
21492 cat >>conftest.
$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21494 $ac_includes_default
21495 #include <sys/soundcard.h>
21497 rm -f conftest.
$ac_objext
21498 if { (ac_try
="$ac_compile"
21499 case "(($ac_try" in
21500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_compile") 2>conftest.er1
21506 grep -v '^ *+' conftest.er1 >conftest.err
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest.$ac_objext; then
21514 ac_header_compiler=yes
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21519 ac_header_compiler=no
21522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21524 echo "${ECHO_T}$ac_header_compiler" >&6; }
21526 # Is the header present?
21527 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
21528 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
21529 cat >conftest.$ac_ext <<_ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21535 #include <sys/soundcard.h>
21537 if { (ac_try="$ac_cpp conftest.$ac_ext"
21538 case "(($ac_try" in
21539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21540 *) ac_try_echo
=$ac_try;;
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21545 grep -v '^ *+' conftest.er1
>conftest.err
21547 cat conftest.err
>&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } >/dev
/null
&& {
21550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21553 ac_header_preproc
=yes
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.
$ac_ext >&5
21558 ac_header_preproc
=no
21561 rm -f conftest.err conftest.
$ac_ext
21562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21563 echo "${ECHO_T}$ac_header_preproc" >&6; }
21565 # So? What about this header?
21566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21568 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21569 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21570 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
21571 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
21572 ac_header_preproc
=yes
21575 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
21576 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
21577 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
21578 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
21579 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
21580 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
21581 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21582 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21583 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
21584 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
21585 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
21586 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
21590 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21591 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21592 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 ac_cv_header_sys_soundcard_h
=$ac_header_preproc
21597 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21598 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21601 if test $ac_cv_header_sys_soundcard_h = yes; then
21605 cat >>confdefs.h
<<_ACEOF
21614 if test "$PBX_OSS" = "0"; then
21616 if test "${USE_OSS}" != "no"; then
21618 if test "x${OSS_DIR}" != "x"; then
21619 if test -d ${OSS_DIR}/lib
; then
21620 pbxlibdir
="-L${OSS_DIR}/lib"
21622 pbxlibdir
="-L${OSS_DIR}"
21625 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
21626 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
21627 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
21628 echo $ECHO_N "(cached) $ECHO_C" >&6
21630 ac_check_lib_save_LIBS
=$LIBS
21631 LIBS
="-lossaudio ${pbxlibdir} $LIBS"
21632 cat >conftest.
$ac_ext <<_ACEOF
21635 cat confdefs.h
>>conftest.
$ac_ext
21636 cat >>conftest.
$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21639 /* Override any GCC internal prototype to avoid an error.
21640 Use char because int might match the return type of a GCC
21641 builtin and then its argument prototype would still apply. */
21645 char oss_ioctl_mixer ();
21649 return oss_ioctl_mixer ();
21654 rm -f conftest.
$ac_objext conftest
$ac_exeext
21655 if { (ac_try
="$ac_link"
21656 case "(($ac_try" in
21657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661 (eval "$ac_link") 2>conftest.er1
21663 grep -v '^ *+' conftest.er1 >conftest.err
21665 cat conftest.err >&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } && {
21668 test -z "$ac_c_werror_flag" ||
21669 test ! -s conftest.err
21670 } && test -s conftest$ac_exeext &&
21671 $as_test_x conftest$ac_exeext; then
21672 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21677 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
21680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21681 conftest$ac_exeext conftest.$ac_ext
21682 LIBS=$ac_check_lib_save_LIBS
21684 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
21685 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
21686 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
21693 if test "${AST_OSS_FOUND}" = "yes"; then
21694 OSS_LIB="-lossaudio "
21695 OSS_HEADER_FOUND="1"
21696 if test "x${OSS_DIR}" != "x"; then
21697 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
21698 OSS_INCLUDE="-I${OSS_DIR}/include"
21699 if test "xsoundcard.h" != "x" ; then
21700 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" |
$as_tr_sh`
21701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21702 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21703 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 ac_res=`eval echo '${'$as_ac_Header'}'`
21708 { echo "$as_me:$LINENO: result: $ac_res" >&5
21709 echo "${ECHO_T}$ac_res" >&6; }
21711 # Is the header compilable?
21712 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
21713 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
21714 cat >conftest.$ac_ext <<_ACEOF
21717 cat confdefs.h >>conftest.$ac_ext
21718 cat >>conftest.$ac_ext <<_ACEOF
21719 /* end confdefs.h. */
21720 $ac_includes_default
21721 #include <${OSS_DIR}/include/soundcard.h>
21723 rm -f conftest.$ac_objext
21724 if { (ac_try="$ac_compile"
21725 case "(($ac_try" in
21726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21727 *) ac_try_echo
=$ac_try;;
21729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21730 (eval "$ac_compile") 2>conftest.er1
21732 grep -v '^ *+' conftest.er1
>conftest.err
21734 cat conftest.err
>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } && {
21737 test -z "$ac_c_werror_flag" ||
21738 test ! -s conftest.err
21739 } && test -s conftest.
$ac_objext; then
21740 ac_header_compiler
=yes
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.
$ac_ext >&5
21745 ac_header_compiler
=no
21748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21750 echo "${ECHO_T}$ac_header_compiler" >&6; }
21752 # Is the header present?
21753 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
21754 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
21755 cat >conftest.
$ac_ext <<_ACEOF
21758 cat confdefs.h
>>conftest.
$ac_ext
21759 cat >>conftest.
$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 #include <${OSS_DIR}/include/soundcard.h>
21763 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21764 case "(($ac_try" in
21765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21771 grep -v '^ *+' conftest.er1 >conftest.err
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } >/dev/null && {
21776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21779 ac_header_preproc=yes
21781 echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21784 ac_header_preproc=no
21787 rm -f conftest.err conftest.$ac_ext
21788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21789 echo "${ECHO_T}$ac_header_preproc" >&6; }
21791 # So? What about this header?
21792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21794 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21795 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21796 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
21797 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
21798 ac_header_preproc=yes
21801 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
21802 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
21804 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
21806 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21808 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21809 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
21810 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
21811 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
21812 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
21816 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21817 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21821 eval "$as_ac_Header=\$ac_header_preproc"
21823 ac_res=`eval echo '${'$as_ac_Header'}'`
21824 { echo "$as_me:$LINENO: result: $ac_res" >&5
21825 echo "${ECHO_T}$ac_res" >&6; }
21828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21837 if test "xsoundcard.h" != "x" ; then
21838 if test "${ac_cv_header_soundcard_h+set}" = set; then
21839 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21840 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21841 if test "${ac_cv_header_soundcard_h+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21844 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21845 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21847 # Is the header compilable?
21848 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
21849 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
21850 cat >conftest.$ac_ext <<_ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h. */
21856 $ac_includes_default
21857 #include <soundcard.h>
21859 rm -f conftest.$ac_objext
21860 if { (ac_try="$ac_compile"
21861 case "(($ac_try" in
21862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21863 *) ac_try_echo
=$ac_try;;
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21868 grep -v '^ *+' conftest.er1
>conftest.err
21870 cat conftest.err
>&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.
$ac_objext; then
21876 ac_header_compiler
=yes
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.
$ac_ext >&5
21881 ac_header_compiler
=no
21884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21886 echo "${ECHO_T}$ac_header_compiler" >&6; }
21888 # Is the header present?
21889 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
21890 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
21891 cat >conftest.
$ac_ext <<_ACEOF
21894 cat confdefs.h
>>conftest.
$ac_ext
21895 cat >>conftest.
$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 #include <soundcard.h>
21899 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21900 case "(($ac_try" in
21901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21907 grep -v '^ *+' conftest.er1 >conftest.err
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } >/dev/null && {
21912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21913 test ! -s conftest.err
21915 ac_header_preproc=yes
21917 echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21920 ac_header_preproc=no
21923 rm -f conftest.err conftest.$ac_ext
21924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21925 echo "${ECHO_T}$ac_header_preproc" >&6; }
21927 # So? What about this header?
21928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21930 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21931 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21932 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
21933 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
21934 ac_header_preproc=yes
21937 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
21938 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
21940 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
21941 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
21942 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21944 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
21946 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
21947 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
21948 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
21952 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21953 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21954 if test "${ac_cv_header_soundcard_h+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21957 ac_cv_header_soundcard_h=$ac_header_preproc
21959 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21960 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21963 if test $ac_cv_header_soundcard_h = yes; then
21972 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
21973 if test ! -z "${OSS_MANDATORY}" ;
21975 { echo "$as_me:$LINENO: ***" >&5
21976 echo "$as_me: ***" >&6;}
21977 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
21978 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
21979 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
21980 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
21981 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
21982 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
21991 cat >>confdefs.h <<_ACEOF
21996 elif test ! -z "${OSS_MANDATORY}";
21998 { echo "$as_me:$LINENO: ***" >&5
21999 echo "$as_me: ***" >&6;}
22000 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
22001 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
22002 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22003 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22004 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22005 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22013 if test "${USE_PGSQL}" != "no"; then
22014 if test "x${PGSQL_DIR}" != "x"; then
22015 if test -n "$ac_tool_prefix"; then
22016 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22017 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22020 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22029 for as_dir in ${PGSQL_DIR}/bin
22032 test -z "$as_dir" && as_dir=.
22033 for ac_exec_ext in '' $ac_executable_extensions; do
22034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22035 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22046 PG_CONFIG=$ac_cv_path_PG_CONFIG
22047 if test -n "$PG_CONFIG"; then
22048 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22049 echo "${ECHO_T}$PG_CONFIG" >&6; }
22051 { echo "$as_me:$LINENO: result: no" >&5
22052 echo "${ECHO_T}no" >&6; }
22057 if test -z "$ac_cv_path_PG_CONFIG"; then
22058 ac_pt_PG_CONFIG=$PG_CONFIG
22059 # Extract the first word of "pg_config", so it can be a program name with args.
22060 set dummy pg_config; ac_word=$2
22061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22063 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22064 echo $ECHO_N "(cached) $ECHO_C" >&6
22066 case $ac_pt_PG_CONFIG in
22068 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22072 for as_dir in ${PGSQL_DIR}/bin
22075 test -z "$as_dir" && as_dir=.
22076 for ac_exec_ext in '' $ac_executable_extensions; do
22077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22078 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22089 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22090 if test -n "$ac_pt_PG_CONFIG"; then
22091 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22092 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22094 { echo "$as_me:$LINENO: result: no" >&5
22095 echo "${ECHO_T}no" >&6; }
22098 if test "x$ac_pt_PG_CONFIG" = x; then
22101 case $cross_compiling:$ac_tool_warned in
22103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22104 whose name does not start with the host triplet. If you think this
22105 configuration is useful to you, please write to autoconf@gnu.org." >&5
22106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22107 whose name does not start with the host triplet. If you think this
22108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22109 ac_tool_warned=yes ;;
22111 PG_CONFIG=$ac_pt_PG_CONFIG
22114 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22117 if test x"${PG_CONFIG}" = xNo; then
22118 { echo "$as_me:$LINENO: ***" >&5
22119 echo "$as_me: ***" >&6;}
22120 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
22121 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
22122 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
22123 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
22124 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22125 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22126 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22127 echo "$as_me: *** including --without-postgres" >&6;}
22131 if test -n "$ac_tool_prefix"; then
22132 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22133 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22136 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22145 for as_dir in $PATH
22148 test -z "$as_dir" && as_dir=.
22149 for ac_exec_ext in '' $ac_executable_extensions; do
22150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22151 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22162 PG_CONFIG=$ac_cv_path_PG_CONFIG
22163 if test -n "$PG_CONFIG"; then
22164 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22165 echo "${ECHO_T}$PG_CONFIG" >&6; }
22167 { echo "$as_me:$LINENO: result: no" >&5
22168 echo "${ECHO_T}no" >&6; }
22173 if test -z "$ac_cv_path_PG_CONFIG"; then
22174 ac_pt_PG_CONFIG=$PG_CONFIG
22175 # Extract the first word of "pg_config", so it can be a program name with args.
22176 set dummy pg_config; ac_word=$2
22177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22179 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22180 echo $ECHO_N "(cached) $ECHO_C" >&6
22182 case $ac_pt_PG_CONFIG in
22184 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22188 for as_dir in $PATH
22191 test -z "$as_dir" && as_dir=.
22192 for ac_exec_ext in '' $ac_executable_extensions; do
22193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22194 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22205 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22206 if test -n "$ac_pt_PG_CONFIG"; then
22207 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22208 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22210 { echo "$as_me:$LINENO: result: no" >&5
22211 echo "${ECHO_T}no" >&6; }
22214 if test "x$ac_pt_PG_CONFIG" = x; then
22217 case $cross_compiling:$ac_tool_warned in
22219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22220 whose name does not start with the host triplet. If you think this
22221 configuration is useful to you, please write to autoconf@gnu.org." >&5
22222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22223 whose name does not start with the host triplet. If you think this
22224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22225 ac_tool_warned=yes ;;
22227 PG_CONFIG=$ac_pt_PG_CONFIG
22230 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22235 if test "${PG_CONFIG}" != No; then
22236 PGSQL_libdir=`pg_config
--libdir`
22237 PGSQL_includedir=`pg_config
--includedir`
22239 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
22240 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
22241 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 ac_check_lib_save_LIBS=$LIBS
22245 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
22246 cat >conftest.$ac_ext <<_ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h. */
22253 /* Override any GCC internal prototype to avoid an error.
22254 Use char because int might match the return type of a GCC
22255 builtin and then its argument prototype would still apply. */
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (ac_try="$ac_link"
22270 case "(($ac_try" in
22271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22272 *) ac_try_echo
=$ac_try;;
22274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22275 (eval "$ac_link") 2>conftest.er1
22277 grep -v '^ *+' conftest.er1
>conftest.err
22279 cat conftest.err
>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } && {
22282 test -z "$ac_c_werror_flag" ||
22283 test ! -s conftest.err
22284 } && test -s conftest
$ac_exeext &&
22285 $as_test_x conftest
$ac_exeext; then
22286 ac_cv_lib_pq_PQexec
=yes
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.
$ac_ext >&5
22291 ac_cv_lib_pq_PQexec
=no
22294 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22295 conftest
$ac_exeext conftest.
$ac_ext
22296 LIBS
=$ac_check_lib_save_LIBS
22298 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
22299 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
22300 if test $ac_cv_lib_pq_PQexec = yes; then
22302 cat >>confdefs.h
<<_ACEOF
22303 #define HAVE_PGSQL 1
22309 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
22310 PGSQL_LIB
="-L${PGSQL_libdir} -lpq -lz"
22311 PGSQL_INCLUDE
="-I${PGSQL_includedir}"
22313 elif test ! -z "${PGSQL_MANDATORY}";
22315 { echo "$as_me:$LINENO: ***" >&5
22316 echo "$as_me: ***" >&6;}
22317 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22318 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22319 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22320 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22321 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22322 echo "$as_me: *** including --without-postgres" >&6;}
22325 elif test ! -z "${PGSQL_MANDATORY}";
22327 { echo "$as_me:$LINENO: ***" >&5
22328 echo "$as_me: ***" >&6;}
22329 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22330 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22331 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22332 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22333 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22334 echo "$as_me: *** including --without-postgres" >&6;}
22339 if test "${USE_POPT}" != "no"; then
22341 if test "x${POPT_DIR}" != "x"; then
22342 if test -d ${POPT_DIR}/lib
; then
22343 pbxlibdir
="-L${POPT_DIR}/lib"
22345 pbxlibdir
="-L${POPT_DIR}"
22348 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
22349 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
22350 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22353 ac_check_lib_save_LIBS
=$LIBS
22354 LIBS
="-lpopt ${pbxlibdir} $LIBS"
22355 cat >conftest.
$ac_ext <<_ACEOF
22358 cat confdefs.h
>>conftest.
$ac_ext
22359 cat >>conftest.
$ac_ext <<_ACEOF
22360 /* end confdefs.h. */
22362 /* Override any GCC internal prototype to avoid an error.
22363 Use char because int might match the return type of a GCC
22364 builtin and then its argument prototype would still apply. */
22368 char poptStrerror ();
22372 return poptStrerror ();
22377 rm -f conftest.
$ac_objext conftest
$ac_exeext
22378 if { (ac_try
="$ac_link"
22379 case "(($ac_try" in
22380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_link") 2>conftest.er1
22386 grep -v '^ *+' conftest.er1 >conftest.err
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } && {
22391 test -z "$ac_c_werror_flag" ||
22392 test ! -s conftest.err
22393 } && test -s conftest$ac_exeext &&
22394 $as_test_x conftest$ac_exeext; then
22395 ac_cv_lib_popt_poptStrerror=yes
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 ac_cv_lib_popt_poptStrerror=no
22403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404 conftest$ac_exeext conftest.$ac_ext
22405 LIBS=$ac_check_lib_save_LIBS
22407 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
22408 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
22409 if test $ac_cv_lib_popt_poptStrerror = yes; then
22416 if test "${AST_POPT_FOUND}" = "yes"; then
22418 POPT_HEADER_FOUND="1"
22419 if test "x${POPT_DIR}" != "x"; then
22420 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
22421 POPT_INCLUDE="-I${POPT_DIR}/include"
22422 if test "xpopt.h" != "x" ; then
22423 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" |
$as_tr_sh`
22424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22425 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22426 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22428 echo $ECHO_N "(cached) $ECHO_C" >&6
22430 ac_res=`eval echo '${'$as_ac_Header'}'`
22431 { echo "$as_me:$LINENO: result: $ac_res" >&5
22432 echo "${ECHO_T}$ac_res" >&6; }
22434 # Is the header compilable?
22435 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
22436 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
22437 cat >conftest.$ac_ext <<_ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22443 $ac_includes_default
22444 #include <${POPT_DIR}/include/popt.h>
22446 rm -f conftest.$ac_objext
22447 if { (ac_try="$ac_compile"
22448 case "(($ac_try" in
22449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22450 *) ac_try_echo
=$ac_try;;
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453 (eval "$ac_compile") 2>conftest.er1
22455 grep -v '^ *+' conftest.er1
>conftest.err
22457 cat conftest.err
>&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } && {
22460 test -z "$ac_c_werror_flag" ||
22461 test ! -s conftest.err
22462 } && test -s conftest.
$ac_objext; then
22463 ac_header_compiler
=yes
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.
$ac_ext >&5
22468 ac_header_compiler
=no
22471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22473 echo "${ECHO_T}$ac_header_compiler" >&6; }
22475 # Is the header present?
22476 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
22477 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
22478 cat >conftest.
$ac_ext <<_ACEOF
22481 cat confdefs.h
>>conftest.
$ac_ext
22482 cat >>conftest.
$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 #include <${POPT_DIR}/include/popt.h>
22486 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22487 case "(($ac_try" in
22488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22494 grep -v '^ *+' conftest.er1 >conftest.err
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } >/dev/null && {
22499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22502 ac_header_preproc=yes
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_header_preproc=no
22510 rm -f conftest.err conftest.$ac_ext
22511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22512 echo "${ECHO_T}$ac_header_preproc" >&6; }
22514 # So? What about this header?
22515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22517 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22518 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22519 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
22520 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
22521 ac_header_preproc=yes
22524 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
22525 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
22526 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
22527 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
22528 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
22529 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
22530 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
22531 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22532 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
22533 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
22534 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
22535 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
22539 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22540 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22544 eval "$as_ac_Header=\$ac_header_preproc"
22546 ac_res=`eval echo '${'$as_ac_Header'}'`
22547 { echo "$as_me:$LINENO: result: $ac_res" >&5
22548 echo "${ECHO_T}$ac_res" >&6; }
22551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22552 POPT_HEADER_FOUND=1
22554 POPT_HEADER_FOUND=0
22560 if test "xpopt.h" != "x" ; then
22561 if test "${ac_cv_header_popt_h+set}" = set; then
22562 { echo "$as_me:$LINENO: checking for popt.h" >&5
22563 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22564 if test "${ac_cv_header_popt_h+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22567 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22568 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22570 # Is the header compilable?
22571 { echo "$as_me:$LINENO: checking popt.h usability" >&5
22572 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
22573 cat >conftest.$ac_ext <<_ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22579 $ac_includes_default
22582 rm -f conftest.$ac_objext
22583 if { (ac_try="$ac_compile"
22584 case "(($ac_try" in
22585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22586 *) ac_try_echo
=$ac_try;;
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_compile") 2>conftest.er1
22591 grep -v '^ *+' conftest.er1
>conftest.err
22593 cat conftest.err
>&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && {
22596 test -z "$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 } && test -s conftest.
$ac_objext; then
22599 ac_header_compiler
=yes
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.
$ac_ext >&5
22604 ac_header_compiler
=no
22607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22609 echo "${ECHO_T}$ac_header_compiler" >&6; }
22611 # Is the header present?
22612 { echo "$as_me:$LINENO: checking popt.h presence" >&5
22613 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
22614 cat >conftest.
$ac_ext <<_ACEOF
22617 cat confdefs.h
>>conftest.
$ac_ext
22618 cat >>conftest.
$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22622 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22623 case "(($ac_try" in
22624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22625 *) ac_try_echo=$ac_try;;
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22630 grep -v '^ *+' conftest.er1 >conftest.err
22632 cat conftest.err >&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } >/dev/null && {
22635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22638 ac_header_preproc=yes
22640 echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 ac_header_preproc=no
22646 rm -f conftest.err conftest.$ac_ext
22647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22648 echo "${ECHO_T}$ac_header_preproc" >&6; }
22650 # So? What about this header?
22651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22653 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22654 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22655 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
22656 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
22657 ac_header_preproc=yes
22660 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
22661 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
22662 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
22663 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
22664 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
22665 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
22666 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
22667 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22668 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
22669 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
22670 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
22671 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
22675 { echo "$as_me:$LINENO: checking for popt.h" >&5
22676 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22677 if test "${ac_cv_header_popt_h+set}" = set; then
22678 echo $ECHO_N "(cached) $ECHO_C" >&6
22680 ac_cv_header_popt_h=$ac_header_preproc
22682 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22683 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22686 if test $ac_cv_header_popt_h = yes; then
22687 POPT_HEADER_FOUND=1
22689 POPT_HEADER_FOUND=0
22695 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
22696 if test ! -z "${POPT_MANDATORY}" ;
22698 { echo "$as_me:$LINENO: ***" >&5
22699 echo "$as_me: ***" >&6;}
22700 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
22701 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
22702 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
22703 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
22704 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22705 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22714 cat >>confdefs.h <<_ACEOF
22715 #define HAVE_POPT 1
22719 elif test ! -z "${POPT_MANDATORY}";
22721 { echo "$as_me:$LINENO: ***" >&5
22722 echo "$as_me: ***" >&6;}
22723 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
22724 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
22725 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22726 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22727 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22728 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22735 if test "${USE_PRI}" != "no"; then
22737 if test "x${PRI_DIR}" != "x"; then
22738 if test -d ${PRI_DIR}/lib; then
22739 pbxlibdir="-L${PRI_DIR}/lib"
22741 pbxlibdir="-L${PRI_DIR}"
22744 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
22745 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
22746 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
22747 echo $ECHO_N "(cached) $ECHO_C" >&6
22749 ac_check_lib_save_LIBS=$LIBS
22750 LIBS="-lpri ${pbxlibdir} $LIBS"
22751 cat >conftest.$ac_ext <<_ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22758 /* Override any GCC internal prototype to avoid an error.
22759 Use char because int might match the return type of a GCC
22760 builtin and then its argument prototype would still apply. */
22768 return pri_call ();
22773 rm -f conftest.$ac_objext conftest$ac_exeext
22774 if { (ac_try="$ac_link"
22775 case "(($ac_try" in
22776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22777 *) ac_try_echo
=$ac_try;;
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780 (eval "$ac_link") 2>conftest.er1
22782 grep -v '^ *+' conftest.er1
>conftest.err
22784 cat conftest.err
>&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } && {
22787 test -z "$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22789 } && test -s conftest
$ac_exeext &&
22790 $as_test_x conftest
$ac_exeext; then
22791 ac_cv_lib_pri_pri_call
=yes
22793 echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.
$ac_ext >&5
22796 ac_cv_lib_pri_pri_call
=no
22799 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22800 conftest
$ac_exeext conftest.
$ac_ext
22801 LIBS
=$ac_check_lib_save_LIBS
22803 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
22804 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
22805 if test $ac_cv_lib_pri_pri_call = yes; then
22812 if test "${AST_PRI_FOUND}" = "yes"; then
22814 PRI_HEADER_FOUND
="1"
22815 if test "x${PRI_DIR}" != "x"; then
22816 PRI_LIB
="${pbxlibdir} ${PRI_LIB}"
22817 PRI_INCLUDE
="-I${PRI_DIR}/include"
22818 if test "xlibpri.h" != "x" ; then
22819 as_ac_Header
=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
22820 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22821 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22822 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22823 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22826 ac_res
=`eval echo '${'$as_ac_Header'}'`
22827 { echo "$as_me:$LINENO: result: $ac_res" >&5
22828 echo "${ECHO_T}$ac_res" >&6; }
22830 # Is the header compilable?
22831 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
22832 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
22833 cat >conftest.
$ac_ext <<_ACEOF
22836 cat confdefs.h
>>conftest.
$ac_ext
22837 cat >>conftest.
$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 $ac_includes_default
22840 #include <${PRI_DIR}/include/libpri.h>
22842 rm -f conftest.
$ac_objext
22843 if { (ac_try
="$ac_compile"
22844 case "(($ac_try" in
22845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22846 *) ac_try_echo=$ac_try;;
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849 (eval "$ac_compile") 2>conftest.er1
22851 grep -v '^ *+' conftest.er1 >conftest.err
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } && {
22856 test -z "$ac_c_werror_flag" ||
22857 test ! -s conftest.err
22858 } && test -s conftest.$ac_objext; then
22859 ac_header_compiler=yes
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22864 ac_header_compiler=no
22867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22869 echo "${ECHO_T}$ac_header_compiler" >&6; }
22871 # Is the header present?
22872 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
22873 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
22874 cat >conftest.$ac_ext <<_ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22880 #include <${PRI_DIR}/include/libpri.h>
22882 if { (ac_try="$ac_cpp conftest.$ac_ext"
22883 case "(($ac_try" in
22884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22885 *) ac_try_echo
=$ac_try;;
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22890 grep -v '^ *+' conftest.er1
>conftest.err
22892 cat conftest.err
>&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } >/dev
/null
&& {
22895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22898 ac_header_preproc
=yes
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.
$ac_ext >&5
22903 ac_header_preproc
=no
22906 rm -f conftest.err conftest.
$ac_ext
22907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22908 echo "${ECHO_T}$ac_header_preproc" >&6; }
22910 # So? What about this header?
22911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22913 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
22914 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22915 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
22916 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
22917 ac_header_preproc
=yes
22920 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
22921 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
22922 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
22923 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
22924 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
22925 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
22926 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
22927 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
22928 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
22929 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
22930 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
22931 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
22935 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22936 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22937 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22940 eval "$as_ac_Header=\$ac_header_preproc"
22942 ac_res
=`eval echo '${'$as_ac_Header'}'`
22943 { echo "$as_me:$LINENO: result: $ac_res" >&5
22944 echo "${ECHO_T}$ac_res" >&6; }
22947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22956 if test "xlibpri.h" != "x" ; then
22957 if test "${ac_cv_header_libpri_h+set}" = set; then
22958 { echo "$as_me:$LINENO: checking for libpri.h" >&5
22959 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
22960 if test "${ac_cv_header_libpri_h+set}" = set; then
22961 echo $ECHO_N "(cached) $ECHO_C" >&6
22963 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
22964 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
22966 # Is the header compilable?
22967 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
22968 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
22969 cat >conftest.
$ac_ext <<_ACEOF
22972 cat confdefs.h
>>conftest.
$ac_ext
22973 cat >>conftest.
$ac_ext <<_ACEOF
22974 /* end confdefs.h. */
22975 $ac_includes_default
22976 #include <libpri.h>
22978 rm -f conftest.
$ac_objext
22979 if { (ac_try
="$ac_compile"
22980 case "(($ac_try" in
22981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22982 *) ac_try_echo=$ac_try;;
22984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985 (eval "$ac_compile") 2>conftest.er1
22987 grep -v '^ *+' conftest.er1 >conftest.err
22989 cat conftest.err >&5
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); } && {
22992 test -z "$ac_c_werror_flag" ||
22993 test ! -s conftest.err
22994 } && test -s conftest.$ac_objext; then
22995 ac_header_compiler=yes
22997 echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
23000 ac_header_compiler=no
23003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23005 echo "${ECHO_T}$ac_header_compiler" >&6; }
23007 # Is the header present?
23008 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23009 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23010 cat >conftest.$ac_ext <<_ACEOF
23013 cat confdefs.h >>conftest.$ac_ext
23014 cat >>conftest.$ac_ext <<_ACEOF
23015 /* end confdefs.h. */
23016 #include <libpri.h>
23018 if { (ac_try="$ac_cpp conftest.$ac_ext"
23019 case "(($ac_try" in
23020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23021 *) ac_try_echo
=$ac_try;;
23023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23026 grep -v '^ *+' conftest.er1
>conftest.err
23028 cat conftest.err
>&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } >/dev
/null
&& {
23031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23032 test ! -s conftest.err
23034 ac_header_preproc
=yes
23036 echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.
$ac_ext >&5
23039 ac_header_preproc
=no
23042 rm -f conftest.err conftest.
$ac_ext
23043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23044 echo "${ECHO_T}$ac_header_preproc" >&6; }
23046 # So? What about this header?
23047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23049 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23050 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23051 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
23052 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
23053 ac_header_preproc
=yes
23056 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
23057 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
23058 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
23059 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
23061 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23063 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23064 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
23065 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
23066 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
23067 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
23071 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23072 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23073 if test "${ac_cv_header_libpri_h+set}" = set; then
23074 echo $ECHO_N "(cached) $ECHO_C" >&6
23076 ac_cv_header_libpri_h
=$ac_header_preproc
23078 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23079 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23082 if test $ac_cv_header_libpri_h = yes; then
23091 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
23092 if test ! -z "${PRI_MANDATORY}" ;
23094 { echo "$as_me:$LINENO: ***" >&5
23095 echo "$as_me: ***" >&6;}
23096 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
23097 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
23098 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
23099 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
23100 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23101 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23110 cat >>confdefs.h
<<_ACEOF
23115 elif test ! -z "${PRI_MANDATORY}";
23117 { echo "$as_me:$LINENO: ***" >&5
23118 echo "$as_me: ***" >&6;}
23119 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
23120 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
23121 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23122 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23123 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23124 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23130 if test "${USE_PWLIB}" != "no"; then
23131 if test ! -z "${PWLIB_DIR}"; then
23132 PWLIBDIR
="${PWLIB_DIR}"
23137 if test "${PWLIBDIR:-unset}" != "unset" ; then
23138 as_ac_File
=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
23139 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
23140 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
23141 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23142 echo $ECHO_N "(cached) $ECHO_C" >&6
23144 test "$cross_compiling" = yes &&
23145 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23146 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23147 { (exit 1); exit 1; }; }
23148 if test -r "${PWLIBDIR}/version.h"; then
23149 eval "$as_ac_File=yes"
23151 eval "$as_ac_File=no"
23154 ac_res
=`eval echo '${'$as_ac_File'}'`
23155 { echo "$as_me:$LINENO: result: $ac_res" >&5
23156 echo "${ECHO_T}$ac_res" >&6; }
23157 if test `eval echo '${'$as_ac_File'}'` = yes; then
23162 if test "${HAS_PWLIB:-unset}" = "unset" ; then
23163 if test "${OPENH323DIR:-unset}" != "unset"; then
23164 as_ac_File
=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
23165 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
23166 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
23167 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23168 echo $ECHO_N "(cached) $ECHO_C" >&6
23170 test "$cross_compiling" = yes &&
23171 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23172 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23173 { (exit 1); exit 1; }; }
23174 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
23175 eval "$as_ac_File=yes"
23177 eval "$as_ac_File=no"
23180 ac_res
=`eval echo '${'$as_ac_File'}'`
23181 { echo "$as_me:$LINENO: result: $ac_res" >&5
23182 echo "${ECHO_T}$ac_res" >&6; }
23183 if test `eval echo '${'$as_ac_File'}'` = yes; then
23188 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23189 PWLIBDIR
="${OPENH323DIR}/../pwlib"
23191 as_ac_File
=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
23192 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
23193 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
23194 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23197 test "$cross_compiling" = yes &&
23198 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23199 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23200 { (exit 1); exit 1; }; }
23201 if test -r "${HOME}/pwlib/include/ptlib.h"; then
23202 eval "$as_ac_File=yes"
23204 eval "$as_ac_File=no"
23207 ac_res
=`eval echo '${'$as_ac_File'}'`
23208 { echo "$as_me:$LINENO: result: $ac_res" >&5
23209 echo "${ECHO_T}$ac_res" >&6; }
23210 if test `eval echo '${'$as_ac_File'}'` = yes; then
23214 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23215 PWLIBDIR
="${HOME}/pwlib"
23217 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
23218 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
23219 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
23220 echo $ECHO_N "(cached) $ECHO_C" >&6
23222 test "$cross_compiling" = yes &&
23223 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23224 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23225 { (exit 1); exit 1; }; }
23226 if test -r "/usr/local/include/ptlib.h"; then
23227 ac_cv_file__usr_local_include_ptlib_h
=yes
23229 ac_cv_file__usr_local_include_ptlib_h
=no
23232 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
23233 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
23234 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
23238 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23239 # Extract the first word of "ptlib-config", so it can be a program name with args.
23240 set dummy ptlib-config
; ac_word
=$2
23241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23243 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23244 echo $ECHO_N "(cached) $ECHO_C" >&6
23246 case $PTLIB_CONFIG in
23248 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
23251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23252 for as_dir
in /usr
/local
/bin
23255 test -z "$as_dir" && as_dir
=.
23256 for ac_exec_ext
in '' $ac_executable_extensions; do
23257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23258 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
23259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23269 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
23270 if test -n "$PTLIB_CONFIG"; then
23271 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23272 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23274 { echo "$as_me:$LINENO: result: no" >&5
23275 echo "${ECHO_T}no" >&6; }
23279 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
23280 # Extract the first word of "ptlib-config", so it can be a program name with args.
23281 set dummy ptlib-config
; ac_word
=$2
23282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23284 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23287 case $PTLIB_CONFIG in
23289 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
23292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23293 for as_dir
in /usr
/local
/share
/pwlib
/make
23296 test -z "$as_dir" && as_dir
=.
23297 for ac_exec_ext
in '' $ac_executable_extensions; do
23298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23299 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
23300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23310 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
23311 if test -n "$PTLIB_CONFIG"; then
23312 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23313 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23315 { echo "$as_me:$LINENO: result: no" >&5
23316 echo "${ECHO_T}no" >&6; }
23321 PWLIB_INCDIR
="/usr/local/include"
23322 PWLIB_LIBDIR
="/usr/local/lib"
23324 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
23325 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
23326 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
23327 echo $ECHO_N "(cached) $ECHO_C" >&6
23329 test "$cross_compiling" = yes &&
23330 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23331 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23332 { (exit 1); exit 1; }; }
23333 if test -r "/usr/include/ptlib.h"; then
23334 ac_cv_file__usr_include_ptlib_h
=yes
23336 ac_cv_file__usr_include_ptlib_h
=no
23339 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
23340 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
23341 if test $ac_cv_file__usr_include_ptlib_h = yes; then
23345 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23346 # Extract the first word of "ptlib-config", so it can be a program name with args.
23347 set dummy ptlib-config
; ac_word
=$2
23348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23350 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23353 case $PTLIB_CONFIG in
23355 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
23358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23359 for as_dir
in /usr
/share
/pwlib
/make
23362 test -z "$as_dir" && as_dir
=.
23363 for ac_exec_ext
in '' $ac_executable_extensions; do
23364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23365 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
23366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23376 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
23377 if test -n "$PTLIB_CONFIG"; then
23378 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23379 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23381 { echo "$as_me:$LINENO: result: no" >&5
23382 echo "${ECHO_T}no" >&6; }
23386 PWLIB_INCDIR
="/usr/include"
23387 PWLIB_LIBDIR
="/usr/lib"
23394 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
23395 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
23399 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23400 if test "${PWLIBDIR:-unset}" = "unset" ; then
23401 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
23402 PWLIBDIR
=`$PTLIB_CONFIG --prefix`
23404 echo "Cannot find ptlib-config - please install and try again"
23409 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
23410 PWLIBDIR
="/usr/share/pwlib"
23411 PWLIB_INCDIR
="/usr/include"
23412 PWLIB_LIBDIR
="/usr/lib"
23414 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
23415 PWLIBDIR
="/usr/local/share/pwlib"
23416 PWLIB_INCDIR
="/usr/local/include"
23417 PWLIB_LIBDIR
="/usr/local/lib"
23420 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
23421 PWLIB_INCDIR
="${PWLIBDIR}/include"
23423 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
23424 PWLIB_LIBDIR
="${PWLIBDIR}/lib"
23433 if test "${HAS_PWLIB:-unset}" != "unset"; then
23434 PWLIB_VERSION
=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
23435 PWLIB_MAJOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f1 -d.`
23436 PWLIB_MINOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f2 -d.`
23437 PWLIB_BUILD_NUMBER
=`echo ${PWLIB_VERSION} | cut -f3 -d.`
23438 let PWLIB_VER
=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
23439 let PWLIB_REQ
=1*10000+9*100+2
23441 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
23442 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23443 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
23444 { echo "$as_me:$LINENO: result: no" >&5
23445 echo "${ECHO_T}no" >&6; }
23448 { echo "$as_me:$LINENO: result: yes" >&5
23449 echo "${ECHO_T}yes" >&6; }
23454 if test "${HAS_PWLIB:-unset}" != "unset"; then
23458 linux
*) PWLIB_OSTYPE
=linux
;
23460 freebsd
* ) PWLIB_OSTYPE
=FreeBSD
;
23462 openbsd
* ) PWLIB_OSTYPE
=OpenBSD
;
23463 ENDLDLIBS
="-lossaudio" ;
23465 netbsd
* ) PWLIB_OSTYPE
=NetBSD
;
23466 ENDLDLIBS
="-lossaudio" ;
23468 solaris
* | sunos
* ) PWLIB_OSTYPE
=solaris
;
23470 darwin
* ) PWLIB_OSTYPE
=Darwin
;
23472 beos
*) PWLIB_OSTYPE
=beos
;
23473 STDCCFLAGS
="$STDCCFLAGS -D__BEOS__"
23475 cygwin
*) PWLIB_OSTYPE
=cygwin
;
23477 mingw
*) PWLIB_OSTYPE
=mingw
;
23478 STDCCFLAGS
="$STDCCFLAGS -mms-bitfields" ;
23479 ENDLDLIBS
="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
23481 * ) PWLIB_OSTYPE
="$host_os" ;
23482 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
23483 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
23488 case "$host_cpu" in
23489 x86 | i686 | i586 | i486 | i386
) PWLIB_MACHTYPE
=x86
23492 x86_64
) PWLIB_MACHTYPE
=x86_64
;
23497 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7
) PWLIB_MACHTYPE
=alpha
;
23501 sparc
) PWLIB_MACHTYPE
=sparc
;
23504 powerpc
) PWLIB_MACHTYPE
=ppc
;
23507 ppc
) PWLIB_MACHTYPE
=ppc
;
23510 powerpc64
) PWLIB_MACHTYPE
=ppc64
;
23515 ppc64
) PWLIB_MACHTYPE
=ppc64
;
23520 ia64
) PWLIB_MACHTYPE
=ia64
;
23524 s390x
) PWLIB_MACHTYPE
=s390x
;
23529 s390
) PWLIB_MACHTYPE
=s390
;
23532 * ) PWLIB_MACHTYPE
="$host_cpu";
23533 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
23534 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
23537 PWLIB_PLATFORM
="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
23542 PLATFORM_PWLIB
="pt_${PWLIB_PLATFORM}_r"
23545 if test "${HAS_PWLIB:-unset}" != "unset"; then
23546 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
23547 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
23549 saved_cppflags
="${CPPFLAGS}"
23550 saved_libs
="${LIBS}"
23551 LIBS
="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
23552 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_INCDIR} "
23555 ac_cpp
='$CXXCPP $CPPFLAGS'
23556 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23557 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23558 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23561 cat >conftest.
$ac_ext <<_ACEOF
23564 cat confdefs.h
>>conftest.
$ac_ext
23565 cat >>conftest.
$ac_ext <<_ACEOF
23566 /* end confdefs.h. */
23571 BOOL q = PTime::IsDaylightSavings();
23576 rm -f conftest.
$ac_objext conftest
$ac_exeext
23577 if { (ac_try
="$ac_link"
23578 case "(($ac_try" in
23579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23580 *) ac_try_echo=$ac_try;;
23582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583 (eval "$ac_link") 2>conftest.er1
23585 grep -v '^ *+' conftest.er1 >conftest.err
23587 cat conftest.err >&5
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); } && {
23590 test -z "$ac_cxx_werror_flag" ||
23591 test ! -s conftest.err
23592 } && test -s conftest$ac_exeext &&
23593 $as_test_x conftest$ac_exeext; then
23594 { echo "$as_me:$LINENO: result: yes" >&5
23595 echo "${ECHO_T}yes" >&6; }
23596 ac_cv_lib_PWLIB="yes"
23599 echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23602 { echo "$as_me:$LINENO: result: no" >&5
23603 echo "${ECHO_T}no" >&6; }
23604 ac_cv_lib_PWLIB="no"
23609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23610 conftest$ac_exeext conftest.$ac_ext
23613 ac_cpp='$CPP $CPPFLAGS'
23614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23619 LIBS="${saved_libs}"
23620 CPPFLAGS="${saved_cppflags}"
23622 if test "${ac_cv_lib_PWLIB}" = "yes"; then
23623 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
23624 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
23626 PWLIB_LIB="-l${PLATFORM_PWLIB}"
23628 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
23629 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
23633 cat >>confdefs.h <<\_ACEOF
23634 #define HAVE_PWLIB 1
23643 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
23644 { echo "$as_me:$LINENO: ***" >&5
23645 echo "$as_me: ***" >&6;}
23646 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
23647 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
23648 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23649 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23650 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
23651 echo "$as_me: *** including --without-pwlib" >&6;}
23655 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
23656 if test ! -z "${OPENH323_DIR}"; then
23657 OPENH323DIR="${OPENH323_DIR}"
23662 if test "${OPENH323DIR:-unset}" != "unset" ; then
23663 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" |
$as_tr_sh`
23664 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
23665 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
23666 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23667 echo $ECHO_N "(cached) $ECHO_C" >&6
23669 test "$cross_compiling" = yes &&
23670 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23671 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23672 { (exit 1); exit 1; }; }
23673 if test -r "${OPENH323DIR}/version.h"; then
23674 eval "$as_ac_File=yes"
23676 eval "$as_ac_File=no"
23679 ac_res=`eval echo '${'$as_ac_File'}'`
23680 { echo "$as_me:$LINENO: result: $ac_res" >&5
23681 echo "${ECHO_T}$ac_res" >&6; }
23682 if test `eval echo '${'$as_ac_File'}'` = yes; then
23687 if test "${HAS_OPENH323:-unset}" = "unset" ; then
23688 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" |
$as_tr_sh`
23689 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
23690 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
23691 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23692 echo $ECHO_N "(cached) $ECHO_C" >&6
23694 test "$cross_compiling" = yes &&
23695 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23696 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23697 { (exit 1); exit 1; }; }
23698 if test -r "${PWLIBDIR}/../openh323/version.h"; then
23699 eval "$as_ac_File=yes"
23701 eval "$as_ac_File=no"
23704 ac_res=`eval echo '${'$as_ac_File'}'`
23705 { echo "$as_me:$LINENO: result: $ac_res" >&5
23706 echo "${ECHO_T}$ac_res" >&6; }
23707 if test `eval echo '${'$as_ac_File'}'` = yes; then
23708 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
23711 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23712 OPENH323DIR="${PWLIBDIR}/../openh323"
23713 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" |
$as_tr_sh`
23714 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
23715 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
23716 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23717 echo $ECHO_N "(cached) $ECHO_C" >&6
23719 test "$cross_compiling" = yes &&
23720 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23721 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23722 { (exit 1); exit 1; }; }
23723 if test -r "${OPENH323DIR}/include/h323.h"; then
23724 eval "$as_ac_File=yes"
23726 eval "$as_ac_File=no"
23729 ac_res=`eval echo '${'$as_ac_File'}'`
23730 { echo "$as_me:$LINENO: result: $ac_res" >&5
23731 echo "${ECHO_T}$ac_res" >&6; }
23732 if test `eval echo '${'$as_ac_File'}'` = yes; then
23735 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
23739 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" |
$as_tr_sh`
23740 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
23741 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
23742 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23743 echo $ECHO_N "(cached) $ECHO_C" >&6
23745 test "$cross_compiling" = yes &&
23746 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23747 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23748 { (exit 1); exit 1; }; }
23749 if test -r "${HOME}/openh323/include/h323.h"; then
23750 eval "$as_ac_File=yes"
23752 eval "$as_ac_File=no"
23755 ac_res=`eval echo '${'$as_ac_File'}'`
23756 { echo "$as_me:$LINENO: result: $ac_res" >&5
23757 echo "${ECHO_T}$ac_res" >&6; }
23758 if test `eval echo '${'$as_ac_File'}'` = yes; then
23762 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23763 OPENH323DIR="${HOME}/openh323"
23765 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
23766 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
23767 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
23768 echo $ECHO_N "(cached) $ECHO_C" >&6
23770 test "$cross_compiling" = yes &&
23771 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23772 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23773 { (exit 1); exit 1; }; }
23774 if test -r "/usr/local/include/openh323/h323.h"; then
23775 ac_cv_file__usr_local_include_openh323_h323_h=yes
23777 ac_cv_file__usr_local_include_openh323_h323_h=no
23780 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
23781 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
23782 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
23786 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23787 OPENH323DIR="/usr/local/share/openh323"
23788 OPENH323_INCDIR="/usr/local/include/openh323"
23789 OPENH323_LIBDIR="/usr/local/lib"
23791 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
23792 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
23793 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
23794 echo $ECHO_N "(cached) $ECHO_C" >&6
23796 test "$cross_compiling" = yes &&
23797 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23798 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23799 { (exit 1); exit 1; }; }
23800 if test -r "/usr/include/openh323/h323.h"; then
23801 ac_cv_file__usr_include_openh323_h323_h=yes
23803 ac_cv_file__usr_include_openh323_h323_h=no
23806 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
23807 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
23808 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
23812 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23813 OPENH323DIR="/usr/share/openh323"
23814 OPENH323_INCDIR="/usr/include/openh323"
23815 OPENH323_LIBDIR="/usr/lib"
23822 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23823 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
23824 OPENH323_INCDIR="${OPENH323DIR}/include"
23826 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
23827 OPENH323_LIBDIR="${OPENH323DIR}/lib"
23836 if test "${HAS_OPENH323:-unset}" != "unset"; then
23837 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut
-f2 -d ' ' |
sed -e 's/"//g'`
23838 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f1 -d.
`
23839 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f2 -d.
`
23840 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut
-f3 -d.
`
23841 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
23842 let OPENH323_REQ=1*10000+17*100+3
23844 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
23845 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23846 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
23847 { echo "$as_me:$LINENO: result: no" >&5
23848 echo "${ECHO_T}no" >&6; }
23851 { echo "$as_me:$LINENO: result: yes" >&5
23852 echo "${ECHO_T}yes" >&6; }
23857 if test "${HAS_OPENH323:-unset}" != "unset"; then
23858 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
23859 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
23861 files=`ls -l ${OPENH323_LIBDIR}/libh323_
${PWLIB_PLATFORM}_
*.so
*`
23863 if test -n "$files"; then
23864 for f in $files; do
23865 if test -f $f -a ! -L $f; then
23866 libfile=`basename $f`
23871 if test "${libfile:-unset}" != "unset"; then
23872 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
23874 case "${OPENH323_SUFFIX}" in
23876 OPENH323_BUILD="notrace";;
23878 OPENH323_BUILD="opt";;
23880 OPENH323_BUILD="debug";;
23882 OPENH323_BUILD="notrace";;
23884 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
23885 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
23891 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
23893 if test "${HAS_OPENH323:-unset}" != "unset"; then
23894 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
23895 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
23897 saved_cppflags="${CPPFLAGS}"
23898 saved_libs="${LIBS}"
23899 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
23900 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
23903 ac_cpp='$CXXCPP $CPPFLAGS'
23904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23909 cat >conftest.$ac_ext <<_ACEOF
23912 cat confdefs.h >>conftest.$ac_ext
23913 cat >>conftest.$ac_ext <<_ACEOF
23914 /* end confdefs.h. */
23917 #include "h323ep.h"
23921 H323EndPoint ep = H323EndPoint();
23926 rm -f conftest.$ac_objext conftest$ac_exeext
23927 if { (ac_try="$ac_link"
23928 case "(($ac_try" in
23929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23930 *) ac_try_echo
=$ac_try;;
23932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23933 (eval "$ac_link") 2>conftest.er1
23935 grep -v '^ *+' conftest.er1
>conftest.err
23937 cat conftest.err
>&5
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); } && {
23940 test -z "$ac_cxx_werror_flag" ||
23941 test ! -s conftest.err
23942 } && test -s conftest
$ac_exeext &&
23943 $as_test_x conftest
$ac_exeext; then
23944 { echo "$as_me:$LINENO: result: yes" >&5
23945 echo "${ECHO_T}yes" >&6; }
23946 ac_cv_lib_OPENH323
="yes"
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.
$ac_ext >&5
23952 { echo "$as_me:$LINENO: result: no" >&5
23953 echo "${ECHO_T}no" >&6; }
23954 ac_cv_lib_OPENH323
="no"
23959 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23960 conftest
$ac_exeext conftest.
$ac_ext
23963 ac_cpp
='$CPP $CPPFLAGS'
23964 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23965 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23966 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23969 LIBS
="${saved_libs}"
23970 CPPFLAGS
="${saved_cppflags}"
23972 if test "${ac_cv_lib_OPENH323}" = "yes"; then
23973 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
23974 OPENH323_LIB
="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
23976 OPENH323_LIB
="-l${PLATFORM_OPENH323}"
23978 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
23979 OPENH323_INCLUDE
="-I${OPENH323_INCDIR}"
23983 cat >>confdefs.h
<<\_ACEOF
23984 #define HAVE_OPENH323 1
23991 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
23992 { echo "$as_me:$LINENO: ***" >&5
23993 echo "$as_me: ***" >&6;}
23994 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
23995 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
23996 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23997 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23998 { echo "$as_me:$LINENO: *** including --without-h323" >&5
23999 echo "$as_me: *** including --without-h323" >&6;}
24005 ac_cpp
='$CXXCPP $CPPFLAGS'
24006 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24007 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24008 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24011 if test "${USE_QT}" != "no"; then
24012 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
24013 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
24014 saved_libs
="${LIBS}"
24015 saved_cppflags
="${CPPFLAGS}"
24016 if test "x${QT_DIR}" != "x"; then
24017 LIBS
="${LIBS} -L${QT_DIR}/lib"
24018 CPPFLAGS
="${CPPFLAGS} -I${QT_DIR}/include"
24020 LIBS
="${LIBS} -lqt"
24022 cat >conftest.
$ac_ext <<_ACEOF
24026 cat confdefs.h
>>conftest.
$ac_ext
24027 cat >>conftest.
$ac_ext <<_ACEOF
24028 /* end confdefs.h. */
24029 #include <qt3/qdatetime.h>
24039 rm -f conftest.
$ac_objext conftest
$ac_exeext
24040 if { (ac_try
="$ac_link"
24041 case "(($ac_try" in
24042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24046 (eval "$ac_link") 2>conftest.er1
24048 grep -v '^ *+' conftest.er1 >conftest.err
24050 cat conftest.err >&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } && {
24053 test -z "$ac_cxx_werror_flag" ||
24054 test ! -s conftest.err
24055 } && test -s conftest$ac_exeext &&
24056 $as_test_x conftest$ac_exeext; then
24057 ac_cv_lib_qt_qt_date="yes"
24059 echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24062 ac_cv_lib_qt_qt_date="no"
24065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24066 conftest$ac_exeext conftest.$ac_ext
24067 LIBS="${saved_libs}"
24068 CPPFLAGS="${saved_cppflags}"
24070 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
24071 saved_libs="${LIBS}"
24072 saved_cppflags="${CPPFLAGS}"
24073 if test "x${QT_DIR}" != "x"; then
24074 LIBS="${LIBS} -L${QT_DIR}/lib"
24075 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24077 LIBS="${LIBS} -lqt-mt"
24079 cat >conftest.$ac_ext <<_ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 #include <qt3/qdatetime.h>
24096 rm -f conftest.$ac_objext conftest$ac_exeext
24097 if { (ac_try="$ac_link"
24098 case "(($ac_try" in
24099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24100 *) ac_try_echo
=$ac_try;;
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_link") 2>conftest.er1
24105 grep -v '^ *+' conftest.er1
>conftest.err
24107 cat conftest.err
>&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_cxx_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest
$ac_exeext &&
24113 $as_test_x conftest
$ac_exeext; then
24114 ac_cv_lib_qt_qt_date
="yes"
24116 echo "$as_me: failed program was:" >&5
24117 sed 's/^/| /' conftest.
$ac_ext >&5
24119 ac_cv_lib_qt_qt_date
="no"
24122 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24123 conftest
$ac_exeext conftest.
$ac_ext
24124 LIBS
="${saved_libs}"
24125 CPPFLAGS
="${saved_cppflags}"
24128 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24129 { echo "$as_me:$LINENO: result: yes" >&5
24130 echo "${ECHO_T}yes" >&6; }
24132 { echo "$as_me:$LINENO: result: no" >&5
24133 echo "${ECHO_T}no" >&6; }
24136 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24137 QT_LIB
="-l${qtlib}"
24138 if test "${QT_DIR}" != ""; then
24139 QT_LIB
="-L${QT_DIR}/lib ${QT_LIB}"
24140 QT_INCLUDE
="-I${QT_DIR}/include"
24144 cat >>confdefs.h
<<\_ACEOF
24148 if test -n "$ac_tool_prefix"; then
24149 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
24150 set dummy
${ac_tool_prefix}moc
; ac_word
=$2
24151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24153 if test "${ac_cv_path_QTMOC+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24158 ac_cv_path_QTMOC
="$QTMOC" # Let the user override the test with a path.
24161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24162 for as_dir
in $PATH
24165 test -z "$as_dir" && as_dir
=.
24166 for ac_exec_ext
in '' $ac_executable_extensions; do
24167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24168 ac_cv_path_QTMOC
="$as_dir/$ac_word$ac_exec_ext"
24169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24179 QTMOC
=$ac_cv_path_QTMOC
24180 if test -n "$QTMOC"; then
24181 { echo "$as_me:$LINENO: result: $QTMOC" >&5
24182 echo "${ECHO_T}$QTMOC" >&6; }
24184 { echo "$as_me:$LINENO: result: no" >&5
24185 echo "${ECHO_T}no" >&6; }
24190 if test -z "$ac_cv_path_QTMOC"; then
24192 # Extract the first word of "moc", so it can be a program name with args.
24193 set dummy moc
; ac_word
=$2
24194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24196 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
24197 echo $ECHO_N "(cached) $ECHO_C" >&6
24199 case $ac_pt_QTMOC in
24201 ac_cv_path_ac_pt_QTMOC
="$ac_pt_QTMOC" # Let the user override the test with a path.
24204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24205 for as_dir
in $PATH
24208 test -z "$as_dir" && as_dir
=.
24209 for ac_exec_ext
in '' $ac_executable_extensions; do
24210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24211 ac_cv_path_ac_pt_QTMOC
="$as_dir/$ac_word$ac_exec_ext"
24212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24222 ac_pt_QTMOC
=$ac_cv_path_ac_pt_QTMOC
24223 if test -n "$ac_pt_QTMOC"; then
24224 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
24225 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
24227 { echo "$as_me:$LINENO: result: no" >&5
24228 echo "${ECHO_T}no" >&6; }
24231 if test "x$ac_pt_QTMOC" = x
; then
24234 case $cross_compiling:$ac_tool_warned in
24236 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24237 whose name does not start with the host triplet. If you think this
24238 configuration is useful to you, please write to autoconf@gnu.org." >&5
24239 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24240 whose name does not start with the host triplet. If you think this
24241 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24242 ac_tool_warned
=yes ;;
24247 QTMOC
="$ac_cv_path_QTMOC"
24250 elif test ! -z "${QT_MANDATORY}";
24252 { echo "$as_me:$LINENO: ***" >&5
24253 echo "$as_me: ***" >&6;}
24254 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
24255 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
24256 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24257 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24258 { echo "$as_me:$LINENO: *** including --without-qt." >&5
24259 echo "$as_me: *** including --without-qt." >&6;}
24265 ac_cpp
='$CPP $CPPFLAGS'
24266 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24267 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24268 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24272 if test "${USE_RADIUS}" != "no"; then
24274 if test "x${RADIUS_DIR}" != "x"; then
24275 if test -d ${RADIUS_DIR}/lib
; then
24276 pbxlibdir
="-L${RADIUS_DIR}/lib"
24278 pbxlibdir
="-L${RADIUS_DIR}"
24281 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
24282 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
24283 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24286 ac_check_lib_save_LIBS
=$LIBS
24287 LIBS
="-lradiusclient-ng ${pbxlibdir} $LIBS"
24288 cat >conftest.
$ac_ext <<_ACEOF
24291 cat confdefs.h
>>conftest.
$ac_ext
24292 cat >>conftest.
$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24295 /* Override any GCC internal prototype to avoid an error.
24296 Use char because int might match the return type of a GCC
24297 builtin and then its argument prototype would still apply. */
24301 char rc_read_config ();
24305 return rc_read_config ();
24310 rm -f conftest.
$ac_objext conftest
$ac_exeext
24311 if { (ac_try
="$ac_link"
24312 case "(($ac_try" in
24313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24314 *) ac_try_echo=$ac_try;;
24316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24317 (eval "$ac_link") 2>conftest.er1
24319 grep -v '^ *+' conftest.er1 >conftest.err
24321 cat conftest.err >&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } && {
24324 test -z "$ac_c_werror_flag" ||
24325 test ! -s conftest.err
24326 } && test -s conftest$ac_exeext &&
24327 $as_test_x conftest$ac_exeext; then
24328 ac_cv_lib_radiusclient_ng_rc_read_config=yes
24330 echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24333 ac_cv_lib_radiusclient_ng_rc_read_config=no
24336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24337 conftest$ac_exeext conftest.$ac_ext
24338 LIBS=$ac_check_lib_save_LIBS
24340 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
24341 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
24342 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
24343 AST_RADIUS_FOUND=yes
24345 AST_RADIUS_FOUND=no
24349 if test "${AST_RADIUS_FOUND}" = "yes"; then
24350 RADIUS_LIB="-lradiusclient-ng "
24351 RADIUS_HEADER_FOUND="1"
24352 if test "x${RADIUS_DIR}" != "x"; then
24353 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
24354 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
24355 if test "xradiusclient-ng.h" != "x" ; then
24356 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" |
$as_tr_sh`
24357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24358 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24359 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24363 ac_res=`eval echo '${'$as_ac_Header'}'`
24364 { echo "$as_me:$LINENO: result: $ac_res" >&5
24365 echo "${ECHO_T}$ac_res" >&6; }
24367 # Is the header compilable?
24368 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
24369 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
24370 cat >conftest.$ac_ext <<_ACEOF
24373 cat confdefs.h >>conftest.$ac_ext
24374 cat >>conftest.$ac_ext <<_ACEOF
24375 /* end confdefs.h. */
24376 $ac_includes_default
24377 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24379 rm -f conftest.$ac_objext
24380 if { (ac_try="$ac_compile"
24381 case "(($ac_try" in
24382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24383 *) ac_try_echo
=$ac_try;;
24385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24386 (eval "$ac_compile") 2>conftest.er1
24388 grep -v '^ *+' conftest.er1
>conftest.err
24390 cat conftest.err
>&5
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); } && {
24393 test -z "$ac_c_werror_flag" ||
24394 test ! -s conftest.err
24395 } && test -s conftest.
$ac_objext; then
24396 ac_header_compiler
=yes
24398 echo "$as_me: failed program was:" >&5
24399 sed 's/^/| /' conftest.
$ac_ext >&5
24401 ac_header_compiler
=no
24404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24406 echo "${ECHO_T}$ac_header_compiler" >&6; }
24408 # Is the header present?
24409 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
24410 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
24411 cat >conftest.
$ac_ext <<_ACEOF
24414 cat confdefs.h
>>conftest.
$ac_ext
24415 cat >>conftest.
$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24419 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24420 case "(($ac_try" in
24421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24422 *) ac_try_echo=$ac_try;;
24424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24427 grep -v '^ *+' conftest.er1 >conftest.err
24429 cat conftest.err >&5
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); } >/dev/null && {
24432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24433 test ! -s conftest.err
24435 ac_header_preproc=yes
24437 echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24440 ac_header_preproc=no
24443 rm -f conftest.err conftest.$ac_ext
24444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24445 echo "${ECHO_T}$ac_header_preproc" >&6; }
24447 # So? What about this header?
24448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24450 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24451 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24452 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
24453 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24454 ac_header_preproc=yes
24457 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
24458 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
24459 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
24460 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24461 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
24462 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
24463 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24464 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24465 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24466 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24467 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24468 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24472 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24473 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24477 eval "$as_ac_Header=\$ac_header_preproc"
24479 ac_res=`eval echo '${'$as_ac_Header'}'`
24480 { echo "$as_me:$LINENO: result: $ac_res" >&5
24481 echo "${ECHO_T}$ac_res" >&6; }
24484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24485 RADIUS_HEADER_FOUND=1
24487 RADIUS_HEADER_FOUND=0
24493 if test "xradiusclient-ng.h" != "x" ; then
24494 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24495 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24496 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24497 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24500 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24501 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24503 # Is the header compilable?
24504 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
24505 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
24506 cat >conftest.$ac_ext <<_ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24512 $ac_includes_default
24513 #include <radiusclient-ng.h>
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24519 *) ac_try_echo
=$ac_try;;
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_compile") 2>conftest.er1
24524 grep -v '^ *+' conftest.er1
>conftest.err
24526 cat conftest.err
>&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } && {
24529 test -z "$ac_c_werror_flag" ||
24530 test ! -s conftest.err
24531 } && test -s conftest.
$ac_objext; then
24532 ac_header_compiler
=yes
24534 echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.
$ac_ext >&5
24537 ac_header_compiler
=no
24540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24542 echo "${ECHO_T}$ac_header_compiler" >&6; }
24544 # Is the header present?
24545 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
24546 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
24547 cat >conftest.
$ac_ext <<_ACEOF
24550 cat confdefs.h
>>conftest.
$ac_ext
24551 cat >>conftest.
$ac_ext <<_ACEOF
24552 /* end confdefs.h. */
24553 #include <radiusclient-ng.h>
24555 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24556 case "(($ac_try" in
24557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24563 grep -v '^ *+' conftest.er1 >conftest.err
24565 cat conftest.err >&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); } >/dev/null && {
24568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24569 test ! -s conftest.err
24571 ac_header_preproc=yes
24573 echo "$as_me: failed program was:" >&5
24574 sed 's/^/| /' conftest.$ac_ext >&5
24576 ac_header_preproc=no
24579 rm -f conftest.err conftest.$ac_ext
24580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24581 echo "${ECHO_T}$ac_header_preproc" >&6; }
24583 # So? What about this header?
24584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24586 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24587 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24588 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
24589 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24590 ac_header_preproc=yes
24593 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
24594 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
24595 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
24596 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24597 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
24598 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
24599 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24600 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24601 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24602 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24603 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24604 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24608 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24609 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24610 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24613 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
24615 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24616 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24619 if test $ac_cv_header_radiusclient_ng_h = yes; then
24620 RADIUS_HEADER_FOUND=1
24622 RADIUS_HEADER_FOUND=0
24628 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
24629 if test ! -z "${RADIUS_MANDATORY}" ;
24631 { echo "$as_me:$LINENO: ***" >&5
24632 echo "$as_me: ***" >&6;}
24633 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
24634 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
24635 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
24636 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
24637 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24638 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24647 cat >>confdefs.h <<_ACEOF
24648 #define HAVE_RADIUS 1
24652 elif test ! -z "${RADIUS_MANDATORY}";
24654 { echo "$as_me:$LINENO: ***" >&5
24655 echo "$as_me: ***" >&6;}
24656 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
24657 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
24658 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24659 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24660 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24661 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24668 if test "${USE_SPEEX}" != "no"; then
24670 if test "x${SPEEX_DIR}" != "x"; then
24671 if test -d ${SPEEX_DIR}/lib; then
24672 pbxlibdir="-L${SPEEX_DIR}/lib"
24674 pbxlibdir="-L${SPEEX_DIR}"
24677 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
24678 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
24679 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
24680 echo $ECHO_N "(cached) $ECHO_C" >&6
24682 ac_check_lib_save_LIBS=$LIBS
24683 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
24684 cat >conftest.$ac_ext <<_ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24691 /* Override any GCC internal prototype to avoid an error.
24692 Use char because int might match the return type of a GCC
24693 builtin and then its argument prototype would still apply. */
24697 char speex_encode ();
24701 return speex_encode ();
24706 rm -f conftest.$ac_objext conftest$ac_exeext
24707 if { (ac_try="$ac_link"
24708 case "(($ac_try" in
24709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24710 *) ac_try_echo
=$ac_try;;
24712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24713 (eval "$ac_link") 2>conftest.er1
24715 grep -v '^ *+' conftest.er1
>conftest.err
24717 cat conftest.err
>&5
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); } && {
24720 test -z "$ac_c_werror_flag" ||
24721 test ! -s conftest.err
24722 } && test -s conftest
$ac_exeext &&
24723 $as_test_x conftest
$ac_exeext; then
24724 ac_cv_lib_speex_speex_encode
=yes
24726 echo "$as_me: failed program was:" >&5
24727 sed 's/^/| /' conftest.
$ac_ext >&5
24729 ac_cv_lib_speex_speex_encode
=no
24732 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24733 conftest
$ac_exeext conftest.
$ac_ext
24734 LIBS
=$ac_check_lib_save_LIBS
24736 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
24737 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
24738 if test $ac_cv_lib_speex_speex_encode = yes; then
24739 AST_SPEEX_FOUND
=yes
24745 if test "${AST_SPEEX_FOUND}" = "yes"; then
24746 SPEEX_LIB
="-lspeex -lm"
24747 SPEEX_HEADER_FOUND
="1"
24748 if test "x${SPEEX_DIR}" != "x"; then
24749 SPEEX_LIB
="${pbxlibdir} ${SPEEX_LIB}"
24750 SPEEX_INCLUDE
="-I${SPEEX_DIR}/include"
24751 if test "xspeex/speex.h" != "x" ; then
24752 as_ac_Header
=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
24753 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24754 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24755 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24756 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24759 ac_res
=`eval echo '${'$as_ac_Header'}'`
24760 { echo "$as_me:$LINENO: result: $ac_res" >&5
24761 echo "${ECHO_T}$ac_res" >&6; }
24763 # Is the header compilable?
24764 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
24765 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
24766 cat >conftest.
$ac_ext <<_ACEOF
24769 cat confdefs.h
>>conftest.
$ac_ext
24770 cat >>conftest.
$ac_ext <<_ACEOF
24771 /* end confdefs.h. */
24772 $ac_includes_default
24773 #include <${SPEEX_DIR}/include/speex/speex.h>
24775 rm -f conftest.
$ac_objext
24776 if { (ac_try
="$ac_compile"
24777 case "(($ac_try" in
24778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24779 *) ac_try_echo=$ac_try;;
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782 (eval "$ac_compile") 2>conftest.er1
24784 grep -v '^ *+' conftest.er1 >conftest.err
24786 cat conftest.err >&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } && {
24789 test -z "$ac_c_werror_flag" ||
24790 test ! -s conftest.err
24791 } && test -s conftest.$ac_objext; then
24792 ac_header_compiler=yes
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24797 ac_header_compiler=no
24800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24802 echo "${ECHO_T}$ac_header_compiler" >&6; }
24804 # Is the header present?
24805 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
24806 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
24807 cat >conftest.$ac_ext <<_ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h. */
24813 #include <${SPEEX_DIR}/include/speex/speex.h>
24815 if { (ac_try="$ac_cpp conftest.$ac_ext"
24816 case "(($ac_try" in
24817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24818 *) ac_try_echo
=$ac_try;;
24820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24823 grep -v '^ *+' conftest.er1
>conftest.err
24825 cat conftest.err
>&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); } >/dev
/null
&& {
24828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24829 test ! -s conftest.err
24831 ac_header_preproc
=yes
24833 echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.
$ac_ext >&5
24836 ac_header_preproc
=no
24839 rm -f conftest.err conftest.
$ac_ext
24840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24841 echo "${ECHO_T}$ac_header_preproc" >&6; }
24843 # So? What about this header?
24844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24846 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24847 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24848 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
24849 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
24850 ac_header_preproc
=yes
24853 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
24854 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
24855 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
24856 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
24857 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
24858 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
24859 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24860 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24861 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
24862 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
24863 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
24864 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
24868 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24869 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24870 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24871 echo $ECHO_N "(cached) $ECHO_C" >&6
24873 eval "$as_ac_Header=\$ac_header_preproc"
24875 ac_res
=`eval echo '${'$as_ac_Header'}'`
24876 { echo "$as_me:$LINENO: result: $ac_res" >&5
24877 echo "${ECHO_T}$ac_res" >&6; }
24880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24881 SPEEX_HEADER_FOUND
=1
24883 SPEEX_HEADER_FOUND
=0
24889 if test "xspeex/speex.h" != "x" ; then
24890 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24891 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
24892 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
24893 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24894 echo $ECHO_N "(cached) $ECHO_C" >&6
24896 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
24897 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
24899 # Is the header compilable?
24900 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
24901 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
24902 cat >conftest.
$ac_ext <<_ACEOF
24905 cat confdefs.h
>>conftest.
$ac_ext
24906 cat >>conftest.
$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24908 $ac_includes_default
24909 #include <speex/speex.h>
24911 rm -f conftest.
$ac_objext
24912 if { (ac_try
="$ac_compile"
24913 case "(($ac_try" in
24914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918 (eval "$ac_compile") 2>conftest.er1
24920 grep -v '^ *+' conftest.er1 >conftest.err
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } && {
24925 test -z "$ac_c_werror_flag" ||
24926 test ! -s conftest.err
24927 } && test -s conftest.$ac_objext; then
24928 ac_header_compiler=yes
24930 echo "$as_me: failed program was:" >&5
24931 sed 's/^/| /' conftest.$ac_ext >&5
24933 ac_header_compiler=no
24936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24938 echo "${ECHO_T}$ac_header_compiler" >&6; }
24940 # Is the header present?
24941 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
24942 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
24943 cat >conftest.$ac_ext <<_ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h. */
24949 #include <speex/speex.h>
24951 if { (ac_try="$ac_cpp conftest.$ac_ext"
24952 case "(($ac_try" in
24953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24954 *) ac_try_echo
=$ac_try;;
24956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24959 grep -v '^ *+' conftest.er1
>conftest.err
24961 cat conftest.err
>&5
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); } >/dev
/null
&& {
24964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24965 test ! -s conftest.err
24967 ac_header_preproc
=yes
24969 echo "$as_me: failed program was:" >&5
24970 sed 's/^/| /' conftest.
$ac_ext >&5
24972 ac_header_preproc
=no
24975 rm -f conftest.err conftest.
$ac_ext
24976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24977 echo "${ECHO_T}$ac_header_preproc" >&6; }
24979 # So? What about this header?
24980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24982 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24983 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24984 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
24985 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
24986 ac_header_preproc
=yes
24989 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
24990 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
24991 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
24992 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
24993 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
24994 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
24995 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24996 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24997 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
24998 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
24999 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
25000 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
25004 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
25005 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
25006 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25007 echo $ECHO_N "(cached) $ECHO_C" >&6
25009 ac_cv_header_speex_speex_h
=$ac_header_preproc
25011 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
25012 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
25015 if test $ac_cv_header_speex_speex_h = yes; then
25016 SPEEX_HEADER_FOUND
=1
25018 SPEEX_HEADER_FOUND
=0
25024 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
25025 if test ! -z "${SPEEX_MANDATORY}" ;
25027 { echo "$as_me:$LINENO: ***" >&5
25028 echo "$as_me: ***" >&6;}
25029 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
25030 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
25031 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
25032 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
25033 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25034 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25043 cat >>confdefs.h
<<_ACEOF
25044 #define HAVE_SPEEX 1
25048 elif test ! -z "${SPEEX_MANDATORY}";
25050 { echo "$as_me:$LINENO: ***" >&5
25051 echo "$as_me: ***" >&6;}
25052 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
25053 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
25054 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25055 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25056 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25057 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25064 if test "${USE_SQLITE}" != "no"; then
25066 if test "x${SQLITE_DIR}" != "x"; then
25067 if test -d ${SQLITE_DIR}/lib
; then
25068 pbxlibdir
="-L${SQLITE_DIR}/lib"
25070 pbxlibdir
="-L${SQLITE_DIR}"
25073 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
25074 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
25075 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
25076 echo $ECHO_N "(cached) $ECHO_C" >&6
25078 ac_check_lib_save_LIBS
=$LIBS
25079 LIBS
="-lsqlite ${pbxlibdir} $LIBS"
25080 cat >conftest.
$ac_ext <<_ACEOF
25083 cat confdefs.h
>>conftest.
$ac_ext
25084 cat >>conftest.
$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25087 /* Override any GCC internal prototype to avoid an error.
25088 Use char because int might match the return type of a GCC
25089 builtin and then its argument prototype would still apply. */
25093 char sqlite_exec ();
25097 return sqlite_exec ();
25102 rm -f conftest.
$ac_objext conftest
$ac_exeext
25103 if { (ac_try
="$ac_link"
25104 case "(($ac_try" in
25105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25106 *) ac_try_echo=$ac_try;;
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109 (eval "$ac_link") 2>conftest.er1
25111 grep -v '^ *+' conftest.er1 >conftest.err
25113 cat conftest.err >&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); } && {
25116 test -z "$ac_c_werror_flag" ||
25117 test ! -s conftest.err
25118 } && test -s conftest$ac_exeext &&
25119 $as_test_x conftest$ac_exeext; then
25120 ac_cv_lib_sqlite_sqlite_exec=yes
25122 echo "$as_me: failed program was:" >&5
25123 sed 's/^/| /' conftest.$ac_ext >&5
25125 ac_cv_lib_sqlite_sqlite_exec=no
25128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25129 conftest$ac_exeext conftest.$ac_ext
25130 LIBS=$ac_check_lib_save_LIBS
25132 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
25133 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
25134 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
25135 AST_SQLITE_FOUND=yes
25137 AST_SQLITE_FOUND=no
25141 if test "${AST_SQLITE_FOUND}" = "yes"; then
25142 SQLITE_LIB="-lsqlite "
25143 SQLITE_HEADER_FOUND="1"
25144 if test "x${SQLITE_DIR}" != "x"; then
25145 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
25146 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
25147 if test "xsqlite.h" != "x" ; then
25148 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" |
$as_tr_sh`
25149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25150 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25151 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25153 echo $ECHO_N "(cached) $ECHO_C" >&6
25155 ac_res=`eval echo '${'$as_ac_Header'}'`
25156 { echo "$as_me:$LINENO: result: $ac_res" >&5
25157 echo "${ECHO_T}$ac_res" >&6; }
25159 # Is the header compilable?
25160 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
25161 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
25162 cat >conftest.$ac_ext <<_ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25168 $ac_includes_default
25169 #include <${SQLITE_DIR}/include/sqlite.h>
25171 rm -f conftest.$ac_objext
25172 if { (ac_try="$ac_compile"
25173 case "(($ac_try" in
25174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25175 *) ac_try_echo
=$ac_try;;
25177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25178 (eval "$ac_compile") 2>conftest.er1
25180 grep -v '^ *+' conftest.er1
>conftest.err
25182 cat conftest.err
>&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); } && {
25185 test -z "$ac_c_werror_flag" ||
25186 test ! -s conftest.err
25187 } && test -s conftest.
$ac_objext; then
25188 ac_header_compiler
=yes
25190 echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.
$ac_ext >&5
25193 ac_header_compiler
=no
25196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25198 echo "${ECHO_T}$ac_header_compiler" >&6; }
25200 # Is the header present?
25201 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
25202 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
25203 cat >conftest.
$ac_ext <<_ACEOF
25206 cat confdefs.h
>>conftest.
$ac_ext
25207 cat >>conftest.
$ac_ext <<_ACEOF
25208 /* end confdefs.h. */
25209 #include <${SQLITE_DIR}/include/sqlite.h>
25211 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25212 case "(($ac_try" in
25213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25214 *) ac_try_echo=$ac_try;;
25216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25219 grep -v '^ *+' conftest.er1 >conftest.err
25221 cat conftest.err >&5
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); } >/dev/null && {
25224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25225 test ! -s conftest.err
25227 ac_header_preproc=yes
25229 echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25232 ac_header_preproc=no
25235 rm -f conftest.err conftest.$ac_ext
25236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25237 echo "${ECHO_T}$ac_header_preproc" >&6; }
25239 # So? What about this header?
25240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25242 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25243 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25244 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
25245 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
25246 ac_header_preproc=yes
25249 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
25250 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
25251 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
25252 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
25254 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25256 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
25258 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
25259 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
25260 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
25264 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25265 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25267 echo $ECHO_N "(cached) $ECHO_C" >&6
25269 eval "$as_ac_Header=\$ac_header_preproc"
25271 ac_res=`eval echo '${'$as_ac_Header'}'`
25272 { echo "$as_me:$LINENO: result: $ac_res" >&5
25273 echo "${ECHO_T}$ac_res" >&6; }
25276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25277 SQLITE_HEADER_FOUND=1
25279 SQLITE_HEADER_FOUND=0
25285 if test "xsqlite.h" != "x" ; then
25286 if test "${ac_cv_header_sqlite_h+set}" = set; then
25287 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25288 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25289 if test "${ac_cv_header_sqlite_h+set}" = set; then
25290 echo $ECHO_N "(cached) $ECHO_C" >&6
25292 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25293 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25295 # Is the header compilable?
25296 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
25297 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
25298 cat >conftest.$ac_ext <<_ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25304 $ac_includes_default
25305 #include <sqlite.h>
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25311 *) ac_try_echo
=$ac_try;;
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314 (eval "$ac_compile") 2>conftest.er1
25316 grep -v '^ *+' conftest.er1
>conftest.err
25318 cat conftest.err
>&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest.
$ac_objext; then
25324 ac_header_compiler
=yes
25326 echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.
$ac_ext >&5
25329 ac_header_compiler
=no
25332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25334 echo "${ECHO_T}$ac_header_compiler" >&6; }
25336 # Is the header present?
25337 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
25338 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
25339 cat >conftest.
$ac_ext <<_ACEOF
25342 cat confdefs.h
>>conftest.
$ac_ext
25343 cat >>conftest.
$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25345 #include <sqlite.h>
25347 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25348 case "(($ac_try" in
25349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25350 *) ac_try_echo=$ac_try;;
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25355 grep -v '^ *+' conftest.er1 >conftest.err
25357 cat conftest.err >&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); } >/dev/null && {
25360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25361 test ! -s conftest.err
25363 ac_header_preproc=yes
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25368 ac_header_preproc=no
25371 rm -f conftest.err conftest.$ac_ext
25372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25373 echo "${ECHO_T}$ac_header_preproc" >&6; }
25375 # So? What about this header?
25376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25378 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25379 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25380 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
25381 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
25382 ac_header_preproc=yes
25385 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
25386 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
25388 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
25390 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25392 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
25394 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
25395 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
25396 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
25400 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25401 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25402 if test "${ac_cv_header_sqlite_h+set}" = set; then
25403 echo $ECHO_N "(cached) $ECHO_C" >&6
25405 ac_cv_header_sqlite_h=$ac_header_preproc
25407 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25408 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25411 if test $ac_cv_header_sqlite_h = yes; then
25412 SQLITE_HEADER_FOUND=1
25414 SQLITE_HEADER_FOUND=0
25420 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
25421 if test ! -z "${SQLITE_MANDATORY}" ;
25423 { echo "$as_me:$LINENO: ***" >&5
25424 echo "$as_me: ***" >&6;}
25425 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
25426 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
25427 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
25428 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
25429 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25430 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25439 cat >>confdefs.h <<_ACEOF
25440 #define HAVE_SQLITE 1
25444 elif test ! -z "${SQLITE_MANDATORY}";
25446 { echo "$as_me:$LINENO: ***" >&5
25447 echo "$as_me: ***" >&6;}
25448 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
25449 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
25450 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25451 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25452 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25453 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25460 if test "${USE_OPENSSL}" != "no"; then
25462 if test "x${OPENSSL_DIR}" != "x"; then
25463 if test -d ${OPENSSL_DIR}/lib; then
25464 pbxlibdir="-L${OPENSSL_DIR}/lib"
25466 pbxlibdir="-L${OPENSSL_DIR}"
25469 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
25470 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
25471 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
25472 echo $ECHO_N "(cached) $ECHO_C" >&6
25474 ac_check_lib_save_LIBS=$LIBS
25475 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
25476 cat >conftest.$ac_ext <<_ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h. */
25483 /* Override any GCC internal prototype to avoid an error.
25484 Use char because int might match the return type of a GCC
25485 builtin and then its argument prototype would still apply. */
25489 char ssl2_connect ();
25493 return ssl2_connect ();
25498 rm -f conftest.$ac_objext conftest$ac_exeext
25499 if { (ac_try="$ac_link"
25500 case "(($ac_try" in
25501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25502 *) ac_try_echo
=$ac_try;;
25504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25505 (eval "$ac_link") 2>conftest.er1
25507 grep -v '^ *+' conftest.er1
>conftest.err
25509 cat conftest.err
>&5
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); } && {
25512 test -z "$ac_c_werror_flag" ||
25513 test ! -s conftest.err
25514 } && test -s conftest
$ac_exeext &&
25515 $as_test_x conftest
$ac_exeext; then
25516 ac_cv_lib_ssl_ssl2_connect
=yes
25518 echo "$as_me: failed program was:" >&5
25519 sed 's/^/| /' conftest.
$ac_ext >&5
25521 ac_cv_lib_ssl_ssl2_connect
=no
25524 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25525 conftest
$ac_exeext conftest.
$ac_ext
25526 LIBS
=$ac_check_lib_save_LIBS
25528 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
25529 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
25530 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
25531 AST_OPENSSL_FOUND
=yes
25533 AST_OPENSSL_FOUND
=no
25537 if test "${AST_OPENSSL_FOUND}" = "yes"; then
25538 OPENSSL_LIB
="-lssl -lcrypto"
25539 OPENSSL_HEADER_FOUND
="1"
25540 if test "x${OPENSSL_DIR}" != "x"; then
25541 OPENSSL_LIB
="${pbxlibdir} ${OPENSSL_LIB}"
25542 OPENSSL_INCLUDE
="-I${OPENSSL_DIR}/include"
25543 if test "xopenssl/ssl.h" != "x" ; then
25544 as_ac_Header
=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
25545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25546 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25547 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25548 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 ac_res
=`eval echo '${'$as_ac_Header'}'`
25552 { echo "$as_me:$LINENO: result: $ac_res" >&5
25553 echo "${ECHO_T}$ac_res" >&6; }
25555 # Is the header compilable?
25556 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
25557 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
25558 cat >conftest.
$ac_ext <<_ACEOF
25561 cat confdefs.h
>>conftest.
$ac_ext
25562 cat >>conftest.
$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25564 $ac_includes_default
25565 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25567 rm -f conftest.
$ac_objext
25568 if { (ac_try
="$ac_compile"
25569 case "(($ac_try" in
25570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25571 *) ac_try_echo=$ac_try;;
25573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25574 (eval "$ac_compile") 2>conftest.er1
25576 grep -v '^ *+' conftest.er1 >conftest.err
25578 cat conftest.err >&5
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } && {
25581 test -z "$ac_c_werror_flag" ||
25582 test ! -s conftest.err
25583 } && test -s conftest.$ac_objext; then
25584 ac_header_compiler=yes
25586 echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25589 ac_header_compiler=no
25592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25594 echo "${ECHO_T}$ac_header_compiler" >&6; }
25596 # Is the header present?
25597 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
25598 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
25599 cat >conftest.$ac_ext <<_ACEOF
25602 cat confdefs.h >>conftest.$ac_ext
25603 cat >>conftest.$ac_ext <<_ACEOF
25604 /* end confdefs.h. */
25605 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25607 if { (ac_try="$ac_cpp conftest.$ac_ext"
25608 case "(($ac_try" in
25609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25610 *) ac_try_echo
=$ac_try;;
25612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25615 grep -v '^ *+' conftest.er1
>conftest.err
25617 cat conftest.err
>&5
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); } >/dev
/null
&& {
25620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25621 test ! -s conftest.err
25623 ac_header_preproc
=yes
25625 echo "$as_me: failed program was:" >&5
25626 sed 's/^/| /' conftest.
$ac_ext >&5
25628 ac_header_preproc
=no
25631 rm -f conftest.err conftest.
$ac_ext
25632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25633 echo "${ECHO_T}$ac_header_preproc" >&6; }
25635 # So? What about this header?
25636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25638 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25639 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25640 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
25641 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
25642 ac_header_preproc
=yes
25645 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
25646 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
25647 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
25648 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25649 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
25650 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
25651 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25652 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25653 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
25654 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25655 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
25656 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25660 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25661 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25662 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25663 echo $ECHO_N "(cached) $ECHO_C" >&6
25665 eval "$as_ac_Header=\$ac_header_preproc"
25667 ac_res
=`eval echo '${'$as_ac_Header'}'`
25668 { echo "$as_me:$LINENO: result: $ac_res" >&5
25669 echo "${ECHO_T}$ac_res" >&6; }
25672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25673 OPENSSL_HEADER_FOUND
=1
25675 OPENSSL_HEADER_FOUND
=0
25681 if test "xopenssl/ssl.h" != "x" ; then
25682 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25683 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25684 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25685 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25686 echo $ECHO_N "(cached) $ECHO_C" >&6
25688 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25689 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25691 # Is the header compilable?
25692 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
25693 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
25694 cat >conftest.
$ac_ext <<_ACEOF
25697 cat confdefs.h
>>conftest.
$ac_ext
25698 cat >>conftest.
$ac_ext <<_ACEOF
25699 /* end confdefs.h. */
25700 $ac_includes_default
25701 #include <openssl/ssl.h>
25703 rm -f conftest.
$ac_objext
25704 if { (ac_try
="$ac_compile"
25705 case "(($ac_try" in
25706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25707 *) ac_try_echo=$ac_try;;
25709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25710 (eval "$ac_compile") 2>conftest.er1
25712 grep -v '^ *+' conftest.er1 >conftest.err
25714 cat conftest.err >&5
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } && {
25717 test -z "$ac_c_werror_flag" ||
25718 test ! -s conftest.err
25719 } && test -s conftest.$ac_objext; then
25720 ac_header_compiler=yes
25722 echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25725 ac_header_compiler=no
25728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25730 echo "${ECHO_T}$ac_header_compiler" >&6; }
25732 # Is the header present?
25733 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
25734 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
25735 cat >conftest.$ac_ext <<_ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25741 #include <openssl/ssl.h>
25743 if { (ac_try="$ac_cpp conftest.$ac_ext"
25744 case "(($ac_try" in
25745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25746 *) ac_try_echo
=$ac_try;;
25748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25751 grep -v '^ *+' conftest.er1
>conftest.err
25753 cat conftest.err
>&5
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); } >/dev
/null
&& {
25756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25757 test ! -s conftest.err
25759 ac_header_preproc
=yes
25761 echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.
$ac_ext >&5
25764 ac_header_preproc
=no
25767 rm -f conftest.err conftest.
$ac_ext
25768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 echo "${ECHO_T}$ac_header_preproc" >&6; }
25771 # So? What about this header?
25772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25774 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25775 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
25777 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
25778 ac_header_preproc
=yes
25781 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
25782 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
25783 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
25784 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25785 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
25786 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
25787 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25788 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
25790 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
25792 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25796 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25797 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25798 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25799 echo $ECHO_N "(cached) $ECHO_C" >&6
25801 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
25803 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25804 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25807 if test $ac_cv_header_openssl_ssl_h = yes; then
25808 OPENSSL_HEADER_FOUND
=1
25810 OPENSSL_HEADER_FOUND
=0
25816 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
25817 if test ! -z "${OPENSSL_MANDATORY}" ;
25819 { echo "$as_me:$LINENO: ***" >&5
25820 echo "$as_me: ***" >&6;}
25821 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
25822 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
25823 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
25824 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
25825 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25826 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25835 cat >>confdefs.h
<<_ACEOF
25836 #define HAVE_OPENSSL 1
25840 elif test ! -z "${OPENSSL_MANDATORY}";
25842 { echo "$as_me:$LINENO: ***" >&5
25843 echo "$as_me: ***" >&6;}
25844 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
25845 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
25846 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25847 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25848 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25849 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25856 if test "${USE_FREETDS}" != "no"; then
25858 if test "x${FREETDS_DIR}" != "x"; then
25859 if test -d ${FREETDS_DIR}/lib
; then
25860 pbxlibdir
="-L${FREETDS_DIR}/lib"
25862 pbxlibdir
="-L${FREETDS_DIR}"
25865 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
25866 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
25867 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
25868 echo $ECHO_N "(cached) $ECHO_C" >&6
25870 ac_check_lib_save_LIBS
=$LIBS
25871 LIBS
="-ltds ${pbxlibdir} $LIBS"
25872 cat >conftest.
$ac_ext <<_ACEOF
25875 cat confdefs.h
>>conftest.
$ac_ext
25876 cat >>conftest.
$ac_ext <<_ACEOF
25877 /* end confdefs.h. */
25879 /* Override any GCC internal prototype to avoid an error.
25880 Use char because int might match the return type of a GCC
25881 builtin and then its argument prototype would still apply. */
25885 char tds_version ();
25889 return tds_version ();
25894 rm -f conftest.
$ac_objext conftest
$ac_exeext
25895 if { (ac_try
="$ac_link"
25896 case "(($ac_try" in
25897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25898 *) ac_try_echo=$ac_try;;
25900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25901 (eval "$ac_link") 2>conftest.er1
25903 grep -v '^ *+' conftest.er1 >conftest.err
25905 cat conftest.err >&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); } && {
25908 test -z "$ac_c_werror_flag" ||
25909 test ! -s conftest.err
25910 } && test -s conftest$ac_exeext &&
25911 $as_test_x conftest$ac_exeext; then
25912 ac_cv_lib_tds_tds_version=yes
25914 echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25917 ac_cv_lib_tds_tds_version=no
25920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25921 conftest$ac_exeext conftest.$ac_ext
25922 LIBS=$ac_check_lib_save_LIBS
25924 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
25925 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
25926 if test $ac_cv_lib_tds_tds_version = yes; then
25927 AST_FREETDS_FOUND=yes
25929 AST_FREETDS_FOUND=no
25933 if test "${AST_FREETDS_FOUND}" = "yes"; then
25934 FREETDS_LIB="-ltds "
25935 FREETDS_HEADER_FOUND="1"
25936 if test "x${FREETDS_DIR}" != "x"; then
25937 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
25938 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
25939 if test "xtds.h" != "x" ; then
25940 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" |
$as_tr_sh`
25941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25942 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
25943 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
25944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25945 echo $ECHO_N "(cached) $ECHO_C" >&6
25947 ac_res=`eval echo '${'$as_ac_Header'}'`
25948 { echo "$as_me:$LINENO: result: $ac_res" >&5
25949 echo "${ECHO_T}$ac_res" >&6; }
25951 # Is the header compilable?
25952 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
25953 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
25954 cat >conftest.$ac_ext <<_ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 $ac_includes_default
25961 #include <${FREETDS_DIR}/include/tds.h>
25963 rm -f conftest.$ac_objext
25964 if { (ac_try="$ac_compile"
25965 case "(($ac_try" in
25966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25967 *) ac_try_echo
=$ac_try;;
25969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970 (eval "$ac_compile") 2>conftest.er1
25972 grep -v '^ *+' conftest.er1
>conftest.err
25974 cat conftest.err
>&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } && {
25977 test -z "$ac_c_werror_flag" ||
25978 test ! -s conftest.err
25979 } && test -s conftest.
$ac_objext; then
25980 ac_header_compiler
=yes
25982 echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.
$ac_ext >&5
25985 ac_header_compiler
=no
25988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25990 echo "${ECHO_T}$ac_header_compiler" >&6; }
25992 # Is the header present?
25993 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
25994 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
25995 cat >conftest.
$ac_ext <<_ACEOF
25998 cat confdefs.h
>>conftest.
$ac_ext
25999 cat >>conftest.
$ac_ext <<_ACEOF
26000 /* end confdefs.h. */
26001 #include <${FREETDS_DIR}/include/tds.h>
26003 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26004 case "(($ac_try" in
26005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26006 *) ac_try_echo=$ac_try;;
26008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26011 grep -v '^ *+' conftest.er1 >conftest.err
26013 cat conftest.err >&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } >/dev/null && {
26016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26017 test ! -s conftest.err
26019 ac_header_preproc=yes
26021 echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26024 ac_header_preproc=no
26027 rm -f conftest.err conftest.$ac_ext
26028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26029 echo "${ECHO_T}$ac_header_preproc" >&6; }
26031 # So? What about this header?
26032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26034 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26035 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26036 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
26037 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
26038 ac_header_preproc=yes
26041 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
26042 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
26043 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
26044 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
26046 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
26047 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
26048 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
26050 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
26051 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
26052 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
26056 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
26057 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
26058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26059 echo $ECHO_N "(cached) $ECHO_C" >&6
26061 eval "$as_ac_Header=\$ac_header_preproc"
26063 ac_res=`eval echo '${'$as_ac_Header'}'`
26064 { echo "$as_me:$LINENO: result: $ac_res" >&5
26065 echo "${ECHO_T}$ac_res" >&6; }
26068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26069 FREETDS_HEADER_FOUND=1
26071 FREETDS_HEADER_FOUND=0
26077 if test "xtds.h" != "x" ; then
26078 if test "${ac_cv_header_tds_h+set}" = set; then
26079 { echo "$as_me:$LINENO: checking for tds.h" >&5
26080 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26081 if test "${ac_cv_header_tds_h+set}" = set; then
26082 echo $ECHO_N "(cached) $ECHO_C" >&6
26084 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26085 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26087 # Is the header compilable?
26088 { echo "$as_me:$LINENO: checking tds.h usability" >&5
26089 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
26090 cat >conftest.$ac_ext <<_ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h. */
26096 $ac_includes_default
26099 rm -f conftest.$ac_objext
26100 if { (ac_try="$ac_compile"
26101 case "(($ac_try" in
26102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26103 *) ac_try_echo
=$ac_try;;
26105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26106 (eval "$ac_compile") 2>conftest.er1
26108 grep -v '^ *+' conftest.er1
>conftest.err
26110 cat conftest.err
>&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } && {
26113 test -z "$ac_c_werror_flag" ||
26114 test ! -s conftest.err
26115 } && test -s conftest.
$ac_objext; then
26116 ac_header_compiler
=yes
26118 echo "$as_me: failed program was:" >&5
26119 sed 's/^/| /' conftest.
$ac_ext >&5
26121 ac_header_compiler
=no
26124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26126 echo "${ECHO_T}$ac_header_compiler" >&6; }
26128 # Is the header present?
26129 { echo "$as_me:$LINENO: checking tds.h presence" >&5
26130 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
26131 cat >conftest.
$ac_ext <<_ACEOF
26134 cat confdefs.h
>>conftest.
$ac_ext
26135 cat >>conftest.
$ac_ext <<_ACEOF
26136 /* end confdefs.h. */
26139 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26140 case "(($ac_try" in
26141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26142 *) ac_try_echo=$ac_try;;
26144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26147 grep -v '^ *+' conftest.er1 >conftest.err
26149 cat conftest.err >&5
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); } >/dev/null && {
26152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26153 test ! -s conftest.err
26155 ac_header_preproc=yes
26157 echo "$as_me: failed program was:" >&5
26158 sed 's/^/| /' conftest.$ac_ext >&5
26160 ac_header_preproc=no
26163 rm -f conftest.err conftest.$ac_ext
26164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26165 echo "${ECHO_T}$ac_header_preproc" >&6; }
26167 # So? What about this header?
26168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26170 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26171 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26172 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
26173 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
26174 ac_header_preproc=yes
26177 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
26178 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
26179 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
26180 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
26181 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
26182 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
26183 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
26184 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26185 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
26186 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
26187 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
26188 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
26192 { echo "$as_me:$LINENO: checking for tds.h" >&5
26193 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26194 if test "${ac_cv_header_tds_h+set}" = set; then
26195 echo $ECHO_N "(cached) $ECHO_C" >&6
26197 ac_cv_header_tds_h=$ac_header_preproc
26199 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26200 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26203 if test $ac_cv_header_tds_h = yes; then
26204 FREETDS_HEADER_FOUND=1
26206 FREETDS_HEADER_FOUND=0
26212 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
26213 if test ! -z "${FREETDS_MANDATORY}" ;
26215 { echo "$as_me:$LINENO: ***" >&5
26216 echo "$as_me: ***" >&6;}
26217 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
26218 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
26219 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
26220 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
26221 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26222 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26231 cat >>confdefs.h <<_ACEOF
26232 #define HAVE_FREETDS 1
26236 elif test ! -z "${FREETDS_MANDATORY}";
26238 { echo "$as_me:$LINENO: ***" >&5
26239 echo "$as_me: ***" >&6;}
26240 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
26241 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
26242 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26243 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26244 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26245 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26250 if test "${PBX_FREETDS}" != "0";
26252 case `grep TDS_VERSION_NO
${FREETDS_DIR:-/usr/include}/tdsver.h
` in
26254 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
26257 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
26260 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
26263 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
26269 if test "${USE_TERMCAP}" != "no"; then
26271 if test "x${TERMCAP_DIR}" != "x"; then
26272 if test -d ${TERMCAP_DIR}/lib; then
26273 pbxlibdir="-L${TERMCAP_DIR}/lib"
26275 pbxlibdir="-L${TERMCAP_DIR}"
26278 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26279 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
26280 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26281 echo $ECHO_N "(cached) $ECHO_C" >&6
26283 ac_check_lib_save_LIBS=$LIBS
26284 LIBS="-ltermcap ${pbxlibdir} $LIBS"
26285 cat >conftest.$ac_ext <<_ACEOF
26288 cat confdefs.h >>conftest.$ac_ext
26289 cat >>conftest.$ac_ext <<_ACEOF
26290 /* end confdefs.h. */
26292 /* Override any GCC internal prototype to avoid an error.
26293 Use char because int might match the return type of a GCC
26294 builtin and then its argument prototype would still apply. */
26307 rm -f conftest.$ac_objext conftest$ac_exeext
26308 if { (ac_try="$ac_link"
26309 case "(($ac_try" in
26310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26311 *) ac_try_echo
=$ac_try;;
26313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314 (eval "$ac_link") 2>conftest.er1
26316 grep -v '^ *+' conftest.er1
>conftest.err
26318 cat conftest.err
>&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } && {
26321 test -z "$ac_c_werror_flag" ||
26322 test ! -s conftest.err
26323 } && test -s conftest
$ac_exeext &&
26324 $as_test_x conftest
$ac_exeext; then
26325 ac_cv_lib_termcap_tgetent
=yes
26327 echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.
$ac_ext >&5
26330 ac_cv_lib_termcap_tgetent
=no
26333 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26334 conftest
$ac_exeext conftest.
$ac_ext
26335 LIBS
=$ac_check_lib_save_LIBS
26337 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26338 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
26339 if test $ac_cv_lib_termcap_tgetent = yes; then
26340 AST_TERMCAP_FOUND
=yes
26342 AST_TERMCAP_FOUND
=no
26346 if test "${AST_TERMCAP_FOUND}" = "yes"; then
26347 TERMCAP_LIB
="-ltermcap "
26348 TERMCAP_HEADER_FOUND
="1"
26349 if test "x${TERMCAP_DIR}" != "x"; then
26350 TERMCAP_LIB
="${pbxlibdir} ${TERMCAP_LIB}"
26351 TERMCAP_INCLUDE
="-I${TERMCAP_DIR}/include"
26352 if test "x" != "x" ; then
26353 as_ac_Header
=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
26354 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26355 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26356 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26357 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26360 ac_res
=`eval echo '${'$as_ac_Header'}'`
26361 { echo "$as_me:$LINENO: result: $ac_res" >&5
26362 echo "${ECHO_T}$ac_res" >&6; }
26364 # Is the header compilable?
26365 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
26366 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
26367 cat >conftest.
$ac_ext <<_ACEOF
26370 cat confdefs.h
>>conftest.
$ac_ext
26371 cat >>conftest.
$ac_ext <<_ACEOF
26372 /* end confdefs.h. */
26373 $ac_includes_default
26374 #include <${TERMCAP_DIR}/include/>
26376 rm -f conftest.
$ac_objext
26377 if { (ac_try
="$ac_compile"
26378 case "(($ac_try" in
26379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26380 *) ac_try_echo=$ac_try;;
26382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26383 (eval "$ac_compile") 2>conftest.er1
26385 grep -v '^ *+' conftest.er1 >conftest.err
26387 cat conftest.err >&5
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); } && {
26390 test -z "$ac_c_werror_flag" ||
26391 test ! -s conftest.err
26392 } && test -s conftest.$ac_objext; then
26393 ac_header_compiler=yes
26395 echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26398 ac_header_compiler=no
26401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26403 echo "${ECHO_T}$ac_header_compiler" >&6; }
26405 # Is the header present?
26406 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
26407 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
26408 cat >conftest.$ac_ext <<_ACEOF
26411 cat confdefs.h >>conftest.$ac_ext
26412 cat >>conftest.$ac_ext <<_ACEOF
26413 /* end confdefs.h. */
26414 #include <${TERMCAP_DIR}/include/>
26416 if { (ac_try="$ac_cpp conftest.$ac_ext"
26417 case "(($ac_try" in
26418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26419 *) ac_try_echo
=$ac_try;;
26421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26424 grep -v '^ *+' conftest.er1
>conftest.err
26426 cat conftest.err
>&5
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); } >/dev
/null
&& {
26429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26430 test ! -s conftest.err
26432 ac_header_preproc
=yes
26434 echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.
$ac_ext >&5
26437 ac_header_preproc
=no
26440 rm -f conftest.err conftest.
$ac_ext
26441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26442 echo "${ECHO_T}$ac_header_preproc" >&6; }
26444 # So? What about this header?
26445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26447 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26448 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26449 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
26450 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
26451 ac_header_preproc
=yes
26454 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
26455 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
26456 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
26457 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
26458 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
26459 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
26460 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26461 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
26463 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26464 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
26465 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26469 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26470 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26471 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26472 echo $ECHO_N "(cached) $ECHO_C" >&6
26474 eval "$as_ac_Header=\$ac_header_preproc"
26476 ac_res
=`eval echo '${'$as_ac_Header'}'`
26477 { echo "$as_me:$LINENO: result: $ac_res" >&5
26478 echo "${ECHO_T}$ac_res" >&6; }
26481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26482 TERMCAP_HEADER_FOUND
=1
26484 TERMCAP_HEADER_FOUND
=0
26490 if test "x" != "x" ; then
26491 if test "${ac_cv_header_+set}" = set; then
26492 { echo "$as_me:$LINENO: checking for " >&5
26493 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26494 if test "${ac_cv_header_+set}" = set; then
26495 echo $ECHO_N "(cached) $ECHO_C" >&6
26497 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26498 echo "${ECHO_T}$ac_cv_header_" >&6; }
26500 # Is the header compilable?
26501 { echo "$as_me:$LINENO: checking usability" >&5
26502 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26503 cat >conftest.
$ac_ext <<_ACEOF
26506 cat confdefs.h
>>conftest.
$ac_ext
26507 cat >>conftest.
$ac_ext <<_ACEOF
26508 /* end confdefs.h. */
26509 $ac_includes_default
26512 rm -f conftest.
$ac_objext
26513 if { (ac_try
="$ac_compile"
26514 case "(($ac_try" in
26515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26516 *) ac_try_echo=$ac_try;;
26518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26519 (eval "$ac_compile") 2>conftest.er1
26521 grep -v '^ *+' conftest.er1 >conftest.err
26523 cat conftest.err >&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } && {
26526 test -z "$ac_c_werror_flag" ||
26527 test ! -s conftest.err
26528 } && test -s conftest.$ac_objext; then
26529 ac_header_compiler=yes
26531 echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26534 ac_header_compiler=no
26537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26539 echo "${ECHO_T}$ac_header_compiler" >&6; }
26541 # Is the header present?
26542 { echo "$as_me:$LINENO: checking presence" >&5
26543 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26544 cat >conftest.$ac_ext <<_ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h. */
26552 if { (ac_try="$ac_cpp conftest.$ac_ext"
26553 case "(($ac_try" in
26554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26555 *) ac_try_echo
=$ac_try;;
26557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26560 grep -v '^ *+' conftest.er1
>conftest.err
26562 cat conftest.err
>&5
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); } >/dev
/null
&& {
26565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26566 test ! -s conftest.err
26568 ac_header_preproc
=yes
26570 echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.
$ac_ext >&5
26573 ac_header_preproc
=no
26576 rm -f conftest.err conftest.
$ac_ext
26577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26578 echo "${ECHO_T}$ac_header_preproc" >&6; }
26580 # So? What about this header?
26581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26583 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26584 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26585 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26586 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26587 ac_header_preproc
=yes
26590 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26591 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26592 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26593 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26594 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26595 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26596 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26597 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26598 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26599 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26600 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26601 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26605 { echo "$as_me:$LINENO: checking for " >&5
26606 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26607 if test "${ac_cv_header_+set}" = set; then
26608 echo $ECHO_N "(cached) $ECHO_C" >&6
26610 ac_cv_header_
=$ac_header_preproc
26612 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26613 echo "${ECHO_T}$ac_cv_header_" >&6; }
26616 if test $ac_cv_header_ = yes; then
26617 TERMCAP_HEADER_FOUND
=1
26619 TERMCAP_HEADER_FOUND
=0
26625 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
26626 if test ! -z "${TERMCAP_MANDATORY}" ;
26628 { echo "$as_me:$LINENO: ***" >&5
26629 echo "$as_me: ***" >&6;}
26630 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
26631 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
26632 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
26633 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
26634 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26635 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26644 cat >>confdefs.h
<<_ACEOF
26645 #define HAVE_TERMCAP 1
26649 elif test ! -z "${TERMCAP_MANDATORY}";
26651 { echo "$as_me:$LINENO: ***" >&5
26652 echo "$as_me: ***" >&6;}
26653 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
26654 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
26655 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26656 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26657 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26658 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26665 if test "${USE_TINFO}" != "no"; then
26667 if test "x${TINFO_DIR}" != "x"; then
26668 if test -d ${TINFO_DIR}/lib
; then
26669 pbxlibdir
="-L${TINFO_DIR}/lib"
26671 pbxlibdir
="-L${TINFO_DIR}"
26674 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26675 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
26676 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26677 echo $ECHO_N "(cached) $ECHO_C" >&6
26679 ac_check_lib_save_LIBS
=$LIBS
26680 LIBS
="-ltinfo ${pbxlibdir} $LIBS"
26681 cat >conftest.
$ac_ext <<_ACEOF
26684 cat confdefs.h
>>conftest.
$ac_ext
26685 cat >>conftest.
$ac_ext <<_ACEOF
26686 /* end confdefs.h. */
26688 /* Override any GCC internal prototype to avoid an error.
26689 Use char because int might match the return type of a GCC
26690 builtin and then its argument prototype would still apply. */
26703 rm -f conftest.
$ac_objext conftest
$ac_exeext
26704 if { (ac_try
="$ac_link"
26705 case "(($ac_try" in
26706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26707 *) ac_try_echo=$ac_try;;
26709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26710 (eval "$ac_link") 2>conftest.er1
26712 grep -v '^ *+' conftest.er1 >conftest.err
26714 cat conftest.err >&5
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); } && {
26717 test -z "$ac_c_werror_flag" ||
26718 test ! -s conftest.err
26719 } && test -s conftest$ac_exeext &&
26720 $as_test_x conftest$ac_exeext; then
26721 ac_cv_lib_tinfo_tgetent=yes
26723 echo "$as_me: failed program was:" >&5
26724 sed 's/^/| /' conftest.$ac_ext >&5
26726 ac_cv_lib_tinfo_tgetent=no
26729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26730 conftest$ac_exeext conftest.$ac_ext
26731 LIBS=$ac_check_lib_save_LIBS
26733 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26734 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
26735 if test $ac_cv_lib_tinfo_tgetent = yes; then
26736 AST_TINFO_FOUND=yes
26742 if test "${AST_TINFO_FOUND}" = "yes"; then
26743 TINFO_LIB="-ltinfo "
26744 TINFO_HEADER_FOUND="1"
26745 if test "x${TINFO_DIR}" != "x"; then
26746 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
26747 TINFO_INCLUDE="-I${TINFO_DIR}/include"
26748 if test "x" != "x" ; then
26749 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" |
$as_tr_sh`
26750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26751 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26752 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26754 echo $ECHO_N "(cached) $ECHO_C" >&6
26756 ac_res=`eval echo '${'$as_ac_Header'}'`
26757 { echo "$as_me:$LINENO: result: $ac_res" >&5
26758 echo "${ECHO_T}$ac_res" >&6; }
26760 # Is the header compilable?
26761 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
26762 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
26763 cat >conftest.$ac_ext <<_ACEOF
26766 cat confdefs.h >>conftest.$ac_ext
26767 cat >>conftest.$ac_ext <<_ACEOF
26768 /* end confdefs.h. */
26769 $ac_includes_default
26770 #include <${TINFO_DIR}/include/>
26772 rm -f conftest.$ac_objext
26773 if { (ac_try="$ac_compile"
26774 case "(($ac_try" in
26775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26776 *) ac_try_echo
=$ac_try;;
26778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26779 (eval "$ac_compile") 2>conftest.er1
26781 grep -v '^ *+' conftest.er1
>conftest.err
26783 cat conftest.err
>&5
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } && {
26786 test -z "$ac_c_werror_flag" ||
26787 test ! -s conftest.err
26788 } && test -s conftest.
$ac_objext; then
26789 ac_header_compiler
=yes
26791 echo "$as_me: failed program was:" >&5
26792 sed 's/^/| /' conftest.
$ac_ext >&5
26794 ac_header_compiler
=no
26797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26799 echo "${ECHO_T}$ac_header_compiler" >&6; }
26801 # Is the header present?
26802 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
26803 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
26804 cat >conftest.
$ac_ext <<_ACEOF
26807 cat confdefs.h
>>conftest.
$ac_ext
26808 cat >>conftest.
$ac_ext <<_ACEOF
26809 /* end confdefs.h. */
26810 #include <${TINFO_DIR}/include/>
26812 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26813 case "(($ac_try" in
26814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26815 *) ac_try_echo=$ac_try;;
26817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26820 grep -v '^ *+' conftest.er1 >conftest.err
26822 cat conftest.err >&5
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } >/dev/null && {
26825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26826 test ! -s conftest.err
26828 ac_header_preproc=yes
26830 echo "$as_me: failed program was:" >&5
26831 sed 's/^/| /' conftest.$ac_ext >&5
26833 ac_header_preproc=no
26836 rm -f conftest.err conftest.$ac_ext
26837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26838 echo "${ECHO_T}$ac_header_preproc" >&6; }
26840 # So? What about this header?
26841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26843 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26844 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26845 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
26846 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
26847 ac_header_preproc=yes
26850 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
26851 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
26852 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
26853 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
26854 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
26855 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26857 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
26859 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
26861 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26865 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26866 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26868 echo $ECHO_N "(cached) $ECHO_C" >&6
26870 eval "$as_ac_Header=\$ac_header_preproc"
26872 ac_res=`eval echo '${'$as_ac_Header'}'`
26873 { echo "$as_me:$LINENO: result: $ac_res" >&5
26874 echo "${ECHO_T}$ac_res" >&6; }
26877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26878 TINFO_HEADER_FOUND=1
26880 TINFO_HEADER_FOUND=0
26886 if test "x" != "x" ; then
26887 if test "${ac_cv_header_+set}" = set; then
26888 { echo "$as_me:$LINENO: checking for " >&5
26889 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26890 if test "${ac_cv_header_+set}" = set; then
26891 echo $ECHO_N "(cached) $ECHO_C" >&6
26893 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26894 echo "${ECHO_T}$ac_cv_header_" >&6; }
26896 # Is the header compilable?
26897 { echo "$as_me:$LINENO: checking usability" >&5
26898 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26899 cat >conftest.$ac_ext <<_ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h. */
26905 $ac_includes_default
26908 rm -f conftest.$ac_objext
26909 if { (ac_try="$ac_compile"
26910 case "(($ac_try" in
26911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26912 *) ac_try_echo
=$ac_try;;
26914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26915 (eval "$ac_compile") 2>conftest.er1
26917 grep -v '^ *+' conftest.er1
>conftest.err
26919 cat conftest.err
>&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); } && {
26922 test -z "$ac_c_werror_flag" ||
26923 test ! -s conftest.err
26924 } && test -s conftest.
$ac_objext; then
26925 ac_header_compiler
=yes
26927 echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.
$ac_ext >&5
26930 ac_header_compiler
=no
26933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26935 echo "${ECHO_T}$ac_header_compiler" >&6; }
26937 # Is the header present?
26938 { echo "$as_me:$LINENO: checking presence" >&5
26939 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26940 cat >conftest.
$ac_ext <<_ACEOF
26943 cat confdefs.h
>>conftest.
$ac_ext
26944 cat >>conftest.
$ac_ext <<_ACEOF
26945 /* end confdefs.h. */
26948 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26949 case "(($ac_try" in
26950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26951 *) ac_try_echo=$ac_try;;
26953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26956 grep -v '^ *+' conftest.er1 >conftest.err
26958 cat conftest.err >&5
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); } >/dev/null && {
26961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26962 test ! -s conftest.err
26964 ac_header_preproc=yes
26966 echo "$as_me: failed program was:" >&5
26967 sed 's/^/| /' conftest.$ac_ext >&5
26969 ac_header_preproc=no
26972 rm -f conftest.err conftest.$ac_ext
26973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26974 echo "${ECHO_T}$ac_header_preproc" >&6; }
26976 # So? What about this header?
26977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26979 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26980 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26981 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26982 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26983 ac_header_preproc=yes
26986 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26987 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26988 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26989 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26990 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26991 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26992 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26993 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26994 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26995 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26996 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26997 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27001 { echo "$as_me:$LINENO: checking for " >&5
27002 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27003 if test "${ac_cv_header_+set}" = set; then
27004 echo $ECHO_N "(cached) $ECHO_C" >&6
27006 ac_cv_header_=$ac_header_preproc
27008 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27009 echo "${ECHO_T}$ac_cv_header_" >&6; }
27012 if test $ac_cv_header_ = yes; then
27013 TINFO_HEADER_FOUND=1
27015 TINFO_HEADER_FOUND=0
27021 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
27022 if test ! -z "${TINFO_MANDATORY}" ;
27024 { echo "$as_me:$LINENO: ***" >&5
27025 echo "$as_me: ***" >&6;}
27026 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
27027 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
27028 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
27029 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
27030 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27031 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27040 cat >>confdefs.h <<_ACEOF
27041 #define HAVE_TINFO 1
27045 elif test ! -z "${TINFO_MANDATORY}";
27047 { echo "$as_me:$LINENO: ***" >&5
27048 echo "$as_me: ***" >&6;}
27049 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
27050 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
27051 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27052 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27053 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27054 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27060 if test "${host_os}" != "linux-gnu" ; then
27061 tonezone_extra="-lm"
27065 if test "${USE_TONEZONE}" != "no"; then
27067 if test "x${TONEZONE_DIR}" != "x"; then
27068 if test -d ${TONEZONE_DIR}/lib; then
27069 pbxlibdir="-L${TONEZONE_DIR}/lib"
27071 pbxlibdir="-L${TONEZONE_DIR}"
27074 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
27075 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
27076 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
27077 echo $ECHO_N "(cached) $ECHO_C" >&6
27079 ac_check_lib_save_LIBS=$LIBS
27080 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
27081 cat >conftest.$ac_ext <<_ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27088 /* Override any GCC internal prototype to avoid an error.
27089 Use char because int might match the return type of a GCC
27090 builtin and then its argument prototype would still apply. */
27094 char tone_zone_find ();
27098 return tone_zone_find ();
27103 rm -f conftest.$ac_objext conftest$ac_exeext
27104 if { (ac_try="$ac_link"
27105 case "(($ac_try" in
27106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27107 *) ac_try_echo
=$ac_try;;
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_link") 2>conftest.er1
27112 grep -v '^ *+' conftest.er1
>conftest.err
27114 cat conftest.err
>&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } && {
27117 test -z "$ac_c_werror_flag" ||
27118 test ! -s conftest.err
27119 } && test -s conftest
$ac_exeext &&
27120 $as_test_x conftest
$ac_exeext; then
27121 ac_cv_lib_tonezone_tone_zone_find
=yes
27123 echo "$as_me: failed program was:" >&5
27124 sed 's/^/| /' conftest.
$ac_ext >&5
27126 ac_cv_lib_tonezone_tone_zone_find
=no
27129 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27130 conftest
$ac_exeext conftest.
$ac_ext
27131 LIBS
=$ac_check_lib_save_LIBS
27133 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
27134 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
27135 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
27136 AST_TONEZONE_FOUND
=yes
27138 AST_TONEZONE_FOUND
=no
27142 if test "${AST_TONEZONE_FOUND}" = "yes"; then
27143 TONEZONE_LIB
="-ltonezone ${tonezone_extra}"
27144 TONEZONE_HEADER_FOUND
="1"
27145 if test "x${TONEZONE_DIR}" != "x"; then
27146 TONEZONE_LIB
="${pbxlibdir} ${TONEZONE_LIB}"
27147 TONEZONE_INCLUDE
="-I${TONEZONE_DIR}/include"
27148 if test "xzaptel/tonezone.h" != "x" ; then
27149 as_ac_Header
=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
27150 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27151 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27152 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27153 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27154 echo $ECHO_N "(cached) $ECHO_C" >&6
27156 ac_res
=`eval echo '${'$as_ac_Header'}'`
27157 { echo "$as_me:$LINENO: result: $ac_res" >&5
27158 echo "${ECHO_T}$ac_res" >&6; }
27160 # Is the header compilable?
27161 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
27162 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
27163 cat >conftest.
$ac_ext <<_ACEOF
27166 cat confdefs.h
>>conftest.
$ac_ext
27167 cat >>conftest.
$ac_ext <<_ACEOF
27168 /* end confdefs.h. */
27169 $ac_includes_default
27170 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27172 rm -f conftest.
$ac_objext
27173 if { (ac_try
="$ac_compile"
27174 case "(($ac_try" in
27175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27176 *) ac_try_echo=$ac_try;;
27178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179 (eval "$ac_compile") 2>conftest.er1
27181 grep -v '^ *+' conftest.er1 >conftest.err
27183 cat conftest.err >&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } && {
27186 test -z "$ac_c_werror_flag" ||
27187 test ! -s conftest.err
27188 } && test -s conftest.$ac_objext; then
27189 ac_header_compiler=yes
27191 echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27194 ac_header_compiler=no
27197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27199 echo "${ECHO_T}$ac_header_compiler" >&6; }
27201 # Is the header present?
27202 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
27203 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
27204 cat >conftest.$ac_ext <<_ACEOF
27207 cat confdefs.h >>conftest.$ac_ext
27208 cat >>conftest.$ac_ext <<_ACEOF
27209 /* end confdefs.h. */
27210 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27212 if { (ac_try="$ac_cpp conftest.$ac_ext"
27213 case "(($ac_try" in
27214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27215 *) ac_try_echo
=$ac_try;;
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27220 grep -v '^ *+' conftest.er1
>conftest.err
27222 cat conftest.err
>&5
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); } >/dev
/null
&& {
27225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27226 test ! -s conftest.err
27228 ac_header_preproc
=yes
27230 echo "$as_me: failed program was:" >&5
27231 sed 's/^/| /' conftest.
$ac_ext >&5
27233 ac_header_preproc
=no
27236 rm -f conftest.err conftest.
$ac_ext
27237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27238 echo "${ECHO_T}$ac_header_preproc" >&6; }
27240 # So? What about this header?
27241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27243 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27244 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27245 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
27246 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27247 ac_header_preproc
=yes
27250 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
27251 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
27252 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27253 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27254 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
27255 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27256 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27257 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27258 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27259 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27260 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27261 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27265 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27266 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27267 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27268 echo $ECHO_N "(cached) $ECHO_C" >&6
27270 eval "$as_ac_Header=\$ac_header_preproc"
27272 ac_res
=`eval echo '${'$as_ac_Header'}'`
27273 { echo "$as_me:$LINENO: result: $ac_res" >&5
27274 echo "${ECHO_T}$ac_res" >&6; }
27277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27278 TONEZONE_HEADER_FOUND
=1
27280 TONEZONE_HEADER_FOUND
=0
27286 if test "xzaptel/tonezone.h" != "x" ; then
27287 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27288 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27289 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27290 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27291 echo $ECHO_N "(cached) $ECHO_C" >&6
27293 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27294 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27296 # Is the header compilable?
27297 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
27298 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
27299 cat >conftest.
$ac_ext <<_ACEOF
27302 cat confdefs.h
>>conftest.
$ac_ext
27303 cat >>conftest.
$ac_ext <<_ACEOF
27304 /* end confdefs.h. */
27305 $ac_includes_default
27306 #include <zaptel/tonezone.h>
27308 rm -f conftest.
$ac_objext
27309 if { (ac_try
="$ac_compile"
27310 case "(($ac_try" in
27311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27312 *) ac_try_echo=$ac_try;;
27314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27315 (eval "$ac_compile") 2>conftest.er1
27317 grep -v '^ *+' conftest.er1 >conftest.err
27319 cat conftest.err >&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); } && {
27322 test -z "$ac_c_werror_flag" ||
27323 test ! -s conftest.err
27324 } && test -s conftest.$ac_objext; then
27325 ac_header_compiler=yes
27327 echo "$as_me: failed program was:" >&5
27328 sed 's/^/| /' conftest.$ac_ext >&5
27330 ac_header_compiler=no
27333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27335 echo "${ECHO_T}$ac_header_compiler" >&6; }
27337 # Is the header present?
27338 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
27339 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
27340 cat >conftest.$ac_ext <<_ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h. */
27346 #include <zaptel/tonezone.h>
27348 if { (ac_try="$ac_cpp conftest.$ac_ext"
27349 case "(($ac_try" in
27350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27351 *) ac_try_echo
=$ac_try;;
27353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27356 grep -v '^ *+' conftest.er1
>conftest.err
27358 cat conftest.err
>&5
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); } >/dev
/null
&& {
27361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27362 test ! -s conftest.err
27364 ac_header_preproc
=yes
27366 echo "$as_me: failed program was:" >&5
27367 sed 's/^/| /' conftest.
$ac_ext >&5
27369 ac_header_preproc
=no
27372 rm -f conftest.err conftest.
$ac_ext
27373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27374 echo "${ECHO_T}$ac_header_preproc" >&6; }
27376 # So? What about this header?
27377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27379 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27380 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27381 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
27382 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27383 ac_header_preproc
=yes
27386 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
27387 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
27388 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27389 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27390 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
27391 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27392 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27393 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27394 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27395 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27396 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27397 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27401 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27402 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27403 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27406 ac_cv_header_zaptel_tonezone_h
=$ac_header_preproc
27408 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27409 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27412 if test $ac_cv_header_zaptel_tonezone_h = yes; then
27413 TONEZONE_HEADER_FOUND
=1
27415 TONEZONE_HEADER_FOUND
=0
27421 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
27422 if test ! -z "${TONEZONE_MANDATORY}" ;
27424 { echo "$as_me:$LINENO: ***" >&5
27425 echo "$as_me: ***" >&6;}
27426 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
27427 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
27428 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
27429 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
27430 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27431 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27435 TONEZONE_INCLUDE
=""
27440 cat >>confdefs.h
<<_ACEOF
27441 #define HAVE_TONEZONE 1
27445 elif test ! -z "${TONEZONE_MANDATORY}";
27447 { echo "$as_me:$LINENO: ***" >&5
27448 echo "$as_me: ***" >&6;}
27449 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
27450 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
27451 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27452 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27453 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27454 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27461 if test "${USE_VORBIS}" != "no"; then
27463 if test "x${VORBIS_DIR}" != "x"; then
27464 if test -d ${VORBIS_DIR}/lib
; then
27465 pbxlibdir
="-L${VORBIS_DIR}/lib"
27467 pbxlibdir
="-L${VORBIS_DIR}"
27470 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
27471 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
27472 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27475 ac_check_lib_save_LIBS
=$LIBS
27476 LIBS
="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
27477 cat >conftest.
$ac_ext <<_ACEOF
27480 cat confdefs.h
>>conftest.
$ac_ext
27481 cat >>conftest.
$ac_ext <<_ACEOF
27482 /* end confdefs.h. */
27484 /* Override any GCC internal prototype to avoid an error.
27485 Use char because int might match the return type of a GCC
27486 builtin and then its argument prototype would still apply. */
27490 char vorbis_info_init ();
27494 return vorbis_info_init ();
27499 rm -f conftest.
$ac_objext conftest
$ac_exeext
27500 if { (ac_try
="$ac_link"
27501 case "(($ac_try" in
27502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27503 *) ac_try_echo=$ac_try;;
27505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27506 (eval "$ac_link") 2>conftest.er1
27508 grep -v '^ *+' conftest.er1 >conftest.err
27510 cat conftest.err >&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } && {
27513 test -z "$ac_c_werror_flag" ||
27514 test ! -s conftest.err
27515 } && test -s conftest$ac_exeext &&
27516 $as_test_x conftest$ac_exeext; then
27517 ac_cv_lib_vorbis_vorbis_info_init=yes
27519 echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27522 ac_cv_lib_vorbis_vorbis_info_init=no
27525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27526 conftest$ac_exeext conftest.$ac_ext
27527 LIBS=$ac_check_lib_save_LIBS
27529 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
27530 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
27531 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
27532 AST_VORBIS_FOUND=yes
27534 AST_VORBIS_FOUND=no
27538 if test "${AST_VORBIS_FOUND}" = "yes"; then
27539 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
27540 VORBIS_HEADER_FOUND="1"
27541 if test "x${VORBIS_DIR}" != "x"; then
27542 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
27543 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
27544 if test "xvorbis/codec.h" != "x" ; then
27545 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" |
$as_tr_sh`
27546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27547 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27548 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27550 echo $ECHO_N "(cached) $ECHO_C" >&6
27552 ac_res=`eval echo '${'$as_ac_Header'}'`
27553 { echo "$as_me:$LINENO: result: $ac_res" >&5
27554 echo "${ECHO_T}$ac_res" >&6; }
27556 # Is the header compilable?
27557 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
27558 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
27559 cat >conftest.$ac_ext <<_ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h. */
27565 $ac_includes_default
27566 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27568 rm -f conftest.$ac_objext
27569 if { (ac_try="$ac_compile"
27570 case "(($ac_try" in
27571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27572 *) ac_try_echo
=$ac_try;;
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_compile") 2>conftest.er1
27577 grep -v '^ *+' conftest.er1
>conftest.err
27579 cat conftest.err
>&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } && {
27582 test -z "$ac_c_werror_flag" ||
27583 test ! -s conftest.err
27584 } && test -s conftest.
$ac_objext; then
27585 ac_header_compiler
=yes
27587 echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.
$ac_ext >&5
27590 ac_header_compiler
=no
27593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27595 echo "${ECHO_T}$ac_header_compiler" >&6; }
27597 # Is the header present?
27598 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
27599 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
27600 cat >conftest.
$ac_ext <<_ACEOF
27603 cat confdefs.h
>>conftest.
$ac_ext
27604 cat >>conftest.
$ac_ext <<_ACEOF
27605 /* end confdefs.h. */
27606 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27608 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27609 case "(($ac_try" in
27610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27611 *) ac_try_echo=$ac_try;;
27613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27616 grep -v '^ *+' conftest.er1 >conftest.err
27618 cat conftest.err >&5
27619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620 (exit $ac_status); } >/dev/null && {
27621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27622 test ! -s conftest.err
27624 ac_header_preproc=yes
27626 echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27629 ac_header_preproc=no
27632 rm -f conftest.err conftest.$ac_ext
27633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27634 echo "${ECHO_T}$ac_header_preproc" >&6; }
27636 # So? What about this header?
27637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27639 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27640 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27641 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
27642 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
27643 ac_header_preproc=yes
27646 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
27647 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
27648 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
27649 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27650 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
27651 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
27652 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27653 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27654 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
27655 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27656 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
27657 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27661 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27662 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27664 echo $ECHO_N "(cached) $ECHO_C" >&6
27666 eval "$as_ac_Header=\$ac_header_preproc"
27668 ac_res=`eval echo '${'$as_ac_Header'}'`
27669 { echo "$as_me:$LINENO: result: $ac_res" >&5
27670 echo "${ECHO_T}$ac_res" >&6; }
27673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27674 VORBIS_HEADER_FOUND=1
27676 VORBIS_HEADER_FOUND=0
27682 if test "xvorbis/codec.h" != "x" ; then
27683 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27684 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27685 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27686 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27689 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27690 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27692 # Is the header compilable?
27693 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
27694 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
27695 cat >conftest.$ac_ext <<_ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27701 $ac_includes_default
27702 #include <vorbis/codec.h>
27704 rm -f conftest.$ac_objext
27705 if { (ac_try="$ac_compile"
27706 case "(($ac_try" in
27707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27708 *) ac_try_echo
=$ac_try;;
27710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711 (eval "$ac_compile") 2>conftest.er1
27713 grep -v '^ *+' conftest.er1
>conftest.err
27715 cat conftest.err
>&5
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); } && {
27718 test -z "$ac_c_werror_flag" ||
27719 test ! -s conftest.err
27720 } && test -s conftest.
$ac_objext; then
27721 ac_header_compiler
=yes
27723 echo "$as_me: failed program was:" >&5
27724 sed 's/^/| /' conftest.
$ac_ext >&5
27726 ac_header_compiler
=no
27729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27731 echo "${ECHO_T}$ac_header_compiler" >&6; }
27733 # Is the header present?
27734 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
27735 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
27736 cat >conftest.
$ac_ext <<_ACEOF
27739 cat confdefs.h
>>conftest.
$ac_ext
27740 cat >>conftest.
$ac_ext <<_ACEOF
27741 /* end confdefs.h. */
27742 #include <vorbis/codec.h>
27744 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27745 case "(($ac_try" in
27746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27747 *) ac_try_echo=$ac_try;;
27749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27752 grep -v '^ *+' conftest.er1 >conftest.err
27754 cat conftest.err >&5
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); } >/dev/null && {
27757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27758 test ! -s conftest.err
27760 ac_header_preproc=yes
27762 echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27765 ac_header_preproc=no
27768 rm -f conftest.err conftest.$ac_ext
27769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27770 echo "${ECHO_T}$ac_header_preproc" >&6; }
27772 # So? What about this header?
27773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27775 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27776 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27777 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
27778 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
27779 ac_header_preproc=yes
27782 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
27783 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
27784 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
27785 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27786 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
27787 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
27788 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27789 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27790 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
27791 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27792 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
27793 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27797 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27798 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27799 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27800 echo $ECHO_N "(cached) $ECHO_C" >&6
27802 ac_cv_header_vorbis_codec_h=$ac_header_preproc
27804 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27805 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27808 if test $ac_cv_header_vorbis_codec_h = yes; then
27809 VORBIS_HEADER_FOUND=1
27811 VORBIS_HEADER_FOUND=0
27817 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
27818 if test ! -z "${VORBIS_MANDATORY}" ;
27820 { echo "$as_me:$LINENO: ***" >&5
27821 echo "$as_me: ***" >&6;}
27822 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
27823 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
27824 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
27825 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
27826 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27827 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27836 cat >>confdefs.h <<_ACEOF
27837 #define HAVE_VORBIS 1
27841 elif test ! -z "${VORBIS_MANDATORY}";
27843 { echo "$as_me:$LINENO: ***" >&5
27844 echo "$as_me: ***" >&6;}
27845 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
27846 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
27847 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27848 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27849 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27850 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27857 ac_cpp='$CXXCPP $CPPFLAGS'
27858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27863 if test "${USE_VPB}" != "no"; then
27864 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
27865 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
27866 saved_libs="${LIBS}"
27867 saved_cppflags="${CPPFLAGS}"
27868 if test "x${VPB_DIR}" != "x"; then
27869 if test -d ${VPB_DIR}/lib; then
27870 vpblibdir=${VPB_DIR}/lib
27872 vpblibdir=${VPB_DIR}
27874 LIBS="${LIBS} -L${vpblibdir}"
27875 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
27877 LIBS="${LIBS} -lvpb -lpthread"
27878 cat >conftest.$ac_ext <<_ACEOF
27882 cat confdefs.h >>conftest.$ac_ext
27883 cat >>conftest.$ac_ext <<_ACEOF
27884 /* end confdefs.h. */
27885 #include <vpbapi.h>
27889 int q = vpb_open(0,0);
27895 rm -f conftest.$ac_objext conftest$ac_exeext
27896 if { (ac_try="$ac_link"
27897 case "(($ac_try" in
27898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27899 *) ac_try_echo
=$ac_try;;
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_link") 2>conftest.er1
27904 grep -v '^ *+' conftest.er1
>conftest.err
27906 cat conftest.err
>&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } && {
27909 test -z "$ac_cxx_werror_flag" ||
27910 test ! -s conftest.err
27911 } && test -s conftest
$ac_exeext &&
27912 $as_test_x conftest
$ac_exeext; then
27913 { echo "$as_me:$LINENO: result: yes" >&5
27914 echo "${ECHO_T}yes" >&6; }
27915 ac_cv_lib_vpb_vpb_open
="yes"
27918 echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.
$ac_ext >&5
27921 { echo "$as_me:$LINENO: result: no" >&5
27922 echo "${ECHO_T}no" >&6; }
27923 ac_cv_lib_vpb_vpb_open
="no"
27928 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27929 conftest
$ac_exeext conftest.
$ac_ext
27930 LIBS
="${saved_libs}"
27931 CPPFLAGS
="${saved_cppflags}"
27932 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
27934 if test "${VPB_DIR}" != ""; then
27935 VPB_LIB
="-L${vpblibdir} ${VPB_LIB}"
27936 VPB_INCLUDE
="-I${VPB_DIR}/include"
27940 cat >>confdefs.h
<<\_ACEOF
27944 elif test ! -z "${VPB_MANDATORY}"; then
27945 { echo "$as_me:$LINENO: ***" >&5
27946 echo "$as_me: ***" >&6;}
27947 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
27948 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
27949 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27950 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27951 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
27952 echo "$as_me: *** including --without-vpb." >&6;}
27958 ac_cpp
='$CPP $CPPFLAGS'
27959 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27960 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27961 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27965 if test "${USE_ZLIB}" != "no"; then
27967 if test "x${ZLIB_DIR}" != "x"; then
27968 if test -d ${ZLIB_DIR}/lib
; then
27969 pbxlibdir
="-L${ZLIB_DIR}/lib"
27971 pbxlibdir
="-L${ZLIB_DIR}"
27974 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
27975 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
27976 if test "${ac_cv_lib_z_compress+set}" = set; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27979 ac_check_lib_save_LIBS
=$LIBS
27980 LIBS
="-lz ${pbxlibdir} $LIBS"
27981 cat >conftest.
$ac_ext <<_ACEOF
27984 cat confdefs.h
>>conftest.
$ac_ext
27985 cat >>conftest.
$ac_ext <<_ACEOF
27986 /* end confdefs.h. */
27988 /* Override any GCC internal prototype to avoid an error.
27989 Use char because int might match the return type of a GCC
27990 builtin and then its argument prototype would still apply. */
27998 return compress ();
28003 rm -f conftest.
$ac_objext conftest
$ac_exeext
28004 if { (ac_try
="$ac_link"
28005 case "(($ac_try" in
28006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28007 *) ac_try_echo=$ac_try;;
28009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28010 (eval "$ac_link") 2>conftest.er1
28012 grep -v '^ *+' conftest.er1 >conftest.err
28014 cat conftest.err >&5
28015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016 (exit $ac_status); } && {
28017 test -z "$ac_c_werror_flag" ||
28018 test ! -s conftest.err
28019 } && test -s conftest$ac_exeext &&
28020 $as_test_x conftest$ac_exeext; then
28021 ac_cv_lib_z_compress=yes
28023 echo "$as_me: failed program was:" >&5
28024 sed 's/^/| /' conftest.$ac_ext >&5
28026 ac_cv_lib_z_compress=no
28029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28030 conftest$ac_exeext conftest.$ac_ext
28031 LIBS=$ac_check_lib_save_LIBS
28033 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28034 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
28035 if test $ac_cv_lib_z_compress = yes; then
28042 if test "${AST_ZLIB_FOUND}" = "yes"; then
28044 ZLIB_HEADER_FOUND="1"
28045 if test "x${ZLIB_DIR}" != "x"; then
28046 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
28047 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
28048 if test "xzlib.h" != "x" ; then
28049 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" |
$as_tr_sh`
28050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28051 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28052 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28054 echo $ECHO_N "(cached) $ECHO_C" >&6
28056 ac_res=`eval echo '${'$as_ac_Header'}'`
28057 { echo "$as_me:$LINENO: result: $ac_res" >&5
28058 echo "${ECHO_T}$ac_res" >&6; }
28060 # Is the header compilable?
28061 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
28062 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
28063 cat >conftest.$ac_ext <<_ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h. */
28069 $ac_includes_default
28070 #include <${ZLIB_DIR}/include/zlib.h>
28072 rm -f conftest.$ac_objext
28073 if { (ac_try="$ac_compile"
28074 case "(($ac_try" in
28075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28076 *) ac_try_echo
=$ac_try;;
28078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079 (eval "$ac_compile") 2>conftest.er1
28081 grep -v '^ *+' conftest.er1
>conftest.err
28083 cat conftest.err
>&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } && {
28086 test -z "$ac_c_werror_flag" ||
28087 test ! -s conftest.err
28088 } && test -s conftest.
$ac_objext; then
28089 ac_header_compiler
=yes
28091 echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.
$ac_ext >&5
28094 ac_header_compiler
=no
28097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28099 echo "${ECHO_T}$ac_header_compiler" >&6; }
28101 # Is the header present?
28102 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
28103 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
28104 cat >conftest.
$ac_ext <<_ACEOF
28107 cat confdefs.h
>>conftest.
$ac_ext
28108 cat >>conftest.
$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28110 #include <${ZLIB_DIR}/include/zlib.h>
28112 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28113 case "(($ac_try" in
28114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28115 *) ac_try_echo=$ac_try;;
28117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28120 grep -v '^ *+' conftest.er1 >conftest.err
28122 cat conftest.err >&5
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); } >/dev/null && {
28125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28126 test ! -s conftest.err
28128 ac_header_preproc=yes
28130 echo "$as_me: failed program was:" >&5
28131 sed 's/^/| /' conftest.$ac_ext >&5
28133 ac_header_preproc=no
28136 rm -f conftest.err conftest.$ac_ext
28137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28138 echo "${ECHO_T}$ac_header_preproc" >&6; }
28140 # So? What about this header?
28141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28143 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28144 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28145 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
28146 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
28147 ac_header_preproc=yes
28150 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
28151 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
28152 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
28153 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
28154 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
28155 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
28156 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28157 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28158 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
28159 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
28160 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
28161 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
28165 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28166 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28168 echo $ECHO_N "(cached) $ECHO_C" >&6
28170 eval "$as_ac_Header=\$ac_header_preproc"
28172 ac_res=`eval echo '${'$as_ac_Header'}'`
28173 { echo "$as_me:$LINENO: result: $ac_res" >&5
28174 echo "${ECHO_T}$ac_res" >&6; }
28177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28178 ZLIB_HEADER_FOUND=1
28180 ZLIB_HEADER_FOUND=0
28186 if test "xzlib.h" != "x" ; then
28187 if test "${ac_cv_header_zlib_h+set}" = set; then
28188 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28189 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28190 if test "${ac_cv_header_zlib_h+set}" = set; then
28191 echo $ECHO_N "(cached) $ECHO_C" >&6
28193 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28194 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28196 # Is the header compilable?
28197 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28198 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28199 cat >conftest.$ac_ext <<_ACEOF
28202 cat confdefs.h >>conftest.$ac_ext
28203 cat >>conftest.$ac_ext <<_ACEOF
28204 /* end confdefs.h. */
28205 $ac_includes_default
28208 rm -f conftest.$ac_objext
28209 if { (ac_try="$ac_compile"
28210 case "(($ac_try" in
28211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28212 *) ac_try_echo
=$ac_try;;
28214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215 (eval "$ac_compile") 2>conftest.er1
28217 grep -v '^ *+' conftest.er1
>conftest.err
28219 cat conftest.err
>&5
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); } && {
28222 test -z "$ac_c_werror_flag" ||
28223 test ! -s conftest.err
28224 } && test -s conftest.
$ac_objext; then
28225 ac_header_compiler
=yes
28227 echo "$as_me: failed program was:" >&5
28228 sed 's/^/| /' conftest.
$ac_ext >&5
28230 ac_header_compiler
=no
28233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28235 echo "${ECHO_T}$ac_header_compiler" >&6; }
28237 # Is the header present?
28238 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28239 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28240 cat >conftest.
$ac_ext <<_ACEOF
28243 cat confdefs.h
>>conftest.
$ac_ext
28244 cat >>conftest.
$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28248 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28249 case "(($ac_try" in
28250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28256 grep -v '^ *+' conftest.er1 >conftest.err
28258 cat conftest.err >&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } >/dev/null && {
28261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28262 test ! -s conftest.err
28264 ac_header_preproc=yes
28266 echo "$as_me: failed program was:" >&5
28267 sed 's/^/| /' conftest.$ac_ext >&5
28269 ac_header_preproc=no
28272 rm -f conftest.err conftest.$ac_ext
28273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28274 echo "${ECHO_T}$ac_header_preproc" >&6; }
28276 # So? What about this header?
28277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28279 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28280 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28281 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28282 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28283 ac_header_preproc=yes
28286 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28287 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28288 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
28289 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
28290 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28291 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28292 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28293 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28294 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28295 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28296 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28297 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28301 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28302 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28303 if test "${ac_cv_header_zlib_h+set}" = set; then
28304 echo $ECHO_N "(cached) $ECHO_C" >&6
28306 ac_cv_header_zlib_h=$ac_header_preproc
28308 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28309 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28312 if test $ac_cv_header_zlib_h = yes; then
28313 ZLIB_HEADER_FOUND=1
28315 ZLIB_HEADER_FOUND=0
28321 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
28322 if test ! -z "${ZLIB_MANDATORY}" ;
28324 { echo "$as_me:$LINENO: ***" >&5
28325 echo "$as_me: ***" >&6;}
28326 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
28327 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
28328 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
28329 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
28330 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28331 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28340 cat >>confdefs.h <<_ACEOF
28341 #define HAVE_ZLIB 1
28345 elif test ! -z "${ZLIB_MANDATORY}";
28347 { echo "$as_me:$LINENO: ***" >&5
28348 echo "$as_me: ***" >&6;}
28349 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
28350 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
28351 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28352 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28353 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28354 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28360 if test "${USE_ZAPTEL}" != "no"; then
28361 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
28362 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
28363 saved_cppflags="${CPPFLAGS}"
28364 if test "x${ZAPTEL_DIR}" != "x"; then
28365 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28367 cat >conftest.$ac_ext <<_ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h. */
28374 #include <zaptel/zaptel.h>
28378 int foo = ZT_DIAL_OP_CANCEL;
28384 rm -f conftest.$ac_objext
28385 if { (ac_try="$ac_compile"
28386 case "(($ac_try" in
28387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28388 *) ac_try_echo
=$ac_try;;
28390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28391 (eval "$ac_compile") 2>conftest.er1
28393 grep -v '^ *+' conftest.er1
>conftest.err
28395 cat conftest.err
>&5
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); } && {
28398 test -z "$ac_c_werror_flag" ||
28399 test ! -s conftest.err
28400 } && test -s conftest.
$ac_objext; then
28401 { echo "$as_me:$LINENO: result: yes" >&5
28402 echo "${ECHO_T}yes" >&6; }
28403 ac_cv_zaptel_h
="yes"
28406 echo "$as_me: failed program was:" >&5
28407 sed 's/^/| /' conftest.
$ac_ext >&5
28409 { echo "$as_me:$LINENO: result: no" >&5
28410 echo "${ECHO_T}no" >&6; }
28411 ac_cv_zaptel_h
="no"
28416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28417 CPPFLAGS
="${saved_cppflags}"
28418 if test "${ac_cv_zaptel_h}" = "yes"; then
28419 if test "${ZAPTEL_DIR}" != ""; then
28420 ZAPTEL_INCLUDE
="-I${ZAPTEL_DIR}/include"
28424 cat >>confdefs.h
<<\_ACEOF
28425 #define HAVE_ZAPTEL 1
28428 elif test ! -z "${ZAPTEL_MANDATORY}";
28430 { echo "$as_me:$LINENO: ***" >&5
28431 echo "$as_me: ***" >&6;}
28432 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
28433 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
28434 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28435 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28436 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28437 echo "$as_me: *** including --without-zaptel." >&6;}
28442 if test "${PBX_ZAPTEL}" = 1; then
28443 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h" >&5
28444 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h... $ECHO_C" >&6; }
28445 saved_cppflags
="${CPPFLAGS}"
28446 if test "x${ZAPTEL_DIR}" != "x"; then
28447 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28449 cat >conftest.
$ac_ext <<_ACEOF
28453 cat confdefs.h
>>conftest.
$ac_ext
28454 cat >>conftest.
$ac_ext <<_ACEOF
28455 /* end confdefs.h. */
28456 #include <zaptel/zaptel.h>
28460 int foo = ZT_TONE_DTMF_BASE;
28466 rm -f conftest.
$ac_objext
28467 if { (ac_try
="$ac_compile"
28468 case "(($ac_try" in
28469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28470 *) ac_try_echo=$ac_try;;
28472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473 (eval "$ac_compile") 2>conftest.er1
28475 grep -v '^ *+' conftest.er1 >conftest.err
28477 cat conftest.err >&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); } && {
28480 test -z "$ac_c_werror_flag" ||
28481 test ! -s conftest.err
28482 } && test -s conftest.$ac_objext; then
28483 { echo "$as_me:$LINENO: result: yes" >&5
28484 echo "${ECHO_T}yes" >&6; }
28485 ac_cv_zaptel_vldtmf="yes"
28488 echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28491 { echo "$as_me:$LINENO: result: no" >&5
28492 echo "${ECHO_T}no" >&6; }
28493 ac_cv_zaptel_vldtmf="no"
28498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28499 CPPFLAGS="${saved_cppflags}"
28500 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
28501 PBX_ZAPTEL_VLDTMF=1
28503 { echo "$as_me:$LINENO: checking for ZT_TCOP_TRANSCODE in zaptel/zaptel.h" >&5
28504 echo $ECHO_N "checking for ZT_TCOP_TRANSCODE in zaptel/zaptel.h... $ECHO_C" >&6; }
28505 saved_cppflags="${CPPFLAGS}"
28506 if test "x${ZAPTEL_DIR}" != "x"; then
28507 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28509 cat >conftest.$ac_ext <<_ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h. */
28516 #include <zaptel/zaptel.h>
28520 int foo = ZT_TCOP_TRANSCODE;
28526 rm -f conftest.$ac_objext
28527 if { (ac_try="$ac_compile"
28528 case "(($ac_try" in
28529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28530 *) ac_try_echo
=$ac_try;;
28532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533 (eval "$ac_compile") 2>conftest.er1
28535 grep -v '^ *+' conftest.er1
>conftest.err
28537 cat conftest.err
>&5
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); } && {
28540 test -z "$ac_c_werror_flag" ||
28541 test ! -s conftest.err
28542 } && test -s conftest.
$ac_objext; then
28543 { echo "$as_me:$LINENO: result: yes" >&5
28544 echo "${ECHO_T}yes" >&6; }
28545 ac_cv_zaptel_transcode
="yes"
28548 echo "$as_me: failed program was:" >&5
28549 sed 's/^/| /' conftest.
$ac_ext >&5
28551 { echo "$as_me:$LINENO: result: no" >&5
28552 echo "${ECHO_T}no" >&6; }
28553 ac_cv_zaptel_transcode
="no"
28558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28559 CPPFLAGS
="${saved_cppflags}"
28560 if test "${ac_cv_zaptel_transcode}" = "yes"; then
28561 PBX_ZAPTEL_TRANSCODE
=1
28568 if test "x$TERMCAP_LIB" != "x" ; then
28569 EDITLINE_LIB
="$TERMCAP_LIB"
28570 elif test "x$TINFO_LIB" != "x" ; then
28571 EDITLINE_LIB
="$TINFO_LIB"
28572 elif test "x$CURSES_LIB" != "x" ; then
28573 EDITLINE_LIB
="$CURSES_LIB"
28574 elif test "x$NCURSES_LIB" != "x" ; then
28575 EDITLINE_LIB
="$NCURSES_LIB"
28577 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
28578 echo "$as_me: error: *** termcap support not found" >&2;}
28579 { (exit 1); exit 1; }; }
28583 if test "${ac_cv_header_h323_h+set}" = set; then
28584 { echo "$as_me:$LINENO: checking for h323.h" >&5
28585 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28586 if test "${ac_cv_header_h323_h+set}" = set; then
28587 echo $ECHO_N "(cached) $ECHO_C" >&6
28589 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28590 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28592 # Is the header compilable?
28593 { echo "$as_me:$LINENO: checking h323.h usability" >&5
28594 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
28595 cat >conftest.
$ac_ext <<_ACEOF
28598 cat confdefs.h
>>conftest.
$ac_ext
28599 cat >>conftest.
$ac_ext <<_ACEOF
28600 /* end confdefs.h. */
28601 $ac_includes_default
28604 rm -f conftest.
$ac_objext
28605 if { (ac_try
="$ac_compile"
28606 case "(($ac_try" in
28607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_compile") 2>conftest.er1
28613 grep -v '^ *+' conftest.er1 >conftest.err
28615 cat conftest.err >&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } && {
28618 test -z "$ac_c_werror_flag" ||
28619 test ! -s conftest.err
28620 } && test -s conftest.$ac_objext; then
28621 ac_header_compiler=yes
28623 echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28626 ac_header_compiler=no
28629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28631 echo "${ECHO_T}$ac_header_compiler" >&6; }
28633 # Is the header present?
28634 { echo "$as_me:$LINENO: checking h323.h presence" >&5
28635 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
28636 cat >conftest.$ac_ext <<_ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h. */
28644 if { (ac_try="$ac_cpp conftest.$ac_ext"
28645 case "(($ac_try" in
28646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28647 *) ac_try_echo
=$ac_try;;
28649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28652 grep -v '^ *+' conftest.er1
>conftest.err
28654 cat conftest.err
>&5
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); } >/dev
/null
&& {
28657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28658 test ! -s conftest.err
28660 ac_header_preproc
=yes
28662 echo "$as_me: failed program was:" >&5
28663 sed 's/^/| /' conftest.
$ac_ext >&5
28665 ac_header_preproc
=no
28668 rm -f conftest.err conftest.
$ac_ext
28669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28670 echo "${ECHO_T}$ac_header_preproc" >&6; }
28672 # So? What about this header?
28673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28675 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28676 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28677 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
28678 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
28679 ac_header_preproc
=yes
28682 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
28683 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
28684 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
28685 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
28686 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
28687 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
28688 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
28689 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28690 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
28691 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
28692 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
28693 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
28697 { echo "$as_me:$LINENO: checking for h323.h" >&5
28698 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28699 if test "${ac_cv_header_h323_h+set}" = set; then
28700 echo $ECHO_N "(cached) $ECHO_C" >&6
28702 ac_cv_header_h323_h
=$ac_header_preproc
28704 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28705 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28708 if test $ac_cv_header_h323_h = yes; then
28717 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
28718 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
28719 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
28720 echo $ECHO_N "(cached) $ECHO_C" >&6
28722 cat >conftest.
$ac_ext <<_ACEOF
28725 cat confdefs.h
>>conftest.
$ac_ext
28726 cat >>conftest.
$ac_ext <<_ACEOF
28727 /* end confdefs.h. */
28729 #include <linux/version.h>
28730 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
28731 #include <linux/compiler.h>
28735 #include <linux/ixjuser.h>
28737 rm -f conftest.
$ac_objext
28738 if { (ac_try
="$ac_compile"
28739 case "(($ac_try" in
28740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28741 *) ac_try_echo=$ac_try;;
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_compile") 2>conftest.er1
28746 grep -v '^ *+' conftest.er1 >conftest.err
28748 cat conftest.err >&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); } && {
28751 test -z "$ac_c_werror_flag" ||
28752 test ! -s conftest.err
28753 } && test -s conftest.$ac_objext; then
28754 ac_cv_header_linux_ixjuser_h=yes
28756 echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28759 ac_cv_header_linux_ixjuser_h=no
28762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28764 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
28765 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
28766 if test $ac_cv_header_linux_ixjuser_h = yes; then
28776 if test -n "$ac_tool_prefix"; then
28777 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
28778 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
28779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28781 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
28782 echo $ECHO_N "(cached) $ECHO_C" >&6
28784 if test -n "$GTKCONFIG"; then
28785 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
28787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28788 for as_dir in $PATH
28791 test -z "$as_dir" && as_dir=.
28792 for ac_exec_ext in '' $ac_executable_extensions; do
28793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28794 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
28795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28804 GTKCONFIG=$ac_cv_prog_GTKCONFIG
28805 if test -n "$GTKCONFIG"; then
28806 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
28807 echo "${ECHO_T}$GTKCONFIG" >&6; }
28809 { echo "$as_me:$LINENO: result: no" >&5
28810 echo "${ECHO_T}no" >&6; }
28815 if test -z "$ac_cv_prog_GTKCONFIG"; then
28816 ac_ct_GTKCONFIG=$GTKCONFIG
28817 # Extract the first word of "gtk-config", so it can be a program name with args.
28818 set dummy gtk-config; ac_word=$2
28819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28821 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
28822 echo $ECHO_N "(cached) $ECHO_C" >&6
28824 if test -n "$ac_ct_GTKCONFIG"; then
28825 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
28827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28828 for as_dir in $PATH
28831 test -z "$as_dir" && as_dir=.
28832 for ac_exec_ext in '' $ac_executable_extensions; do
28833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28834 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
28835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28844 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
28845 if test -n "$ac_ct_GTKCONFIG"; then
28846 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
28847 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
28849 { echo "$as_me:$LINENO: result: no" >&5
28850 echo "${ECHO_T}no" >&6; }
28853 if test "x$ac_ct_GTKCONFIG" = x; then
28856 case $cross_compiling:$ac_tool_warned in
28858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28859 whose name does not start with the host triplet. If you think this
28860 configuration is useful to you, please write to autoconf@gnu.org." >&5
28861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28862 whose name does not start with the host triplet. If you think this
28863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28864 ac_tool_warned=yes ;;
28866 GTKCONFIG=$ac_ct_GTKCONFIG
28869 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
28872 if test ! "x${GTKCONFIG}" = xNo; then
28873 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
28874 GTK_LIB=$(${GTKCONFIG} --libs gthread)
28877 cat >>confdefs.h <<\_ACEOF
28886 if test "${USE_CURL}" != "no"; then
28887 if test -n "$ac_tool_prefix"; then
28888 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
28889 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
28890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28892 if test "${ac_cv_path_CURL+set}" = set; then
28893 echo $ECHO_N "(cached) $ECHO_C" >&6
28897 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
28900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28901 for as_dir in $PATH
28904 test -z "$as_dir" && as_dir=.
28905 for ac_exec_ext in '' $ac_executable_extensions; do
28906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28907 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
28908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28918 CURL=$ac_cv_path_CURL
28919 if test -n "$CURL"; then
28920 { echo "$as_me:$LINENO: result: $CURL" >&5
28921 echo "${ECHO_T}$CURL" >&6; }
28923 { echo "$as_me:$LINENO: result: no" >&5
28924 echo "${ECHO_T}no" >&6; }
28929 if test -z "$ac_cv_path_CURL"; then
28931 # Extract the first word of "curl-config", so it can be a program name with args.
28932 set dummy curl-config; ac_word=$2
28933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28935 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
28936 echo $ECHO_N "(cached) $ECHO_C" >&6
28938 case $ac_pt_CURL in
28940 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
28943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28944 for as_dir in $PATH
28947 test -z "$as_dir" && as_dir=.
28948 for ac_exec_ext in '' $ac_executable_extensions; do
28949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28950 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
28951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28961 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
28962 if test -n "$ac_pt_CURL"; then
28963 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
28964 echo "${ECHO_T}$ac_pt_CURL" >&6; }
28966 { echo "$as_me:$LINENO: result: no" >&5
28967 echo "${ECHO_T}no" >&6; }
28970 if test "x$ac_pt_CURL" = x; then
28973 case $cross_compiling:$ac_tool_warned in
28975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28976 whose name does not start with the host triplet. If you think this
28977 configuration is useful to you, please write to autoconf@gnu.org." >&5
28978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28979 whose name does not start with the host triplet. If you think this
28980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28981 ac_tool_warned=yes ;;
28986 CURL="$ac_cv_path_CURL"
28989 if test ! x"${CURL}" = xNo; then
28990 # check for version
28991 if test $(printf "%d" 0x$(curl-config --vernum)) -ge $(printf "%d" 0x070907); then
28992 CURL_INCLUDE=$(${CURL} --cflags)
28993 CURL_LIB=$(${CURL} --libs)
28996 cat >>confdefs.h <<\_ACEOF
28997 #define HAVE_CURL 1
29004 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
29006 cat >confcache <<\_ACEOF
29007 # This file is a shell script that caches the results of configure
29008 # tests run on this system so they can be shared between configure
29009 # scripts and configure runs, see configure's option --config-cache.
29010 # It is not useful on other systems. If it contains results you don't
29011 # want to keep, you may remove or edit it.
29013 # config.status only pays attention to the cache file if you give it
29014 # the --recheck option to rerun configure.
29016 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
29017 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29018 # following values.
29022 # The following way of writing the cache mishandles newlines in values,
29023 # but we know of no workaround that is simple, portable, and efficient.
29024 # So, we kill variables containing newlines.
29025 # Ultrix sh set writes to stderr and can't be redirected directly,
29026 # and sets the high bit in the cache file unless we assign to the vars.
29028 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29029 eval ac_val
=\$
$ac_var
29033 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29034 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29037 _ | IFS | as_nl
) ;; #(
29038 *) $as_unset $ac_var ;;
29044 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29045 *${as_nl}ac_space
=\
*)
29046 # `set' does not quote correctly, so add quotes (double-quote
29047 # substitution turns \\\\ into \\, and sed turns \\ into \).
29050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29053 # `set' quotes correctly as required by POSIX, so do not add quotes.
29054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29065 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29067 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29068 if test -w "$cache_file"; then
29069 test "x$cache_file" != "x/dev/null" &&
29070 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29071 echo "$as_me: updating cache $cache_file" >&6;}
29072 cat confcache
>$cache_file
29074 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29075 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29080 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29081 # Let make expand exec_prefix.
29082 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29084 DEFS
=-DHAVE_CONFIG_H
29088 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29089 # 1. Remove the extension, and $U if already installed.
29090 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29091 ac_i
=`echo "$ac_i" | sed "$ac_script"`
29092 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29093 # will be set to the directory where LIBOBJS objects are built.
29094 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29095 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29097 LIBOBJS
=$ac_libobjs
29099 LTLIBOBJS
=$ac_ltlibobjs
29103 : ${CONFIG_STATUS=./config.status}
29104 ac_clean_files_save
=$ac_clean_files
29105 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29106 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29107 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29108 cat >$CONFIG_STATUS <<_ACEOF
29110 # Generated by $as_me.
29111 # Run this file to recreate the current configuration.
29112 # Compiler output produced by configure, useful for debugging
29113 # configure, is in config.log if it exists.
29116 ac_cs_recheck=false
29118 SHELL=\${CONFIG_SHELL-$SHELL}
29121 cat >>$CONFIG_STATUS <<\_ACEOF
29122 ## --------------------- ##
29123 ## M4sh Initialization. ##
29124 ## --------------------- ##
29126 # Be more Bourne compatible
29127 DUALCASE
=1; export DUALCASE
# for MKS sh
29128 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
29131 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29132 # is contrary to our usage. Disable this feature.
29133 alias -g '${1+"$@"}'='"$@"'
29134 setopt NO_GLOB_SUBST
29136 case `(set -o) 2>/dev/null` in
29137 *posix
*) set -o posix
;;
29146 # Avoid depending upon Character Ranges.
29147 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29148 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29149 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29150 as_cr_digits
='0123456789'
29151 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29153 # The user is always right.
29154 if test "${PATH_SEPARATOR+set}" != set; then
29155 echo "#! /bin/sh" >conf$$.sh
29156 echo "exit 0" >>conf$$.sh
29158 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
29166 # Support unset when possible.
29167 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
29175 # We need space, tab and new line, in precisely that order. Quoting is
29176 # there to prevent editors from complaining about space-tab.
29177 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29178 # splitting by setting IFS to empty value.)
29183 # Find who we are. Look in the path if we contain no directory separator.
29185 *[\\/]* ) as_myself
=$0 ;;
29186 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29187 for as_dir
in $PATH
29190 test -z "$as_dir" && as_dir
=.
29191 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
29197 # We did not find ourselves, most probably we were run as `sh COMMAND'
29198 # in which case we are not to be found in the path.
29199 if test "x$as_myself" = x
; then
29202 if test ! -f "$as_myself"; then
29203 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29204 { (exit 1); exit 1; }
29207 # Work around bugs in pre-3.0 UWIN ksh.
29208 for as_var
in ENV MAIL MAILPATH
29209 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
29217 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29218 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29219 LC_TELEPHONE LC_TIME
29221 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29222 eval $as_var=C
; export $as_var
29224 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
29228 # Required to use basename.
29229 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29230 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29236 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29237 as_basename
=basename
29243 # Name of the executable.
29244 as_me
=`$as_basename -- "$0" ||
29245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29246 X"$0" : 'X\(//\)$' \| \
29247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29249 sed '/^.*\/\([^/][^/]*\)\/*$/{
29268 as_lineno_1
=$LINENO
29269 as_lineno_2
=$LINENO
29270 test "x$as_lineno_1" != "x$as_lineno_2" &&
29271 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
29273 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29274 # uniformly replaced by the line number. The first 'sed' inserts a
29275 # line-number line after each line using $LINENO; the second 'sed'
29276 # does the real work. The second script uses 'N' to pair each
29277 # line-number line with the line containing $LINENO, and appends
29278 # trailing '-' during substitution so that $LINENO is not a special
29279 # case at line end.
29280 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29281 # scripts with optimization help from Paolo Bonzini. Blame Lee
29282 # E. McMahon (1931-1989) for sed's syntax. :-)
29294 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29297 ' >$as_me.lineno
&&
29298 chmod +x
"$as_me.lineno" ||
29299 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29300 { (exit 1); exit 1; }; }
29302 # Don't try to exec as it changes $[0], causing all sort of problems
29303 # (the dirname of $[0] is not the place where we might find the
29304 # original and so on. Autoconf is especially sensitive to this).
29305 .
"./$as_me.lineno"
29306 # Exit status is that of the last command.
29311 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29317 ECHO_C
= ECHO_N
= ECHO_T
=
29318 case `echo -n x` in
29320 case `echo 'x\c'` in
29321 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29328 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29329 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29335 rm -f conf$$ conf$$.exe conf$$.
file
29336 if test -d conf$$.dir
; then
29337 rm -f conf$$.dir
/conf$$.
file
29343 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29345 # ... but there are two gotchas:
29346 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29347 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29348 # In both cases, we have to default to `cp -p'.
29349 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29351 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29356 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29357 rmdir conf$$.dir
2>/dev
/null
29359 if mkdir
-p .
2>/dev
/null
; then
29362 test -d .
/-p && rmdir .
/-p
29366 if test -x / >/dev
/null
2>&1; then
29367 as_test_x
='test -x'
29369 if ls -dL / >/dev
/null
2>&1; then
29376 if test -d "$1"; then
29382 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29383 ???[sx]*):;;*)false;;esac;fi
29387 as_executable_p
=$as_test_x
29389 # Sed expression to map a string onto a valid CPP name.
29390 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29392 # Sed expression to map a string onto a valid variable name.
29393 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29398 # Save the log message, to keep $[0] and so on meaningful, and to
29399 # report actual input values of CONFIG_FILES etc. instead of their
29400 # values after options handling.
29402 This file was extended by $as_me, which was
29403 generated by GNU Autoconf 2.61. Invocation command line was
29405 CONFIG_FILES = $CONFIG_FILES
29406 CONFIG_HEADERS = $CONFIG_HEADERS
29407 CONFIG_LINKS = $CONFIG_LINKS
29408 CONFIG_COMMANDS = $CONFIG_COMMANDS
29411 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29416 cat >>$CONFIG_STATUS <<_ACEOF
29417 # Files that config.status was made for.
29418 config_files="$ac_config_files"
29419 config_headers="$ac_config_headers"
29423 cat >>$CONFIG_STATUS <<\_ACEOF
29425 \`$as_me' instantiates files from templates according to the
29426 current configuration.
29428 Usage: $0 [OPTIONS] [FILE]...
29430 -h, --help print this help, then exit
29431 -V, --version print version number and configuration settings, then exit
29432 -q, --quiet do not print progress messages
29433 -d, --debug don't remove temporary files
29434 --recheck update $as_me by reconfiguring in the same conditions
29435 --file=FILE[:TEMPLATE]
29436 instantiate the configuration file FILE
29437 --header=FILE[:TEMPLATE]
29438 instantiate the configuration header FILE
29440 Configuration files:
29443 Configuration headers:
29446 Report bugs to <bug-autoconf@gnu.org>."
29449 cat >>$CONFIG_STATUS <<_ACEOF
29452 configured by $0, generated by GNU Autoconf 2.61,
29453 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29455 Copyright (C) 2006 Free Software Foundation, Inc.
29456 This config.status script is free software; the Free Software Foundation
29457 gives unlimited permission to copy, distribute and modify it."
29464 cat >>$CONFIG_STATUS <<\_ACEOF
29465 # If no file are specified by the user, then we need to provide default
29466 # value. By we need to know if files were specified by the user.
29472 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29473 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29484 # Handling of the options.
29485 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29487 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29488 echo "$ac_cs_version"; exit ;;
29489 --debug |
--debu |
--deb |
--de |
--d |
-d )
29491 --file |
--fil |
--fi |
--f )
29493 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
29494 ac_need_defaults
=false
;;
29495 --header |
--heade |
--head |
--hea )
29497 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
29498 ac_need_defaults
=false
;;
29500 # Conflict between --help and --header
29501 { echo "$as_me: error: ambiguous option: $1
29502 Try \`$0 --help' for more information." >&2
29503 { (exit 1); exit 1; }; };;
29504 --help |
--hel |
-h )
29505 echo "$ac_cs_usage"; exit ;;
29506 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29507 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29510 # This is an error.
29511 -*) { echo "$as_me: error: unrecognized option: $1
29512 Try \`$0 --help' for more information." >&2
29513 { (exit 1); exit 1; }; } ;;
29515 *) ac_config_targets
="$ac_config_targets $1"
29516 ac_need_defaults
=false
;;
29522 ac_configure_extra_args
=
29524 if $ac_cs_silent; then
29526 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29530 cat >>$CONFIG_STATUS <<_ACEOF
29531 if \$ac_cs_recheck; then
29532 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29533 CONFIG_SHELL=$SHELL
29534 export CONFIG_SHELL
29535 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29539 cat >>$CONFIG_STATUS <<\_ACEOF
29543 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29544 ## Running $as_me. ##
29550 cat >>$CONFIG_STATUS <<_ACEOF
29553 cat >>$CONFIG_STATUS <<\_ACEOF
29555 # Handling of arguments.
29556 for ac_config_target
in $ac_config_targets
29558 case $ac_config_target in
29559 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
29560 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
29561 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
29562 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
29564 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29565 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29566 { (exit 1); exit 1; }; };;
29571 # If the user did not use the arguments to specify the items to instantiate,
29572 # then the envvar interface is used. Set only those that are not.
29573 # We use the long form for the default assignment because of an extremely
29574 # bizarre bug on SunOS 4.1.3.
29575 if $ac_need_defaults; then
29576 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29577 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29580 # Have a temporary directory for convenience. Make it in the build tree
29581 # simply because there is no reason against having it here, and in addition,
29582 # creating and moving files from /tmp can sometimes cause problems.
29583 # Hook for its removal unless debugging.
29584 # Note that there is a small window in which the directory will not be cleaned:
29585 # after its creation but before its name has been assigned to `$tmp'.
29589 trap 'exit_status=$?
29590 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29592 trap '{ (exit 1); exit 1; }' 1 2 13 15
29594 # Create a (secure) tmp directory for tmp files.
29597 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29598 test -n "$tmp" && test -d "$tmp"
29601 tmp
=.
/conf$$
-$RANDOM
29602 (umask 077 && mkdir
"$tmp")
29605 echo "$me: cannot create a temporary directory in ." >&2
29606 { (exit 1); exit 1; }
29610 # Set up the sed scripts for CONFIG_FILES section.
29613 # No need to generate the scripts if there are no CONFIG_FILES.
29614 # This happens for instance when ./config.status config.h
29615 if test -n "$CONFIG_FILES"; then
29622 for ac_last_try
in false false false false false
:; do
29623 cat >conf$
$subs.
sed <<_ACEOF
29624 SHELL!$SHELL$ac_delim
29625 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29626 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29627 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29628 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29629 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29630 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29631 exec_prefix!$exec_prefix$ac_delim
29632 prefix!$prefix$ac_delim
29633 program_transform_name!$program_transform_name$ac_delim
29634 bindir!$bindir$ac_delim
29635 sbindir!$sbindir$ac_delim
29636 libexecdir!$libexecdir$ac_delim
29637 datarootdir!$datarootdir$ac_delim
29638 datadir!$datadir$ac_delim
29639 sysconfdir!$sysconfdir$ac_delim
29640 sharedstatedir!$sharedstatedir$ac_delim
29641 localstatedir!$localstatedir$ac_delim
29642 includedir!$includedir$ac_delim
29643 oldincludedir!$oldincludedir$ac_delim
29644 docdir!$docdir$ac_delim
29645 infodir!$infodir$ac_delim
29646 htmldir!$htmldir$ac_delim
29647 dvidir!$dvidir$ac_delim
29648 pdfdir!$pdfdir$ac_delim
29649 psdir!$psdir$ac_delim
29650 libdir!$libdir$ac_delim
29651 localedir!$localedir$ac_delim
29652 mandir!$mandir$ac_delim
29653 DEFS!$DEFS$ac_delim
29654 ECHO_C!$ECHO_C$ac_delim
29655 ECHO_N!$ECHO_N$ac_delim
29656 ECHO_T!$ECHO_T$ac_delim
29657 LIBS!$LIBS$ac_delim
29658 build_alias!$build_alias$ac_delim
29659 host_alias!$host_alias$ac_delim
29660 target_alias!$target_alias$ac_delim
29661 build!$build$ac_delim
29662 build_cpu!$build_cpu$ac_delim
29663 build_vendor!$build_vendor$ac_delim
29664 build_os!$build_os$ac_delim
29665 host!$host$ac_delim
29666 host_cpu!$host_cpu$ac_delim
29667 host_vendor!$host_vendor$ac_delim
29668 host_os!$host_os$ac_delim
29670 CFLAGS!$CFLAGS$ac_delim
29671 LDFLAGS!$LDFLAGS$ac_delim
29672 CPPFLAGS!$CPPFLAGS$ac_delim
29673 ac_ct_CC!$ac_ct_CC$ac_delim
29674 EXEEXT!$EXEEXT$ac_delim
29675 OBJEXT!$OBJEXT$ac_delim
29677 GREP!$GREP$ac_delim
29678 EGREP!$EGREP$ac_delim
29679 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
29680 BUILD_CPU!$BUILD_CPU$ac_delim
29681 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
29682 BUILD_OS!$BUILD_OS$ac_delim
29683 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
29684 HOST_CPU!$HOST_CPU$ac_delim
29685 HOST_VENDOR!$HOST_VENDOR$ac_delim
29686 HOST_OS!$HOST_OS$ac_delim
29687 OSARCH!$OSARCH$ac_delim
29688 UNAME!$UNAME$ac_delim
29689 PBX_OSREV!$PBX_OSREV$ac_delim
29692 RANLIB!$RANLIB$ac_delim
29694 CXXFLAGS!$CXXFLAGS$ac_delim
29695 ac_ct_CXX!$ac_ct_CXX$ac_delim
29696 CXXCPP!$CXXCPP$ac_delim
29699 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29700 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29701 INSTALL_DATA!$INSTALL_DATA$ac_delim
29702 LN_S!$LN_S$ac_delim
29703 GNU_MAKE!$GNU_MAKE$ac_delim
29704 GNU_LD!$GNU_LD$ac_delim
29705 FIND!$FIND$ac_delim
29706 COMPRESS!$COMPRESS$ac_delim
29707 BASENAME!$BASENAME$ac_delim
29709 DIRNAME!$DIRNAME$ac_delim
29712 STRIP!$STRIP$ac_delim
29713 WGET!$WGET$ac_delim
29714 FETCH!$FETCH$ac_delim
29715 DOWNLOAD!$DOWNLOAD$ac_delim
29716 AST_DEVMODE!$AST_DEVMODE$ac_delim
29717 ALSA_LIB!$ALSA_LIB$ac_delim
29718 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
29719 PBX_ALSA!$PBX_ALSA$ac_delim
29720 CURL_LIB!$CURL_LIB$ac_delim
29723 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29725 elif $ac_last_try; then
29726 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29727 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29728 { (exit 1); exit 1; }; }
29730 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
29734 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29735 if test -n "$ac_eof"; then
29736 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
29737 ac_eof
=`expr $ac_eof + 1`
29740 cat >>$CONFIG_STATUS <<_ACEOF
29741 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29745 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29746 s/^/s,@/; s/!/@,|#_!!_#|/
29749 s/'"$ac_delim"'$/,g/; t
29751 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29752 ' >>$CONFIG_STATUS <conf$
$subs.
sed
29753 rm -f conf$
$subs.
sed
29754 cat >>$CONFIG_STATUS <<_ACEOF
29760 for ac_last_try
in false false false false false
:; do
29761 cat >conf$
$subs.
sed <<_ACEOF
29762 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
29763 PBX_CURL!$PBX_CURL$ac_delim
29764 CURSES_LIB!$CURSES_LIB$ac_delim
29765 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
29766 PBX_CURSES!$PBX_CURSES$ac_delim
29767 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
29768 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
29769 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
29770 GSM_LIB!$GSM_LIB$ac_delim
29771 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
29772 PBX_GSM!$PBX_GSM$ac_delim
29773 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
29774 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
29775 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
29776 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
29777 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
29778 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
29779 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
29780 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
29781 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
29782 KDE_LIB!$KDE_LIB$ac_delim
29783 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
29784 PBX_KDE!$PBX_KDE$ac_delim
29785 MISDN_LIB!$MISDN_LIB$ac_delim
29786 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
29787 PBX_MISDN!$PBX_MISDN$ac_delim
29788 NBS_LIB!$NBS_LIB$ac_delim
29789 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
29790 PBX_NBS!$PBX_NBS$ac_delim
29791 NCURSES_LIB!$NCURSES_LIB$ac_delim
29792 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
29793 PBX_NCURSES!$PBX_NCURSES$ac_delim
29794 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
29795 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
29796 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
29797 NEWT_LIB!$NEWT_LIB$ac_delim
29798 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
29799 PBX_NEWT!$PBX_NEWT$ac_delim
29800 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
29801 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
29802 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
29803 OGG_LIB!$OGG_LIB$ac_delim
29804 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
29805 PBX_OGG!$PBX_OGG$ac_delim
29806 OSPTK_LIB!$OSPTK_LIB$ac_delim
29807 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
29808 PBX_OSPTK!$PBX_OSPTK$ac_delim
29809 OSS_LIB!$OSS_LIB$ac_delim
29810 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
29811 PBX_OSS!$PBX_OSS$ac_delim
29812 POPT_LIB!$POPT_LIB$ac_delim
29813 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
29814 PBX_POPT!$PBX_POPT$ac_delim
29815 PGSQL_LIB!$PGSQL_LIB$ac_delim
29816 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
29817 PBX_PGSQL!$PBX_PGSQL$ac_delim
29818 PRI_LIB!$PRI_LIB$ac_delim
29819 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
29820 PBX_PRI!$PBX_PRI$ac_delim
29821 PWLIB_LIB!$PWLIB_LIB$ac_delim
29822 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
29823 PBX_PWLIB!$PBX_PWLIB$ac_delim
29824 OPENH323_LIB!$OPENH323_LIB$ac_delim
29825 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
29826 PBX_OPENH323!$PBX_OPENH323$ac_delim
29827 QT_LIB!$QT_LIB$ac_delim
29828 QT_INCLUDE!$QT_INCLUDE$ac_delim
29829 PBX_QT!$PBX_QT$ac_delim
29830 RADIUS_LIB!$RADIUS_LIB$ac_delim
29831 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
29832 PBX_RADIUS!$PBX_RADIUS$ac_delim
29833 SPEEX_LIB!$SPEEX_LIB$ac_delim
29834 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
29835 PBX_SPEEX!$PBX_SPEEX$ac_delim
29836 SQLITE_LIB!$SQLITE_LIB$ac_delim
29837 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
29838 PBX_SQLITE!$PBX_SQLITE$ac_delim
29839 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
29840 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
29841 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
29842 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
29843 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
29844 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
29845 FREETDS_LIB!$FREETDS_LIB$ac_delim
29846 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
29847 PBX_FREETDS!$PBX_FREETDS$ac_delim
29848 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
29849 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
29850 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
29851 TINFO_LIB!$TINFO_LIB$ac_delim
29852 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
29853 PBX_TINFO!$PBX_TINFO$ac_delim
29854 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
29855 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
29856 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
29857 VORBIS_LIB!$VORBIS_LIB$ac_delim
29858 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
29861 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29863 elif $ac_last_try; then
29864 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29865 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29866 { (exit 1); exit 1; }; }
29868 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
29872 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29873 if test -n "$ac_eof"; then
29874 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
29875 ac_eof
=`expr $ac_eof + 1`
29878 cat >>$CONFIG_STATUS <<_ACEOF
29879 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29883 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29884 s/^/s,@/; s/!/@,|#_!!_#|/
29887 s/'"$ac_delim"'$/,g/; t
29889 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29890 ' >>$CONFIG_STATUS <conf$
$subs.
sed
29891 rm -f conf$
$subs.
sed
29892 cat >>$CONFIG_STATUS <<_ACEOF
29898 for ac_last_try
in false false false false false
:; do
29899 cat >conf$
$subs.
sed <<_ACEOF
29900 PBX_VORBIS!$PBX_VORBIS$ac_delim
29901 VPB_LIB!$VPB_LIB$ac_delim
29902 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
29903 PBX_VPB!$PBX_VPB$ac_delim
29904 ZLIB_LIB!$ZLIB_LIB$ac_delim
29905 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
29906 PBX_ZLIB!$PBX_ZLIB$ac_delim
29907 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
29908 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
29909 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
29910 ALLOCA!$ALLOCA$ac_delim
29911 LIBOBJS!$LIBOBJS$ac_delim
29912 POW_LIB!$POW_LIB$ac_delim
29913 GC_CFLAGS!$GC_CFLAGS$ac_delim
29914 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
29915 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
29916 KDEINIT!$KDEINIT$ac_delim
29917 KDEDIR!$KDEDIR$ac_delim
29918 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
29919 PG_CONFIG!$PG_CONFIG$ac_delim
29920 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
29921 PWLIBDIR!$PWLIBDIR$ac_delim
29922 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
29923 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
29924 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
29925 OPENH323DIR!$OPENH323DIR$ac_delim
29926 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
29927 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
29928 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
29929 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
29930 QTMOC!$QTMOC$ac_delim
29931 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
29932 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
29933 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
29934 PBX_H323!$PBX_H323$ac_delim
29935 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
29936 GTKCONFIG!$GTKCONFIG$ac_delim
29937 PBX_GTK!$PBX_GTK$ac_delim
29938 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
29939 GTK_LIB!$GTK_LIB$ac_delim
29940 CURL!$CURL$ac_delim
29941 LTLIBOBJS!$LTLIBOBJS$ac_delim
29944 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
29946 elif $ac_last_try; then
29947 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29948 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29949 { (exit 1); exit 1; }; }
29951 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
29955 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29956 if test -n "$ac_eof"; then
29957 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
29958 ac_eof
=`expr $ac_eof + 1`
29961 cat >>$CONFIG_STATUS <<_ACEOF
29962 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
29963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29966 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29967 s/^/s,@/; s/!/@,|#_!!_#|/
29970 s/'"$ac_delim"'$/,g/; t
29972 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29973 ' >>$CONFIG_STATUS <conf$
$subs.
sed
29974 rm -f conf$
$subs.
sed
29975 cat >>$CONFIG_STATUS <<_ACEOF
29982 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29983 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29984 # trailing colons and then remove the whole line if VPATH becomes empty
29985 # (actually we leave an empty line to preserve line numbers).
29986 if test "x$srcdir" = x.
; then
29987 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
29988 s/:*\$(srcdir):*/:/
29989 s/:*\${srcdir}:*/:/
29991 s/^\([^=]*=[ ]*\):*/\1/
29997 cat >>$CONFIG_STATUS <<\_ACEOF
29998 fi # test -n "$CONFIG_FILES"
30001 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
30004 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30006 case $ac_mode$ac_tag in
30008 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30009 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30010 { (exit 1); exit 1; }; };;
30011 :[FH
]-) ac_tag
=-:-;;
30012 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30029 -) ac_f
="$tmp/stdin";;
30030 *) # Look for the file first in the build tree, then in the source tree
30031 # (if the path is not absolute). The absolute path cannot be DOS-style,
30032 # because $ac_f cannot contain `:'.
30036 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30038 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30039 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30040 { (exit 1); exit 1; }; };;
30042 ac_file_inputs
="$ac_file_inputs $ac_f"
30045 # Let's still pretend it is `configure' which instantiates (i.e., don't
30046 # use $as_me), people would be surprised to read:
30047 # /* config.h. Generated by config.status. */
30048 configure_input
="Generated from "`IFS=:
30049 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30050 if test x
"$ac_file" != x-
; then
30051 configure_input
="$ac_file. $configure_input"
30052 { echo "$as_me:$LINENO: creating $ac_file" >&5
30053 echo "$as_me: creating $ac_file" >&6;}
30057 *:-:* |
*:-) cat >"$tmp/stdin";;
30062 ac_dir
=`$as_dirname -- "$ac_file" ||
30063 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30064 X"$ac_file" : 'X\(//\)[^/]' \| \
30065 X"$ac_file" : 'X\(//\)$' \| \
30066 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30072 /^X\(\/\/\)[^/].*/{
30087 -*) as_dir
=.
/$as_dir;;
30089 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
30093 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30094 *) as_qdir
=$as_dir;;
30096 as_dirs
="'$as_qdir' $as_dirs"
30097 as_dir
=`$as_dirname -- "$as_dir" ||
30098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30099 X"$as_dir" : 'X\(//\)[^/]' \| \
30100 X"$as_dir" : 'X\(//\)$' \| \
30101 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30107 /^X\(\/\/\)[^/].*/{
30120 test -d "$as_dir" && break
30122 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30123 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30124 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30125 { (exit 1); exit 1; }; }; }
30129 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30131 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30132 # A ".." for each directory in $ac_dir_suffix.
30133 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30134 case $ac_top_builddir_sub in
30135 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30136 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30139 ac_abs_top_builddir
=$ac_pwd
30140 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30141 # for backward compatibility:
30142 ac_top_builddir
=$ac_top_build_prefix
30145 .
) # We are building in place.
30147 ac_top_srcdir
=$ac_top_builddir_sub
30148 ac_abs_top_srcdir
=$ac_pwd ;;
30149 [\\/]* | ?
:[\\/]* ) # Absolute name.
30150 ac_srcdir
=$srcdir$ac_dir_suffix;
30151 ac_top_srcdir
=$srcdir
30152 ac_abs_top_srcdir
=$srcdir ;;
30153 *) # Relative name.
30154 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30155 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30156 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30158 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30168 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30169 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30173 cat >>$CONFIG_STATUS <<\_ACEOF
30174 # If the template does not know about datarootdir, expand it.
30175 # FIXME: This hack should be removed a few years after 2.60.
30176 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30178 case `sed -n '/datarootdir/ {
30187 ' $ac_file_inputs` in
30188 *datarootdir
*) ac_datarootdir_seen
=yes;;
30189 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30190 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30191 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30193 cat >>$CONFIG_STATUS <<_ACEOF
30194 ac_datarootdir_hack='
30195 s&@datadir@&$datadir&g
30196 s&@docdir@&$docdir&g
30197 s&@infodir@&$infodir&g
30198 s&@localedir@&$localedir&g
30199 s&@mandir@&$mandir&g
30200 s&\\\${datarootdir}&$datarootdir&g' ;;
30204 # Neutralize VPATH when `$srcdir' = `.'.
30205 # Shell code in configure.ac might set extrasub.
30206 # FIXME: do we really want to maintain this feature?
30207 cat >>$CONFIG_STATUS <<_ACEOF
30211 cat >>$CONFIG_STATUS <<\_ACEOF
30213 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30214 s
&@configure_input@
&$configure_input&;t t
30215 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30216 s
&@srcdir@
&$ac_srcdir&;t t
30217 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30218 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30219 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30220 s
&@builddir@
&$ac_builddir&;t t
30221 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30222 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30223 s
&@INSTALL@
&$ac_INSTALL&;t t
30224 $ac_datarootdir_hack
30225 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
30227 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30228 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30229 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30230 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30231 which seems to be undefined. Please make sure it is defined." >&5
30232 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30233 which seems to be undefined. Please make sure it is defined." >&2;}
30237 -) cat "$tmp/out"; rm -f "$tmp/out";;
30238 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30247 # Transform confdefs.h into a sed script `conftest.defines', that
30248 # substitutes the proper values into config.h.in to produce config.h.
30249 rm -f conftest.defines conftest.
tail
30250 # First, append a space to every undef/define line, to ease matching.
30251 echo 's/$/ /' >conftest.defines
30252 # Then, protect against being on the right side of a sed subst, or in
30253 # an unquoted here document, in config.status. If some macros were
30254 # called several times there might be several #defines for the same
30255 # symbol, which is useless. But do not sort them, since the last
30256 # AC_DEFINE must be honored.
30257 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
30258 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30259 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30260 # PARAMS is the parameter list in the macro definition--in most cases, it's
30261 # just an empty string.
30262 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30263 ac_dB
='\\)[ (].*,\\1define\\2'
30271 s/^[ ]*#[ ]*define[ ][ ]*//
30276 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30277 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30278 ' >>conftest.defines
30280 # Remove the space that was appended to ease matching.
30281 # Then replace #undef with comments. This is necessary, for
30282 # example, in the case of _POSIX_SOURCE, which is predefined and required
30283 # on some systems where configure will not decide to define it.
30284 # (The regexp can be short, since the line contains either #define or #undef.)
30286 s,^[ #]*u.*,/* & */,' >>conftest.defines
30288 # Break up conftest.defines:
30289 ac_max_sed_lines
=50
30291 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30292 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30293 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30295 ac_in
='$ac_file_inputs'
30296 ac_out
='"$tmp/out1"'
30297 ac_nxt
='"$tmp/out2"'
30301 # Write a here document:
30302 cat >>$CONFIG_STATUS <<_ACEOF
30303 # First, check the format of the line:
30304 cat >"\$tmp/defines.sed" <<\\CEOF
30305 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30306 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30310 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
30312 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30313 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
30314 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
30315 grep . conftest.
tail >/dev
/null ||
break
30316 rm -f conftest.defines
30317 mv conftest.
tail conftest.defines
30319 rm -f conftest.defines conftest.
tail
30321 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30322 cat >>$CONFIG_STATUS <<\_ACEOF
30323 if test x
"$ac_file" != x-
; then
30324 echo "/* $configure_input */" >"$tmp/config.h"
30325 cat "$ac_result" >>"$tmp/config.h"
30326 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
30327 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30328 echo "$as_me: $ac_file is unchanged" >&6;}
30331 mv "$tmp/config.h" $ac_file
30334 echo "/* $configure_input */"
30346 { (exit 0); exit 0; }
30348 chmod +x
$CONFIG_STATUS
30349 ac_clean_files
=$ac_clean_files_save
30352 # configure is writing to config.log, and then calls config.status.
30353 # config.status does its own redirection, appending to config.log.
30354 # Unfortunately, on DOS this fails, as config.log is still kept open
30355 # by configure, so config.status won't be able to write to it; its
30356 # output is simply discarded. So we exec the FD to /dev/null,
30357 # effectively closing config.log, so it can be properly (re)opened and
30358 # appended to by config.status. When coming back to configure, we
30359 # need to make the FD available again.
30360 if test "$no_create" != yes; then
30362 ac_config_status_args
=
30363 test "$silent" = yes &&
30364 ac_config_status_args
="$ac_config_status_args --quiet"
30366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30369 # would make configure fail if this is the last instruction.
30370 $ac_cs_success ||
{ (exit 1); exit 1; }
30374 if test "x${silent}" != "xyes" ; then
30376 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
30377 echo " .\$7\$7.. .7\$\$7:. "
30378 echo " .\$\$:. ,\$7.7 "
30379 echo " .\$7. 7\$\$\$\$ .\$\$77 "
30380 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
30381 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
30382 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
30383 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
30384 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
30385 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
30386 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
30387 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
30388 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
30389 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
30390 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
30391 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
30392 echo " \$\$\$\$\$ \$\$\$ "
30393 echo " \$\$\$\$7. \$\$ (TM) "
30394 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
30395 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
30396 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
30400 { echo "$as_me:$LINENO: Package configured for: " >&5
30401 echo "$as_me: Package configured for: " >&6;}
30402 { echo "$as_me:$LINENO: OS type : $host_os" >&5
30403 echo "$as_me: OS type : $host_os" >&6;}
30404 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
30405 echo "$as_me: Host CPU : $host_cpu" >&6;}
30406 if test "${cross_compiling}" = "yes"; then
30407 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
30408 echo "$as_me: Cross Compilation = YES" >&6;}