2 # From configure.ac Revision: 48279 .
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
857 ac_precious_vars
='build_alias
872 # Initialize some variables set by options.
874 ac_init_version
=false
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
884 program_transform_name
=s
,x
,x
,
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir
='${exec_prefix}/bin'
899 sbindir
='${exec_prefix}/sbin'
900 libexecdir
='${exec_prefix}/libexec'
901 datarootdir
='${prefix}/share'
902 datadir
='${datarootdir}'
903 sysconfdir
='${prefix}/etc'
904 sharedstatedir
='${prefix}/com'
905 localstatedir
='${prefix}/var'
906 includedir
='${prefix}/include'
907 oldincludedir
='/usr/include'
908 docdir
='${datarootdir}/doc/${PACKAGE}'
909 infodir
='${datarootdir}/info'
914 libdir
='${exec_prefix}/lib'
915 localedir
='${datarootdir}/locale'
916 mandir
='${datarootdir}/man'
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\
$ac_option
930 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
940 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
942 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
945 -build |
--build |
--buil |
--bui |
--bu)
946 ac_prev
=build_alias
;;
947 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
948 build_alias
=$ac_optarg ;;
950 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
951 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
952 ac_prev
=cache_file
;;
953 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
954 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
955 cache_file
=$ac_optarg ;;
958 cache_file
=config.cache
;;
960 -datadir |
--datadir |
--datadi |
--datad)
962 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
963 datadir
=$ac_optarg ;;
965 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
966 |
--dataroo |
--dataro |
--datar)
967 ac_prev
=datarootdir
;;
968 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
969 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
970 datarootdir
=$ac_optarg ;;
972 -disable-* |
--disable-*)
973 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
976 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
977 { (exit 1); exit 1; }; }
978 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
979 eval enable_
$ac_feature=no
;;
981 -docdir |
--docdir |
--docdi |
--doc |
--do)
983 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
986 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
988 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
991 -enable-* |
--enable-*)
992 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
998 eval enable_
$ac_feature=\
$ac_optarg ;;
1000 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1001 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1002 |
--exec |
--exe |
--ex)
1003 ac_prev
=exec_prefix
;;
1004 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1005 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1006 |
--exec=* |
--exe=* |
--ex=*)
1007 exec_prefix
=$ac_optarg ;;
1009 -gas |
--gas |
--ga |
--g)
1010 # Obsolete; use --with-gas.
1013 -help |
--help |
--hel |
--he |
-h)
1014 ac_init_help
=long
;;
1015 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1016 ac_init_help
=recursive
;;
1017 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1018 ac_init_help
=short
;;
1020 -host |
--host |
--hos |
--ho)
1021 ac_prev
=host_alias
;;
1022 -host=* |
--host=* |
--hos=* |
--ho=*)
1023 host_alias
=$ac_optarg ;;
1025 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1027 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1029 htmldir
=$ac_optarg ;;
1031 -includedir |
--includedir |
--includedi |
--included |
--include \
1032 |
--includ |
--inclu |
--incl |
--inc)
1033 ac_prev
=includedir
;;
1034 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1035 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1036 includedir
=$ac_optarg ;;
1038 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1040 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1041 infodir
=$ac_optarg ;;
1043 -libdir |
--libdir |
--libdi |
--libd)
1045 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1046 libdir
=$ac_optarg ;;
1048 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1049 |
--libexe |
--libex |
--libe)
1050 ac_prev
=libexecdir
;;
1051 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1052 |
--libexe=* |
--libex=* |
--libe=*)
1053 libexecdir
=$ac_optarg ;;
1055 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1056 ac_prev
=localedir
;;
1057 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1058 localedir
=$ac_optarg ;;
1060 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1061 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1062 ac_prev
=localstatedir
;;
1063 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1064 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1065 localstatedir
=$ac_optarg ;;
1067 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1069 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1070 mandir
=$ac_optarg ;;
1072 -nfp |
--nfp |
--nf)
1073 # Obsolete; use --without-fp.
1076 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1077 |
--no-cr |
--no-c |
-n)
1080 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1081 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1084 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1085 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1086 |
--oldin |
--oldi |
--old |
--ol |
--o)
1087 ac_prev
=oldincludedir
;;
1088 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1089 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1090 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1091 oldincludedir
=$ac_optarg ;;
1093 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1095 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1096 prefix
=$ac_optarg ;;
1098 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1099 |
--program-pre |
--program-pr |
--program-p)
1100 ac_prev
=program_prefix
;;
1101 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1102 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1103 program_prefix
=$ac_optarg ;;
1105 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1106 |
--program-suf |
--program-su |
--program-s)
1107 ac_prev
=program_suffix
;;
1108 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1109 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1110 program_suffix
=$ac_optarg ;;
1112 -program-transform-name |
--program-transform-name \
1113 |
--program-transform-nam |
--program-transform-na \
1114 |
--program-transform-n |
--program-transform- \
1115 |
--program-transform |
--program-transfor \
1116 |
--program-transfo |
--program-transf \
1117 |
--program-trans |
--program-tran \
1118 |
--progr-tra |
--program-tr |
--program-t)
1119 ac_prev
=program_transform_name
;;
1120 -program-transform-name=* |
--program-transform-name=* \
1121 |
--program-transform-nam=* |
--program-transform-na=* \
1122 |
--program-transform-n=* |
--program-transform-=* \
1123 |
--program-transform=* |
--program-transfor=* \
1124 |
--program-transfo=* |
--program-transf=* \
1125 |
--program-trans=* |
--program-tran=* \
1126 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1127 program_transform_name
=$ac_optarg ;;
1129 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1131 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1132 pdfdir
=$ac_optarg ;;
1134 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1136 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1139 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1140 |
-silent |
--silent |
--silen |
--sile |
--sil)
1143 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1145 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1147 sbindir
=$ac_optarg ;;
1149 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1150 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1151 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1153 ac_prev
=sharedstatedir
;;
1154 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1155 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1156 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1158 sharedstatedir
=$ac_optarg ;;
1160 -site |
--site |
--sit)
1162 -site=* |
--site=* |
--sit=*)
1165 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1167 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1168 srcdir
=$ac_optarg ;;
1170 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1171 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1172 ac_prev
=sysconfdir
;;
1173 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1174 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1175 sysconfdir
=$ac_optarg ;;
1177 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1178 ac_prev
=target_alias
;;
1179 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1180 target_alias
=$ac_optarg ;;
1182 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1185 -version |
--version |
--versio |
--versi |
--vers |
-V)
1186 ac_init_version
=: ;;
1189 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_
$ac_package=\
$ac_optarg ;;
1197 -without-* |
--without-*)
1198 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1204 eval with_
$ac_package=no
;;
1207 # Obsolete; use --with-x.
1210 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1211 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1212 ac_prev
=x_includes
;;
1213 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1214 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1215 x_includes
=$ac_optarg ;;
1217 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1218 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1219 ac_prev
=x_libraries
;;
1220 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1221 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1222 x_libraries
=$ac_optarg ;;
1224 -*) { echo "$as_me: error: unrecognized option: $ac_option
1225 Try \`$0 --help' for more information." >&2
1226 { (exit 1); exit 1; }; }
1230 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1233 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234 { (exit 1); exit 1; }; }
1235 eval $ac_envvar=\
$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1242 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 if test -n "$ac_prev"; then
1250 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1251 { echo "$as_me: error: missing argument to $ac_option" >&2
1252 { (exit 1); exit 1; }; }
1255 # Be sure to have absolute directory names.
1256 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val
=\$
$ac_var
1263 [\\/$
]* | ?
:[\\/]* ) continue;;
1264 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1266 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267 { (exit 1); exit 1; }; }
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1275 target
=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x
; then
1279 if test "x$build_alias" = x
; then
1280 cross_compiling
=maybe
1281 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1289 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1291 test "$silent" = yes && exec 6>/dev
/null
1294 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di
=`ls -di .` &&
1296 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1297 { echo "$as_me: error: Working directory cannot be determined" >&2
1298 { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 { echo "$as_me: error: pwd does not report name of working directory" >&2
1301 { (exit 1); exit 1; }; }
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted
=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir
=`$as_dirname -- "$0" ||
1309 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$0" : 'X\(//\)[^/]' \| \
1311 X"$0" : 'X\(//\)$' \| \
1312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1336 ac_srcdir_defaulted
=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1340 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341 { (exit 1); exit 1; }; }
1343 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1346 { (exit 1); exit 1; }; }
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1356 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 for ac_var
in $ac_precious_vars; do
1359 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1361 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1372 \`configure' configures this package to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1430 --build=BUILD configure
for building on BUILD
[guessed
]
1431 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1435 if test -n "$ac_init_help"; then
1440 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1441 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1442 --enable-dev-mode Turn on developer mode
1443 --disable-largefile omit support
for large files
1446 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1447 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1448 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1449 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1450 --with-curl=PATH use cURL files
in PATH
1451 --with-curses=PATH use curses files
in PATH
1452 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1454 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1455 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1456 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1457 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1458 --with-kde=PATH use KDE files
in PATH
1459 --with-misdn=PATH use mISDN User Library files
in PATH
1460 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1461 --with-ncurses=PATH use ncurses files
in PATH
1462 --with-netsnmp=PATH use Net-SNMP files
in PATH
1463 --with-newt=PATH use newt files
in PATH
1464 --with-odbc=PATH use unixODBC files
in PATH
1465 --with-ogg=PATH use OGG files
in PATH
1466 --with-osptk=PATH use OSP Toolkit files
in PATH
1467 --with-oss=PATH use Open Sound System files
in PATH
1468 --with-popt=PATH use popt files
in PATH
1469 --with-postgres=PATH use PostgreSQL files
in PATH
1470 --with-pri=PATH use ISDN PRI files
in PATH
1471 --with-pwlib=PATH use PWlib files
in PATH
1472 --with-h323=PATH use OpenH323 files
in PATH
1473 --with-qt=PATH use Qt files
in PATH
1474 --with-radius=PATH use Radius Client files
in PATH
1475 --with-speex=PATH use Speex files
in PATH
1476 --with-sqlite=PATH use SQLite files
in PATH
1477 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1478 --with-ssl=PATH use OpenSSL files
in PATH
1479 --with-tds=PATH use FreeTDS files
in PATH
1480 --with-termcap=PATH use Termcap files
in PATH
1481 --with-tinfo=PATH use Term Info files
in PATH
1482 --with-tonezone=PATH use tonezone files
in PATH
1483 --with-vorbis=PATH use Vorbis files
in PATH
1484 --with-vpb=PATH use Voicetronix API files
in PATH
1485 --with-z=PATH use zlib files
in PATH
1486 --with-zaptel=PATH use Zaptel files
in PATH
1488 Some influential environment variables
:
1489 CC C compiler
command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1492 nonstandard directory
<lib dir
>
1493 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1494 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1495 you have headers
in a nonstandard directory
<include dir
>
1496 CXX C
++ compiler
command
1497 CXXFLAGS C
++ compiler flags
1499 CXXCPP C
++ preprocessor
1501 Use these variables to override the choices made by
`configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1565 generated by GNU Autoconf 2.61
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by $as_me, which was
1581 generated by GNU Autoconf 2.61. Invocation command line was
1593 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1594 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1595 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1596 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1597 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1599 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1600 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1602 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1603 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1604 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1605 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1606 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1607 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1608 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_must_keep_next=false
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1652 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 -* ) ac_must_keep_next=true ;;
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1700 eval ac_val=\$$ac_var
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1714 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1738 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 echo "$ac_var='\''$ac_val'\''"
1744 if test -n "$ac_subst_files"; then
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1762 if test -s confdefs.h; then
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1853 ac_header_list="$ac_header_list sys/time.h"
1854 ac_header_list="$ac_header_list unistd.h"
1855 ac_func_list="$ac_func_list alarm"
1856 ac_header_list="$ac_header_list utime.h"
1857 # Check that the precious variables saved in the cache have kept the same
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1868 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1872 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1879 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1880 echo "$as_me: former value
: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1882 echo "$as_me: current value
: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1900 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1901 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 # cross-compile macros
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 elif test -f "$ac_dir/install.sh"; then
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 elif test -f "$ac_dir/shtool"; then
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 # Make sure we can run config.sub.
1963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1964 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1965 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1966 { (exit 1); exit 1; }; }
1968 { echo "$as_me:$LINENO: checking build system type" >&5
1969 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_build+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 ac_build_alias=$build_alias
1974 test "x$ac_build_alias" = x &&
1975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1976 test "x$ac_build_alias" = x &&
1977 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1978 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1979 { (exit 1); exit 1; }; }
1980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1983 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1987 echo "${ECHO_T}$ac_cv_build" >&6; }
1988 case $ac_cv_build in
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1991 echo "$as_me: error: invalid value of canonical build" >&2;}
1992 { (exit 1); exit 1; }; };;
1995 ac_save_IFS=$IFS; IFS='-'
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2005 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2008 { echo "$as_me:$LINENO: checking host system type" >&5
2009 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2010 if test "${ac_cv_host+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test "x$host_alias" = x; then
2014 ac_cv_host=$ac_cv_build
2016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2019 { (exit 1); exit 1; }; }
2023 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2024 echo "${ECHO_T}$ac_cv_host" >&6; }
2027 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2028 echo "$as_me: error: invalid value of canonical host" >&2;}
2029 { (exit 1); exit 1; }; };;
2032 ac_save_IFS=$IFS; IFS='-'
2038 # Remember, the first character of IFS is used to create $*,
2039 # except with old shells:
2042 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2046 # check existence of the package
2049 # specify output header file
2050 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2056 case "${host_os}" in
2058 ac_default_prefix=/usr/local
2059 CPPFLAGS=-I/usr/local/include
2060 LDFLAGS=-L/usr/local/lib
2063 ac_default_prefix=/usr
2064 if test ${sysconfdir} = '${prefix}/etc'; then
2067 if test ${mandir} = '${prefix}/man'; then
2068 mandir=/usr/share/man
2073 if test ${localstatedir} = '${prefix}/var'; then
2077 BUILD_PLATFORM=${build}
2078 BUILD_CPU=${build_cpu}
2079 BUILD_VENDOR=${build_vendor}
2080 BUILD_OS=${build_os}
2087 HOST_PLATFORM=${host}
2088 HOST_CPU=${host_cpu}
2089 HOST_VENDOR=${host_vendor}
2097 case "${host_os}" in
2118 if test -n "$ac_tool_prefix"; then
2119 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2120 set dummy ${ac_tool_prefix}uname; ac_word=$2
2121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2123 if test "${ac_cv_path_UNAME+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2138 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 UNAME=$ac_cv_path_UNAME
2150 if test -n "$UNAME"; then
2151 { echo "$as_me:$LINENO: result: $UNAME" >&5
2152 echo "${ECHO_T}$UNAME" >&6; }
2154 { echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6; }
2160 if test -z "$ac_cv_path_UNAME"; then
2162 # Extract the first word of "uname", so it can be a program name with args.
2163 set dummy uname; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 case $ac_pt_UNAME in
2171 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2193 if test -n "$ac_pt_UNAME"; then
2194 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2195 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2201 if test "x$ac_pt_UNAME" = x; then
2204 case $cross_compiling:$ac_tool_warned in
2206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2207 whose name does not start with the host triplet. If you think this
2208 configuration is useful to you, please write to autoconf@gnu.org." >&5
2209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2210 whose name does not start with the host triplet. If you think this
2211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2212 ac_tool_warned=yes ;;
2217 UNAME="$ac_cv_path_UNAME"
2220 if test ! x"${UNAME}" = xNo; then
2221 PBX_OSREV=$(${UNAME} -r)
2225 # This needs to be before any macros that use the C compiler
2227 cat >>confdefs.h <<\_ACEOF
2228 #define _GNU_SOURCE 1
2239 # cross-compile checks
2240 if test "${cross_compiling}" = "yes";
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 if test -n "$CC"; then
2272 { echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6; }
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2281 if test -z "$ac_cv_prog_CC"; then
2283 # Extract the first word of "gcc", so it can be a program name with args.
2284 set dummy gcc; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 if test -n "$ac_ct_CC"; then
2291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_ac_ct_CC="gcc"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2313 echo "${ECHO_T}$ac_ct_CC" >&6; }
2315 { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2319 if test "x$ac_ct_CC" = x; then
2322 case $cross_compiling:$ac_tool_warned in
2324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet. If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&5
2327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2328 whose name does not start with the host triplet. If you think this
2329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2330 ac_tool_warned=yes ;;
2338 if test -n "$ac_tool_prefix"; then
2339 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2340 set dummy ${ac_tool_prefix}g++; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_CXX+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 if test -n "$CXX"; then
2347 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 if test -n "$CXX"; then
2368 { echo "$as_me:$LINENO: result: $CXX" >&5
2369 echo "${ECHO_T}$CXX" >&6; }
2371 { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2377 if test -z "$ac_cv_prog_CXX"; then
2379 # Extract the first word of "g++", so it can be a program name with args.
2380 set dummy g++; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$ac_ct_CXX"; then
2387 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396 ac_cv_prog_ac_ct_CXX="g++"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2407 if test -n "$ac_ct_CXX"; then
2408 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2409 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2415 if test "x$ac_ct_CXX" = x; then
2418 case $cross_compiling:$ac_tool_warned in
2420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet. If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&5
2423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet. If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2426 ac_tool_warned=yes ;;
2431 CXX="$ac_cv_prog_CXX"
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}ld; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_LD+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$LD"; then
2443 ac_cv_prog_LD="$LD" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_LD="${ac_tool_prefix}ld"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 if test -n "$LD"; then
2464 { echo "$as_me:$LINENO: result: $LD" >&5
2465 echo "${ECHO_T}$LD" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2473 if test -z "$ac_cv_prog_LD"; then
2475 # Extract the first word of "ld", so it can be a program name with args.
2476 set dummy ld; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$ac_ct_LD"; then
2483 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_LD="ld"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2503 if test -n "$ac_ct_LD"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2505 echo "${ECHO_T}$ac_ct_LD" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2511 if test "x$ac_ct_LD" = x; then
2514 case $cross_compiling:$ac_tool_warned in
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet. If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2532 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_RANLIB+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 if test -n "$RANLIB"; then
2539 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 RANLIB=$ac_cv_prog_RANLIB
2559 if test -n "$RANLIB"; then
2560 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2561 echo "${ECHO_T}$RANLIB" >&6; }
2563 { echo "$as_me:$LINENO: result: no" >&5
2564 echo "${ECHO_T}no" >&6; }
2569 if test -z "$ac_cv_prog_RANLIB"; then
2570 ac_ct_RANLIB=$RANLIB
2571 # Extract the first word of "ranlib", so it can be a program name with args.
2572 set dummy ranlib; ac_word=$2
2573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 if test -n "$ac_ct_RANLIB"; then
2579 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_ac_ct_RANLIB="ranlib"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2599 if test -n "$ac_ct_RANLIB"; then
2600 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2601 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2603 { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2607 if test "x$ac_ct_RANLIB" = x; then
2610 case $cross_compiling:$ac_tool_warned in
2612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2613 whose name does not start with the host triplet. If you think this
2614 configuration is useful to you, please write to autoconf@gnu.org." >&5
2615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2616 whose name does not start with the host triplet. If you think this
2617 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2618 ac_tool_warned=yes ;;
2620 RANLIB=$ac_ct_RANLIB
2623 RANLIB="$ac_cv_prog_RANLIB"
2626 if test -n "$ac_tool_prefix"; then
2627 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2628 set dummy ${ac_tool_prefix}ar; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_AR+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if test -n "$AR"; then
2635 ac_cv_prog_AR="$AR" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_AR="${ac_tool_prefix}ar"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 if test -n "$AR"; then
2656 { echo "$as_me:$LINENO: result: $AR" >&5
2657 echo "${ECHO_T}$AR" >&6; }
2659 { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2665 if test -z "$ac_cv_prog_AR"; then
2667 # Extract the first word of "ar", so it can be a program name with args.
2668 set dummy ar; ac_word=$2
2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 if test -n "$ac_ct_AR"; then
2675 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_ac_ct_AR="ar"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2695 if test -n "$ac_ct_AR"; then
2696 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2697 echo "${ECHO_T}$ac_ct_AR" >&6; }
2699 { echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6; }
2703 if test "x$ac_ct_AR" = x; then
2706 case $cross_compiling:$ac_tool_warned in
2708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet. If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&5
2711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet. If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714 ac_tool_warned=yes ;;
2724 # Checks for programs.
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test -n "$CC"; then
2760 { echo "$as_me:$LINENO: result: $CC" >&5
2761 echo "${ECHO_T}$CC" >&6; }
2763 { echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6; }
2769 if test -z "$ac_cv_prog_CC"; then
2771 # Extract the first word of "gcc", so it can be a program name with args.
2772 set dummy gcc; ac_word=$2
2773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$ac_ct_CC"; then
2779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_ac_ct_CC="gcc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799 if test -n "$ac_ct_CC"; then
2800 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2801 echo "${ECHO_T}$ac_ct_CC" >&6; }
2803 { echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6; }
2807 if test "x$ac_ct_CC" = x; then
2810 case $cross_compiling:$ac_tool_warned in
2812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2813 whose name does not start with the host triplet. If you think this
2814 configuration is useful to you, please write to autoconf@gnu.org." >&5
2815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2816 whose name does not start with the host triplet. If you think this
2817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2818 ac_tool_warned=yes ;;
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2829 set dummy ${ac_tool_prefix}cc; ac_word=$2
2830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2832 if test "${ac_cv_prog_CC+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_CC="${ac_tool_prefix}cc"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 if test -n "$CC"; then
2857 { echo "$as_me:$LINENO: result: $CC" >&5
2858 echo "${ECHO_T}$CC" >&6; }
2860 { echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6; }
2867 if test -z "$CC"; then
2868 # Extract the first word of "cc", so it can be a program name with args.
2869 set dummy cc; ac_word=$2
2870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2872 if test "${ac_cv_prog_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2887 ac_prog_rejected=yes
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 if test $ac_prog_rejected = yes; then
2899 # We found a bogon in the path, so make sure we never use it.
2900 set dummy $ac_cv_prog_CC
2902 if test $# != 0; then
2903 # We chose a different compiler from the bogus one.
2904 # However, it has the same basename, so the bogon will be chosen
2905 # first if we set CC to just the basename; use the full file name.
2907 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2913 if test -n "$CC"; then
2914 { echo "$as_me:$LINENO: result: $CC" >&5
2915 echo "${ECHO_T}$CC" >&6; }
2917 { echo "$as_me:$LINENO: result: no" >&5
2918 echo "${ECHO_T}no" >&6; }
2923 if test -z "$CC"; then
2924 if test -n "$ac_tool_prefix"; then
2925 for ac_prog in cl.exe
2927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2931 if test "${ac_cv_prog_CC+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 if test -n "$CC"; then
2956 { echo "$as_me:$LINENO: result: $CC" >&5
2957 echo "${ECHO_T}$CC" >&6; }
2959 { echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6; }
2964 test -n "$CC" && break
2967 if test -z "$CC"; then
2969 for ac_prog in cl.exe
2971 # Extract the first word of "$ac_prog", so it can be a program name with args.
2972 set dummy $ac_prog; ac_word=$2
2973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 if test -n "$ac_ct_CC"; then
2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_ac_ct_CC="$ac_prog"
2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3001 echo "${ECHO_T}$ac_ct_CC" >&6; }
3003 { echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6; }
3008 test -n "$ac_ct_CC" && break
3011 if test "x$ac_ct_CC" = x; then
3014 case $cross_compiling:$ac_tool_warned in
3016 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3017 whose name does not start with the host triplet. If you think this
3018 configuration is useful to you, please write to autoconf@gnu.org." >&5
3019 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3020 whose name does not start with the host triplet. If you think this
3021 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3022 ac_tool_warned=yes ;;
3031 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3032 See \`config.log
' for more details." >&5
3033 echo "$as_me: error: no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details.
" >&2;}
3035 { (exit 1); exit 1; }; }
3037 # Provide some information about the compiler.
3038 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3039 ac_compiler=`set X $ac_compile; echo $2`
3040 { (ac_try="$ac_compiler --version >&5"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compiler --version >&5") 2>&5
3048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3049 (exit $ac_status); }
3050 { (ac_try="$ac_compiler -v >&5"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compiler -v >&5") 2>&5
3058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3059 (exit $ac_status); }
3060 { (ac_try="$ac_compiler -V >&5"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compiler -V >&5") 2>&5
3068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3069 (exit $ac_status); }
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3086 ac_clean_files_save=$ac_clean_files
3087 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3088 # Try to create an executable without -o first, disregard a.out.
3089 # It will help us diagnose broken compilers, and finding out an intuition
3091 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3092 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3093 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095 # List of possible output files, starting from the most likely.
3096 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3097 # only as a last resort. b.out is created by i960 compilers.
3098 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3100 # The IRIX 6 linker writes into existing files which may not be
3101 # executable, retaining their permissions. Remove them first so a
3102 # subsequent execution test works.
3104 for ac_file in $ac_files
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3108 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3113 if { (ac_try="$ac_link_default"
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_link_default") 2>&5
3121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3122 (exit $ac_status); }; then
3123 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3124 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3125 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3126 # so that the user can short-circuit this test for compilers unknown to
3128 for ac_file in $ac_files ''
3130 test -f "$ac_file" || continue
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3135 # We found the default executable, but exeext='' is most
3139 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143 # We set ac_cv_exeext here because the later test for it is not
3144 # safe: cross compilers may not add the suffix if given an `-o'
3145 # argument, so we may need to know it at that point already.
3146 # Even if this section looks crufty: it has the advantage of
3153 test "$ac_cv_exeext" = no && ac_cv_exeext=
3159 { echo "$as_me:$LINENO: result
: $ac_file" >&5
3160 echo "${ECHO_T}$ac_file" >&6; }
3161 if test -z "$ac_file"; then
3162 echo "$as_me: failed program was
:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3166 See \
`config.log' for more details." >&5
3167 echo "$as_me: error: C compiler cannot create executables
3168 See \`config.log
' for more details." >&2;}
3169 { (exit 77); exit 77; }; }
3172 ac_exeext=$ac_cv_exeext
3174 # Check that the compiler produces executables we can run. If not, either
3175 # the compiler is broken, or we cross compile.
3176 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3177 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3178 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3179 # If not cross compiling, check that we can run a simple program.
3180 if test "$cross_compiling" != yes; then
3181 if { ac_try='.
/$ac_file'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3193 if test "$cross_compiling" = maybe; then
3196 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3197 If you meant to cross compile, use \`--host'.
3198 See \
`config.log' for more details." >&5
3199 echo "$as_me: error: cannot run C compiled programs.
3200 If you meant to cross compile, use \`--host'.
3201 See \`config.log' for more details.
" >&2;}
3202 { (exit 1); exit 1; }; }
3206 { echo "$as_me:$LINENO: result
: yes" >&5
3207 echo "${ECHO_T}yes" >&6; }
3209 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3210 ac_clean_files=$ac_clean_files_save
3211 # Check that the compiler produces executables we can run. If not, either
3212 # the compiler is broken, or we cross compile.
3213 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3214 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3215 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3216 echo "${ECHO_T}$cross_compiling" >&6; }
3218 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3219 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3220 if { (ac_try="$ac_link"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_link") 2>&5
3228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3229 (exit $ac_status); }; then
3230 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3231 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3232 # work properly (i.e., refer to `conftest.exe'), while it won't with
3234 for ac_file in conftest.exe conftest conftest.*; do
3235 test -f "$ac_file" || continue
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3244 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3245 See \
`config.log' for more details." >&5
3246 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3247 See \`config.log
' for more details." >&2;}
3248 { (exit 1); exit 1; }; }
3251 rm -f conftest$ac_cv_exeext
3252 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3253 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3255 rm -f conftest.$ac_ext
3256 EXEEXT=$ac_cv_exeext
3258 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3259 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3260 if test "${ac_cv_objext+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3278 rm -f conftest.o conftest.obj
3279 if { (ac_try="$ac_compile"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_compile") 2>&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; then
3289 for ac_file in conftest.o conftest.obj conftest.*; do
3290 test -f "$ac_file" || continue;
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3293 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3298 echo "$as_me: failed program was:" >&5
3299 sed 's
/^
/|
/' conftest.$ac_ext >&5
3301 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3302 See \`config.log' for more details.
" >&5
3303 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3304 See \
`config.log' for more details." >&2;}
3305 { (exit 1); exit 1; }; }
3308 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3310 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3311 echo "${ECHO_T}$ac_cv_objext" >&6; }
3312 OBJEXT=$ac_cv_objext
3314 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3315 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3316 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3341 *) ac_try_echo
=$ac_try;;
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
3346 grep -v '^ *+' conftest.er1
>conftest.err
3348 cat conftest.err
>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && {
3351 test -z "$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 } && test -s conftest.
$ac_objext; then
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.
$ac_ext >&5
3362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3363 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3366 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3367 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3368 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3369 ac_test_CFLAGS
=${CFLAGS+set}
3370 ac_save_CFLAGS
=$CFLAGS
3371 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3372 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3373 if test "${ac_cv_prog_cc_g+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 ac_save_c_werror_flag
=$ac_c_werror_flag
3377 ac_c_werror_flag
=yes
3380 cat >conftest.
$ac_ext <<_ACEOF
3383 cat confdefs.h
>>conftest.
$ac_ext
3384 cat >>conftest.
$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3395 rm -f conftest.
$ac_objext
3396 if { (ac_try
="$ac_compile"
3398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_compile") 2>conftest.er1
3404 grep -v '^ *+' conftest.er1 >conftest.err
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } && {
3409 test -z "$ac_c_werror_flag" ||
3410 test ! -s conftest.err
3411 } && test -s conftest.$ac_objext; then
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3437 *) ac_try_echo
=$ac_try;;
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_compile") 2>conftest.er1
3442 grep -v '^ *+' conftest.er1
>conftest.err
3444 cat conftest.err
>&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } && {
3447 test -z "$ac_c_werror_flag" ||
3448 test ! -s conftest.err
3449 } && test -s conftest.
$ac_objext; then
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.
$ac_ext >&5
3455 ac_c_werror_flag
=$ac_save_c_werror_flag
3457 cat >conftest.
$ac_ext <<_ACEOF
3460 cat confdefs.h
>>conftest.
$ac_ext
3461 cat >>conftest.
$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3472 rm -f conftest.
$ac_objext
3473 if { (ac_try
="$ac_compile"
3475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_compile") 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && {
3486 test -z "$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 } && test -s conftest.$ac_objext; then
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_c_werror_flag=$ac_save_c_werror_flag
3506 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3507 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3508 if test "$ac_test_CFLAGS" = set; then
3509 CFLAGS=$ac_save_CFLAGS
3510 elif test $ac_cv_prog_cc_g = yes; then
3511 if test "$GCC" = yes; then
3517 if test "$GCC" = yes; then
3523 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3524 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3525 if test "${ac_cv_prog_cc_c89+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 ac_cv_prog_cc_c89=no
3530 cat >conftest.$ac_ext <<_ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3538 #include <sys/types.h>
3539 #include <sys/stat.h>
3540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3541 struct buf { int x; };
3542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3543 static char *e (p, i)
3549 static char *f (char * (*g) (char **, int), char **p, ...)
3554 s = g (p, va_arg (v,int));
3559 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3560 function prototypes and stuff, but not '\xHH' hex character constants.
3561 These don't provoke an error unfortunately, instead are silently treated
3562 as 'x'. The following induces an error, until -std is added to get
3563 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3564 array size at least. It's necessary to write '\x00'==0 to get something
3565 that's true only with -std. */
3566 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3568 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3569 inside strings and character constants. */
3571 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3573 int test (int i, double x);
3574 struct s1 {int (*f) (int a);};
3575 struct s2 {int (*f) (double a);};
3576 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3582 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3587 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3588 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3590 CC="$ac_save_CC $ac_arg"
3591 rm -f conftest.$ac_objext
3592 if { (ac_try="$ac_compile"
3594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3595 *) ac_try_echo
=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compile") 2>conftest.er1
3600 grep -v '^ *+' conftest.er1
>conftest.err
3602 cat conftest.err
>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } && {
3605 test -z "$ac_c_werror_flag" ||
3606 test ! -s conftest.err
3607 } && test -s conftest.
$ac_objext; then
3608 ac_cv_prog_cc_c89
=$ac_arg
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.
$ac_ext >&5
3616 rm -f core conftest.err conftest.
$ac_objext
3617 test "x$ac_cv_prog_cc_c89" != "xno" && break
3619 rm -f conftest.
$ac_ext
3624 case "x$ac_cv_prog_cc_c89" in
3626 { echo "$as_me:$LINENO: result: none needed" >&5
3627 echo "${ECHO_T}none needed" >&6; } ;;
3629 { echo "$as_me:$LINENO: result: unsupported" >&5
3630 echo "${ECHO_T}unsupported" >&6; } ;;
3632 CC
="$CC $ac_cv_prog_cc_c89"
3633 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3634 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3639 ac_cpp
='$CPP $CPPFLAGS'
3640 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3645 ac_cpp
='$CXXCPP $CPPFLAGS'
3646 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3649 if test -z "$CXX"; then
3650 if test -n "$CCC"; then
3653 if test -n "$ac_tool_prefix"; then
3654 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3657 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3660 if test "${ac_cv_prog_CXX+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 if test -n "$CXX"; then
3664 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir
=.
3671 for ac_exec_ext
in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 if test -n "$CXX"; then
3685 { echo "$as_me:$LINENO: result: $CXX" >&5
3686 echo "${ECHO_T}$CXX" >&6; }
3688 { echo "$as_me:$LINENO: result: no" >&5
3689 echo "${ECHO_T}no" >&6; }
3693 test -n "$CXX" && break
3696 if test -z "$CXX"; then
3698 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701 set dummy
$ac_prog; ac_word
=$2
3702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3704 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 if test -n "$ac_ct_CXX"; then
3708 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir
=.
3715 for ac_exec_ext
in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3728 if test -n "$ac_ct_CXX"; then
3729 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3730 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3732 { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3737 test -n "$ac_ct_CXX" && break
3740 if test "x$ac_ct_CXX" = x
; then
3743 case $cross_compiling:$ac_tool_warned in
3745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3746 whose name does not start with the host triplet. If you think this
3747 configuration is useful to you, please write to autoconf@gnu.org." >&5
3748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3749 whose name does not start with the host triplet. If you think this
3750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3751 ac_tool_warned
=yes ;;
3759 # Provide some information about the compiler.
3760 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3761 ac_compiler
=`set X $ac_compile; echo $2`
3762 { (ac_try
="$ac_compiler --version >&5"
3764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_compiler --version >&5") 2>&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }
3772 { (ac_try="$ac_compiler -v >&5"
3774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3775 *) ac_try_echo
=$ac_try;;
3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778 (eval "$ac_compiler -v >&5") 2>&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }
3782 { (ac_try
="$ac_compiler -V >&5"
3784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_compiler -V >&5") 2>&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }
3793 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3794 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3795 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 cat >conftest.$ac_ext <<_ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3820 *) ac_try_echo
=$ac_try;;
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_compile") 2>conftest.er1
3825 grep -v '^ *+' conftest.er1
>conftest.err
3827 cat conftest.err
>&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } && {
3830 test -z "$ac_cxx_werror_flag" ||
3831 test ! -s conftest.err
3832 } && test -s conftest.
$ac_objext; then
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.
$ac_ext >&5
3841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3842 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3845 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3846 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3847 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3848 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3849 ac_save_CXXFLAGS
=$CXXFLAGS
3850 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3851 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3852 if test "${ac_cv_prog_cxx_g+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3856 ac_cxx_werror_flag
=yes
3859 cat >conftest.
$ac_ext <<_ACEOF
3862 cat confdefs.h
>>conftest.
$ac_ext
3863 cat >>conftest.
$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3874 rm -f conftest.
$ac_objext
3875 if { (ac_try
="$ac_compile"
3877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_compile") 2>conftest.er1
3883 grep -v '^ *+' conftest.er1 >conftest.err
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } && {
3888 test -z "$ac_cxx_werror_flag" ||
3889 test ! -s conftest.err
3890 } && test -s conftest.$ac_objext; then
3891 ac_cv_prog_cxx_g=yes
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3912 rm -f conftest.$ac_objext
3913 if { (ac_try="$ac_compile"
3915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3916 *) ac_try_echo
=$ac_try;;
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1
>conftest.err
3923 cat conftest.err
>&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_cxx_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.
$ac_objext; then
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.
$ac_ext >&5
3934 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3936 cat >conftest.
$ac_ext <<_ACEOF
3939 cat confdefs.h
>>conftest.
$ac_ext
3940 cat >>conftest.
$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3951 rm -f conftest.
$ac_objext
3952 if { (ac_try
="$ac_compile"
3954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_compile") 2>conftest.er1
3960 grep -v '^ *+' conftest.er1 >conftest.err
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && {
3965 test -z "$ac_cxx_werror_flag" ||
3966 test ! -s conftest.err
3967 } && test -s conftest.$ac_objext; then
3968 ac_cv_prog_cxx_g=yes
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3985 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3986 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3987 if test "$ac_test_CXXFLAGS" = set; then
3988 CXXFLAGS=$ac_save_CXXFLAGS
3989 elif test $ac_cv_prog_cxx_g = yes; then
3990 if test "$GXX" = yes; then
3996 if test "$GXX" = yes; then
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009 ac_cpp='$CPP $CPPFLAGS'
4010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4014 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4015 # On Suns, sometimes $CPP names a directory.
4016 if test -n "$CPP" && test -d "$CPP"; then
4019 if test -z "$CPP"; then
4020 if test "${ac_cv_prog_CPP+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 # Double quotes because CPP needs to be expanded
4024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4027 for ac_c_preproc_warn_flag in '' yes
4029 # Use a header file that comes with gcc, so configuring glibc
4030 # with a fresh cross-compiler works.
4031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032 # <limits.h> exists even on freestanding compilers.
4033 # On the NeXT, cc -E runs the code through the compiler's parser,
4034 # not just through cpp. "Syntax error" is here to catch this case.
4035 cat >conftest.$ac_ext <<_ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4042 # include <limits.h>
4044 # include <assert.h>
4048 if { (ac_try="$ac_cpp conftest.$ac_ext"
4050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4051 *) ac_try_echo
=$ac_try;;
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4056 grep -v '^ *+' conftest.er1
>conftest.err
4058 cat conftest.err
>&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } >/dev
/null
&& {
4061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4062 test ! -s conftest.err
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.
$ac_ext >&5
4069 # Broken: fails on valid input.
4073 rm -f conftest.err conftest.
$ac_ext
4075 # OK, works on sane cases. Now check whether nonexistent headers
4076 # can be detected and how.
4077 cat >conftest.
$ac_ext <<_ACEOF
4080 cat confdefs.h
>>conftest.
$ac_ext
4081 cat >>conftest.
$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 #include <ac_nonexistent.h>
4085 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4093 grep -v '^ *+' conftest.er1 >conftest.err
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } >/dev/null && {
4098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4099 test ! -s conftest.err
4101 # Broken: success on invalid input.
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 # Passes both tests.
4112 rm -f conftest.err conftest.$ac_ext
4115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116 rm -f conftest.err conftest.
$ac_ext
4117 if $ac_preproc_ok; then
4129 { echo "$as_me:$LINENO: result: $CPP" >&5
4130 echo "${ECHO_T}$CPP" >&6; }
4132 for ac_c_preproc_warn_flag
in '' yes
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat >conftest.
$ac_ext <<_ACEOF
4143 cat confdefs.h
>>conftest.
$ac_ext
4144 cat >>conftest.
$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4147 # include <limits.h>
4149 # include <assert.h>
4153 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } >/dev/null && {
4166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 # Broken: fails on valid input.
4178 rm -f conftest.err conftest.$ac_ext
4180 # OK, works on sane cases. Now check whether nonexistent headers
4181 # can be detected and how.
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4190 if { (ac_try="$ac_cpp conftest.$ac_ext"
4192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4193 *) ac_try_echo
=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4198 grep -v '^ *+' conftest.er1
>conftest.err
4200 cat conftest.err
>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } >/dev
/null
&& {
4203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4204 test ! -s conftest.err
4206 # Broken: success on invalid input.
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.
$ac_ext >&5
4212 # Passes both tests.
4217 rm -f conftest.err conftest.
$ac_ext
4220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4221 rm -f conftest.err conftest.
$ac_ext
4222 if $ac_preproc_ok; then
4225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4226 See \`config.log' for more details." >&5
4227 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4228 See \`config.log' for more details." >&2;}
4229 { (exit 1); exit 1; }; }
4233 ac_cpp
='$CPP $CPPFLAGS'
4234 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4239 ac_cpp
='$CXXCPP $CPPFLAGS'
4240 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4243 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4244 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4245 if test -z "$CXXCPP"; then
4246 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 # Double quotes because CXXCPP needs to be expanded
4250 for CXXCPP
in "$CXX -E" "/lib/cpp"
4253 for ac_cxx_preproc_warn_flag
in '' yes
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat >conftest.
$ac_ext <<_ACEOF
4264 cat confdefs.h
>>conftest.
$ac_ext
4265 cat >>conftest.
$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4268 # include <limits.h>
4270 # include <assert.h>
4274 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } >/dev/null && {
4287 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4288 test ! -s conftest.err
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 # Broken: fails on valid input.
4299 rm -f conftest.err conftest.$ac_ext
4301 # OK, works on sane cases. Now check whether nonexistent headers
4302 # can be detected and how.
4303 cat >conftest.$ac_ext <<_ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4309 #include <ac_nonexistent.h>
4311 if { (ac_try="$ac_cpp conftest.$ac_ext"
4313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4314 *) ac_try_echo
=$ac_try;;
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4319 grep -v '^ *+' conftest.er1
>conftest.err
4321 cat conftest.err
>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } >/dev
/null
&& {
4324 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4325 test ! -s conftest.err
4327 # Broken: success on invalid input.
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.
$ac_ext >&5
4333 # Passes both tests.
4338 rm -f conftest.err conftest.
$ac_ext
4341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4342 rm -f conftest.err conftest.
$ac_ext
4343 if $ac_preproc_ok; then
4348 ac_cv_prog_CXXCPP
=$CXXCPP
4351 CXXCPP
=$ac_cv_prog_CXXCPP
4353 ac_cv_prog_CXXCPP
=$CXXCPP
4355 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4356 echo "${ECHO_T}$CXXCPP" >&6; }
4358 for ac_cxx_preproc_warn_flag
in '' yes
4360 # Use a header file that comes with gcc, so configuring glibc
4361 # with a fresh cross-compiler works.
4362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363 # <limits.h> exists even on freestanding compilers.
4364 # On the NeXT, cc -E runs the code through the compiler's parser,
4365 # not just through cpp. "Syntax error" is here to catch this case.
4366 cat >conftest.
$ac_ext <<_ACEOF
4369 cat confdefs.h
>>conftest.
$ac_ext
4370 cat >>conftest.
$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4373 # include <limits.h>
4375 # include <assert.h>
4379 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4387 grep -v '^ *+' conftest.er1 >conftest.err
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } >/dev/null && {
4392 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4393 test ! -s conftest.err
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 # Broken: fails on valid input.
4404 rm -f conftest.err conftest.$ac_ext
4406 # OK, works on sane cases. Now check whether nonexistent headers
4407 # can be detected and how.
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <ac_nonexistent.h>
4416 if { (ac_try="$ac_cpp conftest.$ac_ext"
4418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4419 *) ac_try_echo
=$ac_try;;
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4424 grep -v '^ *+' conftest.er1
>conftest.err
4426 cat conftest.err
>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } >/dev
/null
&& {
4429 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4430 test ! -s conftest.err
4432 # Broken: success on invalid input.
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.
$ac_ext >&5
4438 # Passes both tests.
4443 rm -f conftest.err conftest.
$ac_ext
4446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4447 rm -f conftest.err conftest.
$ac_ext
4448 if $ac_preproc_ok; then
4451 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4452 See \`config.log' for more details." >&5
4453 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4454 See \`config.log' for more details." >&2;}
4455 { (exit 1); exit 1; }; }
4459 ac_cpp
='$CPP $CPPFLAGS'
4460 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4464 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
4465 # the developers regenerating the configure script don't have to install libtool.
4466 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4467 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4468 if test "${ac_cv_path_SED+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4472 for ac_i
in 1 2 3 4 5 6 7; do
4473 ac_script
="$ac_script$as_nl$ac_script"
4475 echo "$ac_script" |
sed 99q
>conftest.
sed
4476 $as_unset ac_script || ac_script
=
4477 # Extract the first word of "sed gsed" to use in msg output
4478 if test -z "$SED"; then
4479 set dummy
sed gsed
; ac_prog_name
=$2
4480 if test "${ac_cv_path_SED+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 ac_path_SED_found
=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4489 test -z "$as_dir" && as_dir
=.
4490 for ac_prog
in sed gsed
; do
4491 for ac_exec_ext
in '' $ac_executable_extensions; do
4492 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4493 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4494 # Check for GNU ac_path_SED and select it if it is found.
4495 # Check for GNU $ac_path_SED
4496 case `"$ac_path_SED" --version 2>&1` in
4498 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4501 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4504 cat "conftest.in" "conftest.in" >"conftest.tmp"
4505 mv "conftest.tmp" "conftest.in"
4506 cp "conftest.in" "conftest.nl"
4507 echo '' >> "conftest.nl"
4508 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4509 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4510 ac_count
=`expr $ac_count + 1`
4511 if test $ac_count -gt ${ac_path_SED_max-0}; then
4512 # Best one so far, save it but keep looking for a better one
4513 ac_cv_path_SED
="$ac_path_SED"
4514 ac_path_SED_max
=$ac_count
4516 # 10*(2^10) chars as input seems more than enough
4517 test $ac_count -gt 10 && break
4519 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4523 $ac_path_SED_found && break 3
4533 SED
="$ac_cv_path_SED"
4534 if test -z "$SED"; then
4535 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4536 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4537 { (exit 1); exit 1; }; }
4545 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4546 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4547 SED
="$ac_cv_path_SED"
4550 { echo "$as_me:$LINENO: checking for egrep" >&5
4551 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4552 if test "${ac_cv_prog_egrep+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4556 then ac_cv_prog_egrep
='grep -E'
4557 else ac_cv_prog_egrep
='egrep'
4560 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4561 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
4562 EGREP
=$ac_cv_prog_egrep
4566 # Check whether --with-gnu-ld was given.
4567 if test "${with_gnu_ld+set}" = set; then
4568 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4574 if test "$GCC" = yes; then
4575 # Check if gcc -print-prog-name=ld gives a path.
4576 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4577 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4580 # gcc leaves a trailing carriage return which upsets mingw
4581 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4583 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4586 # Accept absolute paths.
4588 re_direlt
='/[^/][^/]*/\.\./'
4589 # Canonicalize the pathname of ld
4590 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
4591 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4592 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4594 test -z "$LD" && LD
="$ac_prog"
4597 # If it fails, then pretend we aren't using GCC.
4601 # If it is relative, then search for the first ld in PATH.
4605 elif test "$with_gnu_ld" = yes; then
4606 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4607 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4609 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4610 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4612 if test "${lt_cv_path_LD+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 if test -z "$LD"; then
4616 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4617 for ac_dir
in $PATH; do
4619 test -z "$ac_dir" && ac_dir
=.
4620 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4621 lt_cv_path_LD
="$ac_dir/$ac_prog"
4622 # Check to see if the program is GNU ld. I'd rather use --version,
4623 # but apparently some variants of GNU ld only accept -v.
4624 # Break only if it was the GNU/non-GNU ld that we prefer.
4625 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4626 *GNU
* |
*'with BFD'*)
4627 test "$with_gnu_ld" != no
&& break
4630 test "$with_gnu_ld" != yes && break
4637 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4642 if test -n "$LD"; then
4643 { echo "$as_me:$LINENO: result: $LD" >&5
4644 echo "${ECHO_T}$LD" >&6; }
4646 { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4649 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4650 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4651 { (exit 1); exit 1; }; }
4652 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4653 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4654 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4658 case `$LD -v 2>&1 </dev/null` in
4659 *GNU
* |
*'with BFD'*)
4660 lt_cv_prog_gnu_ld
=yes
4663 lt_cv_prog_gnu_ld
=no
4667 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4668 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4669 with_gnu_ld
=$lt_cv_prog_gnu_ld
4672 for ac_prog
in gawk mawk nawk
awk
4674 # Extract the first word of "$ac_prog", so it can be a program name with args.
4675 set dummy
$ac_prog; ac_word
=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_prog_AWK+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 if test -n "$AWK"; then
4682 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4688 test -z "$as_dir" && as_dir
=.
4689 for ac_exec_ext
in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 ac_cv_prog_AWK
="$ac_prog"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 if test -n "$AWK"; then
4703 { echo "$as_me:$LINENO: result: $AWK" >&5
4704 echo "${ECHO_T}$AWK" >&6; }
4706 { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4711 test -n "$AWK" && break
4714 # Find a good install program. We prefer a C program (faster),
4715 # so one script is as good as another. But avoid the broken or
4716 # incompatible versions:
4717 # SysV /etc/install, /usr/sbin/install
4718 # SunOS /usr/etc/install
4719 # IRIX /sbin/install
4721 # AmigaOS /C/install, which installs bootblocks on floppy discs
4722 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4723 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4724 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4725 # OS/2's system install, which has a completely different semantic
4726 # ./install, which can be erroneously created by make from ./install.sh.
4727 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4728 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4729 if test -z "$INSTALL"; then
4730 if test "${ac_cv_path_install+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir
=.
4738 # Account for people who put trailing slashes in PATH elements.
4740 .
/ | .
// |
/cC
/* | \
4741 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4742 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4745 # OSF1 and SCO ODT 3.0 have their own names for install.
4746 # Don't use installbsd from OSF since it installs stuff as root
4748 for ac_prog
in ginstall scoinst
install; do
4749 for ac_exec_ext
in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4751 if test $ac_prog = install &&
4752 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4753 # AIX install. It has an incompatible calling convention.
4755 elif test $ac_prog = install &&
4756 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4757 # program-specific install script used by HP pwplus--don't use.
4760 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4773 if test "${ac_cv_path_install+set}" = set; then
4774 INSTALL
=$ac_cv_path_install
4776 # As a last resort, use the slow shell script. Don't cache a
4777 # value for INSTALL within a source directory, because that will
4778 # break other packages using the cache if that directory is
4779 # removed, or if the value is a relative name.
4780 INSTALL
=$ac_install_sh
4783 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4784 echo "${ECHO_T}$INSTALL" >&6; }
4786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4787 # It thinks the first close brace ends the variable substitution.
4788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4792 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4794 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4795 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4797 if test "$LN_S" = "ln -s"; then
4798 { echo "$as_me:$LINENO: result: yes" >&5
4799 echo "${ECHO_T}yes" >&6; }
4801 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4802 echo "${ECHO_T}no, using $LN_S" >&6; }
4805 if test -n "$ac_tool_prefix"; then
4806 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4807 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_RANLIB+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 if test -n "$RANLIB"; then
4814 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir
=.
4821 for ac_exec_ext
in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 RANLIB
=$ac_cv_prog_RANLIB
4834 if test -n "$RANLIB"; then
4835 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4836 echo "${ECHO_T}$RANLIB" >&6; }
4838 { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4844 if test -z "$ac_cv_prog_RANLIB"; then
4845 ac_ct_RANLIB
=$RANLIB
4846 # Extract the first word of "ranlib", so it can be a program name with args.
4847 set dummy ranlib
; ac_word
=$2
4848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4850 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 if test -n "$ac_ct_RANLIB"; then
4854 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir
=.
4861 for ac_exec_ext
in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4874 if test -n "$ac_ct_RANLIB"; then
4875 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4876 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4878 { echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6; }
4882 if test "x$ac_ct_RANLIB" = x
; then
4885 case $cross_compiling:$ac_tool_warned in
4887 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4888 whose name does not start with the host triplet. If you think this
4889 configuration is useful to you, please write to autoconf@gnu.org." >&5
4890 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4891 whose name does not start with the host triplet. If you think this
4892 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4893 ac_tool_warned
=yes ;;
4895 RANLIB
=$ac_ct_RANLIB
4898 RANLIB
="$ac_cv_prog_RANLIB"
4901 { echo "$as_me:$LINENO: checking for GNU make" >&5
4902 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
4903 if test "${GNU_MAKE+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 GNU_MAKE
='Not Found' ;
4907 GNU_MAKE_VERSION_MAJOR
=0 ;
4908 GNU_MAKE_VERSION_MINOR
=0 ;
4909 for a
in make gmake gnumake
; do
4910 if test -z "$a" ; then continue ; fi ;
4911 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
4913 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
4914 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
4920 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
4921 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
4922 if test "x$GNU_MAKE" = "xNot Found" ; then
4923 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
4924 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
4925 { (exit 1); exit 1; }; }
4932 if test "x$with_gnu_ld" = "xyes" ; then
4937 # Extract the first word of "grep", so it can be a program name with args.
4938 set dummy
grep; ac_word
=$2
4939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4941 if test "${ac_cv_path_GREP+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
4949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir
=.
4954 for ac_exec_ext
in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
4968 GREP
=$ac_cv_path_GREP
4969 if test -n "$GREP"; then
4970 { echo "$as_me:$LINENO: result: $GREP" >&5
4971 echo "${ECHO_T}$GREP" >&6; }
4973 { echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6; }
4978 # Extract the first word of "ar", so it can be a program name with args.
4979 set dummy
ar; ac_word
=$2
4980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4982 if test "${ac_cv_path_AR+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
4990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4994 test -z "$as_dir" && as_dir
=.
4995 for ac_exec_ext
in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 test -z "$ac_cv_path_AR" && ac_cv_path_AR
=":"
5010 if test -n "$AR"; then
5011 { echo "$as_me:$LINENO: result: $AR" >&5
5012 echo "${ECHO_T}$AR" >&6; }
5014 { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5019 # Extract the first word of "find", so it can be a program name with args.
5020 set dummy
find; ac_word
=$2
5021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5023 if test "${ac_cv_path_FIND+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
5031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir
=.
5036 for ac_exec_ext
in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
5050 FIND
=$ac_cv_path_FIND
5051 if test -n "$FIND"; then
5052 { echo "$as_me:$LINENO: result: $FIND" >&5
5053 echo "${ECHO_T}$FIND" >&6; }
5055 { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5060 # Extract the first word of "compress", so it can be a program name with args.
5061 set dummy
compress; ac_word
=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_path_COMPRESS+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
5072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir
=.
5077 for ac_exec_ext
in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
5091 COMPRESS
=$ac_cv_path_COMPRESS
5092 if test -n "$COMPRESS"; then
5093 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
5094 echo "${ECHO_T}$COMPRESS" >&6; }
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5101 # Extract the first word of "basename", so it can be a program name with args.
5102 set dummy
basename; ac_word
=$2
5103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5105 if test "${ac_cv_path_BASENAME+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
5113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir
=.
5118 for ac_exec_ext
in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
5132 BASENAME
=$ac_cv_path_BASENAME
5133 if test -n "$BASENAME"; then
5134 { echo "$as_me:$LINENO: result: $BASENAME" >&5
5135 echo "${ECHO_T}$BASENAME" >&6; }
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5142 # Extract the first word of "id", so it can be a program name with args.
5143 set dummy id
; ac_word
=$2
5144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5146 if test "${ac_cv_path_ID+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
5154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir
=.
5159 for ac_exec_ext
in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
5174 if test -n "$ID"; then
5175 { echo "$as_me:$LINENO: result: $ID" >&5
5176 echo "${ECHO_T}$ID" >&6; }
5178 { echo "$as_me:$LINENO: result: no" >&5
5179 echo "${ECHO_T}no" >&6; }
5183 # Extract the first word of "dirname", so it can be a program name with args.
5184 set dummy
dirname; ac_word
=$2
5185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5187 if test "${ac_cv_path_DIRNAME+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
5195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir
=.
5200 for ac_exec_ext
in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
5214 DIRNAME
=$ac_cv_path_DIRNAME
5215 if test -n "$DIRNAME"; then
5216 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5217 echo "${ECHO_T}$DIRNAME" >&6; }
5219 { echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6; }
5224 # Extract the first word of "sh", so it can be a program name with args.
5225 set dummy sh
; 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_path_SHELL+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
5236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir
=.
5241 for ac_exec_ext
in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
5255 SHELL
=$ac_cv_path_SHELL
5256 if test -n "$SHELL"; then
5257 { echo "$as_me:$LINENO: result: $SHELL" >&5
5258 echo "${ECHO_T}$SHELL" >&6; }
5260 { echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6; }
5265 # Extract the first word of "ln", so it can be a program name with args.
5266 set dummy
ln; ac_word
=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_path_LN+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
5277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir
=.
5282 for ac_exec_ext
in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
5297 if test -n "$LN"; then
5298 { echo "$as_me:$LINENO: result: $LN" >&5
5299 echo "${ECHO_T}$LN" >&6; }
5301 { echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6; }
5306 # Extract the first word of "dot", so it can be a program name with args.
5307 set dummy dot
; ac_word
=$2
5308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5310 if test "${ac_cv_path_DOT+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
5318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir
=.
5323 for ac_exec_ext
in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
5338 if test -n "$DOT"; then
5339 { echo "$as_me:$LINENO: result: $DOT" >&5
5340 echo "${ECHO_T}$DOT" >&6; }
5342 { echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6; }
5347 # Extract the first word of "strip", so it can be a program name with args.
5348 set dummy strip
; ac_word
=$2
5349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5351 if test "${ac_cv_path_STRIP+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
5359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5363 test -z "$as_dir" && as_dir
=.
5364 for ac_exec_ext
in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP
=":"
5378 STRIP
=$ac_cv_path_STRIP
5379 if test -n "$STRIP"; then
5380 { echo "$as_me:$LINENO: result: $STRIP" >&5
5381 echo "${ECHO_T}$STRIP" >&6; }
5383 { echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6; }
5388 # Extract the first word of "wget", so it can be a program name with args.
5389 set dummy wget
; ac_word
=$2
5390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5392 if test "${ac_cv_path_WGET+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
5400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir
=.
5405 for ac_exec_ext
in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
5408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
5419 WGET
=$ac_cv_path_WGET
5420 if test -n "$WGET"; then
5421 { echo "$as_me:$LINENO: result: $WGET" >&5
5422 echo "${ECHO_T}$WGET" >&6; }
5424 { echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6; }
5429 if test "${WGET}" != ":" ; then
5432 # Extract the first word of "fetch", so it can be a program name with args.
5433 set dummy fetch
; ac_word
=$2
5434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5436 if test "${ac_cv_path_FETCH+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
5444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5448 test -z "$as_dir" && as_dir
=.
5449 for ac_exec_ext
in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
5463 FETCH
=$ac_cv_path_FETCH
5464 if test -n "$FETCH"; then
5465 { echo "$as_me:$LINENO: result: $FETCH" >&5
5466 echo "${ECHO_T}$FETCH" >&6; }
5468 { echo "$as_me:$LINENO: result: no" >&5
5469 echo "${ECHO_T}no" >&6; }
5478 ac_cpp
='$CPP $CPPFLAGS'
5479 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5484 # Check whether --enable-dev-mode was given.
5485 if test "${enable_dev_mode+set}" = set; then
5486 enableval
=$enable_dev_mode; case "${enableval}" in
5487 y|ye|
yes) AST_DEVMODE
=yes ;;
5488 n|no
) AST_DEVMODE
=no
;;
5489 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
5490 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
5491 { (exit 1); exit 1; }; } ;;
5497 # package option names should be in alphabetical order
5498 # by the --with option name, to make things easier for the users :-)
5501 ALSA_DESCRIP
="Advanced Linux Sound Architecture"
5502 ALSA_OPTION
="asound"
5504 # Check whether --with-asound was given.
5505 if test "${with_asound+set}" = set; then
5506 withval
=$with_asound;
5512 ALSA_MANDATORY
="yes"
5515 ALSA_DIR
="${withval}"
5516 ALSA_MANDATORY
="yes"
5531 # Check whether --with-curl was given.
5532 if test "${with_curl+set}" = set; then
5539 CURL_MANDATORY
="yes"
5542 CURL_DIR
="${withval}"
5543 CURL_MANDATORY
="yes"
5555 CURSES_DESCRIP
="curses"
5556 CURSES_OPTION
="curses"
5558 # Check whether --with-curses was given.
5559 if test "${with_curses+set}" = set; then
5560 withval
=$with_curses;
5566 CURSES_MANDATORY
="yes"
5569 CURSES_DIR
="${withval}"
5570 CURSES_MANDATORY
="yes"
5582 GNUTLS_DESCRIP
="GNU TLS support (used for iksemel only)"
5583 GNUTLS_OPTION
="gnutls"
5585 # Check whether --with-gnutls was given.
5586 if test "${with_gnutls+set}" = set; then
5587 withval
=$with_gnutls;
5593 GNUTLS_MANDATORY
="yes"
5596 GNUTLS_DIR
="${withval}"
5597 GNUTLS_MANDATORY
="yes"
5612 # Check whether --with-gsm was given.
5613 if test "${with_gsm+set}" = set; then
5623 GSM_DIR
="${withval}"
5636 IKSEMEL_DESCRIP
="Iksemel Jabber Library"
5637 IKSEMEL_OPTION
="iksemel"
5639 # Check whether --with-iksemel was given.
5640 if test "${with_iksemel+set}" = set; then
5641 withval
=$with_iksemel;
5647 IKSEMEL_MANDATORY
="yes"
5650 IKSEMEL_DIR
="${withval}"
5651 IKSEMEL_MANDATORY
="yes"
5663 IMAP_TK_DESCRIP
="UW IMAP Toolkit"
5664 IMAP_TK_OPTION
="imap"
5666 # Check whether --with-imap was given.
5667 if test "${with_imap+set}" = set; then
5674 IMAP_TK_MANDATORY
="yes"
5677 IMAP_TK_DIR
="${withval}"
5678 IMAP_TK_MANDATORY
="yes"
5690 ISDNNET_DESCRIP
="ISDN4Linux Library"
5691 ISDNNET_OPTION
="isdnnet"
5693 # Check whether --with-isdnnet was given.
5694 if test "${with_isdnnet+set}" = set; then
5695 withval
=$with_isdnnet;
5701 ISDNNET_MANDATORY
="yes"
5704 ISDNNET_DIR
="${withval}"
5705 ISDNNET_MANDATORY
="yes"
5720 # Check whether --with-kde was given.
5721 if test "${with_kde+set}" = set; then
5731 KDE_DIR
="${withval}"
5744 MISDN_DESCRIP
="mISDN User Library"
5745 MISDN_OPTION
="misdn"
5747 # Check whether --with-misdn was given.
5748 if test "${with_misdn+set}" = set; then
5749 withval
=$with_misdn;
5755 MISDN_MANDATORY
="yes"
5758 MISDN_DIR
="${withval}"
5759 MISDN_MANDATORY
="yes"
5771 NBS_DESCRIP
="Network Broadcast Sound"
5774 # Check whether --with-nbs was given.
5775 if test "${with_nbs+set}" = set; then
5785 NBS_DIR
="${withval}"
5798 NCURSES_DESCRIP
="ncurses"
5799 NCURSES_OPTION
="ncurses"
5801 # Check whether --with-ncurses was given.
5802 if test "${with_ncurses+set}" = set; then
5803 withval
=$with_ncurses;
5809 NCURSES_MANDATORY
="yes"
5812 NCURSES_DIR
="${withval}"
5813 NCURSES_MANDATORY
="yes"
5825 NETSNMP_DESCRIP
="Net-SNMP"
5826 NETSNMP_OPTION
="netsnmp"
5828 # Check whether --with-netsnmp was given.
5829 if test "${with_netsnmp+set}" = set; then
5830 withval
=$with_netsnmp;
5836 NETSNMP_MANDATORY
="yes"
5839 NETSNMP_DIR
="${withval}"
5840 NETSNMP_MANDATORY
="yes"
5855 # Check whether --with-newt was given.
5856 if test "${with_newt+set}" = set; then
5863 NEWT_MANDATORY
="yes"
5866 NEWT_DIR
="${withval}"
5867 NEWT_MANDATORY
="yes"
5879 UNIXODBC_DESCRIP
="unixODBC"
5880 UNIXODBC_OPTION
="odbc"
5882 # Check whether --with-odbc was given.
5883 if test "${with_odbc+set}" = set; then
5890 UNIXODBC_MANDATORY
="yes"
5893 UNIXODBC_DIR
="${withval}"
5894 UNIXODBC_MANDATORY
="yes"
5909 # Check whether --with-ogg was given.
5910 if test "${with_ogg+set}" = set; then
5920 OGG_DIR
="${withval}"
5933 OSPTK_DESCRIP
="OSP Toolkit"
5934 OSPTK_OPTION
="osptk"
5936 # Check whether --with-osptk was given.
5937 if test "${with_osptk+set}" = set; then
5938 withval
=$with_osptk;
5944 OSPTK_MANDATORY
="yes"
5947 OSPTK_DIR
="${withval}"
5948 OSPTK_MANDATORY
="yes"
5960 OSS_DESCRIP
="Open Sound System"
5963 # Check whether --with-oss was given.
5964 if test "${with_oss+set}" = set; then
5974 OSS_DIR
="${withval}"
5990 # Check whether --with-popt was given.
5991 if test "${with_popt+set}" = set; then
5998 POPT_MANDATORY
="yes"
6001 POPT_DIR
="${withval}"
6002 POPT_MANDATORY
="yes"
6014 PGSQL_DESCRIP
="PostgreSQL"
6015 PGSQL_OPTION
="postgres"
6017 # Check whether --with-postgres was given.
6018 if test "${with_postgres+set}" = set; then
6019 withval
=$with_postgres;
6025 PGSQL_MANDATORY
="yes"
6028 PGSQL_DIR
="${withval}"
6029 PGSQL_MANDATORY
="yes"
6041 PRI_DESCRIP
="ISDN PRI"
6044 # Check whether --with-pri was given.
6045 if test "${with_pri+set}" = set; then
6055 PRI_DIR
="${withval}"
6068 PWLIB_DESCRIP
="PWlib"
6069 PWLIB_OPTION
="pwlib"
6071 # Check whether --with-pwlib was given.
6072 if test "${with_pwlib+set}" = set; then
6073 withval
=$with_pwlib;
6079 PWLIB_MANDATORY
="yes"
6082 PWLIB_DIR
="${withval}"
6083 PWLIB_MANDATORY
="yes"
6095 OPENH323_DESCRIP
="OpenH323"
6096 OPENH323_OPTION
="h323"
6098 # Check whether --with-h323 was given.
6099 if test "${with_h323+set}" = set; then
6106 OPENH323_MANDATORY
="yes"
6109 OPENH323_DIR
="${withval}"
6110 OPENH323_MANDATORY
="yes"
6125 # Check whether --with-qt was given.
6126 if test "${with_qt+set}" = set; then
6149 RADIUS_DESCRIP
="Radius Client"
6150 RADIUS_OPTION
="radius"
6152 # Check whether --with-radius was given.
6153 if test "${with_radius+set}" = set; then
6154 withval
=$with_radius;
6160 RADIUS_MANDATORY
="yes"
6163 RADIUS_DIR
="${withval}"
6164 RADIUS_MANDATORY
="yes"
6176 SPEEX_DESCRIP
="Speex"
6177 SPEEX_OPTION
="speex"
6179 # Check whether --with-speex was given.
6180 if test "${with_speex+set}" = set; then
6181 withval
=$with_speex;
6187 SPEEX_MANDATORY
="yes"
6190 SPEEX_DIR
="${withval}"
6191 SPEEX_MANDATORY
="yes"
6203 SQLITE_DESCRIP
="SQLite"
6204 SQLITE_OPTION
="sqlite"
6206 # Check whether --with-sqlite was given.
6207 if test "${with_sqlite+set}" = set; then
6208 withval
=$with_sqlite;
6214 SQLITE_MANDATORY
="yes"
6217 SQLITE_DIR
="${withval}"
6218 SQLITE_MANDATORY
="yes"
6230 SUPPSERV_DESCRIP
="mISDN Supplemental Services"
6231 SUPPSERV_OPTION
="suppserv"
6233 # Check whether --with-suppserv was given.
6234 if test "${with_suppserv+set}" = set; then
6235 withval
=$with_suppserv;
6241 SUPPSERV_MANDATORY
="yes"
6244 SUPPSERV_DIR
="${withval}"
6245 SUPPSERV_MANDATORY
="yes"
6257 OPENSSL_DESCRIP
="OpenSSL"
6258 OPENSSL_OPTION
="ssl"
6260 # Check whether --with-ssl was given.
6261 if test "${with_ssl+set}" = set; then
6268 OPENSSL_MANDATORY
="yes"
6271 OPENSSL_DIR
="${withval}"
6272 OPENSSL_MANDATORY
="yes"
6284 FREETDS_DESCRIP
="FreeTDS"
6285 FREETDS_OPTION
="tds"
6287 # Check whether --with-tds was given.
6288 if test "${with_tds+set}" = set; then
6295 FREETDS_MANDATORY
="yes"
6298 FREETDS_DIR
="${withval}"
6299 FREETDS_MANDATORY
="yes"
6311 TERMCAP_DESCRIP
="Termcap"
6312 TERMCAP_OPTION
="termcap"
6314 # Check whether --with-termcap was given.
6315 if test "${with_termcap+set}" = set; then
6316 withval
=$with_termcap;
6322 TERMCAP_MANDATORY
="yes"
6325 TERMCAP_DIR
="${withval}"
6326 TERMCAP_MANDATORY
="yes"
6338 TINFO_DESCRIP
="Term Info"
6339 TINFO_OPTION
="tinfo"
6341 # Check whether --with-tinfo was given.
6342 if test "${with_tinfo+set}" = set; then
6343 withval
=$with_tinfo;
6349 TINFO_MANDATORY
="yes"
6352 TINFO_DIR
="${withval}"
6353 TINFO_MANDATORY
="yes"
6365 TONEZONE_DESCRIP
="tonezone"
6366 TONEZONE_OPTION
="tonezone"
6368 # Check whether --with-tonezone was given.
6369 if test "${with_tonezone+set}" = set; then
6370 withval
=$with_tonezone;
6376 TONEZONE_MANDATORY
="yes"
6379 TONEZONE_DIR
="${withval}"
6380 TONEZONE_MANDATORY
="yes"
6392 VORBIS_DESCRIP
="Vorbis"
6393 VORBIS_OPTION
="vorbis"
6395 # Check whether --with-vorbis was given.
6396 if test "${with_vorbis+set}" = set; then
6397 withval
=$with_vorbis;
6403 VORBIS_MANDATORY
="yes"
6406 VORBIS_DIR
="${withval}"
6407 VORBIS_MANDATORY
="yes"
6419 VPB_DESCRIP
="Voicetronix API"
6422 # Check whether --with-vpb was given.
6423 if test "${with_vpb+set}" = set; then
6433 VPB_DIR
="${withval}"
6449 # Check whether --with-z was given.
6450 if test "${with_z+set}" = set; then
6457 ZLIB_MANDATORY
="yes"
6460 ZLIB_DIR
="${withval}"
6461 ZLIB_MANDATORY
="yes"
6473 ZAPTEL_DESCRIP
="Zaptel"
6474 ZAPTEL_OPTION
="zaptel"
6476 # Check whether --with-zaptel was given.
6477 if test "${with_zaptel+set}" = set; then
6478 withval
=$with_zaptel;
6484 ZAPTEL_MANDATORY
="yes"
6487 ZAPTEL_DIR
="${withval}"
6488 ZAPTEL_MANDATORY
="yes"
6500 # check for basic system features and functionality before
6501 # checking for package libraries
6505 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6506 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6507 if test "${ac_cv_path_GREP+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 # Extract the first word of "grep ggrep" to use in msg output
6511 if test -z "$GREP"; then
6512 set dummy
grep ggrep
; ac_prog_name
=$2
6513 if test "${ac_cv_path_GREP+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 ac_path_GREP_found
=false
6517 # Loop through the user's path and test for each of PROGNAME-LIST
6518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6519 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6522 test -z "$as_dir" && as_dir
=.
6523 for ac_prog
in grep ggrep
; do
6524 for ac_exec_ext
in '' $ac_executable_extensions; do
6525 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6526 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6527 # Check for GNU ac_path_GREP and select it if it is found.
6528 # Check for GNU $ac_path_GREP
6529 case `"$ac_path_GREP" --version 2>&1` in
6531 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6534 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6537 cat "conftest.in" "conftest.in" >"conftest.tmp"
6538 mv "conftest.tmp" "conftest.in"
6539 cp "conftest.in" "conftest.nl"
6540 echo 'GREP' >> "conftest.nl"
6541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6542 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6543 ac_count
=`expr $ac_count + 1`
6544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6545 # Best one so far, save it but keep looking for a better one
6546 ac_cv_path_GREP
="$ac_path_GREP"
6547 ac_path_GREP_max
=$ac_count
6549 # 10*(2^10) chars as input seems more than enough
6550 test $ac_count -gt 10 && break
6552 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6556 $ac_path_GREP_found && break 3
6566 GREP
="$ac_cv_path_GREP"
6567 if test -z "$GREP"; then
6568 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6569 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6570 { (exit 1); exit 1; }; }
6574 ac_cv_path_GREP
=$GREP
6579 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6580 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6581 GREP
="$ac_cv_path_GREP"
6584 { echo "$as_me:$LINENO: checking for egrep" >&5
6585 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_EGREP+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6590 then ac_cv_path_EGREP
="$GREP -E"
6592 # Extract the first word of "egrep" to use in msg output
6593 if test -z "$EGREP"; then
6594 set dummy
egrep; ac_prog_name
=$2
6595 if test "${ac_cv_path_EGREP+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 ac_path_EGREP_found
=false
6599 # Loop through the user's path and test for each of PROGNAME-LIST
6600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6601 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6604 test -z "$as_dir" && as_dir
=.
6605 for ac_prog
in egrep; do
6606 for ac_exec_ext
in '' $ac_executable_extensions; do
6607 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6608 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6609 # Check for GNU ac_path_EGREP and select it if it is found.
6610 # Check for GNU $ac_path_EGREP
6611 case `"$ac_path_EGREP" --version 2>&1` in
6613 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6616 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6619 cat "conftest.in" "conftest.in" >"conftest.tmp"
6620 mv "conftest.tmp" "conftest.in"
6621 cp "conftest.in" "conftest.nl"
6622 echo 'EGREP' >> "conftest.nl"
6623 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6624 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6625 ac_count
=`expr $ac_count + 1`
6626 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6627 # Best one so far, save it but keep looking for a better one
6628 ac_cv_path_EGREP
="$ac_path_EGREP"
6629 ac_path_EGREP_max
=$ac_count
6631 # 10*(2^10) chars as input seems more than enough
6632 test $ac_count -gt 10 && break
6634 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6638 $ac_path_EGREP_found && break 3
6648 EGREP
="$ac_cv_path_EGREP"
6649 if test -z "$EGREP"; then
6650 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6651 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6652 { (exit 1); exit 1; }; }
6656 ac_cv_path_EGREP
=$EGREP
6662 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6663 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6664 EGREP
="$ac_cv_path_EGREP"
6667 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6668 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6669 if test "${ac_cv_header_stdc+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 cat >conftest.
$ac_ext <<_ACEOF
6675 cat confdefs.h
>>conftest.
$ac_ext
6676 cat >>conftest.
$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6691 rm -f conftest.
$ac_objext
6692 if { (ac_try
="$ac_compile"
6694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698 (eval "$ac_compile") 2>conftest.er1
6700 grep -v '^ *+' conftest.er1 >conftest.err
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } && {
6705 test -z "$ac_c_werror_flag" ||
6706 test ! -s conftest.err
6707 } && test -s conftest.$ac_objext; then
6708 ac_cv_header_stdc=yes
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 ac_cv_header_stdc=no
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 if test $ac_cv_header_stdc = yes; then
6719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6720 cat >conftest.$ac_ext <<_ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6730 $EGREP "memchr" >/dev/null 2>&1; then
6733 ac_cv_header_stdc=no
6739 if test $ac_cv_header_stdc = yes; then
6740 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6741 cat >conftest.$ac_ext <<_ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751 $EGREP "free" >/dev/null 2>&1; then
6754 ac_cv_header_stdc=no
6760 if test $ac_cv_header_stdc = yes; then
6761 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6762 if test "$cross_compiling" = yes; then
6765 cat >conftest.$ac_ext <<_ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6773 #if ((' ' & 0x0FF) == 0x020)
6774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6777 # define ISLOWER(c) \
6778 (('a' <= (c) && (c) <= 'i') \
6779 || ('j' <= (c) && (c) <= 'r') \
6780 || ('s' <= (c) && (c) <= 'z'))
6781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6789 for (i = 0; i < 256; i++)
6790 if (XOR (islower (i), ISLOWER (i))
6791 || toupper (i) != TOUPPER (i))
6796 rm -f conftest$ac_exeext
6797 if { (ac_try="$ac_link"
6799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6800 *) ac_try_echo
=$ac_try;;
6802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803 (eval "$ac_link") 2>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6807 { (case "(($ac_try" in
6808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_try") 2>&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6818 echo "$as_me: program exited with status $ac_status" >&5
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6823 ac_cv_header_stdc=no
6825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6831 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6832 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6833 if test $ac_cv_header_stdc = yes; then
6835 cat >>confdefs.h <<\_ACEOF
6836 #define STDC_HEADERS 1
6841 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6851 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6852 inttypes.h stdint.h unistd.h
6854 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 cat >conftest.$ac_ext <<_ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6866 $ac_includes_default
6868 #include <$ac_header>
6870 rm -f conftest.$ac_objext
6871 if { (ac_try="$ac_compile"
6873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6874 *) ac_try_echo
=$ac_try;;
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877 (eval "$ac_compile") 2>conftest.er1
6879 grep -v '^ *+' conftest.er1
>conftest.err
6881 cat conftest.err
>&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } && {
6884 test -z "$ac_c_werror_flag" ||
6885 test ! -s conftest.err
6886 } && test -s conftest.
$ac_objext; then
6887 eval "$as_ac_Header=yes"
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.
$ac_ext >&5
6892 eval "$as_ac_Header=no"
6895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6897 ac_res
=`eval echo '${'$as_ac_Header'}'`
6898 { echo "$as_me:$LINENO: result: $ac_res" >&5
6899 echo "${ECHO_T}$ac_res" >&6; }
6900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6901 cat >>confdefs.h
<<_ACEOF
6902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6910 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6911 # for constant arguments. Useless!
6912 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6913 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6914 if test "${ac_cv_working_alloca_h+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 cat >conftest.
$ac_ext <<_ACEOF
6920 cat confdefs.h
>>conftest.
$ac_ext
6921 cat >>conftest.
$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6927 char *p = (char *) alloca (2 * sizeof (int));
6933 rm -f conftest.
$ac_objext conftest
$ac_exeext
6934 if { (ac_try
="$ac_link"
6936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940 (eval "$ac_link") 2>conftest.er1
6942 grep -v '^ *+' conftest.er1 >conftest.err
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } && {
6947 test -z "$ac_c_werror_flag" ||
6948 test ! -s conftest.err
6949 } && test -s conftest$ac_exeext &&
6950 $as_test_x conftest$ac_exeext; then
6951 ac_cv_working_alloca_h=yes
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_cv_working_alloca_h=no
6959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6960 conftest$ac_exeext conftest.$ac_ext
6962 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6963 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6964 if test $ac_cv_working_alloca_h = yes; then
6966 cat >>confdefs.h <<\_ACEOF
6967 #define HAVE_ALLOCA_H 1
6972 { echo "$as_me:$LINENO: checking for alloca" >&5
6973 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6974 if test "${ac_cv_func_alloca_works+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 cat >conftest.$ac_ext <<_ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6984 # define alloca __builtin_alloca
6987 # include <malloc.h>
6988 # define alloca _alloca
6990 # ifdef HAVE_ALLOCA_H
6991 # include <alloca.h>
6996 # ifndef alloca /* predefined by HP cc +Olibcalls */
7007 char *p = (char *) alloca (1);
7013 rm -f conftest.$ac_objext conftest$ac_exeext
7014 if { (ac_try="$ac_link"
7016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7017 *) ac_try_echo
=$ac_try;;
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020 (eval "$ac_link") 2>conftest.er1
7022 grep -v '^ *+' conftest.er1
>conftest.err
7024 cat conftest.err
>&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && {
7027 test -z "$ac_c_werror_flag" ||
7028 test ! -s conftest.err
7029 } && test -s conftest
$ac_exeext &&
7030 $as_test_x conftest
$ac_exeext; then
7031 ac_cv_func_alloca_works
=yes
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.
$ac_ext >&5
7036 ac_cv_func_alloca_works
=no
7039 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7040 conftest
$ac_exeext conftest.
$ac_ext
7042 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7043 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7045 if test $ac_cv_func_alloca_works = yes; then
7047 cat >>confdefs.h
<<\_ACEOF
7048 #define HAVE_ALLOCA 1
7052 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7053 # that cause trouble. Some versions do not even contain alloca or
7054 # contain a buggy version. If you still want to use their alloca,
7055 # use ar to extract alloca.o from them instead of compiling alloca.c.
7057 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7059 cat >>confdefs.h
<<\_ACEOF
7064 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7065 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7066 if test "${ac_cv_os_cray+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 cat >conftest.
$ac_ext <<_ACEOF
7072 cat confdefs.h
>>conftest.
$ac_ext
7073 cat >>conftest.
$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 #if defined CRAY && ! defined CRAY2
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 $EGREP "webecray" >/dev
/null
2>&1; then
7091 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7092 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7093 if test $ac_cv_os_cray = yes; then
7094 for ac_func
in _getb67 GETB67 getb67
; do
7095 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7098 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 cat >conftest.
$ac_ext <<_ACEOF
7104 cat confdefs.h
>>conftest.
$ac_ext
7105 cat >>conftest.
$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7109 #define $ac_func innocuous_$ac_func
7111 /* System header to define __stub macros and hopefully few prototypes,
7112 which can conflict with char $ac_func (); below.
7113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7114 <limits.h> exists even on freestanding compilers. */
7117 # include <limits.h>
7119 # include <assert.h>
7124 /* Override any GCC internal prototype to avoid an error.
7125 Use char because int might match the return type of a GCC
7126 builtin and then its argument prototype would still apply. */
7131 /* The GNU C library defines this for functions which it implements
7132 to always fail with ENOSYS. Some functions are actually named
7133 something starting with __ and the normal name is an alias. */
7134 #if defined __stub_$ac_func || defined __stub___$ac_func
7146 rm -f conftest.
$ac_objext conftest
$ac_exeext
7147 if { (ac_try
="$ac_link"
7149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7150 *) ac_try_echo=$ac_try;;
7152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7153 (eval "$ac_link") 2>conftest.er1
7155 grep -v '^ *+' conftest.er1 >conftest.err
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } && {
7160 test -z "$ac_c_werror_flag" ||
7161 test ! -s conftest.err
7162 } && test -s conftest$ac_exeext &&
7163 $as_test_x conftest$ac_exeext; then
7164 eval "$as_ac_var=yes"
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7169 eval "$as_ac_var=no"
7172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7173 conftest$ac_exeext conftest.$ac_ext
7175 ac_res=`eval echo '${'$as_ac_var'}'`
7176 { echo "$as_me:$LINENO: result: $ac_res" >&5
7177 echo "${ECHO_T}$ac_res" >&6; }
7178 if test `eval echo '${'$as_ac_var'}'` = yes; then
7180 cat >>confdefs.h <<_ACEOF
7181 #define CRAY_STACKSEG_END $ac_func
7190 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7191 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7192 if test "${ac_cv_c_stack_direction+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 if test "$cross_compiling" = yes; then
7196 ac_cv_c_stack_direction=0
7198 cat >conftest.$ac_ext <<_ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 $ac_includes_default
7206 find_stack_direction ()
7208 static char *addr = 0;
7213 return find_stack_direction ();
7216 return (&dummy > addr) ? 1 : -1;
7222 return find_stack_direction () < 0;
7225 rm -f conftest$ac_exeext
7226 if { (ac_try="$ac_link"
7228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7229 *) ac_try_echo
=$ac_try;;
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_link") 2>&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7236 { (case "(($ac_try" in
7237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7238 *) ac_try_echo=$ac_try;;
7240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241 (eval "$ac_try") 2>&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 ac_cv_c_stack_direction=1
7247 echo "$as_me: program exited with status $ac_status" >&5
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7252 ac_cv_c_stack_direction=-1
7254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7259 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7260 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7262 cat >>confdefs.h <<_ACEOF
7263 #define STACK_DIRECTION $ac_cv_c_stack_direction
7275 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7276 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
7277 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7278 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 #include <sys/types.h>
7300 rm -f conftest.$ac_objext
7301 if { (ac_try="$ac_compile"
7303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7304 *) ac_try_echo
=$ac_try;;
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307 (eval "$ac_compile") 2>conftest.er1
7309 grep -v '^ *+' conftest.er1
>conftest.err
7311 cat conftest.err
>&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } && {
7314 test -z "$ac_c_werror_flag" ||
7315 test ! -s conftest.err
7316 } && test -s conftest.
$ac_objext; then
7317 eval "$as_ac_Header=yes"
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.
$ac_ext >&5
7322 eval "$as_ac_Header=no"
7325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7327 ac_res
=`eval echo '${'$as_ac_Header'}'`
7328 { echo "$as_me:$LINENO: result: $ac_res" >&5
7329 echo "${ECHO_T}$ac_res" >&6; }
7330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7331 cat >>confdefs.h
<<_ACEOF
7332 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7335 ac_header_dirent
=$ac_hdr; break
7339 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7340 if test $ac_header_dirent = dirent.h
; then
7341 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7343 if test "${ac_cv_search_opendir+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 ac_func_search_save_LIBS
=$LIBS
7347 cat >conftest.
$ac_ext <<_ACEOF
7350 cat confdefs.h
>>conftest.
$ac_ext
7351 cat >>conftest.
$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7354 /* Override any GCC internal prototype to avoid an error.
7355 Use char because int might match the return type of a GCC
7356 builtin and then its argument prototype would still apply. */
7369 for ac_lib
in '' dir
; do
7370 if test -z "$ac_lib"; then
7371 ac_res
="none required"
7374 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7376 rm -f conftest.
$ac_objext conftest
$ac_exeext
7377 if { (ac_try
="$ac_link"
7379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_link") 2>conftest.er1
7385 grep -v '^ *+' conftest.er1 >conftest.err
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest$ac_exeext &&
7393 $as_test_x conftest$ac_exeext; then
7394 ac_cv_search_opendir=$ac_res
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7404 if test "${ac_cv_search_opendir+set}" = set; then
7408 if test "${ac_cv_search_opendir+set}" = set; then
7411 ac_cv_search_opendir=no
7414 LIBS=$ac_func_search_save_LIBS
7416 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7417 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7418 ac_res=$ac_cv_search_opendir
7419 if test "$ac_res" != no; then
7420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7425 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7426 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7427 if test "${ac_cv_search_opendir+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 ac_func_search_save_LIBS=$LIBS
7431 cat >conftest.$ac_ext <<_ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7438 /* Override any GCC internal prototype to avoid an error.
7439 Use char because int might match the return type of a GCC
7440 builtin and then its argument prototype would still apply. */
7453 for ac_lib in '' x; do
7454 if test -z "$ac_lib"; then
7455 ac_res="none required"
7458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (ac_try="$ac_link"
7463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7464 *) ac_try_echo
=$ac_try;;
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467 (eval "$ac_link") 2>conftest.er1
7469 grep -v '^ *+' conftest.er1
>conftest.err
7471 cat conftest.err
>&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_c_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest
$ac_exeext &&
7477 $as_test_x conftest
$ac_exeext; then
7478 ac_cv_search_opendir
=$ac_res
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.
$ac_ext >&5
7486 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7488 if test "${ac_cv_search_opendir+set}" = set; then
7492 if test "${ac_cv_search_opendir+set}" = set; then
7495 ac_cv_search_opendir
=no
7498 LIBS
=$ac_func_search_save_LIBS
7500 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7501 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7502 ac_res
=$ac_cv_search_opendir
7503 if test "$ac_res" != no
; then
7504 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7510 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7511 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7512 if test "${ac_cv_header_stdc+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 cat >conftest.
$ac_ext <<_ACEOF
7518 cat confdefs.h
>>conftest.
$ac_ext
7519 cat >>conftest.
$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7534 rm -f conftest.
$ac_objext
7535 if { (ac_try
="$ac_compile"
7537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1 >conftest.err
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7551 ac_cv_header_stdc=yes
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7556 ac_cv_header_stdc=no
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 if test $ac_cv_header_stdc = yes; then
7562 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7563 cat >conftest.$ac_ext <<_ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7573 $EGREP "memchr" >/dev/null 2>&1; then
7576 ac_cv_header_stdc=no
7582 if test $ac_cv_header_stdc = yes; then
7583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7584 cat >conftest.$ac_ext <<_ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7594 $EGREP "free" >/dev/null 2>&1; then
7597 ac_cv_header_stdc=no
7603 if test $ac_cv_header_stdc = yes; then
7604 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7605 if test "$cross_compiling" = yes; then
7608 cat >conftest.$ac_ext <<_ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7616 #if ((' ' & 0x0FF) == 0x020)
7617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7620 # define ISLOWER(c) \
7621 (('a' <= (c) && (c) <= 'i') \
7622 || ('j' <= (c) && (c) <= 'r') \
7623 || ('s' <= (c) && (c) <= 'z'))
7624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7632 for (i = 0; i < 256; i++)
7633 if (XOR (islower (i), ISLOWER (i))
7634 || toupper (i) != TOUPPER (i))
7639 rm -f conftest$ac_exeext
7640 if { (ac_try="$ac_link"
7642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7643 *) ac_try_echo
=$ac_try;;
7645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_link") 2>&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7650 { (case "(($ac_try" in
7651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_try") 2>&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7661 echo "$as_me: program exited with status $ac_status" >&5
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7666 ac_cv_header_stdc=no
7668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7674 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7675 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7676 if test $ac_cv_header_stdc = yes; then
7678 cat >>confdefs.h <<\_ACEOF
7679 #define STDC_HEADERS 1
7684 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7685 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7686 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 cat >conftest.$ac_ext <<_ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #include <sys/types.h>
7696 #include <sys/wait.h>
7698 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7701 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7709 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7714 rm -f conftest.$ac_objext
7715 if { (ac_try="$ac_compile"
7717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7718 *) ac_try_echo
=$ac_try;;
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_compile") 2>conftest.er1
7723 grep -v '^ *+' conftest.er1
>conftest.err
7725 cat conftest.err
>&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && {
7728 test -z "$ac_c_werror_flag" ||
7729 test ! -s conftest.err
7730 } && test -s conftest.
$ac_objext; then
7731 ac_cv_header_sys_wait_h
=yes
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.
$ac_ext >&5
7736 ac_cv_header_sys_wait_h
=no
7739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7741 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7742 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7743 if test $ac_cv_header_sys_wait_h = yes; then
7745 cat >>confdefs.h
<<\_ACEOF
7746 #define HAVE_SYS_WAIT_H 1
7774 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
7776 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7780 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 ac_res
=`eval echo '${'$as_ac_Header'}'`
7784 { echo "$as_me:$LINENO: result: $ac_res" >&5
7785 echo "${ECHO_T}$ac_res" >&6; }
7787 # Is the header compilable?
7788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7790 cat >conftest.
$ac_ext <<_ACEOF
7793 cat confdefs.h
>>conftest.
$ac_ext
7794 cat >>conftest.
$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7796 $ac_includes_default
7797 #include <$ac_header>
7799 rm -f conftest.
$ac_objext
7800 if { (ac_try
="$ac_compile"
7802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compile") 2>conftest.er1
7808 grep -v '^ *+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest.$ac_objext; then
7816 ac_header_compiler=yes
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 ac_header_compiler=no
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7826 echo "${ECHO_T}$ac_header_compiler" >&6; }
7828 # Is the header present?
7829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7831 cat >conftest.$ac_ext <<_ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 #include <$ac_header>
7839 if { (ac_try="$ac_cpp conftest.$ac_ext"
7841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7842 *) ac_try_echo
=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7847 grep -v '^ *+' conftest.er1
>conftest.err
7849 cat conftest.err
>&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } >/dev
/null
&& {
7852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7853 test ! -s conftest.err
7855 ac_header_preproc
=yes
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.
$ac_ext >&5
7860 ac_header_preproc
=no
7863 rm -f conftest.err conftest.
$ac_ext
7864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7865 echo "${ECHO_T}$ac_header_preproc" >&6; }
7867 # So? What about this header?
7868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7874 ac_header_preproc
=yes
7877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7894 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 eval "$as_ac_Header=\$ac_header_preproc"
7899 ac_res
=`eval echo '${'$as_ac_Header'}'`
7900 { echo "$as_me:$LINENO: result: $ac_res" >&5
7901 echo "${ECHO_T}$ac_res" >&6; }
7904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7905 cat >>confdefs.h
<<_ACEOF
7906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7914 # Check whether --enable-largefile was given.
7915 if test "${enable_largefile+set}" = set; then
7916 enableval
=$enable_largefile;
7919 if test "$enable_largefile" != no
; then
7921 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
7922 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
7923 if test "${ac_cv_sys_largefile_CC+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 ac_cv_sys_largefile_CC
=no
7927 if test "$GCC" != yes; then
7930 # IRIX 6.2 and later do not support large files by default,
7931 # so use the C compiler's -n32 option if that helps.
7932 cat >conftest.
$ac_ext <<_ACEOF
7935 cat confdefs.h
>>conftest.
$ac_ext
7936 cat >>conftest.
$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 #include <sys/types.h>
7939 /* Check that off_t can represent 2**63 - 1 correctly.
7940 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7941 since some C++ compilers masquerading as C compilers
7942 incorrectly reject 9223372036854775807. */
7943 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7944 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7945 && LARGE_OFF_T % 2147483647 == 1)
7955 rm -f conftest.
$ac_objext
7956 if { (ac_try
="$ac_compile"
7958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7980 rm -f core conftest.err conftest.$ac_objext
7982 rm -f conftest.$ac_objext
7983 if { (ac_try="$ac_compile"
7985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7986 *) ac_try_echo
=$ac_try;;
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_compile") 2>conftest.er1
7991 grep -v '^ *+' conftest.er1
>conftest.err
7993 cat conftest.err
>&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } && {
7996 test -z "$ac_c_werror_flag" ||
7997 test ! -s conftest.err
7998 } && test -s conftest.
$ac_objext; then
7999 ac_cv_sys_largefile_CC
=' -n32'; break
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.
$ac_ext >&5
8007 rm -f core conftest.err conftest.
$ac_objext
8011 rm -f conftest.
$ac_ext
8014 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8015 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
8016 if test "$ac_cv_sys_largefile_CC" != no
; then
8017 CC
=$CC$ac_cv_sys_largefile_CC
8020 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8021 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
8022 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 cat >conftest.
$ac_ext <<_ACEOF
8029 cat confdefs.h
>>conftest.
$ac_ext
8030 cat >>conftest.
$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 #include <sys/types.h>
8033 /* Check that off_t can represent 2**63 - 1 correctly.
8034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8035 since some C++ compilers masquerading as C compilers
8036 incorrectly reject 9223372036854775807. */
8037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8039 && LARGE_OFF_T % 2147483647 == 1)
8049 rm -f conftest.
$ac_objext
8050 if { (ac_try
="$ac_compile"
8052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8058 grep -v '^ *+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } && {
8063 test -z "$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 } && test -s conftest.$ac_objext; then
8066 ac_cv_sys_file_offset_bits=no; break
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 cat >conftest.$ac_ext <<_ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 #define _FILE_OFFSET_BITS 64
8082 #include <sys/types.h>
8083 /* Check that off_t can represent 2**63 - 1 correctly.
8084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8085 since some C++ compilers masquerading as C compilers
8086 incorrectly reject 9223372036854775807. */
8087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8089 && LARGE_OFF_T % 2147483647 == 1)
8099 rm -f conftest.$ac_objext
8100 if { (ac_try="$ac_compile"
8102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8103 *) ac_try_echo
=$ac_try;;
8105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106 (eval "$ac_compile") 2>conftest.er1
8108 grep -v '^ *+' conftest.er1
>conftest.err
8110 cat conftest.err
>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } && {
8113 test -z "$ac_c_werror_flag" ||
8114 test ! -s conftest.err
8115 } && test -s conftest.
$ac_objext; then
8116 ac_cv_sys_file_offset_bits
=64; break
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.
$ac_ext >&5
8124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8125 ac_cv_sys_file_offset_bits
=unknown
8129 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8130 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
8131 case $ac_cv_sys_file_offset_bits in #(
8134 cat >>confdefs.h
<<_ACEOF
8135 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8140 if test $ac_cv_sys_file_offset_bits = unknown
; then
8141 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8142 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
8143 if test "${ac_cv_sys_large_files+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 cat >conftest.
$ac_ext <<_ACEOF
8150 cat confdefs.h
>>conftest.
$ac_ext
8151 cat >>conftest.
$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 #include <sys/types.h>
8154 /* Check that off_t can represent 2**63 - 1 correctly.
8155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8156 since some C++ compilers masquerading as C compilers
8157 incorrectly reject 9223372036854775807. */
8158 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8160 && LARGE_OFF_T % 2147483647 == 1)
8170 rm -f conftest.
$ac_objext
8171 if { (ac_try
="$ac_compile"
8173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_compile") 2>conftest.er1
8179 grep -v '^ *+' conftest.er1 >conftest.err
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest.$ac_objext; then
8187 ac_cv_sys_large_files=no; break
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 cat >conftest.$ac_ext <<_ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 #define _LARGE_FILES 1
8203 #include <sys/types.h>
8204 /* Check that off_t can represent 2**63 - 1 correctly.
8205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8206 since some C++ compilers masquerading as C compilers
8207 incorrectly reject 9223372036854775807. */
8208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8210 && LARGE_OFF_T % 2147483647 == 1)
8220 rm -f conftest.$ac_objext
8221 if { (ac_try="$ac_compile"
8223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8224 *) ac_try_echo
=$ac_try;;
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_compile") 2>conftest.er1
8229 grep -v '^ *+' conftest.er1
>conftest.err
8231 cat conftest.err
>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && {
8234 test -z "$ac_c_werror_flag" ||
8235 test ! -s conftest.err
8236 } && test -s conftest.
$ac_objext; then
8237 ac_cv_sys_large_files
=1; break
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.
$ac_ext >&5
8245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8246 ac_cv_sys_large_files
=unknown
8250 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8251 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
8252 case $ac_cv_sys_large_files in #(
8255 cat >>confdefs.h
<<_ACEOF
8256 #define _LARGE_FILES $ac_cv_sys_large_files
8265 # Checks for typedefs, structures, and compiler characteristics.
8266 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8267 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
8268 if test "${ac_cv_header_stdbool_h+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 cat >conftest.
$ac_ext <<_ACEOF
8274 cat confdefs.h
>>conftest.
$ac_ext
8275 cat >>conftest.
$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8278 #include <stdbool.h>
8280 "error: bool is not defined"
8283 "error: false is not defined"
8286 "error: false is not 0"
8289 "error: true is not defined"
8292 "error: true is not 1"
8294 #ifndef __bool_true_false_are_defined
8295 "error: __bool_true_false_are_defined is not defined"
8298 struct s { _Bool s: 1; _Bool t; } s;
8300 char a[true == 1 ? 1 : -1];
8301 char b[false == 0 ? 1 : -1];
8302 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8303 char d[(bool) 0.5 == true ? 1 : -1];
8305 char f[(_Bool) 0.0 == false ? 1 : -1];
8307 char h[sizeof (_Bool)];
8309 enum { j = false, k = true, l = false * true, m = true * 256 };
8311 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8312 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8313 # if defined __xlc__ || defined __GNUC__
8314 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8315 reported by James Lemley on 2005-10-05; see
8316 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8317 This test is not quite right, since xlc is allowed to
8318 reject this program, as the initializer for xlcbug is
8319 not one of the forms that C requires support for.
8320 However, doing the test right would require a runtime
8321 test, and that would make cross-compilation harder.
8322 Let us hope that IBM fixes the xlc bug, and also adds
8323 support for this kind of constant expression. In the
8324 meantime, this test will reject xlc, which is OK, since
8325 our stdbool.h substitute should suffice. We also test
8326 this with GCC, where it should work, to detect more
8327 quickly whether someone messes up the test in the
8329 char digs[] = "0123456789";
8330 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8332 /* Catch a bug in an HP-UX C compiler. See
8333 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8334 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8345 /* Refer to every declared value, to avoid compiler optimizations. */
8346 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8347 + !m + !n + !o + !p + !q + !pq);
8353 rm -f conftest.
$ac_objext
8354 if { (ac_try
="$ac_compile"
8356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_compile") 2>conftest.er1
8362 grep -v '^ *+' conftest.er1 >conftest.err
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } && {
8367 test -z "$ac_c_werror_flag" ||
8368 test ! -s conftest.err
8369 } && test -s conftest.$ac_objext; then
8370 ac_cv_header_stdbool_h=yes
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 ac_cv_header_stdbool_h=no
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8381 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8382 { echo "$as_me:$LINENO: checking for _Bool" >&5
8383 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8384 if test "${ac_cv_type__Bool+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 cat >conftest.$ac_ext <<_ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 typedef _Bool ac__type_new_;
8398 if ((ac__type_new_ *) 0)
8400 if (sizeof (ac__type_new_))
8406 rm -f conftest.$ac_objext
8407 if { (ac_try="$ac_compile"
8409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8410 *) ac_try_echo
=$ac_try;;
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_compile") 2>conftest.er1
8415 grep -v '^ *+' conftest.er1
>conftest.err
8417 cat conftest.err
>&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } && {
8420 test -z "$ac_c_werror_flag" ||
8421 test ! -s conftest.err
8422 } && test -s conftest.
$ac_objext; then
8423 ac_cv_type__Bool
=yes
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.
$ac_ext >&5
8431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8434 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8435 if test $ac_cv_type__Bool = yes; then
8437 cat >>confdefs.h
<<_ACEOF
8438 #define HAVE__BOOL 1
8444 if test $ac_cv_header_stdbool_h = yes; then
8446 cat >>confdefs.h
<<\_ACEOF
8447 #define HAVE_STDBOOL_H 1
8452 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8453 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8454 if test "${ac_cv_c_const+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 cat >conftest.
$ac_ext <<_ACEOF
8460 cat confdefs.h
>>conftest.
$ac_ext
8461 cat >>conftest.
$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8467 /* FIXME: Include the comments suggested by Paul. */
8469 /* Ultrix mips cc rejects this. */
8470 typedef int charset[2];
8472 /* SunOS 4.1.1 cc rejects this. */
8473 char const *const *pcpcc;
8475 /* NEC SVR4.0.2 mips cc rejects this. */
8476 struct point {int x, y;};
8477 static struct point const zero = {0,0};
8478 /* AIX XL C 1.02.0.0 rejects this.
8479 It does not let you subtract one const X* pointer from another in
8480 an arm of an if-expression whose if-part is not a constant
8482 const char *g = "string";
8483 pcpcc = &g + (g ? g-g : 0);
8484 /* HPUX 7.0 cc rejects these. */
8486 ppc = (char**) pcpcc;
8487 pcpcc = (char const *const *) ppc;
8488 { /* SCO 3.2v4 cc rejects this. */
8490 char const *s = 0 ? (char *) 0 : (char const *) 0;
8495 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8497 const int *foo = &x[0];
8500 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8501 typedef const int *iptr;
8505 { /* AIX XL C 1.02.0.0 rejects this saying
8506 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8507 struct s { int j; const int *ap[3]; };
8508 struct s *b; b->j = 5;
8510 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8514 return !cs[0] && !zero.x;
8521 rm -f conftest.
$ac_objext
8522 if { (ac_try
="$ac_compile"
8524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8549 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8550 if test $ac_cv_c_const = no; then
8552 cat >>confdefs.h <<\_ACEOF
8558 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8559 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8560 if test "${ac_cv_type_uid_t+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 #include <sys/types.h>
8572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8573 $EGREP "uid_t" >/dev/null 2>&1; then
8574 ac_cv_type_uid_t=yes
8581 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8582 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8583 if test $ac_cv_type_uid_t = no; then
8585 cat >>confdefs.h <<\_ACEOF
8590 cat >>confdefs.h <<\_ACEOF
8596 { echo "$as_me:$LINENO: checking for inline" >&5
8597 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8598 if test "${ac_cv_c_inline+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 for ac_kw in inline __inline__ __inline; do
8603 cat >conftest.$ac_ext <<_ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8611 static $ac_kw foo_t static_foo () {return 0; }
8612 $ac_kw foo_t foo () {return 0; }
8616 rm -f conftest.$ac_objext
8617 if { (ac_try="$ac_compile"
8619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8620 *) ac_try_echo
=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_compile") 2>conftest.er1
8625 grep -v '^ *+' conftest.er1
>conftest.err
8627 cat conftest.err
>&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } && {
8630 test -z "$ac_c_werror_flag" ||
8631 test ! -s conftest.err
8632 } && test -s conftest.
$ac_objext; then
8633 ac_cv_c_inline
=$ac_kw
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.
$ac_ext >&5
8641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8642 test "$ac_cv_c_inline" != no
&& break
8646 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8647 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8650 case $ac_cv_c_inline in
8653 case $ac_cv_c_inline in
8655 *) ac_val
=$ac_cv_c_inline;;
8657 cat >>confdefs.h
<<_ACEOF
8659 #define inline $ac_val
8665 { echo "$as_me:$LINENO: checking for mode_t" >&5
8666 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8667 if test "${ac_cv_type_mode_t+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 cat >conftest.
$ac_ext <<_ACEOF
8673 cat confdefs.h
>>conftest.
$ac_ext
8674 cat >>conftest.
$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8676 $ac_includes_default
8677 typedef mode_t ac__type_new_;
8681 if ((ac__type_new_ *) 0)
8683 if (sizeof (ac__type_new_))
8689 rm -f conftest.
$ac_objext
8690 if { (ac_try
="$ac_compile"
8692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_compile") 2>conftest.er1
8698 grep -v '^ *+' conftest.er1 >conftest.err
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest.$ac_objext; then
8706 ac_cv_type_mode_t=yes
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8711 ac_cv_type_mode_t=no
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8717 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8718 if test $ac_cv_type_mode_t = yes; then
8722 cat >>confdefs.h <<_ACEOF
8728 { echo "$as_me:$LINENO: checking for off_t" >&5
8729 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8730 if test "${ac_cv_type_off_t+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 typedef off_t ac__type_new_;
8744 if ((ac__type_new_ *) 0)
8746 if (sizeof (ac__type_new_))
8752 rm -f conftest.$ac_objext
8753 if { (ac_try="$ac_compile"
8755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8756 *) ac_try_echo
=$ac_try;;
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval "$ac_compile") 2>conftest.er1
8761 grep -v '^ *+' conftest.er1
>conftest.err
8763 cat conftest.err
>&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest.
$ac_objext; then
8769 ac_cv_type_off_t
=yes
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.
$ac_ext >&5
8777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8779 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8780 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8781 if test $ac_cv_type_off_t = yes; then
8785 cat >>confdefs.h
<<_ACEOF
8786 #define off_t long int
8791 { echo "$as_me:$LINENO: checking for pid_t" >&5
8792 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8793 if test "${ac_cv_type_pid_t+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 cat >conftest.
$ac_ext <<_ACEOF
8799 cat confdefs.h
>>conftest.
$ac_ext
8800 cat >>conftest.
$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 $ac_includes_default
8803 typedef pid_t ac__type_new_;
8807 if ((ac__type_new_ *) 0)
8809 if (sizeof (ac__type_new_))
8815 rm -f conftest.
$ac_objext
8816 if { (ac_try
="$ac_compile"
8818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_compile") 2>conftest.er1
8824 grep -v '^ *+' conftest.er1 >conftest.err
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } && {
8829 test -z "$ac_c_werror_flag" ||
8830 test ! -s conftest.err
8831 } && test -s conftest.$ac_objext; then
8832 ac_cv_type_pid_t=yes
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8843 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8844 if test $ac_cv_type_pid_t = yes; then
8848 cat >>confdefs.h <<_ACEOF
8854 { echo "$as_me:$LINENO: checking for size_t" >&5
8855 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8856 if test "${ac_cv_type_size_t+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 cat >conftest.$ac_ext <<_ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8866 typedef size_t ac__type_new_;
8870 if ((ac__type_new_ *) 0)
8872 if (sizeof (ac__type_new_))
8878 rm -f conftest.$ac_objext
8879 if { (ac_try="$ac_compile"
8881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8882 *) ac_try_echo
=$ac_try;;
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8887 grep -v '^ *+' conftest.er1
>conftest.err
8889 cat conftest.err
>&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.
$ac_objext; then
8895 ac_cv_type_size_t
=yes
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8900 ac_cv_type_size_t
=no
8903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8905 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8906 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8907 if test $ac_cv_type_size_t = yes; then
8911 cat >>confdefs.h
<<_ACEOF
8912 #define size_t unsigned int
8917 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
8918 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
8919 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 cat >conftest.
$ac_ext <<_ACEOF
8925 cat confdefs.h
>>conftest.
$ac_ext
8926 cat >>conftest.
$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 $ac_includes_default
8932 static struct stat ac_aggr;
8933 if (ac_aggr.st_blksize)
8939 rm -f conftest.
$ac_objext
8940 if { (ac_try
="$ac_compile"
8942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_compile") 2>conftest.er1
8948 grep -v '^ *+' conftest.er1 >conftest.err
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest.$ac_objext; then
8956 ac_cv_member_struct_stat_st_blksize=yes
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 $ac_includes_default
8971 static struct stat ac_aggr;
8972 if (sizeof ac_aggr.st_blksize)
8978 rm -f conftest.$ac_objext
8979 if { (ac_try="$ac_compile"
8981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8982 *) ac_try_echo
=$ac_try;;
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_compile") 2>conftest.er1
8987 grep -v '^ *+' conftest.er1
>conftest.err
8989 cat conftest.err
>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } && {
8992 test -z "$ac_c_werror_flag" ||
8993 test ! -s conftest.err
8994 } && test -s conftest.
$ac_objext; then
8995 ac_cv_member_struct_stat_st_blksize
=yes
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.
$ac_ext >&5
9000 ac_cv_member_struct_stat_st_blksize
=no
9003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9008 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9009 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
9010 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9012 cat >>confdefs.h
<<_ACEOF
9013 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9019 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9020 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9021 if test "${ac_cv_header_time+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 cat >conftest.
$ac_ext <<_ACEOF
9027 cat confdefs.h
>>conftest.
$ac_ext
9028 cat >>conftest.
$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 #include <sys/types.h>
9031 #include <sys/time.h>
9037 if ((struct tm *) 0)
9043 rm -f conftest.
$ac_objext
9044 if { (ac_try
="$ac_compile"
9046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050 (eval "$ac_compile") 2>conftest.er1
9052 grep -v '^ *+' conftest.er1 >conftest.err
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && {
9057 test -z "$ac_c_werror_flag" ||
9058 test ! -s conftest.err
9059 } && test -s conftest.$ac_objext; then
9060 ac_cv_header_time=yes
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 ac_cv_header_time=no
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9071 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9072 if test $ac_cv_header_time = yes; then
9074 cat >>confdefs.h <<\_ACEOF
9075 #define TIME_WITH_SYS_TIME 1
9080 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9081 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9082 if test "${ac_cv_struct_tm+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 cat >conftest.$ac_ext <<_ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9091 #include <sys/types.h>
9098 int *p = &tm.tm_sec;
9104 rm -f conftest.$ac_objext
9105 if { (ac_try="$ac_compile"
9107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9108 *) ac_try_echo
=$ac_try;;
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_compile") 2>conftest.er1
9113 grep -v '^ *+' conftest.er1
>conftest.err
9115 cat conftest.err
>&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } && {
9118 test -z "$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9120 } && test -s conftest.
$ac_objext; then
9121 ac_cv_struct_tm
=time.h
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.
$ac_ext >&5
9126 ac_cv_struct_tm
=sys
/time.h
9129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9131 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9132 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9133 if test $ac_cv_struct_tm = sys
/time.h
; then
9135 cat >>confdefs.h
<<\_ACEOF
9136 #define TM_IN_SYS_TIME 1
9141 { echo "$as_me:$LINENO: checking for working volatile" >&5
9142 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9143 if test "${ac_cv_c_volatile+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 cat >conftest.
$ac_ext <<_ACEOF
9149 cat confdefs.h
>>conftest.
$ac_ext
9150 cat >>conftest.
$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9158 int * volatile y = (int *) 0;
9164 rm -f conftest.
$ac_objext
9165 if { (ac_try
="$ac_compile"
9167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171 (eval "$ac_compile") 2>conftest.er1
9173 grep -v '^ *+' conftest.er1 >conftest.err
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } && {
9178 test -z "$ac_c_werror_flag" ||
9179 test ! -s conftest.err
9180 } && test -s conftest.$ac_objext; then
9181 ac_cv_c_volatile=yes
9183 echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9192 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9193 if test $ac_cv_c_volatile = no; then
9195 cat >>confdefs.h <<\_ACEOF
9201 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9202 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9203 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 cat >conftest.$ac_ext <<_ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 $ac_includes_default
9213 typedef ptrdiff_t ac__type_new_;
9217 if ((ac__type_new_ *) 0)
9219 if (sizeof (ac__type_new_))
9225 rm -f conftest.$ac_objext
9226 if { (ac_try="$ac_compile"
9228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9229 *) ac_try_echo
=$ac_try;;
9231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232 (eval "$ac_compile") 2>conftest.er1
9234 grep -v '^ *+' conftest.er1
>conftest.err
9236 cat conftest.err
>&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } && {
9239 test -z "$ac_c_werror_flag" ||
9240 test ! -s conftest.err
9241 } && test -s conftest.
$ac_objext; then
9242 ac_cv_type_ptrdiff_t
=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.
$ac_ext >&5
9247 ac_cv_type_ptrdiff_t
=no
9250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9252 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9253 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9254 if test $ac_cv_type_ptrdiff_t = yes; then
9256 cat >>confdefs.h
<<_ACEOF
9257 #define HAVE_PTRDIFF_T 1
9264 # Checks for library functions.
9266 for ac_header
in unistd.h
9268 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9269 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9272 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 ac_res
=`eval echo '${'$as_ac_Header'}'`
9276 { echo "$as_me:$LINENO: result: $ac_res" >&5
9277 echo "${ECHO_T}$ac_res" >&6; }
9279 # Is the header compilable?
9280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9282 cat >conftest.
$ac_ext <<_ACEOF
9285 cat confdefs.h
>>conftest.
$ac_ext
9286 cat >>conftest.
$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 $ac_includes_default
9289 #include <$ac_header>
9291 rm -f conftest.
$ac_objext
9292 if { (ac_try
="$ac_compile"
9294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_compile") 2>conftest.er1
9300 grep -v '^ *+' conftest.er1 >conftest.err
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } && {
9305 test -z "$ac_c_werror_flag" ||
9306 test ! -s conftest.err
9307 } && test -s conftest.$ac_objext; then
9308 ac_header_compiler=yes
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_header_compiler=no
9316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9318 echo "${ECHO_T}$ac_header_compiler" >&6; }
9320 # Is the header present?
9321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9323 cat >conftest.$ac_ext <<_ACEOF
9326 cat confdefs.h >>conftest.$ac_ext
9327 cat >>conftest.$ac_ext <<_ACEOF
9328 /* end confdefs.h. */
9329 #include <$ac_header>
9331 if { (ac_try="$ac_cpp conftest.$ac_ext"
9333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9334 *) ac_try_echo
=$ac_try;;
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9339 grep -v '^ *+' conftest.er1
>conftest.err
9341 cat conftest.err
>&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } >/dev
/null
&& {
9344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9345 test ! -s conftest.err
9347 ac_header_preproc
=yes
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.
$ac_ext >&5
9352 ac_header_preproc
=no
9355 rm -f conftest.err conftest.
$ac_ext
9356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9357 echo "${ECHO_T}$ac_header_preproc" >&6; }
9359 # So? What about this header?
9360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9366 ac_header_preproc
=yes
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9376 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9386 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 eval "$as_ac_Header=\$ac_header_preproc"
9391 ac_res
=`eval echo '${'$as_ac_Header'}'`
9392 { echo "$as_me:$LINENO: result: $ac_res" >&5
9393 echo "${ECHO_T}$ac_res" >&6; }
9396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9397 cat >>confdefs.h
<<_ACEOF
9398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9405 { echo "$as_me:$LINENO: checking for working chown" >&5
9406 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
9407 if test "${ac_cv_func_chown_works+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 if test "$cross_compiling" = yes; then
9411 ac_cv_func_chown_works
=no
9413 cat >conftest.
$ac_ext <<_ACEOF
9416 cat confdefs.h
>>conftest.
$ac_ext
9417 cat >>conftest.
$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 $ac_includes_default
9425 char *f = "conftest.chown";
9426 struct stat before, after;
9428 if (creat (f, 0600) < 0)
9430 if (stat (f, &before) < 0)
9432 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
9434 if (stat (f, &after) < 0)
9436 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
9442 rm -f conftest
$ac_exeext
9443 if { (ac_try
="$ac_link"
9445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449 (eval "$ac_link") 2>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9453 { (case "(($ac_try" in
9454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9455 *) ac_try_echo
=$ac_try;;
9457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9458 (eval "$ac_try") 2>&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_func_chown_works
=yes
9464 echo "$as_me: program exited with status $ac_status" >&5
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.
$ac_ext >&5
9469 ac_cv_func_chown_works
=no
9471 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9475 rm -f conftest.chown
9478 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
9479 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
9480 if test $ac_cv_func_chown_works = yes; then
9482 cat >>confdefs.h
<<\_ACEOF
9483 #define HAVE_CHOWN 1
9488 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9489 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
9490 if test "${ac_cv_func_closedir_void+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 if test "$cross_compiling" = yes; then
9494 ac_cv_func_closedir_void
=yes
9496 cat >conftest.
$ac_ext <<_ACEOF
9499 cat confdefs.h
>>conftest.
$ac_ext
9500 cat >>conftest.
$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 $ac_includes_default
9503 #include <$ac_header_dirent>
9511 return closedir (opendir (".")) != 0;
9516 rm -f conftest
$ac_exeext
9517 if { (ac_try
="$ac_link"
9519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_link") 2>&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9527 { (case "(($ac_try" in
9528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9529 *) ac_try_echo
=$ac_try;;
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_try") 2>&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_cv_func_closedir_void
=no
9538 echo "$as_me: program exited with status $ac_status" >&5
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.
$ac_ext >&5
9543 ac_cv_func_closedir_void
=yes
9545 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9550 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9551 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
9552 if test $ac_cv_func_closedir_void = yes; then
9554 cat >>confdefs.h
<<\_ACEOF
9555 #define CLOSEDIR_VOID 1
9560 { echo "$as_me:$LINENO: checking for error_at_line" >&5
9561 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
9562 if test "${ac_cv_lib_error_at_line+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 cat >conftest.
$ac_ext <<_ACEOF
9568 cat confdefs.h
>>conftest.
$ac_ext
9569 cat >>conftest.
$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9575 error_at_line (0, 0, "", 0, "an error occurred");
9580 rm -f conftest.
$ac_objext conftest
$ac_exeext
9581 if { (ac_try
="$ac_link"
9583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9584 *) ac_try_echo=$ac_try;;
9586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587 (eval "$ac_link") 2>conftest.er1
9589 grep -v '^ *+' conftest.er1 >conftest.err
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } && {
9594 test -z "$ac_c_werror_flag" ||
9595 test ! -s conftest.err
9596 } && test -s conftest$ac_exeext &&
9597 $as_test_x conftest$ac_exeext; then
9598 ac_cv_lib_error_at_line=yes
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9603 ac_cv_lib_error_at_line=no
9606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9607 conftest$ac_exeext conftest.$ac_ext
9609 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9610 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
9611 if test $ac_cv_lib_error_at_line = no; then
9612 case " $LIBOBJS " in
9613 *" error.$ac_objext "* ) ;;
9614 *) LIBOBJS="$LIBOBJS error.$ac_objext"
9621 for ac_header in vfork.h
9623 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 ac_res=`eval echo '${'$as_ac_Header'}'`
9631 { echo "$as_me:$LINENO: result: $ac_res" >&5
9632 echo "${ECHO_T}$ac_res" >&6; }
9634 # Is the header compilable?
9635 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9637 cat >conftest.$ac_ext <<_ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 $ac_includes_default
9644 #include <$ac_header>
9646 rm -f conftest.$ac_objext
9647 if { (ac_try="$ac_compile"
9649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9650 *) ac_try_echo
=$ac_try;;
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_compile") 2>conftest.er1
9655 grep -v '^ *+' conftest.er1
>conftest.err
9657 cat conftest.err
>&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } && {
9660 test -z "$ac_c_werror_flag" ||
9661 test ! -s conftest.err
9662 } && test -s conftest.
$ac_objext; then
9663 ac_header_compiler
=yes
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.
$ac_ext >&5
9668 ac_header_compiler
=no
9671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9673 echo "${ECHO_T}$ac_header_compiler" >&6; }
9675 # Is the header present?
9676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9678 cat >conftest.
$ac_ext <<_ACEOF
9681 cat confdefs.h
>>conftest.
$ac_ext
9682 cat >>conftest.
$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 #include <$ac_header>
9686 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } >/dev/null && {
9699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9702 ac_header_preproc=yes
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 ac_header_preproc=no
9710 rm -f conftest.err conftest.$ac_ext
9711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9712 echo "${ECHO_T}$ac_header_preproc" >&6; }
9714 # So? What about this header?
9715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9721 ac_header_preproc=yes
9724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 eval "$as_ac_Header=\$ac_header_preproc"
9746 ac_res=`eval echo '${'$as_ac_Header'}'`
9747 { echo "$as_me:$LINENO: result: $ac_res" >&5
9748 echo "${ECHO_T}$ac_res" >&6; }
9751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9752 cat >>confdefs.h <<_ACEOF
9753 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9762 for ac_func in fork vfork
9764 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 cat >conftest.$ac_ext <<_ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9778 #define $ac_func innocuous_$ac_func
9780 /* System header to define __stub macros and hopefully few prototypes,
9781 which can conflict with char $ac_func (); below.
9782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9783 <limits.h> exists even on freestanding compilers. */
9786 # include <limits.h>
9788 # include <assert.h>
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9800 /* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803 #if defined __stub_$ac_func || defined __stub___$ac_func
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9819 *) ac_try_echo
=$ac_try;;
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_link") 2>conftest.er1
9824 grep -v '^ *+' conftest.er1
>conftest.err
9826 cat conftest.err
>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 } && test -s conftest
$ac_exeext &&
9832 $as_test_x conftest
$ac_exeext; then
9833 eval "$as_ac_var=yes"
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.
$ac_ext >&5
9838 eval "$as_ac_var=no"
9841 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9842 conftest
$ac_exeext conftest.
$ac_ext
9844 ac_res
=`eval echo '${'$as_ac_var'}'`
9845 { echo "$as_me:$LINENO: result: $ac_res" >&5
9846 echo "${ECHO_T}$ac_res" >&6; }
9847 if test `eval echo '${'$as_ac_var'}'` = yes; then
9848 cat >>confdefs.h
<<_ACEOF
9849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9855 if test "x$ac_cv_func_fork" = xyes
; then
9856 { echo "$as_me:$LINENO: checking for working fork" >&5
9857 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
9858 if test "${ac_cv_func_fork_works+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 if test "$cross_compiling" = yes; then
9862 ac_cv_func_fork_works
=cross
9864 cat >conftest.
$ac_ext <<_ACEOF
9867 cat confdefs.h
>>conftest.
$ac_ext
9868 cat >>conftest.
$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 $ac_includes_default
9875 /* By Ruediger Kuhlmann. */
9882 rm -f conftest
$ac_exeext
9883 if { (ac_try
="$ac_link"
9885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9895 *) ac_try_echo
=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_func_fork_works
=yes
9904 echo "$as_me: program exited with status $ac_status" >&5
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.
$ac_ext >&5
9909 ac_cv_func_fork_works
=no
9911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9916 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9917 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
9920 ac_cv_func_fork_works
=$ac_cv_func_fork
9922 if test "x$ac_cv_func_fork_works" = xcross
; then
9924 *-*-amigaos* |
*-*-msdosdjgpp* |
*-*-uclinux* )
9925 # Override, as these systems have only a dummy fork() stub
9926 ac_cv_func_fork_works
=no
9929 ac_cv_func_fork_works
=yes
9932 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9933 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9935 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9936 if test "x$ac_cv_func_vfork" = xyes
; then
9937 { echo "$as_me:$LINENO: checking for working vfork" >&5
9938 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
9939 if test "${ac_cv_func_vfork_works+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 if test "$cross_compiling" = yes; then
9943 ac_cv_func_vfork_works
=cross
9945 cat >conftest.
$ac_ext <<_ACEOF
9948 cat confdefs.h
>>conftest.
$ac_ext
9949 cat >>conftest.
$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 /* Thanks to Paul Eggert for this test. */
9952 $ac_includes_default
9953 #include <sys/wait.h>
9957 /* On some sparc systems, changes by the child to local and incoming
9958 argument registers are propagated back to the parent. The compiler
9959 is told about this with #include <vfork.h>, but some compilers
9960 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9961 static variable whose address is put into a register that is
9962 clobbered by the vfork. */
9965 sparc_address_test (int arg)
9967 sparc_address_test (arg) int arg;
9988 pid_t parent = getpid ();
9991 sparc_address_test (0);
9996 /* Here is another test for sparc vfork register problems. This
9997 test uses lots of local variables, at least as many local
9998 variables as main has allocated so far including compiler
9999 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10000 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10001 reuse the register of parent for one of the local variables,
10002 since it will think that parent can't possibly be used any more
10003 in this routine. Assigning to the local variable will thus
10004 munge parent in the parent process. */
10006 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10007 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10008 /* Convince the compiler that p..p7 are live; otherwise, it might
10009 use the same hardware register for all 8 local variables. */
10010 if (p != p1 || p != p2 || p != p3 || p != p4
10011 || p != p5 || p != p6 || p != p7)
10014 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10015 from child file descriptors. If the child closes a descriptor
10016 before it execs or exits, this munges the parent's descriptor
10017 as well. Test for this by closing stdout in the child. */
10018 _exit(close(fileno(stdout)) != 0);
10023 while (wait(&status) != child)
10026 /* Was there some problem with vforking? */
10029 /* Did the child fail? (This shouldn't happen.) */
10032 /* Did the vfork/compiler bug occur? */
10033 || parent != getpid()
10035 /* Did the file descriptor bug occur? */
10036 || fstat(fileno(stdout), &st) != 0
10041 rm -f conftest
$ac_exeext
10042 if { (ac_try
="$ac_link"
10043 case "(($ac_try" in
10044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_link") 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10052 { (case "(($ac_try" in
10053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10054 *) ac_try_echo
=$ac_try;;
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_try") 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_func_vfork_works
=yes
10063 echo "$as_me: program exited with status $ac_status" >&5
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.
$ac_ext >&5
10067 ( exit $ac_status )
10068 ac_cv_func_vfork_works
=no
10070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10075 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10076 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10079 if test "x$ac_cv_func_fork_works" = xcross
; then
10080 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10081 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10082 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10085 if test "x$ac_cv_func_vfork_works" = xyes
; then
10087 cat >>confdefs.h
<<\_ACEOF
10088 #define HAVE_WORKING_VFORK 1
10093 cat >>confdefs.h
<<\_ACEOF
10098 if test "x$ac_cv_func_fork_works" = xyes
; then
10100 cat >>confdefs.h
<<\_ACEOF
10101 #define HAVE_WORKING_FORK 1
10106 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10107 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
10108 if test "${ac_cv_sys_largefile_source+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 cat >conftest.
$ac_ext <<_ACEOF
10115 cat confdefs.h
>>conftest.
$ac_ext
10116 cat >>conftest.
$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 #include <sys/types.h> /* for off_t */
10123 int (*fp) (FILE *, off_t, int) = fseeko;
10124 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10129 rm -f conftest.
$ac_objext conftest
$ac_exeext
10130 if { (ac_try
="$ac_link"
10131 case "(($ac_try" in
10132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && {
10143 test -z "$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 } && test -s conftest$ac_exeext &&
10146 $as_test_x conftest$ac_exeext; then
10147 ac_cv_sys_largefile_source=no; break
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10156 conftest$ac_exeext conftest.$ac_ext
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163 #define _LARGEFILE_SOURCE 1
10164 #include <sys/types.h> /* for off_t */
10169 int (*fp) (FILE *, off_t, int) = fseeko;
10170 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (ac_try="$ac_link"
10177 case "(($ac_try" in
10178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10179 *) ac_try_echo
=$ac_try;;
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_link") 2>conftest.er1
10184 grep -v '^ *+' conftest.er1
>conftest.err
10186 cat conftest.err
>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && {
10189 test -z "$ac_c_werror_flag" ||
10190 test ! -s conftest.err
10191 } && test -s conftest
$ac_exeext &&
10192 $as_test_x conftest
$ac_exeext; then
10193 ac_cv_sys_largefile_source
=1; break
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.
$ac_ext >&5
10201 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10202 conftest
$ac_exeext conftest.
$ac_ext
10203 ac_cv_sys_largefile_source
=unknown
10207 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
10208 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
10209 case $ac_cv_sys_largefile_source in #(
10212 cat >>confdefs.h
<<_ACEOF
10213 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10219 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10220 # in glibc 2.1.3, but that breaks too many other things.
10221 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10222 if test $ac_cv_sys_largefile_source != unknown
; then
10224 cat >>confdefs.h
<<\_ACEOF
10225 #define HAVE_FSEEKO 1
10230 if test $ac_cv_c_compiler_gnu = yes; then
10231 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10232 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
10233 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 ac_pattern
="Autoconf.*'x'"
10237 cat >conftest.
$ac_ext <<_ACEOF
10240 cat confdefs.h
>>conftest.
$ac_ext
10241 cat >>conftest.
$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10247 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10248 ac_cv_prog_gcc_traditional
=yes
10250 ac_cv_prog_gcc_traditional
=no
10255 if test $ac_cv_prog_gcc_traditional = no
; then
10256 cat >conftest.
$ac_ext <<_ACEOF
10259 cat confdefs.h
>>conftest.
$ac_ext
10260 cat >>conftest.
$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 #include <termio.h>
10265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10266 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10267 ac_cv_prog_gcc_traditional
=yes
10273 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10274 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
10275 if test $ac_cv_prog_gcc_traditional = yes; then
10276 CC
="$CC -traditional"
10280 # XXX: these are commented out until we determine whether it matters if our malloc()
10281 # acts exactly like glibc's or not
10284 { echo "$as_me:$LINENO: checking for working memcmp" >&5
10285 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
10286 if test "${ac_cv_func_memcmp_working+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 if test "$cross_compiling" = yes; then
10290 ac_cv_func_memcmp_working
=no
10292 cat >conftest.
$ac_ext <<_ACEOF
10295 cat confdefs.h
>>conftest.
$ac_ext
10296 cat >>conftest.
$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 $ac_includes_default
10303 /* Some versions of memcmp are not 8-bit clean. */
10304 char c0 = '\100', c1 = '\200', c2 = '\201';
10305 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10308 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10309 or more and with at least one buffer not starting on a 4-byte boundary.
10310 William Lewis provided this test program. */
10315 for (i = 0; i < 4; i++)
10319 strcpy (a, "--------01111111");
10320 strcpy (b, "--------10000000");
10321 if (memcmp (a, b, 16) >= 0)
10331 rm -f conftest
$ac_exeext
10332 if { (ac_try
="$ac_link"
10333 case "(($ac_try" in
10334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338 (eval "$ac_link") 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10342 { (case "(($ac_try" in
10343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10344 *) ac_try_echo
=$ac_try;;
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_try") 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_cv_func_memcmp_working
=yes
10353 echo "$as_me: program exited with status $ac_status" >&5
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.
$ac_ext >&5
10357 ( exit $ac_status )
10358 ac_cv_func_memcmp_working
=no
10360 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10365 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10366 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10367 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
10368 *" memcmp.$ac_objext "* ) ;;
10369 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
10378 for ac_header
in $ac_header_list
10380 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10381 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10384 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 ac_res
=`eval echo '${'$as_ac_Header'}'`
10388 { echo "$as_me:$LINENO: result: $ac_res" >&5
10389 echo "${ECHO_T}$ac_res" >&6; }
10391 # Is the header compilable?
10392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10394 cat >conftest.
$ac_ext <<_ACEOF
10397 cat confdefs.h
>>conftest.
$ac_ext
10398 cat >>conftest.
$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 $ac_includes_default
10401 #include <$ac_header>
10403 rm -f conftest.
$ac_objext
10404 if { (ac_try
="$ac_compile"
10405 case "(($ac_try" in
10406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10407 *) ac_try_echo=$ac_try;;
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410 (eval "$ac_compile") 2>conftest.er1
10412 grep -v '^ *+' conftest.er1 >conftest.err
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } && {
10417 test -z "$ac_c_werror_flag" ||
10418 test ! -s conftest.err
10419 } && test -s conftest.$ac_objext; then
10420 ac_header_compiler=yes
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 ac_header_compiler=no
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10430 echo "${ECHO_T}$ac_header_compiler" >&6; }
10432 # Is the header present?
10433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10435 cat >conftest.$ac_ext <<_ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <$ac_header>
10443 if { (ac_try="$ac_cpp conftest.$ac_ext"
10444 case "(($ac_try" in
10445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10446 *) ac_try_echo
=$ac_try;;
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10451 grep -v '^ *+' conftest.er1
>conftest.err
10453 cat conftest.err
>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } >/dev
/null
&& {
10456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10459 ac_header_preproc
=yes
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.
$ac_ext >&5
10464 ac_header_preproc
=no
10467 rm -f conftest.err conftest.
$ac_ext
10468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10469 echo "${ECHO_T}$ac_header_preproc" >&6; }
10471 # So? What about this header?
10472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10478 ac_header_preproc
=yes
10481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10498 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 eval "$as_ac_Header=\$ac_header_preproc"
10503 ac_res
=`eval echo '${'$as_ac_Header'}'`
10504 { echo "$as_me:$LINENO: result: $ac_res" >&5
10505 echo "${ECHO_T}$ac_res" >&6; }
10508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10509 cat >>confdefs.h
<<_ACEOF
10510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10525 for ac_func
in $ac_func_list
10527 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10530 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 cat >conftest.
$ac_ext <<_ACEOF
10536 cat confdefs.h
>>conftest.
$ac_ext
10537 cat >>conftest.
$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10541 #define $ac_func innocuous_$ac_func
10543 /* System header to define __stub macros and hopefully few prototypes,
10544 which can conflict with char $ac_func (); below.
10545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10546 <limits.h> exists even on freestanding compilers. */
10549 # include <limits.h>
10551 # include <assert.h>
10556 /* Override any GCC internal prototype to avoid an error.
10557 Use char because int might match the return type of a GCC
10558 builtin and then its argument prototype would still apply. */
10563 /* The GNU C library defines this for functions which it implements
10564 to always fail with ENOSYS. Some functions are actually named
10565 something starting with __ and the normal name is an alias. */
10566 #if defined __stub_$ac_func || defined __stub___$ac_func
10573 return $ac_func ();
10578 rm -f conftest.
$ac_objext conftest
$ac_exeext
10579 if { (ac_try
="$ac_link"
10580 case "(($ac_try" in
10581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_link") 2>conftest.er1
10587 grep -v '^ *+' conftest.er1 >conftest.err
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } && {
10592 test -z "$ac_c_werror_flag" ||
10593 test ! -s conftest.err
10594 } && test -s conftest$ac_exeext &&
10595 $as_test_x conftest$ac_exeext; then
10596 eval "$as_ac_var=yes"
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 eval "$as_ac_var=no"
10604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10605 conftest$ac_exeext conftest.$ac_ext
10607 ac_res=`eval echo '${'$as_ac_var'}'`
10608 { echo "$as_me:$LINENO: result: $ac_res" >&5
10609 echo "${ECHO_T}$ac_res" >&6; }
10610 if test `eval echo '${'$as_ac_var'}'` = yes; then
10611 cat >>confdefs.h <<_ACEOF
10612 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10634 { echo "$as_me:$LINENO: checking for working mktime" >&5
10635 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
10636 if test "${ac_cv_func_working_mktime+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 if test "$cross_compiling" = yes; then
10640 ac_cv_func_working_mktime=no
10642 cat >conftest.$ac_ext <<_ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648 /* Test program from Paul Eggert and Tony Leneis. */
10649 #ifdef TIME_WITH_SYS_TIME
10650 # include <sys/time.h>
10653 # ifdef HAVE_SYS_TIME_H
10654 # include <sys/time.h>
10660 #include <stdlib.h>
10662 #ifdef HAVE_UNISTD_H
10663 # include <unistd.h>
10667 # define alarm(X) /* empty */
10670 /* Work around redefinition to rpl_putenv by other config tests. */
10673 static time_t time_t_max;
10674 static time_t time_t_min;
10676 /* Values we'll use to set the TZ environment variable. */
10677 static char *tz_strings[] = {
10678 (char *) 0, "TZ=GMT0", "TZ=JST-9",
10679 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10681 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10683 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10684 Based on a problem report from Andreas Jaeger. */
10686 spring_forward_gap ()
10688 /* glibc (up to about 1998-10-07) failed this test. */
10691 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10692 instead of "TZ=America/Vancouver" in order to detect the bug even
10693 on systems that don't support the Olson extension, or don't have the
10694 full zoneinfo tables installed. */
10695 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10704 return mktime (&tm) != (time_t) -1;
10712 return ! (lt = localtime (&now)) || mktime (lt) == now;
10719 return (mktime_test1 (now)
10720 && mktime_test1 ((time_t) (time_t_max - now))
10721 && mktime_test1 ((time_t) (time_t_min + now)));
10727 /* Based on code from Ariel Faigon. */
10737 return tm.tm_mon == 2 && tm.tm_mday == 31;
10746 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10747 now = mktime (&tm);
10748 if (now != (time_t) -1)
10750 struct tm *lt = localtime (&now);
10752 && lt->tm_year == tm.tm_year
10753 && lt->tm_mon == tm.tm_mon
10754 && lt->tm_mday == tm.tm_mday
10755 && lt->tm_hour == tm.tm_hour
10756 && lt->tm_min == tm.tm_min
10757 && lt->tm_sec == tm.tm_sec
10758 && lt->tm_yday == tm.tm_yday
10759 && lt->tm_wday == tm.tm_wday
10760 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10761 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10770 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10771 ignoring leap seconds. */
10772 unsigned long int answer = 2527315200UL;
10776 tm.tm_year = 2050 - 1900;
10779 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10782 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10783 instead of "TZ=America/Vancouver" in order to detect the bug even
10784 on systems that don't support the Olson extension, or don't have the
10785 full zoneinfo tables installed. */
10786 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10790 /* Check that the result is either a failure, or close enough
10791 to the correct answer that we can assume the discrepancy is
10792 due to leap seconds. */
10793 return (t == (time_t) -1
10794 || (0 < t && answer - 120 <= t && t <= answer + 120));
10803 /* This test makes some buggy mktime implementations loop.
10804 Give up after 60 seconds; a mktime slower than that
10805 isn't worth using anyway. */
10808 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10811 if ((time_t) -1 < 0)
10812 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
10814 delta = time_t_max / 997; /* a suitable prime number */
10815 for (i = 0; i < N_STRINGS; i++)
10818 putenv (tz_strings[i]);
10820 for (t = 0; t <= time_t_max - delta; t += delta)
10821 if (! mktime_test (t))
10823 if (! (mktime_test ((time_t) 1)
10824 && mktime_test ((time_t) (60 * 60))
10825 && mktime_test ((time_t) (60 * 60 * 24))))
10828 for (j = 1; 0 < j; j *= 2)
10829 if (! bigtime_test (j))
10831 if (! bigtime_test (j - 1))
10834 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10837 rm -f conftest$ac_exeext
10838 if { (ac_try="$ac_link"
10839 case "(($ac_try" in
10840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10841 *) ac_try_echo
=$ac_try;;
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_link") 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_func_working_mktime=yes
10859 echo "$as_me: program exited with status $ac_status" >&5
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 ( exit $ac_status )
10864 ac_cv_func_working_mktime=no
10866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10872 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
10873 if test $ac_cv_func_working_mktime = no; then
10874 case " $LIBOBJS " in
10875 *" mktime.$ac_objext "* ) ;;
10876 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
10884 for ac_header in stdlib.h unistd.h
10886 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 ac_res=`eval echo '${'$as_ac_Header'}'`
10894 { echo "$as_me:$LINENO: result: $ac_res" >&5
10895 echo "${ECHO_T}$ac_res" >&6; }
10897 # Is the header compilable?
10898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10900 cat >conftest.$ac_ext <<_ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 $ac_includes_default
10907 #include <$ac_header>
10909 rm -f conftest.$ac_objext
10910 if { (ac_try="$ac_compile"
10911 case "(($ac_try" in
10912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10913 *) ac_try_echo
=$ac_try;;
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1
>conftest.err
10920 cat conftest.err
>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest.
$ac_objext; then
10926 ac_header_compiler
=yes
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.
$ac_ext >&5
10931 ac_header_compiler
=no
10934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10936 echo "${ECHO_T}$ac_header_compiler" >&6; }
10938 # Is the header present?
10939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10941 cat >conftest.
$ac_ext <<_ACEOF
10944 cat confdefs.h
>>conftest.
$ac_ext
10945 cat >>conftest.
$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 #include <$ac_header>
10949 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10950 case "(($ac_try" in
10951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10957 grep -v '^ *+' conftest.er1 >conftest.err
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } >/dev/null && {
10962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10963 test ! -s conftest.err
10965 ac_header_preproc=yes
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ac_header_preproc=no
10973 rm -f conftest.err conftest.$ac_ext
10974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10975 echo "${ECHO_T}$ac_header_preproc" >&6; }
10977 # So? What about this header?
10978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10984 ac_header_preproc=yes
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 eval "$as_ac_Header=\$ac_header_preproc"
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11015 cat >>confdefs.h <<_ACEOF
11016 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11024 for ac_func in getpagesize
11026 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 cat >conftest.$ac_ext <<_ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11040 #define $ac_func innocuous_$ac_func
11042 /* System header to define __stub macros and hopefully few prototypes,
11043 which can conflict with char $ac_func (); below.
11044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11045 <limits.h> exists even on freestanding compilers. */
11048 # include <limits.h>
11050 # include <assert.h>
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11062 /* The GNU C library defines this for functions which it implements
11063 to always fail with ENOSYS. Some functions are actually named
11064 something starting with __ and the normal name is an alias. */
11065 #if defined __stub_$ac_func || defined __stub___$ac_func
11072 return $ac_func ();
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (ac_try="$ac_link"
11079 case "(($ac_try" in
11080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11081 *) ac_try_echo
=$ac_try;;
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_link") 2>conftest.er1
11086 grep -v '^ *+' conftest.er1
>conftest.err
11088 cat conftest.err
>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } && {
11091 test -z "$ac_c_werror_flag" ||
11092 test ! -s conftest.err
11093 } && test -s conftest
$ac_exeext &&
11094 $as_test_x conftest
$ac_exeext; then
11095 eval "$as_ac_var=yes"
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.
$ac_ext >&5
11100 eval "$as_ac_var=no"
11103 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11104 conftest
$ac_exeext conftest.
$ac_ext
11106 ac_res
=`eval echo '${'$as_ac_var'}'`
11107 { echo "$as_me:$LINENO: result: $ac_res" >&5
11108 echo "${ECHO_T}$ac_res" >&6; }
11109 if test `eval echo '${'$as_ac_var'}'` = yes; then
11110 cat >>confdefs.h
<<_ACEOF
11111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11117 { echo "$as_me:$LINENO: checking for working mmap" >&5
11118 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
11119 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11122 if test "$cross_compiling" = yes; then
11123 ac_cv_func_mmap_fixed_mapped
=no
11125 cat >conftest.
$ac_ext <<_ACEOF
11128 cat confdefs.h
>>conftest.
$ac_ext
11129 cat >>conftest.
$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 $ac_includes_default
11132 /* malloc might have been renamed as rpl_malloc. */
11135 /* Thanks to Mike Haertel and Jim Avera for this test.
11136 Here is a matrix of mmap possibilities:
11137 mmap private not fixed
11138 mmap private fixed at somewhere currently unmapped
11139 mmap private fixed at somewhere already mapped
11140 mmap shared not fixed
11141 mmap shared fixed at somewhere currently unmapped
11142 mmap shared fixed at somewhere already mapped
11143 For private mappings, we should verify that changes cannot be read()
11144 back from the file, nor mmap's back from the file at a different
11145 address. (There have been systems where private was not correctly
11146 implemented like the infamous i386 svr4.0, and systems where the
11147 VM page cache was not coherent with the file system buffer cache
11148 like early versions of FreeBSD and possibly contemporary NetBSD.)
11149 For shared mappings, we should conversely verify that changes get
11150 propagated back to all the places they're supposed to be.
11152 Grep wants private fixed already mapped.
11153 The main things grep needs to know about mmap are:
11154 * does it exist and is it safe to write into the mmap'd area
11155 * how to use it (BSD variants) */
11158 #include <sys/mman.h>
11160 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11164 /* This mess was copied from the GNU getpagesize.h. */
11165 #ifndef HAVE_GETPAGESIZE
11166 /* Assume that all systems that can run configure have sys/param.h. */
11167 # ifndef HAVE_SYS_PARAM_H
11168 # define HAVE_SYS_PARAM_H 1
11171 # ifdef _SC_PAGESIZE
11172 # define getpagesize() sysconf(_SC_PAGESIZE)
11173 # else /* no _SC_PAGESIZE */
11174 # ifdef HAVE_SYS_PARAM_H
11175 # include <sys/param.h>
11176 # ifdef EXEC_PAGESIZE
11177 # define getpagesize() EXEC_PAGESIZE
11178 # else /* no EXEC_PAGESIZE */
11180 # define getpagesize() NBPG * CLSIZE
11183 # endif /* no CLSIZE */
11184 # else /* no NBPG */
11186 # define getpagesize() NBPC
11187 # else /* no NBPC */
11189 # define getpagesize() PAGESIZE
11190 # endif /* PAGESIZE */
11191 # endif /* no NBPC */
11192 # endif /* no NBPG */
11193 # endif /* no EXEC_PAGESIZE */
11194 # else /* no HAVE_SYS_PARAM_H */
11195 # define getpagesize() 8192 /* punt totally */
11196 # endif /* no HAVE_SYS_PARAM_H */
11197 # endif /* no _SC_PAGESIZE */
11199 #endif /* no HAVE_GETPAGESIZE */
11204 char *data, *data2, *data3;
11208 pagesize = getpagesize ();
11210 /* First, make a file with some known garbage in it. */
11211 data = (char *) malloc (pagesize);
11214 for (i = 0; i < pagesize; ++i)
11215 *(data + i) = rand ();
11217 fd = creat ("conftest.mmap", 0600);
11220 if (write (fd, data, pagesize) != pagesize)
11224 /* Next, try to mmap the file at a fixed address which already has
11225 something else allocated at it. If we can, also make sure that
11226 we see the same garbage. */
11227 fd = open ("conftest.mmap", O_RDWR);
11230 data2 = (char *) malloc (2 * pagesize);
11233 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11234 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11235 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11237 for (i = 0; i < pagesize; ++i)
11238 if (*(data + i) != *(data2 + i))
11241 /* Finally, make sure that changes to the mapped area do not
11242 percolate back to the file as seen by read(). (This is a bug on
11243 some variants of i386 svr4.0.) */
11244 for (i = 0; i < pagesize; ++i)
11245 *(data2 + i) = *(data2 + i) + 1;
11246 data3 = (char *) malloc (pagesize);
11249 if (read (fd, data3, pagesize) != pagesize)
11251 for (i = 0; i < pagesize; ++i)
11252 if (*(data + i) != *(data3 + i))
11258 rm -f conftest
$ac_exeext
11259 if { (ac_try
="$ac_link"
11260 case "(($ac_try" in
11261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_link") 2>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11271 *) ac_try_echo
=$ac_try;;
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 ac_cv_func_mmap_fixed_mapped
=yes
11280 echo "$as_me: program exited with status $ac_status" >&5
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.
$ac_ext >&5
11284 ( exit $ac_status )
11285 ac_cv_func_mmap_fixed_mapped
=no
11287 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11292 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11293 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
11294 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11296 cat >>confdefs.h
<<\_ACEOF
11297 #define HAVE_MMAP 1
11301 rm -f conftest.mmap
11305 for ac_header
in sys
/select.h sys
/socket.h
11307 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11308 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11311 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 ac_res
=`eval echo '${'$as_ac_Header'}'`
11315 { echo "$as_me:$LINENO: result: $ac_res" >&5
11316 echo "${ECHO_T}$ac_res" >&6; }
11318 # Is the header compilable?
11319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11321 cat >conftest.
$ac_ext <<_ACEOF
11324 cat confdefs.h
>>conftest.
$ac_ext
11325 cat >>conftest.
$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 $ac_includes_default
11328 #include <$ac_header>
11330 rm -f conftest.
$ac_objext
11331 if { (ac_try
="$ac_compile"
11332 case "(($ac_try" in
11333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_compile") 2>conftest.er1
11339 grep -v '^ *+' conftest.er1 >conftest.err
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest.$ac_objext; then
11347 ac_header_compiler=yes
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11352 ac_header_compiler=no
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11357 echo "${ECHO_T}$ac_header_compiler" >&6; }
11359 # Is the header present?
11360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11362 cat >conftest.$ac_ext <<_ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 #include <$ac_header>
11370 if { (ac_try="$ac_cpp conftest.$ac_ext"
11371 case "(($ac_try" in
11372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11373 *) ac_try_echo
=$ac_try;;
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11378 grep -v '^ *+' conftest.er1
>conftest.err
11380 cat conftest.err
>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } >/dev
/null
&& {
11383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11384 test ! -s conftest.err
11386 ac_header_preproc
=yes
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.
$ac_ext >&5
11391 ac_header_preproc
=no
11394 rm -f conftest.err conftest.
$ac_ext
11395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11396 echo "${ECHO_T}$ac_header_preproc" >&6; }
11398 # So? What about this header?
11399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11405 ac_header_preproc
=yes
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11425 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 eval "$as_ac_Header=\$ac_header_preproc"
11430 ac_res
=`eval echo '${'$as_ac_Header'}'`
11431 { echo "$as_me:$LINENO: result: $ac_res" >&5
11432 echo "${ECHO_T}$ac_res" >&6; }
11435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11436 cat >>confdefs.h
<<_ACEOF
11437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11444 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
11445 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
11446 if test "${ac_cv_func_select_args+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
11450 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11451 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
11452 cat >conftest.
$ac_ext <<_ACEOF
11455 cat confdefs.h
>>conftest.
$ac_ext
11456 cat >>conftest.
$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 $ac_includes_default
11459 #ifdef HAVE_SYS_SELECT_H
11460 # include <sys/select.h>
11462 #ifdef HAVE_SYS_SOCKET_H
11463 # include <sys/socket.h>
11469 extern int select ($ac_arg1,
11470 $ac_arg234, $ac_arg234, $ac_arg234,
11476 rm -f conftest.
$ac_objext
11477 if { (ac_try
="$ac_compile"
11478 case "(($ac_try" in
11479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_compile") 2>conftest.er1
11485 grep -v '^ *+' conftest.er1 >conftest.err
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && {
11490 test -z "$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 } && test -s conftest.$ac_objext; then
11493 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11505 # Provide a safe default value.
11506 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11509 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11510 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
11511 ac_save_IFS=$IFS; IFS=','
11512 set dummy `echo "$ac_cv_func_select_args" |
sed 's/\*/\*/g'`
11516 cat >>confdefs.h <<_ACEOF
11517 #define SELECT_TYPE_ARG1 $1
11521 cat >>confdefs.h <<_ACEOF
11522 #define SELECT_TYPE_ARG234 ($2)
11526 cat >>confdefs.h <<_ACEOF
11527 #define SELECT_TYPE_ARG5 ($3)
11532 { echo "$as_me:$LINENO: checking for function prototypes" >&5
11533 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
11534 if test "$ac_cv_prog_cc_c89" != no; then
11535 { echo "$as_me:$LINENO: result: yes" >&5
11536 echo "${ECHO_T}yes" >&6; }
11538 cat >>confdefs.h <<\_ACEOF
11539 #define PROTOTYPES 1
11543 cat >>confdefs.h <<\_ACEOF
11544 #define __PROTOTYPES 1
11548 { echo "$as_me:$LINENO: result: no" >&5
11549 echo "${ECHO_T}no" >&6; }
11552 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11553 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
11554 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 ac_cv_func_setvbuf_reversed=no
11558 cat >conftest.$ac_ext <<_ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11566 int (setvbuf) (FILE *, int, char *, size_t);
11571 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
11576 rm -f conftest.$ac_objext conftest$ac_exeext
11577 if { (ac_try="$ac_link"
11578 case "(($ac_try" in
11579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11580 *) ac_try_echo
=$ac_try;;
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_link") 2>conftest.er1
11585 grep -v '^ *+' conftest.er1
>conftest.err
11587 cat conftest.err
>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } && {
11590 test -z "$ac_c_werror_flag" ||
11591 test ! -s conftest.err
11592 } && test -s conftest
$ac_exeext &&
11593 $as_test_x conftest
$ac_exeext; then
11594 cat >conftest.
$ac_ext <<_ACEOF
11597 cat confdefs.h
>>conftest.
$ac_ext
11598 cat >>conftest.
$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11602 int (setvbuf) (FILE *, int, char *, size_t);
11607 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11612 rm -f conftest.
$ac_objext conftest
$ac_exeext
11613 if { (ac_try
="$ac_link"
11614 case "(($ac_try" in
11615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619 (eval "$ac_link") 2>conftest.er1
11621 grep -v '^ *+' conftest.er1 >conftest.err
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } && {
11626 test -z "$ac_c_werror_flag" ||
11627 test ! -s conftest.err
11628 } && test -s conftest$ac_exeext &&
11629 $as_test_x conftest$ac_exeext; then
11630 # It compiles and links either way, so it must not be declared
11631 # with a prototype and most likely this is a K&R C compiler.
11633 if test "$cross_compiling" = yes; then
11634 : # Assume setvbuf is not reversed when cross-compiling.
11636 cat >conftest.$ac_ext <<_ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 $ac_includes_default
11646 /* This call has the arguments reversed.
11647 A reversed system may check and see that the address of buf
11648 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11650 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11653 return 0; /* Non-reversed systems SEGV here. */
11658 rm -f conftest$ac_exeext
11659 if { (ac_try="$ac_link"
11660 case "(($ac_try" in
11661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11662 *) ac_try_echo
=$ac_try;;
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_link") 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11669 { (case "(($ac_try" in
11670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_try") 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_func_setvbuf_reversed=yes
11680 echo "$as_me: program exited with status $ac_status" >&5
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11689 ac_cv_func_setvbuf_reversed=yes
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11698 conftest$ac_exeext conftest.$ac_ext
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11707 conftest$ac_exeext conftest.$ac_ext
11709 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
11710 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
11711 if test $ac_cv_func_setvbuf_reversed = yes; then
11713 cat >>confdefs.h <<\_ACEOF
11714 #define SETVBUF_REVERSED 1
11719 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11720 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
11721 if test "${ac_cv_type_signal+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 #include <sys/types.h>
11731 #include <signal.h>
11736 return *(signal (0, 0)) (0) == 1;
11741 rm -f conftest.$ac_objext
11742 if { (ac_try="$ac_compile"
11743 case "(($ac_try" in
11744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11745 *) ac_try_echo
=$ac_try;;
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_compile") 2>conftest.er1
11750 grep -v '^ *+' conftest.er1
>conftest.err
11752 cat conftest.err
>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } && {
11755 test -z "$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest.
$ac_objext; then
11758 ac_cv_type_signal
=int
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.
$ac_ext >&5
11763 ac_cv_type_signal
=void
11766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11768 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11769 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11771 cat >>confdefs.h
<<_ACEOF
11772 #define RETSIGTYPE $ac_cv_type_signal
11776 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11777 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
11778 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 rm -f conftest.sym conftest.
file
11782 echo >conftest.
file
11783 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11784 if test "$cross_compiling" = yes; then
11785 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11787 cat >conftest.
$ac_ext <<_ACEOF
11790 cat confdefs.h
>>conftest.
$ac_ext
11791 cat >>conftest.
$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 $ac_includes_default
11798 /* Linux will dereference the symlink and fail.
11799 That is better in the sense that it means we will not
11800 have to compile and use the lstat wrapper. */
11801 return lstat ("conftest.sym/", &sbuf) == 0;
11806 rm -f conftest
$ac_exeext
11807 if { (ac_try
="$ac_link"
11808 case "(($ac_try" in
11809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_link") 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11817 { (case "(($ac_try" in
11818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11819 *) ac_try_echo
=$ac_try;;
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11828 echo "$as_me: program exited with status $ac_status" >&5
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.
$ac_ext >&5
11832 ( exit $ac_status )
11833 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11835 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11840 # If the `ln -s' command failed, then we probably don't even
11841 # have an lstat function.
11842 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11844 rm -f conftest.sym conftest.
file
11847 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11848 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11850 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11852 cat >>confdefs.h
<<_ACEOF
11853 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11857 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
11858 case " $LIBOBJS " in
11859 *" lstat.$ac_objext "* ) ;;
11860 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11866 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
11867 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
11868 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 if test "$cross_compiling" = yes; then
11872 ac_cv_func_stat_empty_string_bug
=yes
11874 cat >conftest.
$ac_ext <<_ACEOF
11877 cat confdefs.h
>>conftest.
$ac_ext
11878 cat >>conftest.
$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 $ac_includes_default
11885 return stat ("", &sbuf) == 0;
11890 rm -f conftest
$ac_exeext
11891 if { (ac_try
="$ac_link"
11892 case "(($ac_try" in
11893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_link") 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11901 { (case "(($ac_try" in
11902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11903 *) ac_try_echo
=$ac_try;;
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_try") 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_cv_func_stat_empty_string_bug
=no
11912 echo "$as_me: program exited with status $ac_status" >&5
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.
$ac_ext >&5
11916 ( exit $ac_status )
11917 ac_cv_func_stat_empty_string_bug
=yes
11919 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11924 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
11925 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
11926 if test $ac_cv_func_stat_empty_string_bug = yes; then
11927 case " $LIBOBJS " in
11928 *" stat.$ac_objext "* ) ;;
11929 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
11934 cat >>confdefs.h
<<_ACEOF
11935 #define HAVE_STAT_EMPTY_STRING_BUG 1
11940 { echo "$as_me:$LINENO: checking for working strcoll" >&5
11941 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
11942 if test "${ac_cv_func_strcoll_works+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 if test "$cross_compiling" = yes; then
11946 ac_cv_func_strcoll_works
=no
11948 cat >conftest.
$ac_ext <<_ACEOF
11951 cat confdefs.h
>>conftest.
$ac_ext
11952 cat >>conftest.
$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 $ac_includes_default
11958 return (strcoll ("abc", "def") >= 0 ||
11959 strcoll ("ABC", "DEF") >= 0 ||
11960 strcoll ("123", "456") >= 0)
11965 rm -f conftest
$ac_exeext
11966 if { (ac_try
="$ac_link"
11967 case "(($ac_try" in
11968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11978 *) ac_try_echo
=$ac_try;;
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_func_strcoll_works
=yes
11987 echo "$as_me: program exited with status $ac_status" >&5
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.
$ac_ext >&5
11991 ( exit $ac_status )
11992 ac_cv_func_strcoll_works
=no
11994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11999 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12000 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
12001 if test $ac_cv_func_strcoll_works = yes; then
12003 cat >>confdefs.h
<<\_ACEOF
12004 #define HAVE_STRCOLL 1
12010 for ac_func
in strftime
12012 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12015 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 cat >conftest.
$ac_ext <<_ACEOF
12021 cat confdefs.h
>>conftest.
$ac_ext
12022 cat >>conftest.
$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12026 #define $ac_func innocuous_$ac_func
12028 /* System header to define __stub macros and hopefully few prototypes,
12029 which can conflict with char $ac_func (); below.
12030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12031 <limits.h> exists even on freestanding compilers. */
12034 # include <limits.h>
12036 # include <assert.h>
12041 /* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12048 /* The GNU C library defines this for functions which it implements
12049 to always fail with ENOSYS. Some functions are actually named
12050 something starting with __ and the normal name is an alias. */
12051 #if defined __stub_$ac_func || defined __stub___$ac_func
12058 return $ac_func ();
12063 rm -f conftest.
$ac_objext conftest
$ac_exeext
12064 if { (ac_try
="$ac_link"
12065 case "(($ac_try" in
12066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_link") 2>conftest.er1
12072 grep -v '^ *+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } && {
12077 test -z "$ac_c_werror_flag" ||
12078 test ! -s conftest.err
12079 } && test -s conftest$ac_exeext &&
12080 $as_test_x conftest$ac_exeext; then
12081 eval "$as_ac_var=yes"
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 eval "$as_ac_var=no"
12089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12090 conftest$ac_exeext conftest.$ac_ext
12092 ac_res=`eval echo '${'$as_ac_var'}'`
12093 { echo "$as_me:$LINENO: result: $ac_res" >&5
12094 echo "${ECHO_T}$ac_res" >&6; }
12095 if test `eval echo '${'$as_ac_var'}'` = yes; then
12096 cat >>confdefs.h <<_ACEOF
12097 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12101 # strftime is in -lintl on SCO UNIX.
12102 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12103 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
12104 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 ac_check_lib_save_LIBS=$LIBS
12108 LIBS="-lintl $LIBS"
12109 cat >conftest.$ac_ext <<_ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12116 /* Override any GCC internal prototype to avoid an error.
12117 Use char because int might match the return type of a GCC
12118 builtin and then its argument prototype would still apply. */
12126 return strftime ();
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12135 *) ac_try_echo
=$ac_try;;
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_link") 2>conftest.er1
12140 grep -v '^ *+' conftest.er1
>conftest.err
12142 cat conftest.err
>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } && {
12145 test -z "$ac_c_werror_flag" ||
12146 test ! -s conftest.err
12147 } && test -s conftest
$ac_exeext &&
12148 $as_test_x conftest
$ac_exeext; then
12149 ac_cv_lib_intl_strftime
=yes
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.
$ac_ext >&5
12154 ac_cv_lib_intl_strftime
=no
12157 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12158 conftest
$ac_exeext conftest.
$ac_ext
12159 LIBS
=$ac_check_lib_save_LIBS
12161 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12162 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
12163 if test $ac_cv_lib_intl_strftime = yes; then
12164 cat >>confdefs.h
<<\_ACEOF
12165 #define HAVE_STRFTIME 1
12168 LIBS
="-lintl $LIBS"
12175 { echo "$as_me:$LINENO: checking for AIX" >&5
12176 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
12177 cat >conftest.
$ac_ext <<_ACEOF
12180 cat confdefs.h
>>conftest.
$ac_ext
12181 cat >>conftest.
$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12189 $EGREP "yes" >/dev
/null
2>&1; then
12190 { echo "$as_me:$LINENO: result: yes" >&5
12191 echo "${ECHO_T}yes" >&6; }
12192 cat >>confdefs.h
<<\_ACEOF
12193 #define _ALL_SOURCE 1
12197 { echo "$as_me:$LINENO: result: no" >&5
12198 echo "${ECHO_T}no" >&6; }
12203 if test "${ac_cv_header_minix_config_h+set}" = set; then
12204 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
12205 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
12206 if test "${ac_cv_header_minix_config_h+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
12210 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
12212 # Is the header compilable?
12213 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
12214 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
12215 cat >conftest.
$ac_ext <<_ACEOF
12218 cat confdefs.h
>>conftest.
$ac_ext
12219 cat >>conftest.
$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 $ac_includes_default
12222 #include <minix/config.h>
12224 rm -f conftest.
$ac_objext
12225 if { (ac_try
="$ac_compile"
12226 case "(($ac_try" in
12227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_compile") 2>conftest.er1
12233 grep -v '^ *+' conftest.er1 >conftest.err
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest.$ac_objext; then
12241 ac_header_compiler=yes
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_header_compiler=no
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12251 echo "${ECHO_T}$ac_header_compiler" >&6; }
12253 # Is the header present?
12254 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
12255 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
12256 cat >conftest.$ac_ext <<_ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262 #include <minix/config.h>
12264 if { (ac_try="$ac_cpp conftest.$ac_ext"
12265 case "(($ac_try" in
12266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12267 *) ac_try_echo
=$ac_try;;
12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12272 grep -v '^ *+' conftest.er1
>conftest.err
12274 cat conftest.err
>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } >/dev
/null
&& {
12277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12278 test ! -s conftest.err
12280 ac_header_preproc
=yes
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.
$ac_ext >&5
12285 ac_header_preproc
=no
12288 rm -f conftest.err conftest.
$ac_ext
12289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12290 echo "${ECHO_T}$ac_header_preproc" >&6; }
12292 # So? What about this header?
12293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12295 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
12296 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
12298 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
12299 ac_header_preproc
=yes
12302 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
12303 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
12305 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
12307 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
12309 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
12311 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
12312 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
12313 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
12317 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
12318 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
12319 if test "${ac_cv_header_minix_config_h+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 ac_cv_header_minix_config_h
=$ac_header_preproc
12324 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
12325 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
12328 if test $ac_cv_header_minix_config_h = yes; then
12335 if test "$MINIX" = yes; then
12337 cat >>confdefs.h
<<\_ACEOF
12338 #define _POSIX_SOURCE 1
12342 cat >>confdefs.h
<<\_ACEOF
12343 #define _POSIX_1_SOURCE 2
12347 cat >>confdefs.h
<<\_ACEOF
12363 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
12364 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
12365 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 cat >conftest.
$ac_ext <<_ACEOF
12371 cat confdefs.h
>>conftest.
$ac_ext
12372 cat >>conftest.
$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12375 # define __EXTENSIONS__ 1
12376 $ac_includes_default
12385 rm -f conftest.
$ac_objext
12386 if { (ac_try
="$ac_compile"
12387 case "(($ac_try" in
12388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_compile") 2>conftest.er1
12394 grep -v '^ *+' conftest.er1 >conftest.err
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && {
12399 test -z "$ac_c_werror_flag" ||
12400 test ! -s conftest.err
12401 } && test -s conftest.$ac_objext; then
12402 ac_cv_safe_to_define___extensions__=yes
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12407 ac_cv_safe_to_define___extensions__=no
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
12413 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
12414 test $ac_cv_safe_to_define___extensions__ = yes &&
12415 cat >>confdefs.h <<\_ACEOF
12416 #define __EXTENSIONS__ 1
12419 cat >>confdefs.h <<\_ACEOF
12420 #define _POSIX_PTHREAD_SEMANTICS 1
12423 cat >>confdefs.h <<\_ACEOF
12424 #define _TANDEM_SOURCE 1
12428 { echo "$as_me:$LINENO: checking for working strnlen" >&5
12429 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
12430 if test "${ac_cv_func_strnlen_working+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 if test "$cross_compiling" = yes; then
12434 ac_cv_func_strnlen_working=no
12436 cat >conftest.$ac_ext <<_ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 $ac_includes_default
12448 #define S_LEN (sizeof S - 1)
12450 /* At least one implementation is buggy: that of AIX 4.3 would
12451 give strnlen (S, 1) == 3. */
12454 for (i = 0; i < S_LEN + 1; ++i)
12456 int expected = i <= S_LEN ? i : S_LEN;
12457 if (strnlen (S, i) != expected)
12466 rm -f conftest$ac_exeext
12467 if { (ac_try="$ac_link"
12468 case "(($ac_try" in
12469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12470 *) ac_try_echo
=$ac_try;;
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_link") 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12477 { (case "(($ac_try" in
12478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_try") 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_cv_func_strnlen_working=yes
12488 echo "$as_me: program exited with status $ac_status" >&5
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ( exit $ac_status )
12493 ac_cv_func_strnlen_working=no
12495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
12501 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
12502 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
12503 *" strnlen.$ac_objext "* ) ;;
12504 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
12509 { echo "$as_me:$LINENO: checking for working strtod" >&5
12510 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
12511 if test "${ac_cv_func_strtod+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 if test "$cross_compiling" = yes; then
12515 ac_cv_func_strtod=no
12517 cat >conftest.$ac_ext <<_ACEOF
12520 cat confdefs.h >>conftest.$ac_ext
12521 cat >>conftest.$ac_ext <<_ACEOF
12522 /* end confdefs.h. */
12524 $ac_includes_default
12532 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12533 char *string = " +69";
12536 value = strtod (string, &term);
12537 if (value != 69 || term != (string + 4))
12542 /* Under Solaris 2.4, strtod returns the wrong value for the
12543 terminating character under some conditions. */
12544 char *string = "NaN";
12546 strtod (string, &term);
12547 if (term != string && *(term - 1) == 0)
12554 rm -f conftest$ac_exeext
12555 if { (ac_try="$ac_link"
12556 case "(($ac_try" in
12557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12558 *) ac_try_echo
=$ac_try;;
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_link") 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12565 { (case "(($ac_try" in
12566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_try") 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12574 ac_cv_func_strtod=yes
12576 echo "$as_me: program exited with status $ac_status" >&5
12577 echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12580 ( exit $ac_status )
12581 ac_cv_func_strtod=no
12583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12588 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12589 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
12590 if test $ac_cv_func_strtod = no; then
12591 case " $LIBOBJS " in
12592 *" strtod.$ac_objext "* ) ;;
12593 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12597 { echo "$as_me:$LINENO: checking for pow" >&5
12598 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
12599 if test "${ac_cv_func_pow+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 cat >conftest.$ac_ext <<_ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12610 #define pow innocuous_pow
12612 /* System header to define __stub macros and hopefully few prototypes,
12613 which can conflict with char pow (); below.
12614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12615 <limits.h> exists even on freestanding compilers. */
12618 # include <limits.h>
12620 # include <assert.h>
12625 /* Override any GCC internal prototype to avoid an error.
12626 Use char because int might match the return type of a GCC
12627 builtin and then its argument prototype would still apply. */
12632 /* The GNU C library defines this for functions which it implements
12633 to always fail with ENOSYS. Some functions are actually named
12634 something starting with __ and the normal name is an alias. */
12635 #if defined __stub_pow || defined __stub___pow
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (ac_try="$ac_link"
12649 case "(($ac_try" in
12650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12651 *) ac_try_echo
=$ac_try;;
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_link") 2>conftest.er1
12656 grep -v '^ *+' conftest.er1
>conftest.err
12658 cat conftest.err
>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } && {
12661 test -z "$ac_c_werror_flag" ||
12662 test ! -s conftest.err
12663 } && test -s conftest
$ac_exeext &&
12664 $as_test_x conftest
$ac_exeext; then
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.
$ac_ext >&5
12673 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12674 conftest
$ac_exeext conftest.
$ac_ext
12676 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12677 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
12679 if test $ac_cv_func_pow = no
; then
12680 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
12681 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
12682 if test "${ac_cv_lib_m_pow+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 ac_check_lib_save_LIBS
=$LIBS
12687 cat >conftest.
$ac_ext <<_ACEOF
12690 cat confdefs.h
>>conftest.
$ac_ext
12691 cat >>conftest.
$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12694 /* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12709 rm -f conftest.
$ac_objext conftest
$ac_exeext
12710 if { (ac_try
="$ac_link"
12711 case "(($ac_try" in
12712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_link") 2>conftest.er1
12718 grep -v '^ *+' conftest.er1 >conftest.err
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && {
12723 test -z "$ac_c_werror_flag" ||
12724 test ! -s conftest.err
12725 } && test -s conftest$ac_exeext &&
12726 $as_test_x conftest$ac_exeext; then
12727 ac_cv_lib_m_pow=yes
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12736 conftest$ac_exeext conftest.$ac_ext
12737 LIBS=$ac_check_lib_save_LIBS
12739 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12740 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
12741 if test $ac_cv_lib_m_pow = yes; then
12744 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12745 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12760 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
12761 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
12762 if test "${ac_cv_func_utime_null+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 rm -f conftest.data; >conftest.data
12766 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
12767 if test "$cross_compiling" = yes; then
12768 ac_cv_func_utime_null=no
12770 cat >conftest.$ac_ext <<_ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 $ac_includes_default
12777 #ifdef HAVE_UTIME_H
12778 # include <utime.h>
12784 return ! (stat ("conftest.data", &s) == 0
12785 && utime ("conftest.data", 0) == 0
12786 && stat ("conftest.data", &t) == 0
12787 && t.st_mtime >= s.st_mtime
12788 && t.st_mtime - s.st_mtime < 120);
12793 rm -f conftest$ac_exeext
12794 if { (ac_try="$ac_link"
12795 case "(($ac_try" in
12796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12797 *) ac_try_echo
=$ac_try;;
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_link") 2>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12804 { (case "(($ac_try" in
12805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_cv_func_utime_null=yes
12815 echo "$as_me: program exited with status $ac_status" >&5
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ( exit $ac_status )
12820 ac_cv_func_utime_null=no
12822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12827 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
12828 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
12829 if test $ac_cv_func_utime_null = yes; then
12831 cat >>confdefs.h <<\_ACEOF
12832 #define HAVE_UTIME_NULL 1
12836 rm -f conftest.data
12839 for ac_func in vprintf
12841 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12847 cat >conftest.$ac_ext <<_ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12855 #define $ac_func innocuous_$ac_func
12857 /* System header to define __stub macros and hopefully few prototypes,
12858 which can conflict with char $ac_func (); below.
12859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12860 <limits.h> exists even on freestanding compilers. */
12863 # include <limits.h>
12865 # include <assert.h>
12870 /* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12877 /* The GNU C library defines this for functions which it implements
12878 to always fail with ENOSYS. Some functions are actually named
12879 something starting with __ and the normal name is an alias. */
12880 #if defined __stub_$ac_func || defined __stub___$ac_func
12887 return $ac_func ();
12892 rm -f conftest.$ac_objext conftest$ac_exeext
12893 if { (ac_try="$ac_link"
12894 case "(($ac_try" in
12895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12896 *) ac_try_echo
=$ac_try;;
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_link") 2>conftest.er1
12901 grep -v '^ *+' conftest.er1
>conftest.err
12903 cat conftest.err
>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest
$ac_exeext &&
12909 $as_test_x conftest
$ac_exeext; then
12910 eval "$as_ac_var=yes"
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.
$ac_ext >&5
12915 eval "$as_ac_var=no"
12918 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12919 conftest
$ac_exeext conftest.
$ac_ext
12921 ac_res
=`eval echo '${'$as_ac_var'}'`
12922 { echo "$as_me:$LINENO: result: $ac_res" >&5
12923 echo "${ECHO_T}$ac_res" >&6; }
12924 if test `eval echo '${'$as_ac_var'}'` = yes; then
12925 cat >>confdefs.h
<<_ACEOF
12926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12929 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12930 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12931 if test "${ac_cv_func__doprnt+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 cat >conftest.
$ac_ext <<_ACEOF
12937 cat confdefs.h
>>conftest.
$ac_ext
12938 cat >>conftest.
$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12942 #define _doprnt innocuous__doprnt
12944 /* System header to define __stub macros and hopefully few prototypes,
12945 which can conflict with char _doprnt (); below.
12946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12947 <limits.h> exists even on freestanding compilers. */
12950 # include <limits.h>
12952 # include <assert.h>
12957 /* Override any GCC internal prototype to avoid an error.
12958 Use char because int might match the return type of a GCC
12959 builtin and then its argument prototype would still apply. */
12964 /* The GNU C library defines this for functions which it implements
12965 to always fail with ENOSYS. Some functions are actually named
12966 something starting with __ and the normal name is an alias. */
12967 #if defined __stub__doprnt || defined __stub____doprnt
12979 rm -f conftest.
$ac_objext conftest
$ac_exeext
12980 if { (ac_try
="$ac_link"
12981 case "(($ac_try" in
12982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_link") 2>conftest.er1
12988 grep -v '^ *+' conftest.er1 >conftest.err
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } && {
12993 test -z "$ac_c_werror_flag" ||
12994 test ! -s conftest.err
12995 } && test -s conftest$ac_exeext &&
12996 $as_test_x conftest$ac_exeext; then
12997 ac_cv_func__doprnt=yes
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13002 ac_cv_func__doprnt=no
13005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13006 conftest$ac_exeext conftest.$ac_ext
13008 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13009 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13010 if test $ac_cv_func__doprnt = yes; then
13012 cat >>confdefs.h <<\_ACEOF
13013 #define HAVE_DOPRNT 1
13069 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
13071 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 cat >conftest.$ac_ext <<_ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13085 #define $ac_func innocuous_$ac_func
13087 /* System header to define __stub macros and hopefully few prototypes,
13088 which can conflict with char $ac_func (); below.
13089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13090 <limits.h> exists even on freestanding compilers. */
13093 # include <limits.h>
13095 # include <assert.h>
13100 /* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13107 /* The GNU C library defines this for functions which it implements
13108 to always fail with ENOSYS. Some functions are actually named
13109 something starting with __ and the normal name is an alias. */
13110 #if defined __stub_$ac_func || defined __stub___$ac_func
13117 return $ac_func ();
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13126 *) ac_try_echo
=$ac_try;;
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_link") 2>conftest.er1
13131 grep -v '^ *+' conftest.er1
>conftest.err
13133 cat conftest.err
>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } && {
13136 test -z "$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 } && test -s conftest
$ac_exeext &&
13139 $as_test_x conftest
$ac_exeext; then
13140 eval "$as_ac_var=yes"
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.
$ac_ext >&5
13145 eval "$as_ac_var=no"
13148 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13149 conftest
$ac_exeext conftest.
$ac_ext
13151 ac_res
=`eval echo '${'$as_ac_var'}'`
13152 { echo "$as_me:$LINENO: result: $ac_res" >&5
13153 echo "${ECHO_T}$ac_res" >&6; }
13154 if test `eval echo '${'$as_ac_var'}'` = yes; then
13155 cat >>confdefs.h
<<_ACEOF
13156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13163 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
13164 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
13165 cat >conftest.
$ac_ext <<_ACEOF
13168 cat confdefs.h
>>conftest.
$ac_ext
13169 cat >>conftest.
$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13175 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
13180 rm -f conftest.
$ac_objext conftest
$ac_exeext
13181 if { (ac_try
="$ac_link"
13182 case "(($ac_try" in
13183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_link") 2>conftest.er1
13189 grep -v '^ *+' conftest.er1 >conftest.err
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } && {
13194 test -z "$ac_c_werror_flag" ||
13195 test ! -s conftest.err
13196 } && test -s conftest$ac_exeext &&
13197 $as_test_x conftest$ac_exeext; then
13198 { echo "$as_me:$LINENO: result: yes" >&5
13199 echo "${ECHO_T}yes" >&6; }
13201 cat >>confdefs.h <<\_ACEOF
13202 #define HAVE_GCC_ATOMICS 1
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 { echo "$as_me:$LINENO: result: no" >&5
13210 echo "${ECHO_T}no" >&6; }
13214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13215 conftest$ac_exeext conftest.$ac_ext
13218 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
13219 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
13220 cat >conftest.$ac_ext <<_ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 static int __attribute__((pure)) test(void) {}
13235 rm -f conftest.$ac_objext
13236 if { (ac_try="$ac_compile"
13237 case "(($ac_try" in
13238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13239 *) ac_try_echo
=$ac_try;;
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_compile") 2>conftest.er1
13244 grep -v '^ *+' conftest.er1
>conftest.err
13246 cat conftest.err
>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && {
13249 test -z "$ac_c_werror_flag" ||
13250 test ! -s conftest.err
13251 } && test -s conftest.
$ac_objext; then
13252 { echo "$as_me:$LINENO: result: yes" >&5
13253 echo "${ECHO_T}yes" >&6; }
13255 cat >>confdefs.h
<<_ACEOF
13256 #define HAVE_ATTRIBUTE_pure 1
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.
$ac_ext >&5
13263 { echo "$as_me:$LINENO: result: no" >&5
13264 echo "${ECHO_T}no" >&6; }
13267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13270 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
13271 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
13272 cat >conftest.
$ac_ext <<_ACEOF
13275 cat confdefs.h
>>conftest.
$ac_ext
13276 cat >>conftest.
$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13278 static int __attribute__((malloc)) test(void) {}
13287 rm -f conftest.
$ac_objext
13288 if { (ac_try
="$ac_compile"
13289 case "(($ac_try" in
13290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_compile") 2>conftest.er1
13296 grep -v '^ *+' conftest.er1 >conftest.err
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } && {
13301 test -z "$ac_c_werror_flag" ||
13302 test ! -s conftest.err
13303 } && test -s conftest.$ac_objext; then
13304 { echo "$as_me:$LINENO: result: yes" >&5
13305 echo "${ECHO_T}yes" >&6; }
13307 cat >>confdefs.h <<_ACEOF
13308 #define HAVE_ATTRIBUTE_malloc 1
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 { echo "$as_me:$LINENO: result: no" >&5
13316 echo "${ECHO_T}no" >&6; }
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13322 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
13323 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 static int __attribute__((const)) test(void) {}
13339 rm -f conftest.$ac_objext
13340 if { (ac_try="$ac_compile"
13341 case "(($ac_try" in
13342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13343 *) ac_try_echo
=$ac_try;;
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_compile") 2>conftest.er1
13348 grep -v '^ *+' conftest.er1
>conftest.err
13350 cat conftest.err
>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && {
13353 test -z "$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13355 } && test -s conftest.
$ac_objext; then
13356 { echo "$as_me:$LINENO: result: yes" >&5
13357 echo "${ECHO_T}yes" >&6; }
13359 cat >>confdefs.h
<<_ACEOF
13360 #define HAVE_ATTRIBUTE_const 1
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.
$ac_ext >&5
13367 { echo "$as_me:$LINENO: result: no" >&5
13368 echo "${ECHO_T}no" >&6; }
13371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13374 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
13375 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
13376 cat >conftest.
$ac_ext <<_ACEOF
13379 cat confdefs.h
>>conftest.
$ac_ext
13380 cat >>conftest.
$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 static int __attribute__((unused)) test(void) {}
13391 rm -f conftest.
$ac_objext
13392 if { (ac_try
="$ac_compile"
13393 case "(($ac_try" in
13394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_compile") 2>conftest.er1
13400 grep -v '^ *+' conftest.er1 >conftest.err
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } && {
13405 test -z "$ac_c_werror_flag" ||
13406 test ! -s conftest.err
13407 } && test -s conftest.$ac_objext; then
13408 { echo "$as_me:$LINENO: result: yes" >&5
13409 echo "${ECHO_T}yes" >&6; }
13411 cat >>confdefs.h <<_ACEOF
13412 #define HAVE_ATTRIBUTE_unused 1
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13419 { echo "$as_me:$LINENO: result: no" >&5
13420 echo "${ECHO_T}no" >&6; }
13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
13427 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
13428 cat >conftest.$ac_ext <<_ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 static int __attribute__((always_inline)) test(void) {}
13443 rm -f conftest.$ac_objext
13444 if { (ac_try="$ac_compile"
13445 case "(($ac_try" in
13446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13447 *) ac_try_echo
=$ac_try;;
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_compile") 2>conftest.er1
13452 grep -v '^ *+' conftest.er1
>conftest.err
13454 cat conftest.err
>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } && {
13457 test -z "$ac_c_werror_flag" ||
13458 test ! -s conftest.err
13459 } && test -s conftest.
$ac_objext; then
13460 { echo "$as_me:$LINENO: result: yes" >&5
13461 echo "${ECHO_T}yes" >&6; }
13463 cat >>confdefs.h
<<_ACEOF
13464 #define HAVE_ATTRIBUTE_always_inline 1
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.
$ac_ext >&5
13471 { echo "$as_me:$LINENO: result: no" >&5
13472 echo "${ECHO_T}no" >&6; }
13475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13478 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
13479 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
13480 saved_CFLAGS
="${CFLAGS}"
13481 CFLAGS
="${CFLAGS} -ffunction-sections"
13482 cat >conftest.
$ac_ext <<_ACEOF
13485 cat confdefs.h
>>conftest.
$ac_ext
13486 cat >>conftest.
$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13497 rm -f conftest.
$ac_objext
13498 if { (ac_try
="$ac_compile"
13499 case "(($ac_try" in
13500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_compile") 2>conftest.er1
13506 grep -v '^ *+' conftest.er1 >conftest.err
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } && {
13511 test -z "$ac_c_werror_flag" ||
13512 test ! -s conftest.err
13513 } && test -s conftest.$ac_objext; then
13514 { echo "$as_me:$LINENO: result: yes" >&5
13515 echo "${ECHO_T}yes" >&6; }
13516 saved_LDFLAGS="${LDFLAGS}"
13517 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
13518 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
13519 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
13520 cat >conftest.$ac_ext <<_ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (ac_try="$ac_link"
13537 case "(($ac_try" in
13538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13539 *) ac_try_echo
=$ac_try;;
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_link") 2>conftest.er1
13544 grep -v '^ *+' conftest.er1
>conftest.err
13546 cat conftest.err
>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest
$ac_exeext &&
13552 $as_test_x conftest
$ac_exeext; then
13553 { echo "$as_me:$LINENO: result: yes" >&5
13554 echo "${ECHO_T}yes" >&6; }
13555 GC_CFLAGS
="-ffunction-sections"
13556 GC_LDFLAGS
="-Wl,--gc-sections"
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.
$ac_ext >&5
13561 { echo "$as_me:$LINENO: result: no" >&5
13562 echo "${ECHO_T}no" >&6; }
13566 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13567 conftest
$ac_exeext conftest.
$ac_ext
13568 LDFLAGS
="${saved_LDFLAGS}"
13570 echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.
$ac_ext >&5
13573 { echo "$as_me:$LINENO: result: no" >&5
13574 echo "${ECHO_T}no" >&6; }
13578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13579 CFLAGS
="${saved_CFLAGS}"
13583 { echo "$as_me:$LINENO: checking for res_ninit" >&5
13584 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
13585 cat >conftest.
$ac_ext <<_ACEOF
13588 cat confdefs.h
>>conftest.
$ac_ext
13589 cat >>conftest.
$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <resolv.h>
13595 int foo = res_ninit(NULL);
13600 rm -f conftest.
$ac_objext conftest
$ac_exeext
13601 if { (ac_try
="$ac_link"
13602 case "(($ac_try" in
13603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_link") 2>conftest.er1
13609 grep -v '^ *+' conftest.er1 >conftest.err
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } && {
13614 test -z "$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13616 } && test -s conftest$ac_exeext &&
13617 $as_test_x conftest$ac_exeext; then
13618 { echo "$as_me:$LINENO: result: yes" >&5
13619 echo "${ECHO_T}yes" >&6; }
13621 cat >>confdefs.h <<\_ACEOF
13622 #define HAVE_RES_NINIT 1
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13629 { echo "$as_me:$LINENO: result: no" >&5
13630 echo "${ECHO_T}no" >&6; }
13634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13635 conftest$ac_exeext conftest.$ac_ext
13637 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
13638 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
13639 cat >conftest.$ac_ext <<_ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13649 int foo = RTLD_NOLOAD;
13654 rm -f conftest.$ac_objext conftest$ac_exeext
13655 if { (ac_try="$ac_link"
13656 case "(($ac_try" in
13657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13658 *) ac_try_echo
=$ac_try;;
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_link") 2>conftest.er1
13663 grep -v '^ *+' conftest.er1
>conftest.err
13665 cat conftest.err
>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } && {
13668 test -z "$ac_c_werror_flag" ||
13669 test ! -s conftest.err
13670 } && test -s conftest
$ac_exeext &&
13671 $as_test_x conftest
$ac_exeext; then
13672 { echo "$as_me:$LINENO: result: yes" >&5
13673 echo "${ECHO_T}yes" >&6; }
13675 cat >>confdefs.h
<<\_ACEOF
13676 #define HAVE_RTLD_NOLOAD 1
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.
$ac_ext >&5
13683 { echo "$as_me:$LINENO: result: no" >&5
13684 echo "${ECHO_T}no" >&6; }
13688 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13689 conftest
$ac_exeext conftest.
$ac_ext
13691 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
13692 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
13693 cat >conftest.
$ac_ext <<_ACEOF
13696 cat confdefs.h
>>conftest.
$ac_ext
13697 cat >>conftest.
$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 #include <netinet/in.h>
13703 int foo = IP_MTU_DISCOVER;
13708 rm -f conftest.
$ac_objext conftest
$ac_exeext
13709 if { (ac_try
="$ac_link"
13710 case "(($ac_try" in
13711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_link") 2>conftest.er1
13717 grep -v '^ *+' conftest.er1 >conftest.err
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } && {
13722 test -z "$ac_c_werror_flag" ||
13723 test ! -s conftest.err
13724 } && test -s conftest$ac_exeext &&
13725 $as_test_x conftest$ac_exeext; then
13726 { echo "$as_me:$LINENO: result: yes" >&5
13727 echo "${ECHO_T}yes" >&6; }
13729 cat >>confdefs.h <<\_ACEOF
13730 #define HAVE_IP_MTU_DISCOVER 1
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13737 { echo "$as_me:$LINENO: result: no" >&5
13738 echo "${ECHO_T}no" >&6; }
13742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13743 conftest$ac_exeext conftest.$ac_ext
13745 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
13746 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
13747 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
13748 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
13752 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
13754 # Is the header compilable?
13755 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
13756 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
13757 cat >conftest.$ac_ext <<_ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 $ac_includes_default
13764 #include <libkern/OSAtomic.h>
13766 rm -f conftest.$ac_objext
13767 if { (ac_try="$ac_compile"
13768 case "(($ac_try" in
13769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13770 *) ac_try_echo
=$ac_try;;
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_compile") 2>conftest.er1
13775 grep -v '^ *+' conftest.er1
>conftest.err
13777 cat conftest.err
>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } && {
13780 test -z "$ac_c_werror_flag" ||
13781 test ! -s conftest.err
13782 } && test -s conftest.
$ac_objext; then
13783 ac_header_compiler
=yes
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.
$ac_ext >&5
13788 ac_header_compiler
=no
13791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13793 echo "${ECHO_T}$ac_header_compiler" >&6; }
13795 # Is the header present?
13796 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
13797 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
13798 cat >conftest.
$ac_ext <<_ACEOF
13801 cat confdefs.h
>>conftest.
$ac_ext
13802 cat >>conftest.
$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13804 #include <libkern/OSAtomic.h>
13806 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13807 case "(($ac_try" in
13808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13814 grep -v '^ *+' conftest.er1 >conftest.err
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } >/dev/null && {
13819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13820 test ! -s conftest.err
13822 ac_header_preproc=yes
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13827 ac_header_preproc=no
13830 rm -f conftest.err conftest.$ac_ext
13831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13832 echo "${ECHO_T}$ac_header_preproc" >&6; }
13834 # So? What about this header?
13835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13837 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
13838 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13839 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
13840 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
13841 ac_header_preproc=yes
13844 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
13845 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
13847 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
13849 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
13851 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
13853 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
13855 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
13859 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
13860 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
13861 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
13866 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
13867 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
13870 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
13872 cat >>confdefs.h <<_ACEOF
13873 #define HAVE_OSX_ATOMICS 1
13880 { echo "$as_me:$LINENO: checking for int" >&5
13881 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13882 if test "${ac_cv_type_int+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 cat >conftest.$ac_ext <<_ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13891 $ac_includes_default
13892 typedef int ac__type_new_;
13896 if ((ac__type_new_ *) 0)
13898 if (sizeof (ac__type_new_))
13904 rm -f conftest.$ac_objext
13905 if { (ac_try="$ac_compile"
13906 case "(($ac_try" in
13907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13908 *) ac_try_echo
=$ac_try;;
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_compile") 2>conftest.er1
13913 grep -v '^ *+' conftest.er1
>conftest.err
13915 cat conftest.err
>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } && {
13918 test -z "$ac_c_werror_flag" ||
13919 test ! -s conftest.err
13920 } && test -s conftest.
$ac_objext; then
13923 echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.
$ac_ext >&5
13929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13931 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13932 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13934 # The cast to long int works around a bug in the HP C Compiler
13935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13937 # This bug is HP SR number 8606223364.
13938 { echo "$as_me:$LINENO: checking size of int" >&5
13939 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13940 if test "${ac_cv_sizeof_int+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 if test "$cross_compiling" = yes; then
13944 # Depending upon the size, compute the lo and hi bounds.
13945 cat >conftest.
$ac_ext <<_ACEOF
13948 cat confdefs.h
>>conftest.
$ac_ext
13949 cat >>conftest.
$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 $ac_includes_default
13952 typedef int ac__type_sizeof_;
13956 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13963 rm -f conftest.
$ac_objext
13964 if { (ac_try
="$ac_compile"
13965 case "(($ac_try" in
13966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13972 grep -v '^ *+' conftest.er1 >conftest.err
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest.$ac_objext; then
13982 cat >conftest.$ac_ext <<_ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 $ac_includes_default
13989 typedef int ac__type_sizeof_;
13993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14000 rm -f conftest.$ac_objext
14001 if { (ac_try="$ac_compile"
14002 case "(($ac_try" in
14003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14004 *) ac_try_echo
=$ac_try;;
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_compile") 2>conftest.er1
14009 grep -v '^ *+' conftest.er1
>conftest.err
14011 cat conftest.err
>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } && {
14014 test -z "$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14016 } && test -s conftest.
$ac_objext; then
14017 ac_hi
=$ac_mid; break
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.
$ac_ext >&5
14022 ac_lo
=`expr $ac_mid + 1`
14023 if test $ac_lo -le $ac_mid; then
14027 ac_mid
=`expr 2 '*' $ac_mid + 1`
14030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.
$ac_ext >&5
14036 cat >conftest.
$ac_ext <<_ACEOF
14039 cat confdefs.h
>>conftest.
$ac_ext
14040 cat >>conftest.
$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 $ac_includes_default
14043 typedef int ac__type_sizeof_;
14047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14054 rm -f conftest.
$ac_objext
14055 if { (ac_try
="$ac_compile"
14056 case "(($ac_try" in
14057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061 (eval "$ac_compile") 2>conftest.er1
14063 grep -v '^ *+' conftest.er1 >conftest.err
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } && {
14068 test -z "$ac_c_werror_flag" ||
14069 test ! -s conftest.err
14070 } && test -s conftest.$ac_objext; then
14073 cat >conftest.$ac_ext <<_ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 $ac_includes_default
14080 typedef int ac__type_sizeof_;
14084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14091 rm -f conftest.$ac_objext
14092 if { (ac_try="$ac_compile"
14093 case "(($ac_try" in
14094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14095 *) ac_try_echo
=$ac_try;;
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_compile") 2>conftest.er1
14100 grep -v '^ *+' conftest.er1
>conftest.err
14102 cat conftest.err
>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } && {
14105 test -z "$ac_c_werror_flag" ||
14106 test ! -s conftest.err
14107 } && test -s conftest.
$ac_objext; then
14108 ac_lo
=$ac_mid; break
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.
$ac_ext >&5
14113 ac_hi
=`expr '(' $ac_mid ')' - 1`
14114 if test $ac_mid -le $ac_hi; then
14118 ac_mid
=`expr 2 '*' $ac_mid`
14121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.
$ac_ext >&5
14130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14134 # Binary search between lo and hi bounds.
14135 while test "x$ac_lo" != "x$ac_hi"; do
14136 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14137 cat >conftest.
$ac_ext <<_ACEOF
14140 cat confdefs.h
>>conftest.
$ac_ext
14141 cat >>conftest.
$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 $ac_includes_default
14144 typedef int ac__type_sizeof_;
14148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14155 rm -f conftest.
$ac_objext
14156 if { (ac_try
="$ac_compile"
14157 case "(($ac_try" in
14158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_compile") 2>conftest.er1
14164 grep -v '^ *+' conftest.er1 >conftest.err
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest.$ac_objext; then
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_lo=`expr '(' $ac_mid ')' + 1`
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 ?*) ac_cv_sizeof_int=$ac_lo;;
14184 '') if test "$ac_cv_type_int" = yes; then
14185 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14186 See \`config.log
' for more details." >&5
14187 echo "$as_me: error: cannot compute sizeof (int)
14188 See \`config.log' for more details.
" >&2;}
14189 { (exit 77); exit 77; }; }
14195 cat >conftest.$ac_ext <<_ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 $ac_includes_default
14202 typedef int ac__type_sizeof_;
14203 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14204 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14206 #include <stdlib.h>
14211 FILE *f = fopen ("conftest.val
", "w
");
14214 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14216 long int i = longval ();
14217 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14219 fprintf (f, "%ld
\n", i);
14223 unsigned long int i = ulongval ();
14224 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14226 fprintf (f, "%lu
\n", i);
14228 return ferror (f) || fclose (f) != 0;
14234 rm -f conftest$ac_exeext
14235 if { (ac_try="$ac_link"
14236 case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_link") 2>&5
14243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14245 { (case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_try") 2>&5
14252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 ac_cv_sizeof_int=`cat conftest.val`
14256 echo "$as_me: program exited with status
$ac_status" >&5
14257 echo "$as_me: failed program was
:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ( exit $ac_status )
14261 if test "$ac_cv_type_int" = yes; then
14262 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
14263 See \
`config.log' for more details." >&5
14264 echo "$as_me: error: cannot compute sizeof (int)
14265 See \`config.log
' for more details." >&2;}
14266 { (exit 77); exit 77; }; }
14271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14275 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14276 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
14280 cat >>confdefs.h <<_ACEOF
14281 #define SIZEOF_INT $ac_cv_sizeof_int
14286 # do the package library checks now
14289 if test "${USE_ALSA}" != "no"; then
14291 if test "x${ALSA_DIR}" != "x"; then
14292 if test -d ${ALSA_DIR}/lib; then
14293 pbxlibdir="-L${ALSA_DIR}/lib"
14295 pbxlibdir="-L${ALSA_DIR}"
14298 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
14299 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
14300 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 ac_check_lib_save_LIBS=$LIBS
14304 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14318 char snd_spcm_init ();
14322 return snd_spcm_init ();
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (ac_try="$ac_link"
14329 case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_link") 2>conftest.er1
14336 grep -v '^
*+' conftest.er1 >conftest.err
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } && {
14341 test -z "$ac_c_werror_flag" ||
14342 test ! -s conftest.err
14343 } && test -s conftest$ac_exeext &&
14344 $as_test_x conftest$ac_exeext; then
14345 ac_cv_lib_asound_snd_spcm_init=yes
14347 echo "$as_me: failed program was:" >&5
14348 sed 's
/^
/|
/' conftest.$ac_ext >&5
14350 ac_cv_lib_asound_snd_spcm_init=no
14353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14354 conftest$ac_exeext conftest.$ac_ext
14355 LIBS=$ac_check_lib_save_LIBS
14357 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
14358 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
14359 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
14366 if test "${AST_ALSA_FOUND}" = "yes"; then
14367 ALSA_LIB="-lasound -lm -ldl"
14368 ALSA_HEADER_FOUND="1"
14369 if test "x${ALSA_DIR}" != "x"; then
14370 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
14371 ALSA_INCLUDE="-I${ALSA_DIR}/include"
14372 if test "xalsa/asoundlib.h" != "x" ; then
14373 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
14374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14375 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
14376 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
14377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 ac_res=`eval echo '${'$as_ac_Header'}'`
14381 { echo "$as_me:$LINENO: result: $ac_res" >&5
14382 echo "${ECHO_T}$ac_res" >&6; }
14384 # Is the header compilable?
14385 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
14386 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
14387 cat >conftest.$ac_ext <<_ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 $ac_includes_default
14394 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
14396 rm -f conftest.$ac_objext
14397 if { (ac_try="$ac_compile"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_compile") 2>conftest.er1
14405 grep -v '^
*+' conftest.er1 >conftest.err
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } && {
14410 test -z "$ac_c_werror_flag" ||
14411 test ! -s conftest.err
14412 } && test -s conftest.$ac_objext; then
14413 ac_header_compiler=yes
14415 echo "$as_me: failed program was:" >&5
14416 sed 's
/^
/|
/' conftest.$ac_ext >&5
14418 ac_header_compiler=no
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14423 echo "${ECHO_T}$ac_header_compiler" >&6; }
14425 # Is the header present?
14426 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
14427 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
14428 cat >conftest.$ac_ext <<_ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h. */
14434 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
14436 if { (ac_try="$ac_cpp conftest.$ac_ext"
14437 case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14444 grep -v '^
*+' conftest.er1 >conftest.err
14446 cat conftest.err >&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } >/dev/null && {
14449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14450 test ! -s conftest.err
14452 ac_header_preproc=yes
14454 echo "$as_me: failed program was:" >&5
14455 sed 's
/^
/|
/' conftest.$ac_ext >&5
14457 ac_header_preproc=no
14460 rm -f conftest.err conftest.$ac_ext
14461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14462 echo "${ECHO_T}$ac_header_preproc" >&6; }
14464 # So? What about this header?
14465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14467 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14468 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result
" >&5
14470 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the compiler
's result" >&2;}
14471 ac_header_preproc=yes
14474 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
14475 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
14477 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
14479 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
14481 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14482 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result
" >&5
14483 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
14485 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
14489 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
14490 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
14491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 eval "$as_ac_Header=\$ac_header_preproc"
14496 ac_res=`eval echo '${'$as_ac_Header'}'`
14497 { echo "$as_me:$LINENO: result: $ac_res" >&5
14498 echo "${ECHO_T}$ac_res" >&6; }
14501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14502 ALSA_HEADER_FOUND=1
14504 ALSA_HEADER_FOUND=0
14510 if test "xalsa/asoundlib.h" != "x" ; then
14511 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
14512 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
14513 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
14514 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
14518 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
14520 # Is the header compilable?
14521 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
14522 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
14523 cat >conftest.$ac_ext <<_ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14529 $ac_includes_default
14530 #include <alsa/asoundlib.h>
14532 rm -f conftest.$ac_objext
14533 if { (ac_try="$ac_compile"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_compile") 2>conftest.er1
14541 grep -v '^
*+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } && {
14546 test -z "$ac_c_werror_flag" ||
14547 test ! -s conftest.err
14548 } && test -s conftest.$ac_objext; then
14549 ac_header_compiler=yes
14551 echo "$as_me: failed program was:" >&5
14552 sed 's
/^
/|
/' conftest.$ac_ext >&5
14554 ac_header_compiler=no
14557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14559 echo "${ECHO_T}$ac_header_compiler" >&6; }
14561 # Is the header present?
14562 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
14563 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
14564 cat >conftest.$ac_ext <<_ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14570 #include <alsa/asoundlib.h>
14572 if { (ac_try="$ac_cpp conftest.$ac_ext"
14573 case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14580 grep -v '^
*+' conftest.er1 >conftest.err
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } >/dev/null && {
14585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14588 ac_header_preproc=yes
14590 echo "$as_me: failed program was:" >&5
14591 sed 's
/^
/|
/' conftest.$ac_ext >&5
14593 ac_header_preproc=no
14596 rm -f conftest.err conftest.$ac_ext
14597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14598 echo "${ECHO_T}$ac_header_preproc" >&6; }
14600 # So? What about this header?
14601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14603 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14604 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14605 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result
" >&5
14606 echo "$as_me: WARNING
: alsa
/asoundlib.h
: proceeding with the compiler
's result" >&2;}
14607 ac_header_preproc=yes
14610 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
14611 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
14613 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
14614 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
14615 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
14616 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
14617 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14618 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result
" >&5
14619 echo "$as_me: WARNING
: alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&2;}
14620 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
14621 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
14625 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
14626 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
14627 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
14632 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
14633 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
14636 if test $ac_cv_header_alsa_asoundlib_h = yes; then
14637 ALSA_HEADER_FOUND=1
14639 ALSA_HEADER_FOUND=0
14645 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
14646 if test ! -z "${ALSA_MANDATORY}" ;
14648 { echo "$as_me:$LINENO: ***" >&5
14649 echo "$as_me: ***" >&6;}
14650 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
14651 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
14652 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
14653 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
14654 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
14655 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
14664 cat >>confdefs.h <<_ACEOF
14665 #define HAVE_ALSA 1
14669 elif test ! -z "${ALSA_MANDATORY}";
14671 { echo "$as_me:$LINENO: ***" >&5
14672 echo "$as_me: ***" >&6;}
14673 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
14674 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
14675 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
14676 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
14677 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
14678 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
14685 if test "${USE_CURSES}" != "no"; then
14687 if test "x${CURSES_DIR}" != "x"; then
14688 if test -d ${CURSES_DIR}/lib; then
14689 pbxlibdir="-L${CURSES_DIR}/lib"
14691 pbxlibdir="-L${CURSES_DIR}"
14694 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
14695 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
14696 if test "${ac_cv_lib_curses_initscr+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 ac_check_lib_save_LIBS=$LIBS
14700 LIBS="-lcurses ${pbxlibdir} $LIBS"
14701 cat >conftest.$ac_ext <<_ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14708 /* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply. */
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 ac_cv_lib_curses_initscr=yes
14743 echo "$as_me: failed program was:" >&5
14744 sed 's
/^
/|
/' conftest.$ac_ext >&5
14746 ac_cv_lib_curses_initscr=no
14749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14750 conftest$ac_exeext conftest.$ac_ext
14751 LIBS=$ac_check_lib_save_LIBS
14753 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
14754 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
14755 if test $ac_cv_lib_curses_initscr = yes; then
14756 AST_CURSES_FOUND=yes
14758 AST_CURSES_FOUND=no
14762 if test "${AST_CURSES_FOUND}" = "yes"; then
14763 CURSES_LIB="-lcurses "
14764 CURSES_HEADER_FOUND="1"
14765 if test "x${CURSES_DIR}" != "x"; then
14766 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
14767 CURSES_INCLUDE="-I${CURSES_DIR}/include"
14768 if test "xcurses.h" != "x" ; then
14769 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
14770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14771 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
14772 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
14773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14776 ac_res=`eval echo '${'$as_ac_Header'}'`
14777 { echo "$as_me:$LINENO: result: $ac_res" >&5
14778 echo "${ECHO_T}$ac_res" >&6; }
14780 # Is the header compilable?
14781 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
14782 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
14783 cat >conftest.$ac_ext <<_ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 $ac_includes_default
14790 #include <${CURSES_DIR}/include/curses.h>
14792 rm -f conftest.$ac_objext
14793 if { (ac_try="$ac_compile"
14794 case "(($ac_try" in
14795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796 *) ac_try_echo=$ac_try;;
14798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14799 (eval "$ac_compile") 2>conftest.er1
14801 grep -v '^
*+' conftest.er1 >conftest.err
14803 cat conftest.err >&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } && {
14806 test -z "$ac_c_werror_flag" ||
14807 test ! -s conftest.err
14808 } && test -s conftest.$ac_objext; then
14809 ac_header_compiler=yes
14811 echo "$as_me: failed program was:" >&5
14812 sed 's
/^
/|
/' conftest.$ac_ext >&5
14814 ac_header_compiler=no
14817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14819 echo "${ECHO_T}$ac_header_compiler" >&6; }
14821 # Is the header present?
14822 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
14823 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
14824 cat >conftest.$ac_ext <<_ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14830 #include <${CURSES_DIR}/include/curses.h>
14832 if { (ac_try="$ac_cpp conftest.$ac_ext"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14840 grep -v '^
*+' conftest.er1 >conftest.err
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } >/dev/null && {
14845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14848 ac_header_preproc=yes
14850 echo "$as_me: failed program was:" >&5
14851 sed 's
/^
/|
/' conftest.$ac_ext >&5
14853 ac_header_preproc=no
14856 rm -f conftest.err conftest.$ac_ext
14857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14858 echo "${ECHO_T}$ac_header_preproc" >&6; }
14860 # So? What about this header?
14861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14863 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
14864 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result
" >&5
14866 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the compiler
's result" >&2;}
14867 ac_header_preproc=yes
14870 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
14871 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
14873 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
14875 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
14877 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
14878 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result
" >&5
14879 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the preprocessor
's result" >&2;}
14880 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
14881 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
14885 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
14886 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
14887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 eval "$as_ac_Header=\$ac_header_preproc"
14892 ac_res=`eval echo '${'$as_ac_Header'}'`
14893 { echo "$as_me:$LINENO: result: $ac_res" >&5
14894 echo "${ECHO_T}$ac_res" >&6; }
14897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14898 CURSES_HEADER_FOUND=1
14900 CURSES_HEADER_FOUND=0
14906 if test "xcurses.h" != "x" ; then
14907 if test "${ac_cv_header_curses_h+set}" = set; then
14908 { echo "$as_me:$LINENO: checking for curses.h" >&5
14909 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
14910 if test "${ac_cv_header_curses_h+set}" = set; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
14914 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
14916 # Is the header compilable?
14917 { echo "$as_me:$LINENO: checking curses.h usability" >&5
14918 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
14919 cat >conftest.$ac_ext <<_ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 $ac_includes_default
14926 #include <curses.h>
14928 rm -f conftest.$ac_objext
14929 if { (ac_try="$ac_compile"
14930 case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_compile") 2>conftest.er1
14937 grep -v '^
*+' conftest.er1 >conftest.err
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest.$ac_objext; then
14945 ac_header_compiler=yes
14947 echo "$as_me: failed program was:" >&5
14948 sed 's
/^
/|
/' conftest.$ac_ext >&5
14950 ac_header_compiler=no
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14955 echo "${ECHO_T}$ac_header_compiler" >&6; }
14957 # Is the header present?
14958 { echo "$as_me:$LINENO: checking curses.h presence" >&5
14959 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
14960 cat >conftest.$ac_ext <<_ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 #include <curses.h>
14968 if { (ac_try="$ac_cpp conftest.$ac_ext"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14976 grep -v '^
*+' conftest.er1 >conftest.err
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } >/dev/null && {
14981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14984 ac_header_preproc=yes
14986 echo "$as_me: failed program was:" >&5
14987 sed 's
/^
/|
/' conftest.$ac_ext >&5
14989 ac_header_preproc=no
14992 rm -f conftest.err conftest.$ac_ext
14993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14994 echo "${ECHO_T}$ac_header_preproc" >&6; }
14996 # So? What about this header?
14997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14999 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15000 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result
" >&5
15002 echo "$as_me: WARNING
: curses.h
: proceeding with the compiler
's result" >&2;}
15003 ac_header_preproc=yes
15006 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
15007 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
15009 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
15011 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
15013 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15014 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result
" >&5
15015 echo "$as_me: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
15017 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
15021 { echo "$as_me:$LINENO: checking for curses.h" >&5
15022 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15023 if test "${ac_cv_header_curses_h+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 ac_cv_header_curses_h=$ac_header_preproc
15028 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15029 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15032 if test $ac_cv_header_curses_h = yes; then
15033 CURSES_HEADER_FOUND=1
15035 CURSES_HEADER_FOUND=0
15041 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
15042 if test ! -z "${CURSES_MANDATORY}" ;
15044 { echo "$as_me:$LINENO: ***" >&5
15045 echo "$as_me: ***" >&6;}
15046 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
15047 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
15048 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
15049 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
15050 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
15051 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
15060 cat >>confdefs.h <<_ACEOF
15061 #define HAVE_CURSES 1
15065 elif test ! -z "${CURSES_MANDATORY}";
15067 { echo "$as_me:$LINENO: ***" >&5
15068 echo "$as_me: ***" >&6;}
15069 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
15070 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
15071 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
15072 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
15073 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
15074 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
15083 if test "${USE_GSM}" != "no"; then
15084 if test "${GSM_DIR}" = "internal"; then
15086 elif test "${GSM_DIR}" != ""; then
15089 if test "${GSM_SYSTEM}" = "yes"; then
15091 if test "x${GSM_DIR}" != "x"; then
15092 if test -d ${GSM_DIR}/lib; then
15093 gsmlibdir="-L${GSM_DIR}/lib"
15095 gsmlibdir="-L${GSM_DIR}"
15098 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
15099 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
15100 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 ac_check_lib_save_LIBS=$LIBS
15104 LIBS="-lgsm ${gsmlibdir} $LIBS"
15105 cat >conftest.$ac_ext <<_ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15112 /* Override any GCC internal prototype to avoid an error.
15113 Use char because int might match the return type of a GCC
15114 builtin and then its argument prototype would still apply. */
15118 char gsm_create ();
15122 return gsm_create ();
15127 rm -f conftest.$ac_objext conftest$ac_exeext
15128 if { (ac_try="$ac_link"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_link") 2>conftest.er1
15136 grep -v '^
*+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && {
15141 test -z "$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 } && test -s conftest$ac_exeext &&
15144 $as_test_x conftest$ac_exeext; then
15145 ac_cv_lib_gsm_gsm_create=yes
15147 echo "$as_me: failed program was:" >&5
15148 sed 's
/^
/|
/' conftest.$ac_ext >&5
15150 ac_cv_lib_gsm_gsm_create=no
15153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15154 conftest$ac_exeext conftest.$ac_ext
15155 LIBS=$ac_check_lib_save_LIBS
15157 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
15158 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
15159 if test $ac_cv_lib_gsm_gsm_create = yes; then
15161 cat >>confdefs.h <<_ACEOF
15167 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
15169 if test "x${GSM_DIR}" != "x"; then
15170 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
15171 GSM_INCLUDE="-I${GSM_DIR}/include"
15177 if test "${GSM_INTERNAL}" = "yes"; then
15183 if test "${USE_IKSEMEL}" != "no"; then
15185 if test "x${IKSEMEL_DIR}" != "x"; then
15186 if test -d ${IKSEMEL_DIR}/lib; then
15187 pbxlibdir="-L${IKSEMEL_DIR}/lib"
15189 pbxlibdir="-L${IKSEMEL_DIR}"
15192 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
15193 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
15194 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 ac_check_lib_save_LIBS=$LIBS
15198 LIBS="-liksemel ${pbxlibdir} $LIBS"
15199 cat >conftest.$ac_ext <<_ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15206 /* Override any GCC internal prototype to avoid an error.
15207 Use char because int might match the return type of a GCC
15208 builtin and then its argument prototype would still apply. */
15212 char iks_start_sasl ();
15216 return iks_start_sasl ();
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (ac_try="$ac_link"
15223 case "(($ac_try" in
15224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225 *) ac_try_echo=$ac_try;;
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228 (eval "$ac_link") 2>conftest.er1
15230 grep -v '^
*+' conftest.er1 >conftest.err
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } && {
15235 test -z "$ac_c_werror_flag" ||
15236 test ! -s conftest.err
15237 } && test -s conftest$ac_exeext &&
15238 $as_test_x conftest$ac_exeext; then
15239 ac_cv_lib_iksemel_iks_start_sasl=yes
15241 echo "$as_me: failed program was:" >&5
15242 sed 's
/^
/|
/' conftest.$ac_ext >&5
15244 ac_cv_lib_iksemel_iks_start_sasl=no
15247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15248 conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15251 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
15252 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
15253 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
15254 AST_IKSEMEL_FOUND=yes
15256 AST_IKSEMEL_FOUND=no
15260 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
15261 IKSEMEL_LIB="-liksemel "
15262 IKSEMEL_HEADER_FOUND="1"
15263 if test "x${IKSEMEL_DIR}" != "x"; then
15264 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
15265 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
15266 if test "xiksemel.h" != "x" ; then
15267 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
15268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15269 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
15270 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
15271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 ac_res=`eval echo '${'$as_ac_Header'}'`
15275 { echo "$as_me:$LINENO: result: $ac_res" >&5
15276 echo "${ECHO_T}$ac_res" >&6; }
15278 # Is the header compilable?
15279 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
15280 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
15281 cat >conftest.$ac_ext <<_ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 $ac_includes_default
15288 #include <${IKSEMEL_DIR}/include/iksemel.h>
15290 rm -f conftest.$ac_objext
15291 if { (ac_try="$ac_compile"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_compile") 2>conftest.er1
15299 grep -v '^
*+' conftest.er1 >conftest.err
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_c_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest.$ac_objext; then
15307 ac_header_compiler=yes
15309 echo "$as_me: failed program was:" >&5
15310 sed 's
/^
/|
/' conftest.$ac_ext >&5
15312 ac_header_compiler=no
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15317 echo "${ECHO_T}$ac_header_compiler" >&6; }
15319 # Is the header present?
15320 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
15321 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
15322 cat >conftest.$ac_ext <<_ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 #include <${IKSEMEL_DIR}/include/iksemel.h>
15330 if { (ac_try="$ac_cpp conftest.$ac_ext"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15338 grep -v '^
*+' conftest.er1 >conftest.err
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } >/dev/null && {
15343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15344 test ! -s conftest.err
15346 ac_header_preproc=yes
15348 echo "$as_me: failed program was:" >&5
15349 sed 's
/^
/|
/' conftest.$ac_ext >&5
15351 ac_header_preproc=no
15354 rm -f conftest.err conftest.$ac_ext
15355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15356 echo "${ECHO_T}$ac_header_preproc" >&6; }
15358 # So? What about this header?
15359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15361 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
15362 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result
" >&5
15364 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the compiler
's result" >&2;}
15365 ac_header_preproc=yes
15368 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
15369 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
15371 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
15373 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
15375 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result
" >&5
15377 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the preprocessor
's result" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
15379 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
15383 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
15384 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
15385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 eval "$as_ac_Header=\$ac_header_preproc"
15390 ac_res=`eval echo '${'$as_ac_Header'}'`
15391 { echo "$as_me:$LINENO: result: $ac_res" >&5
15392 echo "${ECHO_T}$ac_res" >&6; }
15395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15396 IKSEMEL_HEADER_FOUND=1
15398 IKSEMEL_HEADER_FOUND=0
15404 if test "xiksemel.h" != "x" ; then
15405 if test "${ac_cv_header_iksemel_h+set}" = set; then
15406 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
15407 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
15408 if test "${ac_cv_header_iksemel_h+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
15412 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
15414 # Is the header compilable?
15415 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
15416 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 $ac_includes_default
15424 #include <iksemel.h>
15426 rm -f conftest.$ac_objext
15427 if { (ac_try="$ac_compile"
15428 case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_compile") 2>conftest.er1
15435 grep -v '^
*+' conftest.er1 >conftest.err
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } && {
15440 test -z "$ac_c_werror_flag" ||
15441 test ! -s conftest.err
15442 } && test -s conftest.$ac_objext; then
15443 ac_header_compiler=yes
15445 echo "$as_me: failed program was:" >&5
15446 sed 's
/^
/|
/' conftest.$ac_ext >&5
15448 ac_header_compiler=no
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15453 echo "${ECHO_T}$ac_header_compiler" >&6; }
15455 # Is the header present?
15456 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
15457 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
15458 cat >conftest.$ac_ext <<_ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #include <iksemel.h>
15466 if { (ac_try="$ac_cpp conftest.$ac_ext"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15474 grep -v '^
*+' conftest.er1 >conftest.err
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } >/dev/null && {
15479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15480 test ! -s conftest.err
15482 ac_header_preproc=yes
15484 echo "$as_me: failed program was:" >&5
15485 sed 's
/^
/|
/' conftest.$ac_ext >&5
15487 ac_header_preproc=no
15490 rm -f conftest.err conftest.$ac_ext
15491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15492 echo "${ECHO_T}$ac_header_preproc" >&6; }
15494 # So? What about this header?
15495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15497 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
15498 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result
" >&5
15500 echo "$as_me: WARNING
: iksemel.h
: proceeding with the compiler
's result" >&2;}
15501 ac_header_preproc=yes
15504 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
15505 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
15507 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
15509 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
15511 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result
" >&5
15513 echo "$as_me: WARNING
: iksemel.h
: proceeding with the preprocessor
's result" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
15515 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
15519 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
15520 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
15521 if test "${ac_cv_header_iksemel_h+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15524 ac_cv_header_iksemel_h=$ac_header_preproc
15526 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
15527 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
15530 if test $ac_cv_header_iksemel_h = yes; then
15531 IKSEMEL_HEADER_FOUND=1
15533 IKSEMEL_HEADER_FOUND=0
15539 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
15540 if test ! -z "${IKSEMEL_MANDATORY}" ;
15542 { echo "$as_me:$LINENO: ***" >&5
15543 echo "$as_me: ***" >&6;}
15544 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
15545 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
15546 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
15547 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
15548 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
15549 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
15558 cat >>confdefs.h <<_ACEOF
15559 #define HAVE_IKSEMEL 1
15563 elif test ! -z "${IKSEMEL_MANDATORY}";
15565 { echo "$as_me:$LINENO: ***" >&5
15566 echo "$as_me: ***" >&6;}
15567 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
15568 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
15569 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
15570 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
15571 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
15572 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
15578 if test "${PBX_IKSEMEL}" = 1; then
15580 if test "${USE_GNUTLS}" != "no"; then
15582 if test "x${GNUTLS_DIR}" != "x"; then
15583 if test -d ${GNUTLS_DIR}/lib; then
15584 pbxlibdir="-L${GNUTLS_DIR}/lib"
15586 pbxlibdir="-L${GNUTLS_DIR}"
15589 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
15590 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
15591 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15594 ac_check_lib_save_LIBS=$LIBS
15595 LIBS="-lgnutls ${pbxlibdir} $LIBS"
15596 cat >conftest.$ac_ext <<_ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15603 /* Override any GCC internal prototype to avoid an error.
15604 Use char because int might match the return type of a GCC
15605 builtin and then its argument prototype would still apply. */
15609 char gnutls_bye ();
15613 return gnutls_bye ();
15618 rm -f conftest.$ac_objext conftest$ac_exeext
15619 if { (ac_try="$ac_link"
15620 case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625 (eval "$ac_link") 2>conftest.er1
15627 grep -v '^
*+' conftest.er1 >conftest.err
15629 cat conftest.err >&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } && {
15632 test -z "$ac_c_werror_flag" ||
15633 test ! -s conftest.err
15634 } && test -s conftest$ac_exeext &&
15635 $as_test_x conftest$ac_exeext; then
15636 ac_cv_lib_gnutls_gnutls_bye=yes
15638 echo "$as_me: failed program was:" >&5
15639 sed 's
/^
/|
/' conftest.$ac_ext >&5
15641 ac_cv_lib_gnutls_gnutls_bye=no
15644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15645 conftest$ac_exeext conftest.$ac_ext
15646 LIBS=$ac_check_lib_save_LIBS
15648 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
15649 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
15650 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
15651 AST_GNUTLS_FOUND=yes
15653 AST_GNUTLS_FOUND=no
15657 if test "${AST_GNUTLS_FOUND}" = "yes"; then
15658 GNUTLS_LIB="-lgnutls "
15659 GNUTLS_HEADER_FOUND="1"
15660 if test "x${GNUTLS_DIR}" != "x"; then
15661 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
15662 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
15663 if test "x" != "x" ; then
15664 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/" | $as_tr_sh`
15665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15666 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
15667 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
15668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 ac_res=`eval echo '${'$as_ac_Header'}'`
15672 { echo "$as_me:$LINENO: result: $ac_res" >&5
15673 echo "${ECHO_T}$ac_res" >&6; }
15675 # Is the header compilable?
15676 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ usability" >&5
15677 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ usability... $ECHO_C" >&6; }
15678 cat >conftest.$ac_ext <<_ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 $ac_includes_default
15685 #include <${GNUTLS_DIR}/include/>
15687 rm -f conftest.$ac_objext
15688 if { (ac_try="$ac_compile"
15689 case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_compile") 2>conftest.er1
15696 grep -v '^
*+' conftest.er1 >conftest.err
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } && {
15701 test -z "$ac_c_werror_flag" ||
15702 test ! -s conftest.err
15703 } && test -s conftest.$ac_objext; then
15704 ac_header_compiler=yes
15706 echo "$as_me: failed program was:" >&5
15707 sed 's
/^
/|
/' conftest.$ac_ext >&5
15709 ac_header_compiler=no
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15714 echo "${ECHO_T}$ac_header_compiler" >&6; }
15716 # Is the header present?
15717 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ presence" >&5
15718 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ presence... $ECHO_C" >&6; }
15719 cat >conftest.$ac_ext <<_ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15725 #include <${GNUTLS_DIR}/include/>
15727 if { (ac_try="$ac_cpp conftest.$ac_ext"
15728 case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15735 grep -v '^
*+' conftest.er1 >conftest.err
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } >/dev/null && {
15740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15741 test ! -s conftest.err
15743 ac_header_preproc=yes
15745 echo "$as_me: failed program was:" >&5
15746 sed 's
/^
/|
/' conftest.$ac_ext >&5
15748 ac_header_preproc=no
15751 rm -f conftest.err conftest.$ac_ext
15752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15753 echo "${ECHO_T}$ac_header_preproc" >&6; }
15755 # So? What about this header?
15756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15758 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
15759 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result
" >&5
15761 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: proceeding with the compiler
's result" >&2;}
15762 ac_header_preproc=yes
15765 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&5
15766 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&5
15768 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&5
15770 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
15772 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result
" >&5
15774 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: proceeding with the preprocessor
's result" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&5
15776 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&2;}
15780 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
15781 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
15782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 eval "$as_ac_Header=\$ac_header_preproc"
15787 ac_res=`eval echo '${'$as_ac_Header'}'`
15788 { echo "$as_me:$LINENO: result: $ac_res" >&5
15789 echo "${ECHO_T}$ac_res" >&6; }
15792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15793 GNUTLS_HEADER_FOUND=1
15795 GNUTLS_HEADER_FOUND=0
15801 if test "x" != "x" ; then
15802 if test "${ac_cv_header_+set}" = set; then
15803 { echo "$as_me:$LINENO: checking for " >&5
15804 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
15805 if test "${ac_cv_header_+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15808 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
15809 echo "${ECHO_T}$ac_cv_header_" >&6; }
15811 # Is the header compilable?
15812 { echo "$as_me:$LINENO: checking usability" >&5
15813 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
15814 cat >conftest.$ac_ext <<_ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15820 $ac_includes_default
15823 rm -f conftest.$ac_objext
15824 if { (ac_try="$ac_compile"
15825 case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_compile") 2>conftest.er1
15832 grep -v '^
*+' conftest.er1 >conftest.err
15834 cat conftest.err >&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } && {
15837 test -z "$ac_c_werror_flag" ||
15838 test ! -s conftest.err
15839 } && test -s conftest.$ac_objext; then
15840 ac_header_compiler=yes
15842 echo "$as_me: failed program was:" >&5
15843 sed 's
/^
/|
/' conftest.$ac_ext >&5
15845 ac_header_compiler=no
15848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15850 echo "${ECHO_T}$ac_header_compiler" >&6; }
15852 # Is the header present?
15853 { echo "$as_me:$LINENO: checking presence" >&5
15854 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
15855 cat >conftest.$ac_ext <<_ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15863 if { (ac_try="$ac_cpp conftest.$ac_ext"
15864 case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15871 grep -v '^
*+' conftest.er1 >conftest.err
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } >/dev/null && {
15876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15879 ac_header_preproc=yes
15881 echo "$as_me: failed program was:" >&5
15882 sed 's
/^
/|
/' conftest.$ac_ext >&5
15884 ac_header_preproc=no
15887 rm -f conftest.err conftest.$ac_ext
15888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15889 echo "${ECHO_T}$ac_header_preproc" >&6; }
15891 # So? What about this header?
15892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15894 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
15895 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
15896 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result
" >&5
15897 echo "$as_me: WARNING
: : proceeding with the compiler
's result" >&2;}
15898 ac_header_preproc=yes
15901 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
15902 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
15904 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
15906 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
15908 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result
" >&5
15910 echo "$as_me: WARNING
: : proceeding with the preprocessor
's result" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
15912 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
15916 { echo "$as_me:$LINENO: checking for " >&5
15917 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
15918 if test "${ac_cv_header_+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 ac_cv_header_=$ac_header_preproc
15923 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
15924 echo "${ECHO_T}$ac_cv_header_" >&6; }
15927 if test $ac_cv_header_ = yes; then
15928 GNUTLS_HEADER_FOUND=1
15930 GNUTLS_HEADER_FOUND=0
15936 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
15937 if test ! -z "${GNUTLS_MANDATORY}" ;
15939 { echo "$as_me:$LINENO: ***" >&5
15940 echo "$as_me: ***" >&6;}
15941 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
15942 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
15943 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
15944 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
15945 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
15946 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
15955 cat >>confdefs.h <<_ACEOF
15956 #define HAVE_GNUTLS 1
15960 elif test ! -z "${GNUTLS_MANDATORY}";
15962 { echo "$as_me:$LINENO: ***" >&5
15963 echo "$as_me: ***" >&6;}
15964 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
15965 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
15966 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
15967 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
15968 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
15969 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
15974 if test "${PBX_GNUTLS}" = 1; then
15975 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
15979 if test "${USE_IMAP_TK}" != "no"; then
15980 if test "${IMAP_TK_DIR}" = ""; then
15981 IMAP_TK_DIR=`pwd`"/../imap-2004g"
15983 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
15984 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
15985 saved_cppflags="${CPPFLAGS}"
15986 saved_libs="${LIBS}"
15987 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
15988 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
15990 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
15991 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
15992 cat >conftest.$ac_ext <<_ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 #include "c-client.h"
15999 void mm_searched (MAILSTREAM *stream,unsigned long number)
16002 void mm_exists (MAILSTREAM *stream,unsigned long number)
16005 void mm_expunged (MAILSTREAM *stream,unsigned long number)
16008 void mm_flags (MAILSTREAM *stream,unsigned long number)
16011 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
16014 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16017 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16020 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
16023 void mm_log (char *string,long errflg)
16026 void mm_dlog (char *string)
16029 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
16032 void mm_critical (MAILSTREAM *stream)
16035 void mm_nocritical (MAILSTREAM *stream)
16038 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
16041 void mm_fatal (char *string)
16048 MAILSTREAM *foo = mail_open(NULL, "", 0);
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (ac_try="$ac_link"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_link") 2>conftest.er1
16064 grep -v '^
*+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } && {
16069 test -z "$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16071 } && test -s conftest$ac_exeext &&
16072 $as_test_x conftest$ac_exeext; then
16073 ac_cv_imap_tk="yes"
16075 echo "$as_me: failed program was:" >&5
16076 sed 's
/^
/|
/' conftest.$ac_ext >&5
16082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16083 conftest$ac_exeext conftest.$ac_ext
16084 if test "${ac_cv_imap_tk}" = "yes"; then
16085 cat >conftest.$ac_ext <<_ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 #include "c-client.h"
16092 void mm_searched (MAILSTREAM *stream,unsigned long number)
16095 void mm_exists (MAILSTREAM *stream,unsigned long number)
16098 void mm_expunged (MAILSTREAM *stream,unsigned long number)
16101 void mm_flags (MAILSTREAM *stream,unsigned long number)
16104 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
16107 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16110 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16113 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
16116 void mm_log (char *string,long errflg)
16119 void mm_dlog (char *string)
16122 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
16125 void mm_critical (MAILSTREAM *stream)
16128 void mm_nocritical (MAILSTREAM *stream)
16131 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
16134 void mm_fatal (char *string)
16141 long check = mail_expunge_full(NULL, "", 0);
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (ac_try="$ac_link"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155 (eval "$ac_link") 2>conftest.er1
16157 grep -v '^
*+' conftest.er1 >conftest.err
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } && {
16162 test -z "$ac_c_werror_flag" ||
16163 test ! -s conftest.err
16164 } && test -s conftest$ac_exeext &&
16165 $as_test_x conftest$ac_exeext; then
16166 ac_cv_imap_tk2006="yes"
16168 echo "$as_me: failed program was:" >&5
16169 sed 's
/^
/|
/' conftest.$ac_ext >&5
16171 ac_cv_imap_tk2006="no"
16175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16176 conftest$ac_exeext conftest.$ac_ext
16178 CPPFLAGS="${saved_cppflags}"
16179 LIBS="${saved_libs}"
16180 if test "${ac_cv_imap_tk}" = "yes"; then
16181 { echo "$as_me:$LINENO: result: yes" >&5
16182 echo "${ECHO_T}yes" >&6; }
16183 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
16184 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
16187 cat >>confdefs.h <<\_ACEOF
16188 #define HAVE_IMAP_TK 1
16191 if test "${ac_cv_imap_tk2006}" = "yes"; then
16193 cat >>confdefs.h <<\_ACEOF
16194 #define HAVE_IMAP_TK2006 1
16198 elif test ! -z "${IMAP_TK_MANDATORY}"; then
16199 { echo "$as_me:$LINENO: result: no" >&5
16200 echo "${ECHO_T}no" >&6; }
16201 { echo "$as_me:$LINENO: ***" >&5
16202 echo "$as_me: ***" >&6;}
16203 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
16204 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
16205 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16206 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16207 { echo "$as_me:$LINENO: *** including --without-imap." >&5
16208 echo "$as_me: *** including --without-imap." >&6;}
16211 { echo "$as_me:$LINENO: result: no" >&5
16212 echo "${ECHO_T}no" >&6; }
16217 ac_cpp='$CXXCPP $CPPFLAGS'
16218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
16219 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
16220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16223 if test "${USE_KDE}" != "no"; then
16224 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
16225 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
16226 saved_libs="${LIBS}"
16227 saved_cppflags="${CPPFLAGS}"
16228 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
16229 if test -d ${KDE_DIR}/lib; then
16230 kdelibdir="${KDE_DIR}/lib"
16232 kdelibdir="${KDE_DIR}"
16234 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include "kcrash.h"
16247 KCrash::defaultCrashHandler(1);
16253 rm -f conftest.$ac_objext conftest$ac_exeext
16254 if { (ac_try="$ac_link"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_link") 2>conftest.er1
16262 grep -v '^
*+' conftest.er1 >conftest.err
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_cxx_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest$ac_exeext &&
16270 $as_test_x conftest$ac_exeext; then
16271 ac_cv_lib_kde_crash="yes"
16273 echo "$as_me: failed program was:" >&5
16274 sed 's
/^
/|
/' conftest.$ac_ext >&5
16276 ac_cv_lib_kde_crash="no"
16279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16280 conftest$ac_exeext conftest.$ac_ext
16282 LIBS="${saved_libs}"
16283 CPPFLAGS="${saved_cppflags}"
16285 if test "${ac_cv_lib_kde_crash}" = "yes"; then
16286 { echo "$as_me:$LINENO: result: yes" >&5
16287 echo "${ECHO_T}yes" >&6; }
16288 KDE_LIB="-lkdecore -lkdeui"
16289 if test "${KDE_DIR}" != ""; then
16290 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
16291 KDE_INCLUDE="-I${KDE_DIR}/include"
16295 cat >>confdefs.h <<\_ACEOF
16296 #define HAVE_LIBKDE 1
16299 elif test ! -z "${KDE_MANDATORY}"; then
16300 { echo "$as_me:$LINENO: result: no" >&5
16301 echo "${ECHO_T}no" >&6; }
16302 { echo "$as_me:$LINENO: ***" >&5
16303 echo "$as_me: ***" >&6;}
16304 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
16305 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
16306 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16307 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16308 { echo "$as_me:$LINENO: *** including --without-kde." >&5
16309 echo "$as_me: *** including --without-kde." >&6;}
16312 { echo "$as_me:$LINENO: result: no" >&5
16313 echo "${ECHO_T}no" >&6; }
16316 if test "${PBX_KDE}" = 1; then
16317 if test -n "$ac_tool_prefix"; then
16318 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
16319 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
16320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16322 if test "${ac_cv_path_KDEINIT+set}" = set; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16327 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
16330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16331 for as_dir in $PATH
16334 test -z "$as_dir" && as_dir=.
16335 for ac_exec_ext in '' $ac_executable_extensions; do
16336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16337 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
16338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16348 KDEINIT=$ac_cv_path_KDEINIT
16349 if test -n "$KDEINIT"; then
16350 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
16351 echo "${ECHO_T}$KDEINIT" >&6; }
16353 { echo "$as_me:$LINENO: result: no" >&5
16354 echo "${ECHO_T}no" >&6; }
16359 if test -z "$ac_cv_path_KDEINIT"; then
16360 ac_pt_KDEINIT=$KDEINIT
16361 # Extract the first word of "kdeinit", so it can be a program name with args.
16362 set dummy kdeinit; ac_word=$2
16363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16365 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 case $ac_pt_KDEINIT in
16370 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
16373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16374 for as_dir in $PATH
16377 test -z "$as_dir" && as_dir=.
16378 for ac_exec_ext in '' $ac_executable_extensions; do
16379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16380 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
16381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16391 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
16392 if test -n "$ac_pt_KDEINIT"; then
16393 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
16394 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
16396 { echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6; }
16400 if test "x$ac_pt_KDEINIT" = x; then
16403 case $cross_compiling:$ac_tool_warned in
16405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16406 whose name does not start with the host triplet. If you think this
16407 configuration is useful to you, please write to autoconf@gnu.org." >&5
16408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16409 whose name does not start with the host triplet. If you think this
16410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16411 ac_tool_warned=yes ;;
16413 KDEINIT=$ac_pt_KDEINIT
16416 KDEINIT="$ac_cv_path_KDEINIT"
16419 if test ! x"${KDEINIT}" = xNo; then
16420 KDEDIR=$(${DIRNAME} ${KDEINIT})
16421 KDEDIR=$(${DIRNAME} ${KDEDIR})
16427 ac_cpp='$CPP $CPPFLAGS'
16428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
16429 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
16430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16434 if test "${USE_MISDN}" != "no"; then
16436 if test "x${MISDN_DIR}" != "x"; then
16437 if test -d ${MISDN_DIR}/lib; then
16438 pbxlibdir="-L${MISDN_DIR}/lib"
16440 pbxlibdir="-L${MISDN_DIR}"
16443 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
16444 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
16445 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 ac_check_lib_save_LIBS=$LIBS
16449 LIBS="-lmISDN ${pbxlibdir} $LIBS"
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16457 /* Override any GCC internal prototype to avoid an error.
16458 Use char because int might match the return type of a GCC
16459 builtin and then its argument prototype would still apply. */
16463 char mISDN_open ();
16467 return mISDN_open ();
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_link") 2>conftest.er1
16481 grep -v '^
*+' conftest.er1 >conftest.err
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } && {
16486 test -z "$ac_c_werror_flag" ||
16487 test ! -s conftest.err
16488 } && test -s conftest$ac_exeext &&
16489 $as_test_x conftest$ac_exeext; then
16490 ac_cv_lib_mISDN_mISDN_open=yes
16492 echo "$as_me: failed program was:" >&5
16493 sed 's
/^
/|
/' conftest.$ac_ext >&5
16495 ac_cv_lib_mISDN_mISDN_open=no
16498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16499 conftest$ac_exeext conftest.$ac_ext
16500 LIBS=$ac_check_lib_save_LIBS
16502 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
16503 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
16504 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
16505 AST_MISDN_FOUND=yes
16511 if test "${AST_MISDN_FOUND}" = "yes"; then
16512 MISDN_LIB="-lmISDN "
16513 MISDN_HEADER_FOUND="1"
16514 if test "x${MISDN_DIR}" != "x"; then
16515 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
16516 MISDN_INCLUDE="-I${MISDN_DIR}/include"
16517 if test "xmISDNuser/mISDNlib.h" != "x" ; then
16518 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
16519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16520 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
16521 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
16522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 ac_res=`eval echo '${'$as_ac_Header'}'`
16526 { echo "$as_me:$LINENO: result: $ac_res" >&5
16527 echo "${ECHO_T}$ac_res" >&6; }
16529 # Is the header compilable?
16530 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
16531 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
16532 cat >conftest.$ac_ext <<_ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16538 $ac_includes_default
16539 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
16541 rm -f conftest.$ac_objext
16542 if { (ac_try="$ac_compile"
16543 case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548 (eval "$ac_compile") 2>conftest.er1
16550 grep -v '^
*+' conftest.er1 >conftest.err
16552 cat conftest.err >&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } && {
16555 test -z "$ac_c_werror_flag" ||
16556 test ! -s conftest.err
16557 } && test -s conftest.$ac_objext; then
16558 ac_header_compiler=yes
16560 echo "$as_me: failed program was:" >&5
16561 sed 's
/^
/|
/' conftest.$ac_ext >&5
16563 ac_header_compiler=no
16566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16568 echo "${ECHO_T}$ac_header_compiler" >&6; }
16570 # Is the header present?
16571 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
16572 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
16573 cat >conftest.$ac_ext <<_ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16579 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
16581 if { (ac_try="$ac_cpp conftest.$ac_ext"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16589 grep -v '^
*+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } >/dev/null && {
16594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16595 test ! -s conftest.err
16597 ac_header_preproc=yes
16599 echo "$as_me: failed program was:" >&5
16600 sed 's
/^
/|
/' conftest.$ac_ext >&5
16602 ac_header_preproc=no
16605 rm -f conftest.err conftest.$ac_ext
16606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16607 echo "${ECHO_T}$ac_header_preproc" >&6; }
16609 # So? What about this header?
16610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16612 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16613 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result
" >&5
16615 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: proceeding with the compiler
's result" >&2;}
16616 ac_header_preproc=yes
16619 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
16620 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
16621 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
16622 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
16623 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
16624 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
16626 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result
" >&5
16628 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: proceeding with the preprocessor
's result" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
16630 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
16634 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
16635 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
16636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 eval "$as_ac_Header=\$ac_header_preproc"
16641 ac_res=`eval echo '${'$as_ac_Header'}'`
16642 { echo "$as_me:$LINENO: result: $ac_res" >&5
16643 echo "${ECHO_T}$ac_res" >&6; }
16646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16647 MISDN_HEADER_FOUND=1
16649 MISDN_HEADER_FOUND=0
16655 if test "xmISDNuser/mISDNlib.h" != "x" ; then
16656 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
16657 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
16658 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
16659 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
16663 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
16665 # Is the header compilable?
16666 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
16667 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
16668 cat >conftest.$ac_ext <<_ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h. */
16674 $ac_includes_default
16675 #include <mISDNuser/mISDNlib.h>
16677 rm -f conftest.$ac_objext
16678 if { (ac_try="$ac_compile"
16679 case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_compile") 2>conftest.er1
16686 grep -v '^
*+' conftest.er1 >conftest.err
16688 cat conftest.err >&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } && {
16691 test -z "$ac_c_werror_flag" ||
16692 test ! -s conftest.err
16693 } && test -s conftest.$ac_objext; then
16694 ac_header_compiler=yes
16696 echo "$as_me: failed program was:" >&5
16697 sed 's
/^
/|
/' conftest.$ac_ext >&5
16699 ac_header_compiler=no
16702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16704 echo "${ECHO_T}$ac_header_compiler" >&6; }
16706 # Is the header present?
16707 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
16708 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
16709 cat >conftest.$ac_ext <<_ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 #include <mISDNuser/mISDNlib.h>
16717 if { (ac_try="$ac_cpp conftest.$ac_ext"
16718 case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16725 grep -v '^
*+' conftest.er1 >conftest.err
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } >/dev/null && {
16730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16731 test ! -s conftest.err
16733 ac_header_preproc=yes
16735 echo "$as_me: failed program was:" >&5
16736 sed 's
/^
/|
/' conftest.$ac_ext >&5
16738 ac_header_preproc=no
16741 rm -f conftest.err conftest.$ac_ext
16742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16743 echo "${ECHO_T}$ac_header_preproc" >&6; }
16745 # So? What about this header?
16746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16748 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16749 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result
" >&5
16751 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: proceeding with the compiler
's result" >&2;}
16752 ac_header_preproc=yes
16755 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
16756 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
16757 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
16758 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
16760 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
16762 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result
" >&5
16764 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: proceeding with the preprocessor
's result" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
16766 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
16770 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
16771 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
16772 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16775 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
16777 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
16778 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
16781 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
16782 MISDN_HEADER_FOUND=1
16784 MISDN_HEADER_FOUND=0
16790 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
16791 if test ! -z "${MISDN_MANDATORY}" ;
16793 { echo "$as_me:$LINENO: ***" >&5
16794 echo "$as_me: ***" >&6;}
16795 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
16796 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
16797 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
16798 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
16799 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
16800 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
16809 cat >>confdefs.h <<_ACEOF
16810 #define HAVE_MISDN 1
16814 elif test ! -z "${MISDN_MANDATORY}";
16816 { echo "$as_me:$LINENO: ***" >&5
16817 echo "$as_me: ***" >&6;}
16818 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
16819 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
16820 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16821 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16822 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
16823 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
16829 if test "${PBX_MISDN}" = 1; then
16831 if test "${USE_ISDNNET}" != "no"; then
16833 if test "x${ISDNNET_DIR}" != "x"; then
16834 if test -d ${ISDNNET_DIR}/lib; then
16835 pbxlibdir="-L${ISDNNET_DIR}/lib"
16837 pbxlibdir="-L${ISDNNET_DIR}"
16840 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
16841 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
16842 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16845 ac_check_lib_save_LIBS=$LIBS
16846 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
16847 cat >conftest.$ac_ext <<_ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16854 /* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16860 char init_manager ();
16864 return init_manager ();
16869 rm -f conftest.$ac_objext conftest$ac_exeext
16870 if { (ac_try="$ac_link"
16871 case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_link") 2>conftest.er1
16878 grep -v '^
*+' conftest.er1 >conftest.err
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } && {
16883 test -z "$ac_c_werror_flag" ||
16884 test ! -s conftest.err
16885 } && test -s conftest$ac_exeext &&
16886 $as_test_x conftest$ac_exeext; then
16887 ac_cv_lib_isdnnet_init_manager=yes
16889 echo "$as_me: failed program was:" >&5
16890 sed 's
/^
/|
/' conftest.$ac_ext >&5
16892 ac_cv_lib_isdnnet_init_manager=no
16895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16896 conftest$ac_exeext conftest.$ac_ext
16897 LIBS=$ac_check_lib_save_LIBS
16899 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
16900 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
16901 if test $ac_cv_lib_isdnnet_init_manager = yes; then
16902 AST_ISDNNET_FOUND=yes
16904 AST_ISDNNET_FOUND=no
16908 if test "${AST_ISDNNET_FOUND}" = "yes"; then
16909 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
16910 ISDNNET_HEADER_FOUND="1"
16911 if test "x${ISDNNET_DIR}" != "x"; then
16912 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
16913 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
16914 if test "xmISDNuser/isdn_net.h" != "x" ; then
16915 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
16916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16917 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
16918 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
16919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 ac_res=`eval echo '${'$as_ac_Header'}'`
16923 { echo "$as_me:$LINENO: result: $ac_res" >&5
16924 echo "${ECHO_T}$ac_res" >&6; }
16926 # Is the header compilable?
16927 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
16928 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
16929 cat >conftest.$ac_ext <<_ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16935 $ac_includes_default
16936 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
16938 rm -f conftest.$ac_objext
16939 if { (ac_try="$ac_compile"
16940 case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_compile") 2>conftest.er1
16947 grep -v '^
*+' conftest.er1 >conftest.err
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } && {
16952 test -z "$ac_c_werror_flag" ||
16953 test ! -s conftest.err
16954 } && test -s conftest.$ac_objext; then
16955 ac_header_compiler=yes
16957 echo "$as_me: failed program was:" >&5
16958 sed 's
/^
/|
/' conftest.$ac_ext >&5
16960 ac_header_compiler=no
16963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16965 echo "${ECHO_T}$ac_header_compiler" >&6; }
16967 # Is the header present?
16968 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
16969 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
16970 cat >conftest.$ac_ext <<_ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
16978 if { (ac_try="$ac_cpp conftest.$ac_ext"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16986 grep -v '^
*+' conftest.er1 >conftest.err
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } >/dev/null && {
16991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16992 test ! -s conftest.err
16994 ac_header_preproc=yes
16996 echo "$as_me: failed program was:" >&5
16997 sed 's
/^
/|
/' conftest.$ac_ext >&5
16999 ac_header_preproc=no
17002 rm -f conftest.err conftest.$ac_ext
17003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17004 echo "${ECHO_T}$ac_header_preproc" >&6; }
17006 # So? What about this header?
17007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17009 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
17010 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17011 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result
" >&5
17012 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: proceeding with the compiler
's result" >&2;}
17013 ac_header_preproc=yes
17016 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
17017 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
17018 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
17019 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
17020 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
17021 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
17023 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result
" >&5
17025 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: proceeding with the preprocessor
's result" >&2;}
17026 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
17027 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
17031 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
17032 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 eval "$as_ac_Header=\$ac_header_preproc"
17038 ac_res=`eval echo '${'$as_ac_Header'}'`
17039 { echo "$as_me:$LINENO: result: $ac_res" >&5
17040 echo "${ECHO_T}$ac_res" >&6; }
17043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17044 ISDNNET_HEADER_FOUND=1
17046 ISDNNET_HEADER_FOUND=0
17052 if test "xmISDNuser/isdn_net.h" != "x" ; then
17053 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
17054 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
17055 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17056 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
17060 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
17062 # Is the header compilable?
17063 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
17064 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
17065 cat >conftest.$ac_ext <<_ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17071 $ac_includes_default
17072 #include <mISDNuser/isdn_net.h>
17074 rm -f conftest.$ac_objext
17075 if { (ac_try="$ac_compile"
17076 case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_compile") 2>conftest.er1
17083 grep -v '^
*+' conftest.er1 >conftest.err
17085 cat conftest.err >&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } && {
17088 test -z "$ac_c_werror_flag" ||
17089 test ! -s conftest.err
17090 } && test -s conftest.$ac_objext; then
17091 ac_header_compiler=yes
17093 echo "$as_me: failed program was:" >&5
17094 sed 's
/^
/|
/' conftest.$ac_ext >&5
17096 ac_header_compiler=no
17099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17101 echo "${ECHO_T}$ac_header_compiler" >&6; }
17103 # Is the header present?
17104 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
17105 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
17106 cat >conftest.$ac_ext <<_ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17112 #include <mISDNuser/isdn_net.h>
17114 if { (ac_try="$ac_cpp conftest.$ac_ext"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17122 grep -v '^
*+' conftest.er1 >conftest.err
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } >/dev/null && {
17127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17128 test ! -s conftest.err
17130 ac_header_preproc=yes
17132 echo "$as_me: failed program was:" >&5
17133 sed 's
/^
/|
/' conftest.$ac_ext >&5
17135 ac_header_preproc=no
17138 rm -f conftest.err conftest.$ac_ext
17139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17140 echo "${ECHO_T}$ac_header_preproc" >&6; }
17142 # So? What about this header?
17143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17145 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
17146 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17147 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result
" >&5
17148 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: proceeding with the compiler
's result" >&2;}
17149 ac_header_preproc=yes
17152 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
17153 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
17154 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
17155 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
17156 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
17157 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
17158 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
17159 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
17160 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result
" >&5
17161 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: proceeding with the preprocessor
's result" >&2;}
17162 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
17163 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
17167 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
17168 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17169 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
17174 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
17175 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
17178 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
17179 ISDNNET_HEADER_FOUND=1
17181 ISDNNET_HEADER_FOUND=0
17187 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
17188 if test ! -z "${ISDNNET_MANDATORY}" ;
17190 { echo "$as_me:$LINENO: ***" >&5
17191 echo "$as_me: ***" >&6;}
17192 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
17193 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
17194 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
17195 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
17196 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
17197 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
17206 cat >>confdefs.h <<_ACEOF
17207 #define HAVE_ISDNNET 1
17211 elif test ! -z "${ISDNNET_MANDATORY}";
17213 { echo "$as_me:$LINENO: ***" >&5
17214 echo "$as_me: ***" >&6;}
17215 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
17216 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
17217 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17218 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17219 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
17220 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
17226 if test "${USE_SUPPSERV}" != "no"; then
17228 if test "x${SUPPSERV_DIR}" != "x"; then
17229 if test -d ${SUPPSERV_DIR}/lib; then
17230 pbxlibdir="-L${SUPPSERV_DIR}/lib"
17232 pbxlibdir="-L${SUPPSERV_DIR}"
17235 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
17236 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
17237 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 ac_check_lib_save_LIBS=$LIBS
17241 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
17242 cat >conftest.$ac_ext <<_ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17249 /* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17259 return encodeFac ();
17264 rm -f conftest.$ac_objext conftest$ac_exeext
17265 if { (ac_try="$ac_link"
17266 case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_link") 2>conftest.er1
17273 grep -v '^
*+' conftest.er1 >conftest.err
17275 cat conftest.err >&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } && {
17278 test -z "$ac_c_werror_flag" ||
17279 test ! -s conftest.err
17280 } && test -s conftest$ac_exeext &&
17281 $as_test_x conftest$ac_exeext; then
17282 ac_cv_lib_suppserv_encodeFac=yes
17284 echo "$as_me: failed program was:" >&5
17285 sed 's
/^
/|
/' conftest.$ac_ext >&5
17287 ac_cv_lib_suppserv_encodeFac=no
17290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17291 conftest$ac_exeext conftest.$ac_ext
17292 LIBS=$ac_check_lib_save_LIBS
17294 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
17295 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
17296 if test $ac_cv_lib_suppserv_encodeFac = yes; then
17297 AST_SUPPSERV_FOUND=yes
17299 AST_SUPPSERV_FOUND=no
17303 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
17304 SUPPSERV_LIB="-lsuppserv "
17305 SUPPSERV_HEADER_FOUND="1"
17306 if test "x${SUPPSERV_DIR}" != "x"; then
17307 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
17308 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
17309 if test "xmISDNuser/suppserv.h" != "x" ; then
17310 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
17311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17312 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
17313 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
17314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 ac_res=`eval echo '${'$as_ac_Header'}'`
17318 { echo "$as_me:$LINENO: result: $ac_res" >&5
17319 echo "${ECHO_T}$ac_res" >&6; }
17321 # Is the header compilable?
17322 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
17323 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
17324 cat >conftest.$ac_ext <<_ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17330 $ac_includes_default
17331 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
17333 rm -f conftest.$ac_objext
17334 if { (ac_try="$ac_compile"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_compile") 2>conftest.er1
17342 grep -v '^
*+' conftest.er1 >conftest.err
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } && {
17347 test -z "$ac_c_werror_flag" ||
17348 test ! -s conftest.err
17349 } && test -s conftest.$ac_objext; then
17350 ac_header_compiler=yes
17352 echo "$as_me: failed program was:" >&5
17353 sed 's
/^
/|
/' conftest.$ac_ext >&5
17355 ac_header_compiler=no
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17360 echo "${ECHO_T}$ac_header_compiler" >&6; }
17362 # Is the header present?
17363 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
17364 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
17365 cat >conftest.$ac_ext <<_ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
17373 if { (ac_try="$ac_cpp conftest.$ac_ext"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17381 grep -v '^
*+' conftest.er1 >conftest.err
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } >/dev/null && {
17386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17387 test ! -s conftest.err
17389 ac_header_preproc=yes
17391 echo "$as_me: failed program was:" >&5
17392 sed 's
/^
/|
/' conftest.$ac_ext >&5
17394 ac_header_preproc=no
17397 rm -f conftest.err conftest.$ac_ext
17398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17399 echo "${ECHO_T}$ac_header_preproc" >&6; }
17401 # So? What about this header?
17402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17404 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
17405 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17406 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result
" >&5
17407 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: proceeding with the compiler
's result" >&2;}
17408 ac_header_preproc=yes
17411 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
17412 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
17413 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
17414 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
17415 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
17416 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
17417 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
17418 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
17419 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result
" >&5
17420 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: proceeding with the preprocessor
's result" >&2;}
17421 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
17422 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
17426 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
17427 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
17428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 eval "$as_ac_Header=\$ac_header_preproc"
17433 ac_res=`eval echo '${'$as_ac_Header'}'`
17434 { echo "$as_me:$LINENO: result: $ac_res" >&5
17435 echo "${ECHO_T}$ac_res" >&6; }
17438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17439 SUPPSERV_HEADER_FOUND=1
17441 SUPPSERV_HEADER_FOUND=0
17447 if test "xmISDNuser/suppserv.h" != "x" ; then
17448 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
17449 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
17450 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
17451 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
17455 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
17457 # Is the header compilable?
17458 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
17459 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
17460 cat >conftest.$ac_ext <<_ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 $ac_includes_default
17467 #include <mISDNuser/suppserv.h>
17469 rm -f conftest.$ac_objext
17470 if { (ac_try="$ac_compile"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_compile") 2>conftest.er1
17478 grep -v '^
*+' conftest.er1 >conftest.err
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } && {
17483 test -z "$ac_c_werror_flag" ||
17484 test ! -s conftest.err
17485 } && test -s conftest.$ac_objext; then
17486 ac_header_compiler=yes
17488 echo "$as_me: failed program was:" >&5
17489 sed 's
/^
/|
/' conftest.$ac_ext >&5
17491 ac_header_compiler=no
17494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17496 echo "${ECHO_T}$ac_header_compiler" >&6; }
17498 # Is the header present?
17499 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
17500 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
17501 cat >conftest.$ac_ext <<_ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 #include <mISDNuser/suppserv.h>
17509 if { (ac_try="$ac_cpp conftest.$ac_ext"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17517 grep -v '^
*+' conftest.er1 >conftest.err
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } >/dev/null && {
17522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17525 ac_header_preproc=yes
17527 echo "$as_me: failed program was:" >&5
17528 sed 's
/^
/|
/' conftest.$ac_ext >&5
17530 ac_header_preproc=no
17533 rm -f conftest.err conftest.$ac_ext
17534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17535 echo "${ECHO_T}$ac_header_preproc" >&6; }
17537 # So? What about this header?
17538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17540 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
17541 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17542 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result
" >&5
17543 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: proceeding with the compiler
's result" >&2;}
17544 ac_header_preproc=yes
17547 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
17548 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
17549 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
17550 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
17551 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
17552 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
17553 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
17554 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
17555 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result
" >&5
17556 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: proceeding with the preprocessor
's result" >&2;}
17557 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
17558 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
17562 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
17563 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
17564 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
17569 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
17570 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
17573 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
17574 SUPPSERV_HEADER_FOUND=1
17576 SUPPSERV_HEADER_FOUND=0
17582 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
17583 if test ! -z "${SUPPSERV_MANDATORY}" ;
17585 { echo "$as_me:$LINENO: ***" >&5
17586 echo "$as_me: ***" >&6;}
17587 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
17588 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
17589 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
17590 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
17591 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
17592 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
17596 SUPPSERV_INCLUDE=""
17601 cat >>confdefs.h <<_ACEOF
17602 #define HAVE_SUPPSERV 1
17606 elif test ! -z "${SUPPSERV_MANDATORY}";
17608 { echo "$as_me:$LINENO: ***" >&5
17609 echo "$as_me: ***" >&6;}
17610 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
17611 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
17612 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17613 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17614 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
17615 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
17623 if test "${USE_NBS}" != "no"; then
17625 if test "x${NBS_DIR}" != "x"; then
17626 if test -d ${NBS_DIR}/lib; then
17627 pbxlibdir="-L${NBS_DIR}/lib"
17629 pbxlibdir="-L${NBS_DIR}"
17632 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
17633 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
17634 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 ac_check_lib_save_LIBS=$LIBS
17638 LIBS="-lnbs ${pbxlibdir} $LIBS"
17639 cat >conftest.$ac_ext <<_ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17646 /* Override any GCC internal prototype to avoid an error.
17647 Use char because int might match the return type of a GCC
17648 builtin and then its argument prototype would still apply. */
17652 char nbs_connect ();
17656 return nbs_connect ();
17661 rm -f conftest.$ac_objext conftest$ac_exeext
17662 if { (ac_try="$ac_link"
17663 case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_link") 2>conftest.er1
17670 grep -v '^
*+' conftest.er1 >conftest.err
17672 cat conftest.err >&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } && {
17675 test -z "$ac_c_werror_flag" ||
17676 test ! -s conftest.err
17677 } && test -s conftest$ac_exeext &&
17678 $as_test_x conftest$ac_exeext; then
17679 ac_cv_lib_nbs_nbs_connect=yes
17681 echo "$as_me: failed program was:" >&5
17682 sed 's
/^
/|
/' conftest.$ac_ext >&5
17684 ac_cv_lib_nbs_nbs_connect=no
17687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17688 conftest$ac_exeext conftest.$ac_ext
17689 LIBS=$ac_check_lib_save_LIBS
17691 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
17692 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
17693 if test $ac_cv_lib_nbs_nbs_connect = yes; then
17700 if test "${AST_NBS_FOUND}" = "yes"; then
17702 NBS_HEADER_FOUND="1"
17703 if test "x${NBS_DIR}" != "x"; then
17704 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
17705 NBS_INCLUDE="-I${NBS_DIR}/include"
17706 if test "xnbs.h" != "x" ; then
17707 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
17708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17709 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
17710 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
17711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 ac_res=`eval echo '${'$as_ac_Header'}'`
17715 { echo "$as_me:$LINENO: result: $ac_res" >&5
17716 echo "${ECHO_T}$ac_res" >&6; }
17718 # Is the header compilable?
17719 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
17720 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
17721 cat >conftest.$ac_ext <<_ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17727 $ac_includes_default
17728 #include <${NBS_DIR}/include/nbs.h>
17730 rm -f conftest.$ac_objext
17731 if { (ac_try="$ac_compile"
17732 case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_compile") 2>conftest.er1
17739 grep -v '^
*+' conftest.er1 >conftest.err
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } && {
17744 test -z "$ac_c_werror_flag" ||
17745 test ! -s conftest.err
17746 } && test -s conftest.$ac_objext; then
17747 ac_header_compiler=yes
17749 echo "$as_me: failed program was:" >&5
17750 sed 's
/^
/|
/' conftest.$ac_ext >&5
17752 ac_header_compiler=no
17755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17757 echo "${ECHO_T}$ac_header_compiler" >&6; }
17759 # Is the header present?
17760 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
17761 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
17762 cat >conftest.$ac_ext <<_ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17768 #include <${NBS_DIR}/include/nbs.h>
17770 if { (ac_try="$ac_cpp conftest.$ac_ext"
17771 case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17778 grep -v '^
*+' conftest.er1 >conftest.err
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } >/dev/null && {
17783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17784 test ! -s conftest.err
17786 ac_header_preproc=yes
17788 echo "$as_me: failed program was:" >&5
17789 sed 's
/^
/|
/' conftest.$ac_ext >&5
17791 ac_header_preproc=no
17794 rm -f conftest.err conftest.$ac_ext
17795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17796 echo "${ECHO_T}$ac_header_preproc" >&6; }
17798 # So? What about this header?
17799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17801 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
17802 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17803 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result
" >&5
17804 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: proceeding with the compiler
's result" >&2;}
17805 ac_header_preproc=yes
17808 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
17809 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
17810 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
17811 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
17812 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
17813 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
17814 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
17815 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
17816 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result
" >&5
17817 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: proceeding with the preprocessor
's result" >&2;}
17818 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
17819 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
17823 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
17824 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
17825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17828 eval "$as_ac_Header=\$ac_header_preproc"
17830 ac_res=`eval echo '${'$as_ac_Header'}'`
17831 { echo "$as_me:$LINENO: result: $ac_res" >&5
17832 echo "${ECHO_T}$ac_res" >&6; }
17835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17844 if test "xnbs.h" != "x" ; then
17845 if test "${ac_cv_header_nbs_h+set}" = set; then
17846 { echo "$as_me:$LINENO: checking for nbs.h" >&5
17847 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
17848 if test "${ac_cv_header_nbs_h+set}" = set; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
17852 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
17854 # Is the header compilable?
17855 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
17856 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 $ac_includes_default
17866 rm -f conftest.$ac_objext
17867 if { (ac_try="$ac_compile"
17868 case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873 (eval "$ac_compile") 2>conftest.er1
17875 grep -v '^
*+' conftest.er1 >conftest.err
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } && {
17880 test -z "$ac_c_werror_flag" ||
17881 test ! -s conftest.err
17882 } && test -s conftest.$ac_objext; then
17883 ac_header_compiler=yes
17885 echo "$as_me: failed program was:" >&5
17886 sed 's
/^
/|
/' conftest.$ac_ext >&5
17888 ac_header_compiler=no
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17893 echo "${ECHO_T}$ac_header_compiler" >&6; }
17895 # Is the header present?
17896 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
17897 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
17898 cat >conftest.$ac_ext <<_ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17906 if { (ac_try="$ac_cpp conftest.$ac_ext"
17907 case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17914 grep -v '^
*+' conftest.er1 >conftest.err
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } >/dev/null && {
17919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17920 test ! -s conftest.err
17922 ac_header_preproc=yes
17924 echo "$as_me: failed program was:" >&5
17925 sed 's
/^
/|
/' conftest.$ac_ext >&5
17927 ac_header_preproc=no
17930 rm -f conftest.err conftest.$ac_ext
17931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17932 echo "${ECHO_T}$ac_header_preproc" >&6; }
17934 # So? What about this header?
17935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17937 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
17938 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17939 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result
" >&5
17940 echo "$as_me: WARNING
: nbs.h
: proceeding with the compiler
's result" >&2;}
17941 ac_header_preproc=yes
17944 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
17945 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
17946 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
17947 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
17948 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
17949 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
17950 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
17951 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
17952 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result
" >&5
17953 echo "$as_me: WARNING
: nbs.h
: proceeding with the preprocessor
's result" >&2;}
17954 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
17955 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
17959 { echo "$as_me:$LINENO: checking for nbs.h" >&5
17960 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
17961 if test "${ac_cv_header_nbs_h+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 ac_cv_header_nbs_h=$ac_header_preproc
17966 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
17967 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
17970 if test $ac_cv_header_nbs_h = yes; then
17979 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
17980 if test ! -z "${NBS_MANDATORY}" ;
17982 { echo "$as_me:$LINENO: ***" >&5
17983 echo "$as_me: ***" >&6;}
17984 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
17985 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
17986 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
17987 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
17988 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
17989 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
17998 cat >>confdefs.h <<_ACEOF
18003 elif test ! -z "${NBS_MANDATORY}";
18005 { echo "$as_me:$LINENO: ***" >&5
18006 echo "$as_me: ***" >&6;}
18007 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
18008 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
18009 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18010 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18011 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
18012 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
18019 if test "${USE_NCURSES}" != "no"; then
18021 if test "x${NCURSES_DIR}" != "x"; then
18022 if test -d ${NCURSES_DIR}/lib; then
18023 pbxlibdir="-L${NCURSES_DIR}/lib"
18025 pbxlibdir="-L${NCURSES_DIR}"
18028 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
18029 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
18030 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 ac_check_lib_save_LIBS=$LIBS
18034 LIBS="-lncurses ${pbxlibdir} $LIBS"
18035 cat >conftest.$ac_ext <<_ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h. */
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (ac_try="$ac_link"
18059 case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_link") 2>conftest.er1
18066 grep -v '^
*+' conftest.er1 >conftest.err
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } && {
18071 test -z "$ac_c_werror_flag" ||
18072 test ! -s conftest.err
18073 } && test -s conftest$ac_exeext &&
18074 $as_test_x conftest$ac_exeext; then
18075 ac_cv_lib_ncurses_initscr=yes
18077 echo "$as_me: failed program was:" >&5
18078 sed 's
/^
/|
/' conftest.$ac_ext >&5
18080 ac_cv_lib_ncurses_initscr=no
18083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18084 conftest$ac_exeext conftest.$ac_ext
18085 LIBS=$ac_check_lib_save_LIBS
18087 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
18088 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
18089 if test $ac_cv_lib_ncurses_initscr = yes; then
18090 AST_NCURSES_FOUND=yes
18092 AST_NCURSES_FOUND=no
18096 if test "${AST_NCURSES_FOUND}" = "yes"; then
18097 NCURSES_LIB="-lncurses "
18098 NCURSES_HEADER_FOUND="1"
18099 if test "x${NCURSES_DIR}" != "x"; then
18100 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
18101 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
18102 if test "xcurses.h" != "x" ; then
18103 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
18104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18105 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
18106 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
18107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 ac_res=`eval echo '${'$as_ac_Header'}'`
18111 { echo "$as_me:$LINENO: result: $ac_res" >&5
18112 echo "${ECHO_T}$ac_res" >&6; }
18114 # Is the header compilable?
18115 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
18116 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
18117 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123 $ac_includes_default
18124 #include <${NCURSES_DIR}/include/curses.h>
18126 rm -f conftest.$ac_objext
18127 if { (ac_try="$ac_compile"
18128 case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_compile") 2>conftest.er1
18135 grep -v '^
*+' conftest.er1 >conftest.err
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } && {
18140 test -z "$ac_c_werror_flag" ||
18141 test ! -s conftest.err
18142 } && test -s conftest.$ac_objext; then
18143 ac_header_compiler=yes
18145 echo "$as_me: failed program was:" >&5
18146 sed 's
/^
/|
/' conftest.$ac_ext >&5
18148 ac_header_compiler=no
18151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18153 echo "${ECHO_T}$ac_header_compiler" >&6; }
18155 # Is the header present?
18156 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
18157 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
18158 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 #include <${NCURSES_DIR}/include/curses.h>
18166 if { (ac_try="$ac_cpp conftest.$ac_ext"
18167 case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18174 grep -v '^
*+' conftest.er1 >conftest.err
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } >/dev/null && {
18179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18180 test ! -s conftest.err
18182 ac_header_preproc=yes
18184 echo "$as_me: failed program was:" >&5
18185 sed 's
/^
/|
/' conftest.$ac_ext >&5
18187 ac_header_preproc=no
18190 rm -f conftest.err conftest.$ac_ext
18191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18192 echo "${ECHO_T}$ac_header_preproc" >&6; }
18194 # So? What about this header?
18195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18197 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18198 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18199 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result
" >&5
18200 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: proceeding with the compiler
's result" >&2;}
18201 ac_header_preproc=yes
18204 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
18205 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
18206 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
18207 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
18208 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
18209 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
18210 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
18211 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18212 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result
" >&5
18213 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: proceeding with the preprocessor
's result" >&2;}
18214 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
18215 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
18219 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
18220 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
18221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18224 eval "$as_ac_Header=\$ac_header_preproc"
18226 ac_res=`eval echo '${'$as_ac_Header'}'`
18227 { echo "$as_me:$LINENO: result: $ac_res" >&5
18228 echo "${ECHO_T}$ac_res" >&6; }
18231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18232 NCURSES_HEADER_FOUND=1
18234 NCURSES_HEADER_FOUND=0
18240 if test "xcurses.h" != "x" ; then
18241 if test "${ac_cv_header_curses_h+set}" = set; then
18242 { echo "$as_me:$LINENO: checking for curses.h" >&5
18243 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18244 if test "${ac_cv_header_curses_h+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18248 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18250 # Is the header compilable?
18251 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18252 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18253 cat >conftest.$ac_ext <<_ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18259 $ac_includes_default
18260 #include <curses.h>
18262 rm -f conftest.$ac_objext
18263 if { (ac_try="$ac_compile"
18264 case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_compile") 2>conftest.er1
18271 grep -v '^
*+' conftest.er1 >conftest.err
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } && {
18276 test -z "$ac_c_werror_flag" ||
18277 test ! -s conftest.err
18278 } && test -s conftest.$ac_objext; then
18279 ac_header_compiler=yes
18281 echo "$as_me: failed program was:" >&5
18282 sed 's
/^
/|
/' conftest.$ac_ext >&5
18284 ac_header_compiler=no
18287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18289 echo "${ECHO_T}$ac_header_compiler" >&6; }
18291 # Is the header present?
18292 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18293 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18294 cat >conftest.$ac_ext <<_ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18300 #include <curses.h>
18302 if { (ac_try="$ac_cpp conftest.$ac_ext"
18303 case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18310 grep -v '^
*+' conftest.er1 >conftest.err
18312 cat conftest.err >&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } >/dev/null && {
18315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18316 test ! -s conftest.err
18318 ac_header_preproc=yes
18320 echo "$as_me: failed program was:" >&5
18321 sed 's
/^
/|
/' conftest.$ac_ext >&5
18323 ac_header_preproc=no
18326 rm -f conftest.err conftest.$ac_ext
18327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18328 echo "${ECHO_T}$ac_header_preproc" >&6; }
18330 # So? What about this header?
18331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18333 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18334 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18335 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result
" >&5
18336 echo "$as_me: WARNING
: curses.h
: proceeding with the compiler
's result" >&2;}
18337 ac_header_preproc=yes
18340 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18341 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18343 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18345 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18347 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18348 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result
" >&5
18349 echo "$as_me: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&2;}
18350 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18351 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18355 { echo "$as_me:$LINENO: checking for curses.h" >&5
18356 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18357 if test "${ac_cv_header_curses_h+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 ac_cv_header_curses_h=$ac_header_preproc
18362 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18363 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18366 if test $ac_cv_header_curses_h = yes; then
18367 NCURSES_HEADER_FOUND=1
18369 NCURSES_HEADER_FOUND=0
18375 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
18376 if test ! -z "${NCURSES_MANDATORY}" ;
18378 { echo "$as_me:$LINENO: ***" >&5
18379 echo "$as_me: ***" >&6;}
18380 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
18381 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
18382 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
18383 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
18384 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
18385 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
18394 cat >>confdefs.h <<_ACEOF
18395 #define HAVE_NCURSES 1
18399 elif test ! -z "${NCURSES_MANDATORY}";
18401 { echo "$as_me:$LINENO: ***" >&5
18402 echo "$as_me: ***" >&6;}
18403 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
18404 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
18405 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18406 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18407 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
18408 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
18415 if test "${USE_NETSNMP}" != "no"; then
18416 if test "x${NETSNMP_DIR}" != "x"; then
18417 if test -n "$ac_tool_prefix"; then
18418 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
18419 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
18420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18422 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 case $NETSNMP_CONFIG in
18427 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
18430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18431 for as_dir in ${NETSNMP_DIR}/bin
18434 test -z "$as_dir" && as_dir=.
18435 for ac_exec_ext in '' $ac_executable_extensions; do
18436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18437 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18448 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
18449 if test -n "$NETSNMP_CONFIG"; then
18450 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
18451 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
18453 { echo "$as_me:$LINENO: result: no" >&5
18454 echo "${ECHO_T}no" >&6; }
18459 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
18460 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
18461 # Extract the first word of "net-snmp-config", so it can be a program name with args.
18462 set dummy net-snmp-config; ac_word=$2
18463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18465 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 case $ac_pt_NETSNMP_CONFIG in
18470 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
18473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18474 for as_dir in ${NETSNMP_DIR}/bin
18477 test -z "$as_dir" && as_dir=.
18478 for ac_exec_ext in '' $ac_executable_extensions; do
18479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18480 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18491 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
18492 if test -n "$ac_pt_NETSNMP_CONFIG"; then
18493 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
18494 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
18496 { echo "$as_me:$LINENO: result: no" >&5
18497 echo "${ECHO_T}no" >&6; }
18500 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
18501 NETSNMP_CONFIG="No"
18503 case $cross_compiling:$ac_tool_warned in
18505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18506 whose name does not start with the host triplet. If you think this
18507 configuration is useful to you, please write to autoconf@gnu.org." >&5
18508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18509 whose name does not start with the host triplet. If you think this
18510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18511 ac_tool_warned=yes ;;
18513 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
18516 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
18519 if test x"${NETSNMP_CONFIG}" = xNo; then
18520 { echo "$as_me:$LINENO: ***" >&5
18521 echo "$as_me: ***" >&6;}
18522 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
18523 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
18524 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
18525 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
18526 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18527 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18528 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
18529 echo "$as_me: *** including --without-netsnmp" >&6;}
18533 if test -n "$ac_tool_prefix"; then
18534 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
18535 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
18536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18538 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
18539 echo $ECHO_N "(cached) $ECHO_C" >&6
18541 case $NETSNMP_CONFIG in
18543 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
18546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18547 for as_dir in $PATH
18550 test -z "$as_dir" && as_dir=.
18551 for ac_exec_ext in '' $ac_executable_extensions; do
18552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18553 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18564 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
18565 if test -n "$NETSNMP_CONFIG"; then
18566 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
18567 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
18569 { echo "$as_me:$LINENO: result: no" >&5
18570 echo "${ECHO_T}no" >&6; }
18575 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
18576 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
18577 # Extract the first word of "net-snmp-config", so it can be a program name with args.
18578 set dummy net-snmp-config; ac_word=$2
18579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18581 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 case $ac_pt_NETSNMP_CONFIG in
18586 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
18589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18590 for as_dir in $PATH
18593 test -z "$as_dir" && as_dir=.
18594 for ac_exec_ext in '' $ac_executable_extensions; do
18595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18596 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18607 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
18608 if test -n "$ac_pt_NETSNMP_CONFIG"; then
18609 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
18610 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
18612 { echo "$as_me:$LINENO: result: no" >&5
18613 echo "${ECHO_T}no" >&6; }
18616 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
18617 NETSNMP_CONFIG="No"
18619 case $cross_compiling:$ac_tool_warned in
18621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18622 whose name does not start with the host triplet. If you think this
18623 configuration is useful to you, please write to autoconf@gnu.org." >&5
18624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18625 whose name does not start with the host triplet. If you think this
18626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18627 ac_tool_warned=yes ;;
18629 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
18632 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
18637 if test x"${NETSNMP_CONFIG}" != xNo; then
18638 NETSNMP_libs=`net-snmp-config --agent-libs`
18640 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
18641 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
18642 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 ac_check_lib_save_LIBS=$LIBS
18646 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
18647 cat >conftest.$ac_ext <<_ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18654 /* Override any GCC internal prototype to avoid an error.
18655 Use char because int might match the return type of a GCC
18656 builtin and then its argument prototype would still apply. */
18660 char snmp_register_callback ();
18664 return snmp_register_callback ();
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (ac_try="$ac_link"
18671 case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_link") 2>conftest.er1
18678 grep -v '^
*+' conftest.er1 >conftest.err
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } && {
18683 test -z "$ac_c_werror_flag" ||
18684 test ! -s conftest.err
18685 } && test -s conftest$ac_exeext &&
18686 $as_test_x conftest$ac_exeext; then
18687 ac_cv_lib_netsnmp_snmp_register_callback=yes
18689 echo "$as_me: failed program was:" >&5
18690 sed 's
/^
/|
/' conftest.$ac_ext >&5
18692 ac_cv_lib_netsnmp_snmp_register_callback=no
18695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18696 conftest$ac_exeext conftest.$ac_ext
18697 LIBS=$ac_check_lib_save_LIBS
18699 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
18700 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
18701 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
18703 cat >>confdefs.h <<_ACEOF
18704 #define HAVE_NETSNMP 1
18710 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
18711 NETSNMP_LIB="${NETSNMP_libs}"
18713 elif test ! -z "${NETSNMP_MANDATORY}";
18715 { echo "$as_me:$LINENO: ***" >&5
18716 echo "$as_me: ***" >&6;}
18717 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
18718 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
18719 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18720 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18721 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
18722 echo "$as_me: *** including --without-netsnmp" >&6;}
18725 elif test ! -z "${NETSNMP_MANDATORY}";
18727 { echo "$as_me:$LINENO: ***" >&5
18728 echo "$as_me: ***" >&6;}
18729 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
18730 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
18731 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18732 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18733 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
18734 echo "$as_me: *** including --without-netsnmp" >&6;}
18739 if test "${USE_NEWT}" != "no"; then
18741 if test "x${NEWT_DIR}" != "x"; then
18742 if test -d ${NEWT_DIR}/lib; then
18743 pbxlibdir="-L${NEWT_DIR}/lib"
18745 pbxlibdir="-L${NEWT_DIR}"
18748 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
18749 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
18750 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 ac_check_lib_save_LIBS=$LIBS
18754 LIBS="-lnewt ${pbxlibdir} $LIBS"
18755 cat >conftest.$ac_ext <<_ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18772 return newtBell ();
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_link") 2>conftest.er1
18786 grep -v '^
*+' conftest.er1 >conftest.err
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } && {
18791 test -z "$ac_c_werror_flag" ||
18792 test ! -s conftest.err
18793 } && test -s conftest$ac_exeext &&
18794 $as_test_x conftest$ac_exeext; then
18795 ac_cv_lib_newt_newtBell=yes
18797 echo "$as_me: failed program was:" >&5
18798 sed 's
/^
/|
/' conftest.$ac_ext >&5
18800 ac_cv_lib_newt_newtBell=no
18803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18804 conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18807 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
18808 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
18809 if test $ac_cv_lib_newt_newtBell = yes; then
18816 if test "${AST_NEWT_FOUND}" = "yes"; then
18818 NEWT_HEADER_FOUND="1"
18819 if test "x${NEWT_DIR}" != "x"; then
18820 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
18821 NEWT_INCLUDE="-I${NEWT_DIR}/include"
18822 if test "xnewt.h" != "x" ; then
18823 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
18824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18825 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
18826 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
18827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 ac_res=`eval echo '${'$as_ac_Header'}'`
18831 { echo "$as_me:$LINENO: result: $ac_res" >&5
18832 echo "${ECHO_T}$ac_res" >&6; }
18834 # Is the header compilable?
18835 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
18836 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
18837 cat >conftest.$ac_ext <<_ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h. */
18843 $ac_includes_default
18844 #include <${NEWT_DIR}/include/newt.h>
18846 rm -f conftest.$ac_objext
18847 if { (ac_try="$ac_compile"
18848 case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_compile") 2>conftest.er1
18855 grep -v '^
*+' conftest.er1 >conftest.err
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } && {
18860 test -z "$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 } && test -s conftest.$ac_objext; then
18863 ac_header_compiler=yes
18865 echo "$as_me: failed program was:" >&5
18866 sed 's
/^
/|
/' conftest.$ac_ext >&5
18868 ac_header_compiler=no
18871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18873 echo "${ECHO_T}$ac_header_compiler" >&6; }
18875 # Is the header present?
18876 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
18877 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
18878 cat >conftest.$ac_ext <<_ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18884 #include <${NEWT_DIR}/include/newt.h>
18886 if { (ac_try="$ac_cpp conftest.$ac_ext"
18887 case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18894 grep -v '^
*+' conftest.er1 >conftest.err
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } >/dev/null && {
18899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18900 test ! -s conftest.err
18902 ac_header_preproc=yes
18904 echo "$as_me: failed program was:" >&5
18905 sed 's
/^
/|
/' conftest.$ac_ext >&5
18907 ac_header_preproc=no
18910 rm -f conftest.err conftest.$ac_ext
18911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18912 echo "${ECHO_T}$ac_header_preproc" >&6; }
18914 # So? What about this header?
18915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18917 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
18918 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18919 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result
" >&5
18920 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: proceeding with the compiler
's result" >&2;}
18921 ac_header_preproc=yes
18924 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
18925 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
18926 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
18927 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
18928 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
18929 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
18930 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
18931 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
18932 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result
" >&5
18933 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: proceeding with the preprocessor
's result" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
18935 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
18939 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
18940 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
18941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 eval "$as_ac_Header=\$ac_header_preproc"
18946 ac_res=`eval echo '${'$as_ac_Header'}'`
18947 { echo "$as_me:$LINENO: result: $ac_res" >&5
18948 echo "${ECHO_T}$ac_res" >&6; }
18951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18952 NEWT_HEADER_FOUND=1
18954 NEWT_HEADER_FOUND=0
18960 if test "xnewt.h" != "x" ; then
18961 if test "${ac_cv_header_newt_h+set}" = set; then
18962 { echo "$as_me:$LINENO: checking for newt.h" >&5
18963 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
18964 if test "${ac_cv_header_newt_h+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
18968 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
18970 # Is the header compilable?
18971 { echo "$as_me:$LINENO: checking newt.h usability" >&5
18972 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
18973 cat >conftest.$ac_ext <<_ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h. */
18979 $ac_includes_default
18982 rm -f conftest.$ac_objext
18983 if { (ac_try="$ac_compile"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_compile") 2>conftest.er1
18991 grep -v '^
*+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } && {
18996 test -z "$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 } && test -s conftest.$ac_objext; then
18999 ac_header_compiler=yes
19001 echo "$as_me: failed program was:" >&5
19002 sed 's
/^
/|
/' conftest.$ac_ext >&5
19004 ac_header_compiler=no
19007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19008 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19009 echo "${ECHO_T}$ac_header_compiler" >&6; }
19011 # Is the header present?
19012 { echo "$as_me:$LINENO: checking newt.h presence" >&5
19013 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
19014 cat >conftest.$ac_ext <<_ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19022 if { (ac_try="$ac_cpp conftest.$ac_ext"
19023 case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19030 grep -v '^
*+' conftest.er1 >conftest.err
19032 cat conftest.err >&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } >/dev/null && {
19035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19036 test ! -s conftest.err
19038 ac_header_preproc=yes
19040 echo "$as_me: failed program was:" >&5
19041 sed 's
/^
/|
/' conftest.$ac_ext >&5
19043 ac_header_preproc=no
19046 rm -f conftest.err conftest.$ac_ext
19047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19048 echo "${ECHO_T}$ac_header_preproc" >&6; }
19050 # So? What about this header?
19051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19053 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
19054 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19055 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result
" >&5
19056 echo "$as_me: WARNING
: newt.h
: proceeding with the compiler
's result" >&2;}
19057 ac_header_preproc=yes
19060 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
19061 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
19062 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
19063 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
19064 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
19065 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
19066 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
19067 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
19068 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result
" >&5
19069 echo "$as_me: WARNING
: newt.h
: proceeding with the preprocessor
's result" >&2;}
19070 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
19071 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
19075 { echo "$as_me:$LINENO: checking for newt.h" >&5
19076 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
19077 if test "${ac_cv_header_newt_h+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 ac_cv_header_newt_h=$ac_header_preproc
19082 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
19083 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
19086 if test $ac_cv_header_newt_h = yes; then
19087 NEWT_HEADER_FOUND=1
19089 NEWT_HEADER_FOUND=0
19095 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
19096 if test ! -z "${NEWT_MANDATORY}" ;
19098 { echo "$as_me:$LINENO: ***" >&5
19099 echo "$as_me: ***" >&6;}
19100 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
19101 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
19102 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
19103 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
19104 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
19105 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
19114 cat >>confdefs.h <<_ACEOF
19115 #define HAVE_NEWT 1
19119 elif test ! -z "${NEWT_MANDATORY}";
19121 { echo "$as_me:$LINENO: ***" >&5
19122 echo "$as_me: ***" >&6;}
19123 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
19124 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
19125 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19126 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19127 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
19128 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
19135 if test "${USE_UNIXODBC}" != "no"; then
19137 if test "x${UNIXODBC_DIR}" != "x"; then
19138 if test -d ${UNIXODBC_DIR}/lib; then
19139 pbxlibdir="-L${UNIXODBC_DIR}/lib"
19141 pbxlibdir="-L${UNIXODBC_DIR}"
19144 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
19145 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
19146 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 ac_check_lib_save_LIBS=$LIBS
19150 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
19151 cat >conftest.$ac_ext <<_ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19158 /* Override any GCC internal prototype to avoid an error.
19159 Use char because int might match the return type of a GCC
19160 builtin and then its argument prototype would still apply. */
19164 char SQLConnect ();
19168 return SQLConnect ();
19173 rm -f conftest.$ac_objext conftest$ac_exeext
19174 if { (ac_try="$ac_link"
19175 case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_link") 2>conftest.er1
19182 grep -v '^
*+' conftest.er1 >conftest.err
19184 cat conftest.err >&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && {
19187 test -z "$ac_c_werror_flag" ||
19188 test ! -s conftest.err
19189 } && test -s conftest$ac_exeext &&
19190 $as_test_x conftest$ac_exeext; then
19191 ac_cv_lib_odbc_SQLConnect=yes
19193 echo "$as_me: failed program was:" >&5
19194 sed 's
/^
/|
/' conftest.$ac_ext >&5
19196 ac_cv_lib_odbc_SQLConnect=no
19199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19200 conftest$ac_exeext conftest.$ac_ext
19201 LIBS=$ac_check_lib_save_LIBS
19203 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
19204 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
19205 if test $ac_cv_lib_odbc_SQLConnect = yes; then
19206 AST_UNIXODBC_FOUND=yes
19208 AST_UNIXODBC_FOUND=no
19212 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
19213 UNIXODBC_LIB="-lodbc -lltdl"
19214 UNIXODBC_HEADER_FOUND="1"
19215 if test "x${UNIXODBC_DIR}" != "x"; then
19216 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
19217 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
19218 if test "xsql.h" != "x" ; then
19219 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
19220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19221 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
19222 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
19223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19226 ac_res=`eval echo '${'$as_ac_Header'}'`
19227 { echo "$as_me:$LINENO: result: $ac_res" >&5
19228 echo "${ECHO_T}$ac_res" >&6; }
19230 # Is the header compilable?
19231 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
19232 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
19233 cat >conftest.$ac_ext <<_ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19239 $ac_includes_default
19240 #include <${UNIXODBC_DIR}/include/sql.h>
19242 rm -f conftest.$ac_objext
19243 if { (ac_try="$ac_compile"
19244 case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_compile") 2>conftest.er1
19251 grep -v '^
*+' conftest.er1 >conftest.err
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } && {
19256 test -z "$ac_c_werror_flag" ||
19257 test ! -s conftest.err
19258 } && test -s conftest.$ac_objext; then
19259 ac_header_compiler=yes
19261 echo "$as_me: failed program was:" >&5
19262 sed 's
/^
/|
/' conftest.$ac_ext >&5
19264 ac_header_compiler=no
19267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19269 echo "${ECHO_T}$ac_header_compiler" >&6; }
19271 # Is the header present?
19272 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
19273 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
19274 cat >conftest.$ac_ext <<_ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 #include <${UNIXODBC_DIR}/include/sql.h>
19282 if { (ac_try="$ac_cpp conftest.$ac_ext"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19290 grep -v '^
*+' conftest.er1 >conftest.err
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } >/dev/null && {
19295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19298 ac_header_preproc=yes
19300 echo "$as_me: failed program was:" >&5
19301 sed 's
/^
/|
/' conftest.$ac_ext >&5
19303 ac_header_preproc=no
19306 rm -f conftest.err conftest.$ac_ext
19307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19308 echo "${ECHO_T}$ac_header_preproc" >&6; }
19310 # So? What about this header?
19311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19313 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
19314 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19315 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result
" >&5
19316 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: proceeding with the compiler
's result" >&2;}
19317 ac_header_preproc=yes
19320 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
19321 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
19322 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
19323 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
19324 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
19325 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
19326 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
19327 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
19328 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result
" >&5
19329 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: proceeding with the preprocessor
's result" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
19331 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
19335 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
19336 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
19337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 eval "$as_ac_Header=\$ac_header_preproc"
19342 ac_res=`eval echo '${'$as_ac_Header'}'`
19343 { echo "$as_me:$LINENO: result: $ac_res" >&5
19344 echo "${ECHO_T}$ac_res" >&6; }
19347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19348 UNIXODBC_HEADER_FOUND=1
19350 UNIXODBC_HEADER_FOUND=0
19356 if test "xsql.h" != "x" ; then
19357 if test "${ac_cv_header_sql_h+set}" = set; then
19358 { echo "$as_me:$LINENO: checking for sql.h" >&5
19359 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
19360 if test "${ac_cv_header_sql_h+set}" = set; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19363 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
19364 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
19366 # Is the header compilable?
19367 { echo "$as_me:$LINENO: checking sql.h usability" >&5
19368 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
19369 cat >conftest.$ac_ext <<_ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h. */
19375 $ac_includes_default
19378 rm -f conftest.$ac_objext
19379 if { (ac_try="$ac_compile"
19380 case "(($ac_try" in
19381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382 *) ac_try_echo=$ac_try;;
19384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19385 (eval "$ac_compile") 2>conftest.er1
19387 grep -v '^
*+' conftest.er1 >conftest.err
19389 cat conftest.err >&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); } && {
19392 test -z "$ac_c_werror_flag" ||
19393 test ! -s conftest.err
19394 } && test -s conftest.$ac_objext; then
19395 ac_header_compiler=yes
19397 echo "$as_me: failed program was:" >&5
19398 sed 's
/^
/|
/' conftest.$ac_ext >&5
19400 ac_header_compiler=no
19403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19405 echo "${ECHO_T}$ac_header_compiler" >&6; }
19407 # Is the header present?
19408 { echo "$as_me:$LINENO: checking sql.h presence" >&5
19409 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
19410 cat >conftest.$ac_ext <<_ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19418 if { (ac_try="$ac_cpp conftest.$ac_ext"
19419 case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19426 grep -v '^
*+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } >/dev/null && {
19431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19432 test ! -s conftest.err
19434 ac_header_preproc=yes
19436 echo "$as_me: failed program was:" >&5
19437 sed 's
/^
/|
/' conftest.$ac_ext >&5
19439 ac_header_preproc=no
19442 rm -f conftest.err conftest.$ac_ext
19443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19444 echo "${ECHO_T}$ac_header_preproc" >&6; }
19446 # So? What about this header?
19447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19449 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
19450 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result
" >&5
19452 echo "$as_me: WARNING
: sql.h
: proceeding with the compiler
's result" >&2;}
19453 ac_header_preproc=yes
19456 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
19457 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
19459 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
19460 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
19461 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
19462 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
19463 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
19464 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result
" >&5
19465 echo "$as_me: WARNING
: sql.h
: proceeding with the preprocessor
's result" >&2;}
19466 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
19467 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
19471 { echo "$as_me:$LINENO: checking for sql.h" >&5
19472 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
19473 if test "${ac_cv_header_sql_h+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 ac_cv_header_sql_h=$ac_header_preproc
19478 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
19479 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
19482 if test $ac_cv_header_sql_h = yes; then
19483 UNIXODBC_HEADER_FOUND=1
19485 UNIXODBC_HEADER_FOUND=0
19491 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
19492 if test ! -z "${UNIXODBC_MANDATORY}" ;
19494 { echo "$as_me:$LINENO: ***" >&5
19495 echo "$as_me: ***" >&6;}
19496 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
19497 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
19498 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
19499 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
19500 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
19501 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
19505 UNIXODBC_INCLUDE=""
19510 cat >>confdefs.h <<_ACEOF
19511 #define HAVE_UNIXODBC 1
19515 elif test ! -z "${UNIXODBC_MANDATORY}";
19517 { echo "$as_me:$LINENO: ***" >&5
19518 echo "$as_me: ***" >&6;}
19519 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
19520 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
19521 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19522 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19523 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
19524 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
19531 if test "${USE_OGG}" != "no"; then
19533 if test "x${OGG_DIR}" != "x"; then
19534 if test -d ${OGG_DIR}/lib; then
19535 pbxlibdir="-L${OGG_DIR}/lib"
19537 pbxlibdir="-L${OGG_DIR}"
19540 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
19541 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
19542 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 ac_check_lib_save_LIBS=$LIBS
19546 LIBS="-logg ${pbxlibdir} $LIBS"
19547 cat >conftest.$ac_ext <<_ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19554 /* Override any GCC internal prototype to avoid an error.
19555 Use char because int might match the return type of a GCC
19556 builtin and then its argument prototype would still apply. */
19560 char ogg_sync_init ();
19564 return ogg_sync_init ();
19569 rm -f conftest.$ac_objext conftest$ac_exeext
19570 if { (ac_try="$ac_link"
19571 case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_link") 2>conftest.er1
19578 grep -v '^
*+' conftest.er1 >conftest.err
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } && {
19583 test -z "$ac_c_werror_flag" ||
19584 test ! -s conftest.err
19585 } && test -s conftest$ac_exeext &&
19586 $as_test_x conftest$ac_exeext; then
19587 ac_cv_lib_ogg_ogg_sync_init=yes
19589 echo "$as_me: failed program was:" >&5
19590 sed 's
/^
/|
/' conftest.$ac_ext >&5
19592 ac_cv_lib_ogg_ogg_sync_init=no
19595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19596 conftest$ac_exeext conftest.$ac_ext
19597 LIBS=$ac_check_lib_save_LIBS
19599 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
19600 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
19601 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
19608 if test "${AST_OGG_FOUND}" = "yes"; then
19610 OGG_HEADER_FOUND="1"
19611 if test "x${OGG_DIR}" != "x"; then
19612 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
19613 OGG_INCLUDE="-I${OGG_DIR}/include"
19614 if test "x" != "x" ; then
19615 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
19616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19617 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
19618 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
19619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 ac_res=`eval echo '${'$as_ac_Header'}'`
19623 { echo "$as_me:$LINENO: result: $ac_res" >&5
19624 echo "${ECHO_T}$ac_res" >&6; }
19626 # Is the header compilable?
19627 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
19628 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
19629 cat >conftest.$ac_ext <<_ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 $ac_includes_default
19636 #include <${OGG_DIR}/include/>
19638 rm -f conftest.$ac_objext
19639 if { (ac_try="$ac_compile"
19640 case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_compile") 2>conftest.er1
19647 grep -v '^
*+' conftest.er1 >conftest.err
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } && {
19652 test -z "$ac_c_werror_flag" ||
19653 test ! -s conftest.err
19654 } && test -s conftest.$ac_objext; then
19655 ac_header_compiler=yes
19657 echo "$as_me: failed program was:" >&5
19658 sed 's
/^
/|
/' conftest.$ac_ext >&5
19660 ac_header_compiler=no
19663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19665 echo "${ECHO_T}$ac_header_compiler" >&6; }
19667 # Is the header present?
19668 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
19669 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
19670 cat >conftest.$ac_ext <<_ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 #include <${OGG_DIR}/include/>
19678 if { (ac_try="$ac_cpp conftest.$ac_ext"
19679 case "(($ac_try" in
19680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681 *) ac_try_echo=$ac_try;;
19683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19686 grep -v '^
*+' conftest.er1 >conftest.err
19688 cat conftest.err >&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); } >/dev/null && {
19691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19692 test ! -s conftest.err
19694 ac_header_preproc=yes
19696 echo "$as_me: failed program was:" >&5
19697 sed 's
/^
/|
/' conftest.$ac_ext >&5
19699 ac_header_preproc=no
19702 rm -f conftest.err conftest.$ac_ext
19703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19704 echo "${ECHO_T}$ac_header_preproc" >&6; }
19706 # So? What about this header?
19707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19709 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
19710 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result
" >&5
19712 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: proceeding with the compiler
's result" >&2;}
19713 ac_header_preproc=yes
19716 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
19717 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
19718 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
19719 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
19720 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
19721 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
19723 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
19724 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result
" >&5
19725 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: proceeding with the preprocessor
's result" >&2;}
19726 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
19727 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
19731 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
19732 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
19733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 eval "$as_ac_Header=\$ac_header_preproc"
19738 ac_res=`eval echo '${'$as_ac_Header'}'`
19739 { echo "$as_me:$LINENO: result: $ac_res" >&5
19740 echo "${ECHO_T}$ac_res" >&6; }
19743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19752 if test "x" != "x" ; then
19753 if test "${ac_cv_header_+set}" = set; then
19754 { echo "$as_me:$LINENO: checking for " >&5
19755 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19756 if test "${ac_cv_header_+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19760 echo "${ECHO_T}$ac_cv_header_" >&6; }
19762 # Is the header compilable?
19763 { echo "$as_me:$LINENO: checking usability" >&5
19764 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19765 cat >conftest.$ac_ext <<_ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19771 $ac_includes_default
19774 rm -f conftest.$ac_objext
19775 if { (ac_try="$ac_compile"
19776 case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_compile") 2>conftest.er1
19783 grep -v '^
*+' conftest.er1 >conftest.err
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } && {
19788 test -z "$ac_c_werror_flag" ||
19789 test ! -s conftest.err
19790 } && test -s conftest.$ac_objext; then
19791 ac_header_compiler=yes
19793 echo "$as_me: failed program was:" >&5
19794 sed 's
/^
/|
/' conftest.$ac_ext >&5
19796 ac_header_compiler=no
19799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19801 echo "${ECHO_T}$ac_header_compiler" >&6; }
19803 # Is the header present?
19804 { echo "$as_me:$LINENO: checking presence" >&5
19805 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19806 cat >conftest.$ac_ext <<_ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19814 if { (ac_try="$ac_cpp conftest.$ac_ext"
19815 case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19822 grep -v '^
*+' conftest.er1 >conftest.err
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } >/dev/null && {
19827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19828 test ! -s conftest.err
19830 ac_header_preproc=yes
19832 echo "$as_me: failed program was:" >&5
19833 sed 's
/^
/|
/' conftest.$ac_ext >&5
19835 ac_header_preproc=no
19838 rm -f conftest.err conftest.$ac_ext
19839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19840 echo "${ECHO_T}$ac_header_preproc" >&6; }
19842 # So? What about this header?
19843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19845 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19846 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result
" >&5
19848 echo "$as_me: WARNING
: : proceeding with the compiler
's result" >&2;}
19849 ac_header_preproc=yes
19852 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19853 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19854 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19855 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19856 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19857 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19859 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result
" >&5
19861 echo "$as_me: WARNING
: : proceeding with the preprocessor
's result" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19863 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19867 { echo "$as_me:$LINENO: checking for " >&5
19868 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19869 if test "${ac_cv_header_+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 ac_cv_header_=$ac_header_preproc
19874 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19875 echo "${ECHO_T}$ac_cv_header_" >&6; }
19878 if test $ac_cv_header_ = yes; then
19887 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
19888 if test ! -z "${OGG_MANDATORY}" ;
19890 { echo "$as_me:$LINENO: ***" >&5
19891 echo "$as_me: ***" >&6;}
19892 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
19893 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
19894 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
19895 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
19896 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
19897 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
19906 cat >>confdefs.h <<_ACEOF
19911 elif test ! -z "${OGG_MANDATORY}";
19913 { echo "$as_me:$LINENO: ***" >&5
19914 echo "$as_me: ***" >&6;}
19915 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
19916 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
19917 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19918 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19919 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
19920 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
19927 if test "${USE_OSPTK}" != "no"; then
19929 if test "x${OSPTK_DIR}" != "x"; then
19930 if test -d ${OSPTK_DIR}/lib; then
19931 pbxlibdir="-L${OSPTK_DIR}/lib"
19933 pbxlibdir="-L${OSPTK_DIR}"
19936 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
19937 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
19938 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 ac_check_lib_save_LIBS=$LIBS
19942 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
19943 cat >conftest.$ac_ext <<_ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19950 /* Override any GCC internal prototype to avoid an error.
19951 Use char because int might match the return type of a GCC
19952 builtin and then its argument prototype would still apply. */
19956 char OSPPCryptoDecrypt ();
19960 return OSPPCryptoDecrypt ();
19965 rm -f conftest.$ac_objext conftest$ac_exeext
19966 if { (ac_try="$ac_link"
19967 case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972 (eval "$ac_link") 2>conftest.er1
19974 grep -v '^
*+' conftest.er1 >conftest.err
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } && {
19979 test -z "$ac_c_werror_flag" ||
19980 test ! -s conftest.err
19981 } && test -s conftest$ac_exeext &&
19982 $as_test_x conftest$ac_exeext; then
19983 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
19985 echo "$as_me: failed program was:" >&5
19986 sed 's
/^
/|
/' conftest.$ac_ext >&5
19988 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
19991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19992 conftest$ac_exeext conftest.$ac_ext
19993 LIBS=$ac_check_lib_save_LIBS
19995 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
19996 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
19997 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
19998 AST_OSPTK_FOUND=yes
20004 if test "${AST_OSPTK_FOUND}" = "yes"; then
20005 OSPTK_LIB="-losptk -lcrypto -lssl"
20006 OSPTK_HEADER_FOUND="1"
20007 if test "x${OSPTK_DIR}" != "x"; then
20008 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
20009 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
20010 if test "xosp/osp.h" != "x" ; then
20011 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
20012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20013 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
20014 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
20015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 ac_res=`eval echo '${'$as_ac_Header'}'`
20019 { echo "$as_me:$LINENO: result: $ac_res" >&5
20020 echo "${ECHO_T}$ac_res" >&6; }
20022 # Is the header compilable?
20023 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
20024 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
20025 cat >conftest.$ac_ext <<_ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 $ac_includes_default
20032 #include <${OSPTK_DIR}/include/osp/osp.h>
20034 rm -f conftest.$ac_objext
20035 if { (ac_try="$ac_compile"
20036 case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_compile") 2>conftest.er1
20043 grep -v '^
*+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } && {
20048 test -z "$ac_c_werror_flag" ||
20049 test ! -s conftest.err
20050 } && test -s conftest.$ac_objext; then
20051 ac_header_compiler=yes
20053 echo "$as_me: failed program was:" >&5
20054 sed 's
/^
/|
/' conftest.$ac_ext >&5
20056 ac_header_compiler=no
20059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20061 echo "${ECHO_T}$ac_header_compiler" >&6; }
20063 # Is the header present?
20064 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
20065 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20072 #include <${OSPTK_DIR}/include/osp/osp.h>
20074 if { (ac_try="$ac_cpp conftest.$ac_ext"
20075 case "(($ac_try" in
20076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077 *) ac_try_echo=$ac_try;;
20079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20082 grep -v '^
*+' conftest.er1 >conftest.err
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } >/dev/null && {
20087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20088 test ! -s conftest.err
20090 ac_header_preproc=yes
20092 echo "$as_me: failed program was:" >&5
20093 sed 's
/^
/|
/' conftest.$ac_ext >&5
20095 ac_header_preproc=no
20098 rm -f conftest.err conftest.$ac_ext
20099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20100 echo "${ECHO_T}$ac_header_preproc" >&6; }
20102 # So? What about this header?
20103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20105 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20106 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result
" >&5
20108 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: proceeding with the compiler
's result" >&2;}
20109 ac_header_preproc=yes
20112 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
20113 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
20115 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
20116 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
20117 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
20118 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
20119 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result
" >&5
20121 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: proceeding with the preprocessor
's result" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
20123 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
20127 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
20128 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
20129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 eval "$as_ac_Header=\$ac_header_preproc"
20134 ac_res=`eval echo '${'$as_ac_Header'}'`
20135 { echo "$as_me:$LINENO: result: $ac_res" >&5
20136 echo "${ECHO_T}$ac_res" >&6; }
20139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20140 OSPTK_HEADER_FOUND=1
20142 OSPTK_HEADER_FOUND=0
20148 if test "xosp/osp.h" != "x" ; then
20149 if test "${ac_cv_header_osp_osp_h+set}" = set; then
20150 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
20151 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
20152 if test "${ac_cv_header_osp_osp_h+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
20156 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
20158 # Is the header compilable?
20159 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
20160 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
20161 cat >conftest.$ac_ext <<_ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 $ac_includes_default
20168 #include <osp/osp.h>
20170 rm -f conftest.$ac_objext
20171 if { (ac_try="$ac_compile"
20172 case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_compile") 2>conftest.er1
20179 grep -v '^
*+' conftest.er1 >conftest.err
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } && {
20184 test -z "$ac_c_werror_flag" ||
20185 test ! -s conftest.err
20186 } && test -s conftest.$ac_objext; then
20187 ac_header_compiler=yes
20189 echo "$as_me: failed program was:" >&5
20190 sed 's
/^
/|
/' conftest.$ac_ext >&5
20192 ac_header_compiler=no
20195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20197 echo "${ECHO_T}$ac_header_compiler" >&6; }
20199 # Is the header present?
20200 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
20201 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
20202 cat >conftest.$ac_ext <<_ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h. */
20208 #include <osp/osp.h>
20210 if { (ac_try="$ac_cpp conftest.$ac_ext"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20218 grep -v '^
*+' conftest.er1 >conftest.err
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } >/dev/null && {
20223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20224 test ! -s conftest.err
20226 ac_header_preproc=yes
20228 echo "$as_me: failed program was:" >&5
20229 sed 's
/^
/|
/' conftest.$ac_ext >&5
20231 ac_header_preproc=no
20234 rm -f conftest.err conftest.$ac_ext
20235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20236 echo "${ECHO_T}$ac_header_preproc" >&6; }
20238 # So? What about this header?
20239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20241 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20242 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20243 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result
" >&5
20244 echo "$as_me: WARNING
: osp
/osp.h
: proceeding with the compiler
's result" >&2;}
20245 ac_header_preproc=yes
20248 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
20249 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
20250 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
20251 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
20252 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
20253 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
20254 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
20255 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20256 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result
" >&5
20257 echo "$as_me: WARNING
: osp
/osp.h
: proceeding with the preprocessor
's result" >&2;}
20258 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
20259 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
20263 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
20264 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
20265 if test "${ac_cv_header_osp_osp_h+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 ac_cv_header_osp_osp_h=$ac_header_preproc
20270 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
20271 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
20274 if test $ac_cv_header_osp_osp_h = yes; then
20275 OSPTK_HEADER_FOUND=1
20277 OSPTK_HEADER_FOUND=0
20283 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
20284 if test ! -z "${OSPTK_MANDATORY}" ;
20286 { echo "$as_me:$LINENO: ***" >&5
20287 echo "$as_me: ***" >&6;}
20288 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
20289 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
20290 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
20291 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
20292 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
20293 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
20302 cat >>confdefs.h <<_ACEOF
20303 #define HAVE_OSPTK 1
20307 elif test ! -z "${OSPTK_MANDATORY}";
20309 { echo "$as_me:$LINENO: ***" >&5
20310 echo "$as_me: ***" >&6;}
20311 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
20312 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
20313 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20314 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20315 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
20316 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
20323 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
20324 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
20325 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
20326 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20329 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
20330 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
20332 # Is the header compilable?
20333 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
20334 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
20335 cat >conftest.$ac_ext <<_ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341 $ac_includes_default
20342 #include <linux/soundcard.h>
20344 rm -f conftest.$ac_objext
20345 if { (ac_try="$ac_compile"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_compile") 2>conftest.er1
20353 grep -v '^
*+' conftest.er1 >conftest.err
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } && {
20358 test -z "$ac_c_werror_flag" ||
20359 test ! -s conftest.err
20360 } && test -s conftest.$ac_objext; then
20361 ac_header_compiler=yes
20363 echo "$as_me: failed program was:" >&5
20364 sed 's
/^
/|
/' conftest.$ac_ext >&5
20366 ac_header_compiler=no
20369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20371 echo "${ECHO_T}$ac_header_compiler" >&6; }
20373 # Is the header present?
20374 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
20375 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
20376 cat >conftest.$ac_ext <<_ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20382 #include <linux/soundcard.h>
20384 if { (ac_try="$ac_cpp conftest.$ac_ext"
20385 case "(($ac_try" in
20386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387 *) ac_try_echo=$ac_try;;
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20392 grep -v '^
*+' conftest.er1 >conftest.err
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } >/dev/null && {
20397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20398 test ! -s conftest.err
20400 ac_header_preproc=yes
20402 echo "$as_me: failed program was:" >&5
20403 sed 's
/^
/|
/' conftest.$ac_ext >&5
20405 ac_header_preproc=no
20408 rm -f conftest.err conftest.$ac_ext
20409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20410 echo "${ECHO_T}$ac_header_preproc" >&6; }
20412 # So? What about this header?
20413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20415 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20416 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result
" >&5
20418 echo "$as_me: WARNING
: linux
/soundcard.h
: proceeding with the compiler
's result" >&2;}
20419 ac_header_preproc=yes
20422 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
20423 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
20424 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
20425 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
20426 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
20427 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
20428 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20429 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result
" >&5
20431 echo "$as_me: WARNING
: linux
/soundcard.h
: proceeding with the preprocessor
's result" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
20433 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
20437 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
20438 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
20439 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 ac_cv_header_linux_soundcard_h=$ac_header_preproc
20444 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
20445 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
20448 if test $ac_cv_header_linux_soundcard_h = yes; then
20452 cat >>confdefs.h <<_ACEOF
20460 if test "$PBX_OSS" = "0"; then
20461 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20462 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
20463 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
20464 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
20468 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
20470 # Is the header compilable?
20471 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
20472 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
20473 cat >conftest.$ac_ext <<_ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 $ac_includes_default
20480 #include <sys/soundcard.h>
20482 rm -f conftest.$ac_objext
20483 if { (ac_try="$ac_compile"
20484 case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_compile") 2>conftest.er1
20491 grep -v '^
*+' conftest.er1 >conftest.err
20493 cat conftest.err >&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } && {
20496 test -z "$ac_c_werror_flag" ||
20497 test ! -s conftest.err
20498 } && test -s conftest.$ac_objext; then
20499 ac_header_compiler=yes
20501 echo "$as_me: failed program was:" >&5
20502 sed 's
/^
/|
/' conftest.$ac_ext >&5
20504 ac_header_compiler=no
20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20509 echo "${ECHO_T}$ac_header_compiler" >&6; }
20511 # Is the header present?
20512 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
20513 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
20514 cat >conftest.$ac_ext <<_ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20520 #include <sys/soundcard.h>
20522 if { (ac_try="$ac_cpp conftest.$ac_ext"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20530 grep -v '^
*+' conftest.er1 >conftest.err
20532 cat conftest.err >&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } >/dev/null && {
20535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20536 test ! -s conftest.err
20538 ac_header_preproc=yes
20540 echo "$as_me: failed program was:" >&5
20541 sed 's
/^
/|
/' conftest.$ac_ext >&5
20543 ac_header_preproc=no
20546 rm -f conftest.err conftest.$ac_ext
20547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20548 echo "${ECHO_T}$ac_header_preproc" >&6; }
20550 # So? What about this header?
20551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20553 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20554 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result
" >&5
20556 echo "$as_me: WARNING
: sys
/soundcard.h
: proceeding with the compiler
's result" >&2;}
20557 ac_header_preproc=yes
20560 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
20561 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
20563 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
20565 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
20566 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20567 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result
" >&5
20569 echo "$as_me: WARNING
: sys
/soundcard.h
: proceeding with the preprocessor
's result" >&2;}
20570 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
20571 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
20575 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
20576 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
20577 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 ac_cv_header_sys_soundcard_h=$ac_header_preproc
20582 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
20583 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
20586 if test $ac_cv_header_sys_soundcard_h = yes; then
20590 cat >>confdefs.h <<_ACEOF
20599 if test "$PBX_OSS" = "0"; then
20601 if test "${USE_OSS}" != "no"; then
20603 if test "x${OSS_DIR}" != "x"; then
20604 if test -d ${OSS_DIR}/lib; then
20605 pbxlibdir="-L${OSS_DIR}/lib"
20607 pbxlibdir="-L${OSS_DIR}"
20610 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
20611 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
20612 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20615 ac_check_lib_save_LIBS=$LIBS
20616 LIBS="-lossaudio ${pbxlibdir} $LIBS"
20617 cat >conftest.$ac_ext <<_ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20624 /* Override any GCC internal prototype to avoid an error.
20625 Use char because int might match the return type of a GCC
20626 builtin and then its argument prototype would still apply. */
20630 char oss_ioctl_mixer ();
20634 return oss_ioctl_mixer ();
20639 rm -f conftest.$ac_objext conftest$ac_exeext
20640 if { (ac_try="$ac_link"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_link") 2>conftest.er1
20648 grep -v '^
*+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } && {
20653 test -z "$ac_c_werror_flag" ||
20654 test ! -s conftest.err
20655 } && test -s conftest$ac_exeext &&
20656 $as_test_x conftest$ac_exeext; then
20657 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
20659 echo "$as_me: failed program was:" >&5
20660 sed 's
/^
/|
/' conftest.$ac_ext >&5
20662 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
20665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20666 conftest$ac_exeext conftest.$ac_ext
20667 LIBS=$ac_check_lib_save_LIBS
20669 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
20670 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
20671 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
20678 if test "${AST_OSS_FOUND}" = "yes"; then
20679 OSS_LIB="-lossaudio "
20680 OSS_HEADER_FOUND="1"
20681 if test "x${OSS_DIR}" != "x"; then
20682 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
20683 OSS_INCLUDE="-I${OSS_DIR}/include"
20684 if test "xsoundcard.h" != "x" ; then
20685 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
20686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20687 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
20688 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
20689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 ac_res=`eval echo '${'$as_ac_Header'}'`
20693 { echo "$as_me:$LINENO: result: $ac_res" >&5
20694 echo "${ECHO_T}$ac_res" >&6; }
20696 # Is the header compilable?
20697 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
20698 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
20699 cat >conftest.$ac_ext <<_ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 $ac_includes_default
20706 #include <${OSS_DIR}/include/soundcard.h>
20708 rm -f conftest.$ac_objext
20709 if { (ac_try="$ac_compile"
20710 case "(($ac_try" in
20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712 *) ac_try_echo=$ac_try;;
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715 (eval "$ac_compile") 2>conftest.er1
20717 grep -v '^
*+' conftest.er1 >conftest.err
20719 cat conftest.err >&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } && {
20722 test -z "$ac_c_werror_flag" ||
20723 test ! -s conftest.err
20724 } && test -s conftest.$ac_objext; then
20725 ac_header_compiler=yes
20727 echo "$as_me: failed program was:" >&5
20728 sed 's
/^
/|
/' conftest.$ac_ext >&5
20730 ac_header_compiler=no
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20735 echo "${ECHO_T}$ac_header_compiler" >&6; }
20737 # Is the header present?
20738 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
20739 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746 #include <${OSS_DIR}/include/soundcard.h>
20748 if { (ac_try="$ac_cpp conftest.$ac_ext"
20749 case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20756 grep -v '^
*+' conftest.er1 >conftest.err
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } >/dev/null && {
20761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20762 test ! -s conftest.err
20764 ac_header_preproc=yes
20766 echo "$as_me: failed program was:" >&5
20767 sed 's
/^
/|
/' conftest.$ac_ext >&5
20769 ac_header_preproc=no
20772 rm -f conftest.err conftest.$ac_ext
20773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20774 echo "${ECHO_T}$ac_header_preproc" >&6; }
20776 # So? What about this header?
20777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20779 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20780 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20781 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result
" >&5
20782 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: proceeding with the compiler
's result" >&2;}
20783 ac_header_preproc=yes
20786 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
20787 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
20788 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
20789 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
20791 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
20792 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20793 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result
" >&5
20795 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: proceeding with the preprocessor
's result" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
20797 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
20801 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
20802 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
20803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
20806 eval "$as_ac_Header=\$ac_header_preproc"
20808 ac_res=`eval echo '${'$as_ac_Header'}'`
20809 { echo "$as_me:$LINENO: result: $ac_res" >&5
20810 echo "${ECHO_T}$ac_res" >&6; }
20813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20822 if test "xsoundcard.h" != "x" ; then
20823 if test "${ac_cv_header_soundcard_h+set}" = set; then
20824 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
20825 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
20826 if test "${ac_cv_header_soundcard_h+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20829 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
20830 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
20832 # Is the header compilable?
20833 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
20834 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
20835 cat >conftest.$ac_ext <<_ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20841 $ac_includes_default
20842 #include <soundcard.h>
20844 rm -f conftest.$ac_objext
20845 if { (ac_try="$ac_compile"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_compile") 2>conftest.er1
20853 grep -v '^
*+' conftest.er1 >conftest.err
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } && {
20858 test -z "$ac_c_werror_flag" ||
20859 test ! -s conftest.err
20860 } && test -s conftest.$ac_objext; then
20861 ac_header_compiler=yes
20863 echo "$as_me: failed program was:" >&5
20864 sed 's
/^
/|
/' conftest.$ac_ext >&5
20866 ac_header_compiler=no
20869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20871 echo "${ECHO_T}$ac_header_compiler" >&6; }
20873 # Is the header present?
20874 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
20875 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
20876 cat >conftest.$ac_ext <<_ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 #include <soundcard.h>
20884 if { (ac_try="$ac_cpp conftest.$ac_ext"
20885 case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20892 grep -v '^
*+' conftest.er1 >conftest.err
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } >/dev/null && {
20897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20898 test ! -s conftest.err
20900 ac_header_preproc=yes
20902 echo "$as_me: failed program was:" >&5
20903 sed 's
/^
/|
/' conftest.$ac_ext >&5
20905 ac_header_preproc=no
20908 rm -f conftest.err conftest.$ac_ext
20909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20910 echo "${ECHO_T}$ac_header_preproc" >&6; }
20912 # So? What about this header?
20913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20915 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20916 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result
" >&5
20918 echo "$as_me: WARNING
: soundcard.h
: proceeding with the compiler
's result" >&2;}
20919 ac_header_preproc=yes
20922 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
20923 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
20924 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
20925 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
20927 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20929 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result
" >&5
20931 echo "$as_me: WARNING
: soundcard.h
: proceeding with the preprocessor
's result" >&2;}
20932 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
20933 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
20937 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
20938 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
20939 if test "${ac_cv_header_soundcard_h+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 ac_cv_header_soundcard_h=$ac_header_preproc
20944 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
20945 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
20948 if test $ac_cv_header_soundcard_h = yes; then
20957 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
20958 if test ! -z "${OSS_MANDATORY}" ;
20960 { echo "$as_me:$LINENO: ***" >&5
20961 echo "$as_me: ***" >&6;}
20962 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
20963 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
20964 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
20965 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
20966 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
20967 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
20976 cat >>confdefs.h <<_ACEOF
20981 elif test ! -z "${OSS_MANDATORY}";
20983 { echo "$as_me:$LINENO: ***" >&5
20984 echo "$as_me: ***" >&6;}
20985 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
20986 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
20987 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20988 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20989 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
20990 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
20998 if test "${USE_PGSQL}" != "no"; then
20999 if test "x${PGSQL_DIR}" != "x"; then
21000 if test -n "$ac_tool_prefix"; then
21001 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
21002 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
21003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21005 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21010 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
21013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21014 for as_dir in ${PGSQL_DIR}/bin
21017 test -z "$as_dir" && as_dir=.
21018 for ac_exec_ext in '' $ac_executable_extensions; do
21019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21020 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21031 PG_CONFIG=$ac_cv_path_PG_CONFIG
21032 if test -n "$PG_CONFIG"; then
21033 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
21034 echo "${ECHO_T}$PG_CONFIG" >&6; }
21036 { echo "$as_me:$LINENO: result: no" >&5
21037 echo "${ECHO_T}no" >&6; }
21042 if test -z "$ac_cv_path_PG_CONFIG"; then
21043 ac_pt_PG_CONFIG=$PG_CONFIG
21044 # Extract the first word of "pg_config", so it can be a program name with args.
21045 set dummy pg_config; ac_word=$2
21046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21048 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 case $ac_pt_PG_CONFIG in
21053 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
21056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21057 for as_dir in ${PGSQL_DIR}/bin
21060 test -z "$as_dir" && as_dir=.
21061 for ac_exec_ext in '' $ac_executable_extensions; do
21062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21063 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21074 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
21075 if test -n "$ac_pt_PG_CONFIG"; then
21076 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
21077 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
21079 { echo "$as_me:$LINENO: result: no" >&5
21080 echo "${ECHO_T}no" >&6; }
21083 if test "x$ac_pt_PG_CONFIG" = x; then
21086 case $cross_compiling:$ac_tool_warned in
21088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21089 whose name does not start with the host triplet. If you think this
21090 configuration is useful to you, please write to autoconf@gnu.org." >&5
21091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21092 whose name does not start with the host triplet. If you think this
21093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21094 ac_tool_warned=yes ;;
21096 PG_CONFIG=$ac_pt_PG_CONFIG
21099 PG_CONFIG="$ac_cv_path_PG_CONFIG"
21102 if test x"${PG_CONFIG}" = xNo; then
21103 { echo "$as_me:$LINENO: ***" >&5
21104 echo "$as_me: ***" >&6;}
21105 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
21106 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
21107 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
21108 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
21109 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21110 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21111 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
21112 echo "$as_me: *** including --without-postgres" >&6;}
21116 if test -n "$ac_tool_prefix"; then
21117 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
21118 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
21119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21121 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21126 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
21129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21130 for as_dir in $PATH
21133 test -z "$as_dir" && as_dir=.
21134 for ac_exec_ext in '' $ac_executable_extensions; do
21135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21136 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21147 PG_CONFIG=$ac_cv_path_PG_CONFIG
21148 if test -n "$PG_CONFIG"; then
21149 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
21150 echo "${ECHO_T}$PG_CONFIG" >&6; }
21152 { echo "$as_me:$LINENO: result: no" >&5
21153 echo "${ECHO_T}no" >&6; }
21158 if test -z "$ac_cv_path_PG_CONFIG"; then
21159 ac_pt_PG_CONFIG=$PG_CONFIG
21160 # Extract the first word of "pg_config", so it can be a program name with args.
21161 set dummy pg_config; ac_word=$2
21162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21164 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 case $ac_pt_PG_CONFIG in
21169 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
21172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21173 for as_dir in $PATH
21176 test -z "$as_dir" && as_dir=.
21177 for ac_exec_ext in '' $ac_executable_extensions; do
21178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21179 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21190 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
21191 if test -n "$ac_pt_PG_CONFIG"; then
21192 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
21193 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
21195 { echo "$as_me:$LINENO: result: no" >&5
21196 echo "${ECHO_T}no" >&6; }
21199 if test "x$ac_pt_PG_CONFIG" = x; then
21202 case $cross_compiling:$ac_tool_warned in
21204 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21205 whose name does not start with the host triplet. If you think this
21206 configuration is useful to you, please write to autoconf@gnu.org." >&5
21207 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21208 whose name does not start with the host triplet. If you think this
21209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21210 ac_tool_warned=yes ;;
21212 PG_CONFIG=$ac_pt_PG_CONFIG
21215 PG_CONFIG="$ac_cv_path_PG_CONFIG"
21220 if test "${PG_CONFIG}" != No; then
21221 PGSQL_libdir=`pg_config --libdir`
21222 PGSQL_includedir=`pg_config --includedir`
21224 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
21225 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
21226 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 ac_check_lib_save_LIBS=$LIBS
21230 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
21231 cat >conftest.$ac_ext <<_ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21238 /* Override any GCC internal prototype to avoid an error.
21239 Use char because int might match the return type of a GCC
21240 builtin and then its argument prototype would still apply. */
21253 rm -f conftest.$ac_objext conftest$ac_exeext
21254 if { (ac_try="$ac_link"
21255 case "(($ac_try" in
21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257 *) ac_try_echo=$ac_try;;
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260 (eval "$ac_link") 2>conftest.er1
21262 grep -v '^
*+' conftest.er1 >conftest.err
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } && {
21267 test -z "$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 } && test -s conftest$ac_exeext &&
21270 $as_test_x conftest$ac_exeext; then
21271 ac_cv_lib_pq_PQexec=yes
21273 echo "$as_me: failed program was:" >&5
21274 sed 's
/^
/|
/' conftest.$ac_ext >&5
21276 ac_cv_lib_pq_PQexec=no
21279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21280 conftest$ac_exeext conftest.$ac_ext
21281 LIBS=$ac_check_lib_save_LIBS
21283 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
21284 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
21285 if test $ac_cv_lib_pq_PQexec = yes; then
21287 cat >>confdefs.h <<_ACEOF
21288 #define HAVE_PGSQL 1
21294 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
21295 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
21296 PGSQL_INCLUDE="-I${PGSQL_includedir}"
21298 elif test ! -z "${PGSQL_MANDATORY}";
21300 { echo "$as_me:$LINENO: ***" >&5
21301 echo "$as_me: ***" >&6;}
21302 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
21303 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
21304 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21305 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21306 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
21307 echo "$as_me: *** including --without-postgres" >&6;}
21310 elif test ! -z "${PGSQL_MANDATORY}";
21312 { echo "$as_me:$LINENO: ***" >&5
21313 echo "$as_me: ***" >&6;}
21314 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
21315 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
21316 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21317 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21318 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
21319 echo "$as_me: *** including --without-postgres" >&6;}
21324 if test "${USE_POPT}" != "no"; then
21326 if test "x${POPT_DIR}" != "x"; then
21327 if test -d ${POPT_DIR}/lib; then
21328 pbxlibdir="-L${POPT_DIR}/lib"
21330 pbxlibdir="-L${POPT_DIR}"
21333 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
21334 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
21335 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21338 ac_check_lib_save_LIBS=$LIBS
21339 LIBS="-lpopt ${pbxlibdir} $LIBS"
21340 cat >conftest.$ac_ext <<_ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21347 /* Override any GCC internal prototype to avoid an error.
21348 Use char because int might match the return type of a GCC
21349 builtin and then its argument prototype would still apply. */
21353 char poptStrerror ();
21357 return poptStrerror ();
21362 rm -f conftest.$ac_objext conftest$ac_exeext
21363 if { (ac_try="$ac_link"
21364 case "(($ac_try" in
21365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366 *) ac_try_echo=$ac_try;;
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369 (eval "$ac_link") 2>conftest.er1
21371 grep -v '^
*+' conftest.er1 >conftest.err
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } && {
21376 test -z "$ac_c_werror_flag" ||
21377 test ! -s conftest.err
21378 } && test -s conftest$ac_exeext &&
21379 $as_test_x conftest$ac_exeext; then
21380 ac_cv_lib_popt_poptStrerror=yes
21382 echo "$as_me: failed program was:" >&5
21383 sed 's
/^
/|
/' conftest.$ac_ext >&5
21385 ac_cv_lib_popt_poptStrerror=no
21388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21389 conftest$ac_exeext conftest.$ac_ext
21390 LIBS=$ac_check_lib_save_LIBS
21392 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
21393 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
21394 if test $ac_cv_lib_popt_poptStrerror = yes; then
21401 if test "${AST_POPT_FOUND}" = "yes"; then
21403 POPT_HEADER_FOUND="1"
21404 if test "x${POPT_DIR}" != "x"; then
21405 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
21406 POPT_INCLUDE="-I${POPT_DIR}/include"
21407 if test "xpopt.h" != "x" ; then
21408 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
21409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21410 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
21411 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
21412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21413 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 ac_res=`eval echo '${'$as_ac_Header'}'`
21416 { echo "$as_me:$LINENO: result: $ac_res" >&5
21417 echo "${ECHO_T}$ac_res" >&6; }
21419 # Is the header compilable?
21420 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
21421 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
21422 cat >conftest.$ac_ext <<_ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21428 $ac_includes_default
21429 #include <${POPT_DIR}/include/popt.h>
21431 rm -f conftest.$ac_objext
21432 if { (ac_try="$ac_compile"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438 (eval "$ac_compile") 2>conftest.er1
21440 grep -v '^
*+' conftest.er1 >conftest.err
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } && {
21445 test -z "$ac_c_werror_flag" ||
21446 test ! -s conftest.err
21447 } && test -s conftest.$ac_objext; then
21448 ac_header_compiler=yes
21450 echo "$as_me: failed program was:" >&5
21451 sed 's
/^
/|
/' conftest.$ac_ext >&5
21453 ac_header_compiler=no
21456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21458 echo "${ECHO_T}$ac_header_compiler" >&6; }
21460 # Is the header present?
21461 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
21462 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
21463 cat >conftest.$ac_ext <<_ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 #include <${POPT_DIR}/include/popt.h>
21471 if { (ac_try="$ac_cpp conftest.$ac_ext"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21479 grep -v '^
*+' conftest.er1 >conftest.err
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } >/dev/null && {
21484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21485 test ! -s conftest.err
21487 ac_header_preproc=yes
21489 echo "$as_me: failed program was:" >&5
21490 sed 's
/^
/|
/' conftest.$ac_ext >&5
21492 ac_header_preproc=no
21495 rm -f conftest.err conftest.$ac_ext
21496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21497 echo "${ECHO_T}$ac_header_preproc" >&6; }
21499 # So? What about this header?
21500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21502 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21503 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result
" >&5
21505 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: proceeding with the compiler
's result" >&2;}
21506 ac_header_preproc=yes
21509 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
21510 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
21512 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
21514 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
21516 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result
" >&5
21518 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: proceeding with the preprocessor
's result" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
21520 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
21524 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
21525 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
21526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 eval "$as_ac_Header=\$ac_header_preproc"
21531 ac_res=`eval echo '${'$as_ac_Header'}'`
21532 { echo "$as_me:$LINENO: result: $ac_res" >&5
21533 echo "${ECHO_T}$ac_res" >&6; }
21536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21537 POPT_HEADER_FOUND=1
21539 POPT_HEADER_FOUND=0
21545 if test "xpopt.h" != "x" ; then
21546 if test "${ac_cv_header_popt_h+set}" = set; then
21547 { echo "$as_me:$LINENO: checking for popt.h" >&5
21548 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21549 if test "${ac_cv_header_popt_h+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21553 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21555 # Is the header compilable?
21556 { echo "$as_me:$LINENO: checking popt.h usability" >&5
21557 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
21558 cat >conftest.$ac_ext <<_ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 $ac_includes_default
21567 rm -f conftest.$ac_objext
21568 if { (ac_try="$ac_compile"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_compile") 2>conftest.er1
21576 grep -v '^
*+' conftest.er1 >conftest.err
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest.$ac_objext; then
21584 ac_header_compiler=yes
21586 echo "$as_me: failed program was:" >&5
21587 sed 's
/^
/|
/' conftest.$ac_ext >&5
21589 ac_header_compiler=no
21592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21594 echo "${ECHO_T}$ac_header_compiler" >&6; }
21596 # Is the header present?
21597 { echo "$as_me:$LINENO: checking popt.h presence" >&5
21598 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
21599 cat >conftest.$ac_ext <<_ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h. */
21607 if { (ac_try="$ac_cpp conftest.$ac_ext"
21608 case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21615 grep -v '^
*+' conftest.er1 >conftest.err
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } >/dev/null && {
21620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21621 test ! -s conftest.err
21623 ac_header_preproc=yes
21625 echo "$as_me: failed program was:" >&5
21626 sed 's
/^
/|
/' conftest.$ac_ext >&5
21628 ac_header_preproc=no
21631 rm -f conftest.err conftest.$ac_ext
21632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21633 echo "${ECHO_T}$ac_header_preproc" >&6; }
21635 # So? What about this header?
21636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21638 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21639 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result
" >&5
21641 echo "$as_me: WARNING
: popt.h
: proceeding with the compiler
's result" >&2;}
21642 ac_header_preproc=yes
21645 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
21646 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
21647 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
21648 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
21649 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
21650 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
21651 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
21652 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21653 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result
" >&5
21654 echo "$as_me: WARNING
: popt.h
: proceeding with the preprocessor
's result" >&2;}
21655 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
21656 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
21660 { echo "$as_me:$LINENO: checking for popt.h" >&5
21661 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21662 if test "${ac_cv_header_popt_h+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21665 ac_cv_header_popt_h=$ac_header_preproc
21667 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21668 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21671 if test $ac_cv_header_popt_h = yes; then
21672 POPT_HEADER_FOUND=1
21674 POPT_HEADER_FOUND=0
21680 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
21681 if test ! -z "${POPT_MANDATORY}" ;
21683 { echo "$as_me:$LINENO: ***" >&5
21684 echo "$as_me: ***" >&6;}
21685 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
21686 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
21687 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
21688 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
21689 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
21690 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
21699 cat >>confdefs.h <<_ACEOF
21700 #define HAVE_POPT 1
21704 elif test ! -z "${POPT_MANDATORY}";
21706 { echo "$as_me:$LINENO: ***" >&5
21707 echo "$as_me: ***" >&6;}
21708 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
21709 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
21710 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21711 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21712 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
21713 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
21720 if test "${USE_PRI}" != "no"; then
21722 if test "x${PRI_DIR}" != "x"; then
21723 if test -d ${PRI_DIR}/lib; then
21724 pbxlibdir="-L${PRI_DIR}/lib"
21726 pbxlibdir="-L${PRI_DIR}"
21729 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
21730 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
21731 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 ac_check_lib_save_LIBS=$LIBS
21735 LIBS="-lpri ${pbxlibdir} $LIBS"
21736 cat >conftest.$ac_ext <<_ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21743 /* Override any GCC internal prototype to avoid an error.
21744 Use char because int might match the return type of a GCC
21745 builtin and then its argument prototype would still apply. */
21753 return pri_call ();
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (ac_try="$ac_link"
21760 case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_link") 2>conftest.er1
21767 grep -v '^
*+' conftest.er1 >conftest.err
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } && {
21772 test -z "$ac_c_werror_flag" ||
21773 test ! -s conftest.err
21774 } && test -s conftest$ac_exeext &&
21775 $as_test_x conftest$ac_exeext; then
21776 ac_cv_lib_pri_pri_call=yes
21778 echo "$as_me: failed program was:" >&5
21779 sed 's
/^
/|
/' conftest.$ac_ext >&5
21781 ac_cv_lib_pri_pri_call=no
21784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21785 conftest$ac_exeext conftest.$ac_ext
21786 LIBS=$ac_check_lib_save_LIBS
21788 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
21789 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
21790 if test $ac_cv_lib_pri_pri_call = yes; then
21797 if test "${AST_PRI_FOUND}" = "yes"; then
21799 PRI_HEADER_FOUND="1"
21800 if test "x${PRI_DIR}" != "x"; then
21801 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
21802 PRI_INCLUDE="-I${PRI_DIR}/include"
21803 if test "xlibpri.h" != "x" ; then
21804 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
21805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21806 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
21807 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
21808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 ac_res=`eval echo '${'$as_ac_Header'}'`
21812 { echo "$as_me:$LINENO: result: $ac_res" >&5
21813 echo "${ECHO_T}$ac_res" >&6; }
21815 # Is the header compilable?
21816 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
21817 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 $ac_includes_default
21825 #include <${PRI_DIR}/include/libpri.h>
21827 rm -f conftest.$ac_objext
21828 if { (ac_try="$ac_compile"
21829 case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_compile") 2>conftest.er1
21836 grep -v '^
*+' conftest.er1 >conftest.err
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && {
21841 test -z "$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21843 } && test -s conftest.$ac_objext; then
21844 ac_header_compiler=yes
21846 echo "$as_me: failed program was:" >&5
21847 sed 's
/^
/|
/' conftest.$ac_ext >&5
21849 ac_header_compiler=no
21852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6; }
21856 # Is the header present?
21857 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
21858 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
21859 cat >conftest.$ac_ext <<_ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <${PRI_DIR}/include/libpri.h>
21867 if { (ac_try="$ac_cpp conftest.$ac_ext"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21875 grep -v '^
*+' conftest.er1 >conftest.err
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } >/dev/null && {
21880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21881 test ! -s conftest.err
21883 ac_header_preproc=yes
21885 echo "$as_me: failed program was:" >&5
21886 sed 's
/^
/|
/' conftest.$ac_ext >&5
21888 ac_header_preproc=no
21891 rm -f conftest.err conftest.$ac_ext
21892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21893 echo "${ECHO_T}$ac_header_preproc" >&6; }
21895 # So? What about this header?
21896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21898 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
21899 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result
" >&5
21901 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: proceeding with the compiler
's result" >&2;}
21902 ac_header_preproc=yes
21905 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
21906 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
21908 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
21910 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
21912 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result
" >&5
21914 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: proceeding with the preprocessor
's result" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
21916 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
21920 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
21921 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
21922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 eval "$as_ac_Header=\$ac_header_preproc"
21927 ac_res=`eval echo '${'$as_ac_Header'}'`
21928 { echo "$as_me:$LINENO: result: $ac_res" >&5
21929 echo "${ECHO_T}$ac_res" >&6; }
21932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21941 if test "xlibpri.h" != "x" ; then
21942 if test "${ac_cv_header_libpri_h+set}" = set; then
21943 { echo "$as_me:$LINENO: checking for libpri.h" >&5
21944 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
21945 if test "${ac_cv_header_libpri_h+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
21949 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
21951 # Is the header compilable?
21952 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
21953 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
21954 cat >conftest.$ac_ext <<_ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21960 $ac_includes_default
21961 #include <libpri.h>
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_compile") 2>conftest.er1
21972 grep -v '^
*+' conftest.er1 >conftest.err
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest.$ac_objext; then
21980 ac_header_compiler=yes
21982 echo "$as_me: failed program was:" >&5
21983 sed 's
/^
/|
/' conftest.$ac_ext >&5
21985 ac_header_compiler=no
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21990 echo "${ECHO_T}$ac_header_compiler" >&6; }
21992 # Is the header present?
21993 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
21994 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 #include <libpri.h>
22003 if { (ac_try="$ac_cpp conftest.$ac_ext"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22011 grep -v '^
*+' conftest.er1 >conftest.err
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } >/dev/null && {
22016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22019 ac_header_preproc=yes
22021 echo "$as_me: failed program was:" >&5
22022 sed 's
/^
/|
/' conftest.$ac_ext >&5
22024 ac_header_preproc=no
22027 rm -f conftest.err conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22029 echo "${ECHO_T}$ac_header_preproc" >&6; }
22031 # So? What about this header?
22032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22034 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
22035 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22036 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result
" >&5
22037 echo "$as_me: WARNING
: libpri.h
: proceeding with the compiler
's result" >&2;}
22038 ac_header_preproc=yes
22041 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
22042 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
22043 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
22044 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
22046 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
22048 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result
" >&5
22050 echo "$as_me: WARNING
: libpri.h
: proceeding with the preprocessor
's result" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
22052 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
22056 { echo "$as_me:$LINENO: checking for libpri.h" >&5
22057 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
22058 if test "${ac_cv_header_libpri_h+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 ac_cv_header_libpri_h=$ac_header_preproc
22063 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
22064 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
22067 if test $ac_cv_header_libpri_h = yes; then
22076 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
22077 if test ! -z "${PRI_MANDATORY}" ;
22079 { echo "$as_me:$LINENO: ***" >&5
22080 echo "$as_me: ***" >&6;}
22081 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
22082 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
22083 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
22084 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
22085 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
22086 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
22095 cat >>confdefs.h <<_ACEOF
22100 elif test ! -z "${PRI_MANDATORY}";
22102 { echo "$as_me:$LINENO: ***" >&5
22103 echo "$as_me: ***" >&6;}
22104 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
22105 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
22106 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22107 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22108 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
22109 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
22115 if test "${USE_PWLIB}" != "no"; then
22116 if test ! -z "${PWLIB_DIR}"; then
22117 PWLIBDIR="${PWLIB_DIR}"
22122 if test "${PWLIBDIR:-unset}" != "unset" ; then
22123 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
22124 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
22125 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
22126 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22129 test "$cross_compiling" = yes &&
22130 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22131 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22132 { (exit 1); exit 1; }; }
22133 if test -r "${PWLIBDIR}/version.h"; then
22134 eval "$as_ac_File=yes"
22136 eval "$as_ac_File=no"
22139 ac_res=`eval echo '${'$as_ac_File'}'`
22140 { echo "$as_me:$LINENO: result: $ac_res" >&5
22141 echo "${ECHO_T}$ac_res" >&6; }
22142 if test `eval echo '${'$as_ac_File'}'` = yes; then
22147 if test "${HAS_PWLIB:-unset}" = "unset" ; then
22148 if test "${OPENH323DIR:-unset}" != "unset"; then
22149 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
22150 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
22151 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
22152 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 test "$cross_compiling" = yes &&
22156 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22157 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22158 { (exit 1); exit 1; }; }
22159 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
22160 eval "$as_ac_File=yes"
22162 eval "$as_ac_File=no"
22165 ac_res=`eval echo '${'$as_ac_File'}'`
22166 { echo "$as_me:$LINENO: result: $ac_res" >&5
22167 echo "${ECHO_T}$ac_res" >&6; }
22168 if test `eval echo '${'$as_ac_File'}'` = yes; then
22173 if test "${HAS_PWLIB:-unset}" != "unset" ; then
22174 PWLIBDIR="${OPENH323DIR}/../pwlib"
22176 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
22177 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
22178 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
22179 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22180 echo $ECHO_N "(cached) $ECHO_C" >&6
22182 test "$cross_compiling" = yes &&
22183 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22184 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22185 { (exit 1); exit 1; }; }
22186 if test -r "${HOME}/pwlib/include/ptlib.h"; then
22187 eval "$as_ac_File=yes"
22189 eval "$as_ac_File=no"
22192 ac_res=`eval echo '${'$as_ac_File'}'`
22193 { echo "$as_me:$LINENO: result: $ac_res" >&5
22194 echo "${ECHO_T}$ac_res" >&6; }
22195 if test `eval echo '${'$as_ac_File'}'` = yes; then
22199 if test "${HAS_PWLIB:-unset}" != "unset" ; then
22200 PWLIBDIR="${HOME}/pwlib"
22202 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
22203 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
22204 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22207 test "$cross_compiling" = yes &&
22208 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22209 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22210 { (exit 1); exit 1; }; }
22211 if test -r "/usr/local/include/ptlib.h"; then
22212 ac_cv_file__usr_local_include_ptlib_h=yes
22214 ac_cv_file__usr_local_include_ptlib_h=no
22217 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
22218 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
22219 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
22223 if test "${HAS_PWLIB:-unset}" != "unset" ; then
22224 # Extract the first word of "ptlib-config", so it can be a program name with args.
22225 set dummy ptlib-config; ac_word=$2
22226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22228 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
22229 echo $ECHO_N "(cached) $ECHO_C" >&6
22231 case $PTLIB_CONFIG in
22233 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
22236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22237 for as_dir in /usr/local/bin
22240 test -z "$as_dir" && as_dir=.
22241 for ac_exec_ext in '' $ac_executable_extensions; do
22242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22243 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22254 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
22255 if test -n "$PTLIB_CONFIG"; then
22256 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
22257 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
22259 { echo "$as_me:$LINENO: result: no" >&5
22260 echo "${ECHO_T}no" >&6; }
22264 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
22265 # Extract the first word of "ptlib-config", so it can be a program name with args.
22266 set dummy ptlib-config; ac_word=$2
22267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22269 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
22270 echo $ECHO_N "(cached) $ECHO_C" >&6
22272 case $PTLIB_CONFIG in
22274 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
22277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22278 for as_dir in /usr/local/share/pwlib/make
22281 test -z "$as_dir" && as_dir=.
22282 for ac_exec_ext in '' $ac_executable_extensions; do
22283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22284 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22295 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
22296 if test -n "$PTLIB_CONFIG"; then
22297 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
22298 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
22300 { echo "$as_me:$LINENO: result: no" >&5
22301 echo "${ECHO_T}no" >&6; }
22306 PWLIB_INCDIR="/usr/local/include"
22307 PWLIB_LIBDIR="/usr/local/lib"
22309 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
22310 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
22311 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 test "$cross_compiling" = yes &&
22315 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22316 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22317 { (exit 1); exit 1; }; }
22318 if test -r "/usr/include/ptlib.h"; then
22319 ac_cv_file__usr_include_ptlib_h=yes
22321 ac_cv_file__usr_include_ptlib_h=no
22324 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
22325 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
22326 if test $ac_cv_file__usr_include_ptlib_h = yes; then
22330 if test "${HAS_PWLIB:-unset}" != "unset" ; then
22331 # Extract the first word of "ptlib-config", so it can be a program name with args.
22332 set dummy ptlib-config; ac_word=$2
22333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22335 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22338 case $PTLIB_CONFIG in
22340 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
22343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22344 for as_dir in /usr/share/pwlib/make
22347 test -z "$as_dir" && as_dir=.
22348 for ac_exec_ext in '' $ac_executable_extensions; do
22349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22350 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22361 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
22362 if test -n "$PTLIB_CONFIG"; then
22363 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
22364 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
22366 { echo "$as_me:$LINENO: result: no" >&5
22367 echo "${ECHO_T}no" >&6; }
22371 PWLIB_INCDIR="/usr/include"
22372 PWLIB_LIBDIR="/usr/lib"
22379 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
22380 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
22384 if test "${HAS_PWLIB:-unset}" != "unset" ; then
22385 if test "${PWLIBDIR:-unset}" = "unset" ; then
22386 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
22387 PWLIBDIR=`$PTLIB_CONFIG --prefix`
22389 echo "Cannot find ptlib-config - please install and try again"
22394 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
22395 PWLIBDIR="/usr/share/pwlib"
22396 PWLIB_INCDIR="/usr/include"
22397 PWLIB_LIBDIR="/usr/lib"
22399 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
22400 PWLIBDIR="/usr/local/share/pwlib"
22401 PWLIB_INCDIR="/usr/local/include"
22402 PWLIB_LIBDIR="/usr/local/lib"
22405 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
22406 PWLIB_INCDIR="${PWLIBDIR}/include"
22408 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
22409 PWLIB_LIBDIR="${PWLIBDIR}/lib"
22418 if test "${HAS_PWLIB:-unset}" != "unset"; then
22419 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's
/"//g'`
22420 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
22421 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
22422 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
22423 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
22424 let PWLIB_REQ=1*10000+9*100+2
22426 { echo "$as_me:$LINENO: checking
if PWLib version
${PWLIB_VERSION} is compatible with chan_h323
" >&5
22427 echo $ECHO_N "checking
if PWLib version
${PWLIB_VERSION} is compatible with chan_h323...
$ECHO_C" >&6; }
22428 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
22429 { echo "$as_me:$LINENO: result
: no
" >&5
22430 echo "${ECHO_T}no
" >&6; }
22433 { echo "$as_me:$LINENO: result
: yes" >&5
22434 echo "${ECHO_T}yes" >&6; }
22439 if test "${HAS_PWLIB:-unset}" != "unset"; then
22443 linux*) PWLIB_OSTYPE=linux ;
22445 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
22447 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
22448 ENDLDLIBS="-lossaudio" ;
22450 netbsd* ) PWLIB_OSTYPE=NetBSD ;
22451 ENDLDLIBS="-lossaudio" ;
22453 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
22455 darwin* ) PWLIB_OSTYPE=Darwin ;
22457 beos*) PWLIB_OSTYPE=beos ;
22458 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
22460 cygwin*) PWLIB_OSTYPE=cygwin ;
22462 mingw*) PWLIB_OSTYPE=mingw ;
22463 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
22464 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
22466 * ) PWLIB_OSTYPE="$host_os" ;
22467 { echo "$as_me:$LINENO: WARNING
: \"OS
$PWLIB_OSTYPE not recognized
- proceed with caution
!\"" >&5
22468 echo "$as_me: WARNING
: \"OS
$PWLIB_OSTYPE not recognized
- proceed with caution
!\"" >&2;} ;
22473 case "$host_cpu" in
22474 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
22477 x86_64) PWLIB_MACHTYPE=x86_64 ;
22482 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
22486 sparc ) PWLIB_MACHTYPE=sparc ;
22489 powerpc ) PWLIB_MACHTYPE=ppc ;
22492 ppc ) PWLIB_MACHTYPE=ppc ;
22495 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
22500 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
22505 ia64) PWLIB_MACHTYPE=ia64 ;
22509 s390x) PWLIB_MACHTYPE=s390x ;
22514 s390) PWLIB_MACHTYPE=s390 ;
22517 * ) PWLIB_MACHTYPE="$host_cpu";
22518 { echo "$as_me:$LINENO: WARNING
: \"CPU
$PWLIB_MACHTYPE not recognized
- proceed with caution
!\"" >&5
22519 echo "$as_me: WARNING
: \"CPU
$PWLIB_MACHTYPE not recognized
- proceed with caution
!\"" >&2;} ;;
22522 PWLIB_PLATFORM="${PWLIB_OSTYPE}_
${PWLIB_MACHTYPE}"
22527 PLATFORM_PWLIB="pt_
${PWLIB_PLATFORM}_r
"
22530 if test "${HAS_PWLIB:-unset}" != "unset"; then
22531 { echo "$as_me:$LINENO: checking PWLib installation validity
" >&5
22532 echo $ECHO_N "checking PWLib installation validity...
$ECHO_C" >&6; }
22534 saved_cppflags="${CPPFLAGS}"
22535 saved_libs="${LIBS}"
22536 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
22537 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
22540 ac_cpp='$CXXCPP $CPPFLAGS'
22541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22546 cat >conftest.$ac_ext <<_ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22556 BOOL q = PTime::IsDaylightSavings();
22561 rm -f conftest.$ac_objext conftest$ac_exeext
22562 if { (ac_try="$ac_link"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_link") 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_cxx_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest$ac_exeext &&
22578 $as_test_x conftest$ac_exeext; then
22579 { echo "$as_me:$LINENO: result
: yes" >&5
22580 echo "${ECHO_T}yes" >&6; }
22581 ac_cv_lib_PWLIB="yes"
22584 echo "$as_me: failed program was
:" >&5
22585 sed 's/^/| /' conftest.$ac_ext >&5
22587 { echo "$as_me:$LINENO: result
: no
" >&5
22588 echo "${ECHO_T}no
" >&6; }
22589 ac_cv_lib_PWLIB="no
"
22594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22595 conftest$ac_exeext conftest.$ac_ext
22598 ac_cpp='$CPP $CPPFLAGS'
22599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22604 LIBS="${saved_libs}"
22605 CPPFLAGS="${saved_cppflags}"
22607 if test "${ac_cv_lib_PWLIB}" = "yes"; then
22608 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr
/lib
"; then
22609 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
22611 PWLIB_LIB="-l${PLATFORM_PWLIB}"
22613 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr
/include
"; then
22614 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
22618 cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_PWLIB 1
22628 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
22629 { echo "$as_me:$LINENO: ***" >&5
22630 echo "$as_me: ***" >&6;}
22631 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken.
" >&5
22632 echo "$as_me: *** The PWLIB installation on this system appears to be broken.
" >&6;}
22633 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22634 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22635 { echo "$as_me:$LINENO: *** including
--without-pwlib" >&5
22636 echo "$as_me: *** including
--without-pwlib" >&6;}
22640 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no
" ; then
22641 if test ! -z "${OPENH323_DIR}"; then
22642 OPENH323DIR="${OPENH323_DIR}"
22647 if test "${OPENH323DIR:-unset}" != "unset" ; then
22648 as_ac_File=`echo "ac_cv_file_
${OPENH323DIR}/version.h
" | $as_tr_sh`
22649 { echo "$as_me:$LINENO: checking
for ${OPENH323DIR}/version.h
" >&5
22650 echo $ECHO_N "checking
for ${OPENH323DIR}/version.h...
$ECHO_C" >&6; }
22651 if { as_var=$as_ac_File; eval "test \"\
${$as_var+set}\" = set"; }; then
22652 echo $ECHO_N "(cached
) $ECHO_C" >&6
22654 test "$cross_compiling" = yes &&
22655 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
22656 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
22657 { (exit 1); exit 1; }; }
22658 if test -r "${OPENH323DIR}/version.h
"; then
22659 eval "$as_ac_File=yes"
22661 eval "$as_ac_File=no
"
22664 ac_res=`eval echo '${'$as_ac_File'}'`
22665 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22666 echo "${ECHO_T}$ac_res" >&6; }
22667 if test `eval echo '${'$as_ac_File'}'` = yes; then
22672 if test "${HAS_OPENH323:-unset}" = "unset" ; then
22673 as_ac_File=`echo "ac_cv_file_
${PWLIBDIR}/..
/openh323
/version.h
" | $as_tr_sh`
22674 { echo "$as_me:$LINENO: checking
for ${PWLIBDIR}/..
/openh323
/version.h
" >&5
22675 echo $ECHO_N "checking
for ${PWLIBDIR}/..
/openh323
/version.h...
$ECHO_C" >&6; }
22676 if { as_var=$as_ac_File; eval "test \"\
${$as_var+set}\" = set"; }; then
22677 echo $ECHO_N "(cached
) $ECHO_C" >&6
22679 test "$cross_compiling" = yes &&
22680 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
22681 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
22682 { (exit 1); exit 1; }; }
22683 if test -r "${PWLIBDIR}/..
/openh323
/version.h
"; then
22684 eval "$as_ac_File=yes"
22686 eval "$as_ac_File=no
"
22689 ac_res=`eval echo '${'$as_ac_File'}'`
22690 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22691 echo "${ECHO_T}$ac_res" >&6; }
22692 if test `eval echo '${'$as_ac_File'}'` = yes; then
22693 OPENH323DIR="${PWLIBDIR}/..
/openh323
"; HAS_OPENH323=1
22696 if test "${HAS_OPENH323:-unset}" != "unset" ; then
22697 OPENH323DIR="${PWLIBDIR}/..
/openh323
"
22698 as_ac_File=`echo "ac_cv_file_
${OPENH323DIR}/include
/h323.h
" | $as_tr_sh`
22699 { echo "$as_me:$LINENO: checking
for ${OPENH323DIR}/include
/h323.h
" >&5
22700 echo $ECHO_N "checking
for ${OPENH323DIR}/include
/h323.h...
$ECHO_C" >&6; }
22701 if { as_var=$as_ac_File; eval "test \"\
${$as_var+set}\" = set"; }; then
22702 echo $ECHO_N "(cached
) $ECHO_C" >&6
22704 test "$cross_compiling" = yes &&
22705 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
22706 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
22707 { (exit 1); exit 1; }; }
22708 if test -r "${OPENH323DIR}/include
/h323.h
"; then
22709 eval "$as_ac_File=yes"
22711 eval "$as_ac_File=no
"
22714 ac_res=`eval echo '${'$as_ac_File'}'`
22715 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22716 echo "${ECHO_T}$ac_res" >&6; }
22717 if test `eval echo '${'$as_ac_File'}'` = yes; then
22720 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323
"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
22724 as_ac_File=`echo "ac_cv_file_
${HOME}/openh323
/include
/h323.h
" | $as_tr_sh`
22725 { echo "$as_me:$LINENO: checking
for ${HOME}/openh323
/include
/h323.h
" >&5
22726 echo $ECHO_N "checking
for ${HOME}/openh323
/include
/h323.h...
$ECHO_C" >&6; }
22727 if { as_var=$as_ac_File; eval "test \"\
${$as_var+set}\" = set"; }; then
22728 echo $ECHO_N "(cached
) $ECHO_C" >&6
22730 test "$cross_compiling" = yes &&
22731 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
22732 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
22733 { (exit 1); exit 1; }; }
22734 if test -r "${HOME}/openh323
/include
/h323.h
"; then
22735 eval "$as_ac_File=yes"
22737 eval "$as_ac_File=no
"
22740 ac_res=`eval echo '${'$as_ac_File'}'`
22741 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22742 echo "${ECHO_T}$ac_res" >&6; }
22743 if test `eval echo '${'$as_ac_File'}'` = yes; then
22747 if test "${HAS_OPENH323:-unset}" != "unset" ; then
22748 OPENH323DIR="${HOME}/openh323
"
22750 { echo "$as_me:$LINENO: checking
for /usr
/local
/include
/openh323
/h323.h
" >&5
22751 echo $ECHO_N "checking
for /usr
/local
/include
/openh323
/h323.h...
$ECHO_C" >&6; }
22752 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
22753 echo $ECHO_N "(cached
) $ECHO_C" >&6
22755 test "$cross_compiling" = yes &&
22756 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
22757 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
22758 { (exit 1); exit 1; }; }
22759 if test -r "/usr
/local
/include
/openh323
/h323.h
"; then
22760 ac_cv_file__usr_local_include_openh323_h323_h=yes
22762 ac_cv_file__usr_local_include_openh323_h323_h=no
22765 { echo "$as_me:$LINENO: result
: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
22766 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
22767 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
22771 if test "${HAS_OPENH323:-unset}" != "unset" ; then
22772 OPENH323DIR="/usr
/local
/share
/openh323
"
22773 OPENH323_INCDIR="/usr
/local
/include
/openh323
"
22774 OPENH323_LIBDIR="/usr
/local
/lib
"
22776 { echo "$as_me:$LINENO: checking
for /usr
/include
/openh323
/h323.h
" >&5
22777 echo $ECHO_N "checking
for /usr
/include
/openh323
/h323.h...
$ECHO_C" >&6; }
22778 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
22779 echo $ECHO_N "(cached
) $ECHO_C" >&6
22781 test "$cross_compiling" = yes &&
22782 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
22783 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
22784 { (exit 1); exit 1; }; }
22785 if test -r "/usr
/include
/openh323
/h323.h
"; then
22786 ac_cv_file__usr_include_openh323_h323_h=yes
22788 ac_cv_file__usr_include_openh323_h323_h=no
22791 { echo "$as_me:$LINENO: result
: $ac_cv_file__usr_include_openh323_h323_h" >&5
22792 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
22793 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
22797 if test "${HAS_OPENH323:-unset}" != "unset" ; then
22798 OPENH323DIR="/usr
/share
/openh323
"
22799 OPENH323_INCDIR="/usr
/include
/openh323
"
22800 OPENH323_LIBDIR="/usr
/lib
"
22807 if test "${HAS_OPENH323:-unset}" != "unset" ; then
22808 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
22809 OPENH323_INCDIR="${OPENH323DIR}/include
"
22811 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
22812 OPENH323_LIBDIR="${OPENH323DIR}/lib
"
22821 if test "${HAS_OPENH323:-unset}" != "unset"; then
22822 OPENH323_VERSION=`grep "OPENH323_VERSION
" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g
'`
22823 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
22824 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
22825 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
22826 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
22827 let OPENH323_REQ=1*10000+17*100+3
22829 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
22830 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
22831 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
22832 { echo "$as_me:$LINENO: result: no" >&5
22833 echo "${ECHO_T}no" >&6; }
22836 { echo "$as_me:$LINENO: result: yes" >&5
22837 echo "${ECHO_T}yes" >&6; }
22842 if test "${HAS_OPENH323:-unset}" != "unset"; then
22843 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
22844 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
22846 files=`ls -l ${OPENH323_LIBDIR}/libh323_${PWLIB_PLATFORM}_*.so*`
22848 if test -n "$files"; then
22849 for f in $files; do
22850 if test -f $f -a ! -L $f; then
22851 libfile=`basename $f`
22856 if test "${libfile:-unset}" != "unset"; then
22857 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's
/libh323_
${PWLIB_PLATFORM}_\
([^.
]*\
)\..
*/\
1/'"`
22859 case "${OPENH323_SUFFIX}" in
22861 OPENH323_BUILD="notrace";;
22863 OPENH323_BUILD="opt";;
22865 OPENH323_BUILD="debug";;
22867 OPENH323_BUILD="notrace";;
22869 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
22870 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
22876 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
22878 if test "${HAS_OPENH323:-unset}" != "unset"; then
22879 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
22880 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
22882 saved_cppflags="${CPPFLAGS}"
22883 saved_libs="${LIBS}"
22884 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
22885 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
22888 ac_cpp='$CXXCPP $CPPFLAGS'
22889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
22890 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
22891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22894 cat >conftest.$ac_ext <<_ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22902 #include "h323ep.h"
22906 H323EndPoint ep = H323EndPoint();
22911 rm -f conftest.$ac_objext conftest$ac_exeext
22912 if { (ac_try="$ac_link"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_link") 2>conftest.er1
22920 grep -v '^
*+' conftest.er1 >conftest.err
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_cxx_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest$ac_exeext &&
22928 $as_test_x conftest$ac_exeext; then
22929 { echo "$as_me:$LINENO: result: yes" >&5
22930 echo "${ECHO_T}yes" >&6; }
22931 ac_cv_lib_OPENH323="yes"
22934 echo "$as_me: failed program was:" >&5
22935 sed 's
/^
/|
/' conftest.$ac_ext >&5
22937 { echo "$as_me:$LINENO: result: no" >&5
22938 echo "${ECHO_T}no" >&6; }
22939 ac_cv_lib_OPENH323="no"
22944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22945 conftest$ac_exeext conftest.$ac_ext
22948 ac_cpp='$CPP $CPPFLAGS'
22949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
22950 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
22951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22954 LIBS="${saved_libs}"
22955 CPPFLAGS="${saved_cppflags}"
22957 if test "${ac_cv_lib_OPENH323}" = "yes"; then
22958 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
22959 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
22961 OPENH323_LIB="-l${PLATFORM_OPENH323}"
22963 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
22964 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
22968 cat >>confdefs.h <<\_ACEOF
22969 #define HAVE_OPENH323 1
22976 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
22977 { echo "$as_me:$LINENO: ***" >&5
22978 echo "$as_me: ***" >&6;}
22979 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
22980 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
22981 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22982 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22983 { echo "$as_me:$LINENO: *** including --without-h323" >&5
22984 echo "$as_me: *** including --without-h323" >&6;}
22990 ac_cpp='$CXXCPP $CPPFLAGS'
22991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
22992 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
22993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22996 if test "${USE_QT}" != "no"; then
22997 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
22998 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
22999 saved_libs="${LIBS}"
23000 saved_cppflags="${CPPFLAGS}"
23001 if test "x${QT_DIR}" != "x"; then
23002 LIBS="${LIBS} -L${QT_DIR}/lib"
23003 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
23005 LIBS="${LIBS} -lqt"
23007 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 #include <qt3/qdatetime.h>
23024 rm -f conftest.$ac_objext conftest$ac_exeext
23025 if { (ac_try="$ac_link"
23026 case "(($ac_try" in
23027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23028 *) ac_try_echo=$ac_try;;
23030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23031 (eval "$ac_link") 2>conftest.er1
23033 grep -v '^
*+' conftest.er1 >conftest.err
23035 cat conftest.err >&5
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } && {
23038 test -z "$ac_cxx_werror_flag" ||
23039 test ! -s conftest.err
23040 } && test -s conftest$ac_exeext &&
23041 $as_test_x conftest$ac_exeext; then
23042 ac_cv_lib_qt_qt_date="yes"
23044 echo "$as_me: failed program was:" >&5
23045 sed 's
/^
/|
/' conftest.$ac_ext >&5
23047 ac_cv_lib_qt_qt_date="no"
23050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23051 conftest$ac_exeext conftest.$ac_ext
23052 LIBS="${saved_libs}"
23053 CPPFLAGS="${saved_cppflags}"
23055 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
23056 saved_libs="${LIBS}"
23057 saved_cppflags="${CPPFLAGS}"
23058 if test "x${QT_DIR}" != "x"; then
23059 LIBS="${LIBS} -L${QT_DIR}/lib"
23060 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
23062 LIBS="${LIBS} -lqt-mt"
23064 cat >conftest.$ac_ext <<_ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 #include <qt3/qdatetime.h>
23081 rm -f conftest.$ac_objext conftest$ac_exeext
23082 if { (ac_try="$ac_link"
23083 case "(($ac_try" in
23084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085 *) ac_try_echo=$ac_try;;
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088 (eval "$ac_link") 2>conftest.er1
23090 grep -v '^
*+' conftest.er1 >conftest.err
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } && {
23095 test -z "$ac_cxx_werror_flag" ||
23096 test ! -s conftest.err
23097 } && test -s conftest$ac_exeext &&
23098 $as_test_x conftest$ac_exeext; then
23099 ac_cv_lib_qt_qt_date="yes"
23101 echo "$as_me: failed program was:" >&5
23102 sed 's
/^
/|
/' conftest.$ac_ext >&5
23104 ac_cv_lib_qt_qt_date="no"
23107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23108 conftest$ac_exeext conftest.$ac_ext
23109 LIBS="${saved_libs}"
23110 CPPFLAGS="${saved_cppflags}"
23113 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
23114 { echo "$as_me:$LINENO: result: yes" >&5
23115 echo "${ECHO_T}yes" >&6; }
23117 { echo "$as_me:$LINENO: result: no" >&5
23118 echo "${ECHO_T}no" >&6; }
23121 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
23122 QT_LIB="-l${qtlib}"
23123 if test "${QT_DIR}" != ""; then
23124 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
23125 QT_INCLUDE="-I${QT_DIR}/include"
23129 cat >>confdefs.h <<\_ACEOF
23133 if test -n "$ac_tool_prefix"; then
23134 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
23135 set dummy ${ac_tool_prefix}moc; ac_word=$2
23136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23138 if test "${ac_cv_path_QTMOC+set}" = set; then
23139 echo $ECHO_N "(cached) $ECHO_C" >&6
23143 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
23146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23147 for as_dir in $PATH
23150 test -z "$as_dir" && as_dir=.
23151 for ac_exec_ext in '' $ac_executable_extensions; do
23152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23153 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
23154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23164 QTMOC=$ac_cv_path_QTMOC
23165 if test -n "$QTMOC"; then
23166 { echo "$as_me:$LINENO: result: $QTMOC" >&5
23167 echo "${ECHO_T}$QTMOC" >&6; }
23169 { echo "$as_me:$LINENO: result: no" >&5
23170 echo "${ECHO_T}no" >&6; }
23175 if test -z "$ac_cv_path_QTMOC"; then
23177 # Extract the first word of "moc", so it can be a program name with args.
23178 set dummy moc; ac_word=$2
23179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23181 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
23182 echo $ECHO_N "(cached) $ECHO_C" >&6
23184 case $ac_pt_QTMOC in
23186 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
23189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23190 for as_dir in $PATH
23193 test -z "$as_dir" && as_dir=.
23194 for ac_exec_ext in '' $ac_executable_extensions; do
23195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23196 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
23197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23207 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
23208 if test -n "$ac_pt_QTMOC"; then
23209 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
23210 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
23212 { echo "$as_me:$LINENO: result: no" >&5
23213 echo "${ECHO_T}no" >&6; }
23216 if test "x$ac_pt_QTMOC" = x; then
23219 case $cross_compiling:$ac_tool_warned in
23221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23222 whose name does not start with the host triplet. If you think this
23223 configuration is useful to you, please write to autoconf@gnu.org." >&5
23224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23225 whose name does not start with the host triplet. If you think this
23226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23227 ac_tool_warned=yes ;;
23232 QTMOC="$ac_cv_path_QTMOC"
23235 elif test ! -z "${QT_MANDATORY}";
23237 { echo "$as_me:$LINENO: ***" >&5
23238 echo "$as_me: ***" >&6;}
23239 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
23240 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
23241 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23242 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23243 { echo "$as_me:$LINENO: *** including --without-qt." >&5
23244 echo "$as_me: *** including --without-qt." >&6;}
23250 ac_cpp='$CPP $CPPFLAGS'
23251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
23252 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
23253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23257 if test "${USE_RADIUS}" != "no"; then
23259 if test "x${RADIUS_DIR}" != "x"; then
23260 if test -d ${RADIUS_DIR}/lib; then
23261 pbxlibdir="-L${RADIUS_DIR}/lib"
23263 pbxlibdir="-L${RADIUS_DIR}"
23266 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
23267 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
23268 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23271 ac_check_lib_save_LIBS=$LIBS
23272 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
23273 cat >conftest.$ac_ext <<_ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23280 /* Override any GCC internal prototype to avoid an error.
23281 Use char because int might match the return type of a GCC
23282 builtin and then its argument prototype would still apply. */
23286 char rc_read_config ();
23290 return rc_read_config ();
23295 rm -f conftest.$ac_objext conftest$ac_exeext
23296 if { (ac_try="$ac_link"
23297 case "(($ac_try" in
23298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_link") 2>conftest.er1
23304 grep -v '^
*+' conftest.er1 >conftest.err
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest$ac_exeext &&
23312 $as_test_x conftest$ac_exeext; then
23313 ac_cv_lib_radiusclient_ng_rc_read_config=yes
23315 echo "$as_me: failed program was:" >&5
23316 sed 's
/^
/|
/' conftest.$ac_ext >&5
23318 ac_cv_lib_radiusclient_ng_rc_read_config=no
23321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23322 conftest$ac_exeext conftest.$ac_ext
23323 LIBS=$ac_check_lib_save_LIBS
23325 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
23326 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
23327 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
23328 AST_RADIUS_FOUND=yes
23330 AST_RADIUS_FOUND=no
23334 if test "${AST_RADIUS_FOUND}" = "yes"; then
23335 RADIUS_LIB="-lradiusclient-ng "
23336 RADIUS_HEADER_FOUND="1"
23337 if test "x${RADIUS_DIR}" != "x"; then
23338 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
23339 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
23340 if test "xradiusclient-ng.h" != "x" ; then
23341 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
23342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23343 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
23344 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
23345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23348 ac_res=`eval echo '${'$as_ac_Header'}'`
23349 { echo "$as_me:$LINENO: result: $ac_res" >&5
23350 echo "${ECHO_T}$ac_res" >&6; }
23352 # Is the header compilable?
23353 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
23354 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
23355 cat >conftest.$ac_ext <<_ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 $ac_includes_default
23362 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
23364 rm -f conftest.$ac_objext
23365 if { (ac_try="$ac_compile"
23366 case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371 (eval "$ac_compile") 2>conftest.er1
23373 grep -v '^
*+' conftest.er1 >conftest.err
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } && {
23378 test -z "$ac_c_werror_flag" ||
23379 test ! -s conftest.err
23380 } && test -s conftest.$ac_objext; then
23381 ac_header_compiler=yes
23383 echo "$as_me: failed program was:" >&5
23384 sed 's
/^
/|
/' conftest.$ac_ext >&5
23386 ac_header_compiler=no
23389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23391 echo "${ECHO_T}$ac_header_compiler" >&6; }
23393 # Is the header present?
23394 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
23395 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
23396 cat >conftest.$ac_ext <<_ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h. */
23402 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
23404 if { (ac_try="$ac_cpp conftest.$ac_ext"
23405 case "(($ac_try" in
23406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407 *) ac_try_echo=$ac_try;;
23409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23412 grep -v '^
*+' conftest.er1 >conftest.err
23414 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } >/dev/null && {
23417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23418 test ! -s conftest.err
23420 ac_header_preproc=yes
23422 echo "$as_me: failed program was:" >&5
23423 sed 's
/^
/|
/' conftest.$ac_ext >&5
23425 ac_header_preproc=no
23428 rm -f conftest.err conftest.$ac_ext
23429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23430 echo "${ECHO_T}$ac_header_preproc" >&6; }
23432 # So? What about this header?
23433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23435 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
23436 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23437 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result
" >&5
23438 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: proceeding with the compiler
's result" >&2;}
23439 ac_header_preproc=yes
23442 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
23443 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
23444 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
23445 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
23446 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
23447 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
23448 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
23449 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
23450 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result
" >&5
23451 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: proceeding with the preprocessor
's result" >&2;}
23452 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
23453 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
23457 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
23458 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
23459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23460 echo $ECHO_N "(cached) $ECHO_C" >&6
23462 eval "$as_ac_Header=\$ac_header_preproc"
23464 ac_res=`eval echo '${'$as_ac_Header'}'`
23465 { echo "$as_me:$LINENO: result: $ac_res" >&5
23466 echo "${ECHO_T}$ac_res" >&6; }
23469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23470 RADIUS_HEADER_FOUND=1
23472 RADIUS_HEADER_FOUND=0
23478 if test "xradiusclient-ng.h" != "x" ; then
23479 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
23480 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
23481 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
23482 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
23483 echo $ECHO_N "(cached) $ECHO_C" >&6
23485 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
23486 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
23488 # Is the header compilable?
23489 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
23490 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
23491 cat >conftest.$ac_ext <<_ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 $ac_includes_default
23498 #include <radiusclient-ng.h>
23500 rm -f conftest.$ac_objext
23501 if { (ac_try="$ac_compile"
23502 case "(($ac_try" in
23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507 (eval "$ac_compile") 2>conftest.er1
23509 grep -v '^
*+' conftest.er1 >conftest.err
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } && {
23514 test -z "$ac_c_werror_flag" ||
23515 test ! -s conftest.err
23516 } && test -s conftest.$ac_objext; then
23517 ac_header_compiler=yes
23519 echo "$as_me: failed program was:" >&5
23520 sed 's
/^
/|
/' conftest.$ac_ext >&5
23522 ac_header_compiler=no
23525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23527 echo "${ECHO_T}$ac_header_compiler" >&6; }
23529 # Is the header present?
23530 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
23531 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
23532 cat >conftest.$ac_ext <<_ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h. */
23538 #include <radiusclient-ng.h>
23540 if { (ac_try="$ac_cpp conftest.$ac_ext"
23541 case "(($ac_try" in
23542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23543 *) ac_try_echo=$ac_try;;
23545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23548 grep -v '^
*+' conftest.er1 >conftest.err
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } >/dev/null && {
23553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23554 test ! -s conftest.err
23556 ac_header_preproc=yes
23558 echo "$as_me: failed program was:" >&5
23559 sed 's
/^
/|
/' conftest.$ac_ext >&5
23561 ac_header_preproc=no
23564 rm -f conftest.err conftest.$ac_ext
23565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23566 echo "${ECHO_T}$ac_header_preproc" >&6; }
23568 # So? What about this header?
23569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23571 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
23572 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23573 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result
" >&5
23574 echo "$as_me: WARNING
: radiusclient-ng.h
: proceeding with the compiler
's result" >&2;}
23575 ac_header_preproc=yes
23578 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
23579 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
23580 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
23581 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
23582 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
23583 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
23584 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
23585 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
23586 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result
" >&5
23587 echo "$as_me: WARNING
: radiusclient-ng.h
: proceeding with the preprocessor
's result" >&2;}
23588 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
23589 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
23593 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
23594 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
23595 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
23596 echo $ECHO_N "(cached) $ECHO_C" >&6
23598 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
23600 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
23601 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
23604 if test $ac_cv_header_radiusclient_ng_h = yes; then
23605 RADIUS_HEADER_FOUND=1
23607 RADIUS_HEADER_FOUND=0
23613 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
23614 if test ! -z "${RADIUS_MANDATORY}" ;
23616 { echo "$as_me:$LINENO: ***" >&5
23617 echo "$as_me: ***" >&6;}
23618 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
23619 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
23620 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
23621 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
23622 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
23623 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
23632 cat >>confdefs.h <<_ACEOF
23633 #define HAVE_RADIUS 1
23637 elif test ! -z "${RADIUS_MANDATORY}";
23639 { echo "$as_me:$LINENO: ***" >&5
23640 echo "$as_me: ***" >&6;}
23641 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
23642 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
23643 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23644 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23645 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
23646 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
23653 if test "${USE_SPEEX}" != "no"; then
23655 if test "x${SPEEX_DIR}" != "x"; then
23656 if test -d ${SPEEX_DIR}/lib; then
23657 pbxlibdir="-L${SPEEX_DIR}/lib"
23659 pbxlibdir="-L${SPEEX_DIR}"
23662 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
23663 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
23664 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23667 ac_check_lib_save_LIBS=$LIBS
23668 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
23669 cat >conftest.$ac_ext <<_ACEOF
23672 cat confdefs.h >>conftest.$ac_ext
23673 cat >>conftest.$ac_ext <<_ACEOF
23674 /* end confdefs.h. */
23676 /* Override any GCC internal prototype to avoid an error.
23677 Use char because int might match the return type of a GCC
23678 builtin and then its argument prototype would still apply. */
23682 char speex_encode ();
23686 return speex_encode ();
23691 rm -f conftest.$ac_objext conftest$ac_exeext
23692 if { (ac_try="$ac_link"
23693 case "(($ac_try" in
23694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695 *) ac_try_echo=$ac_try;;
23697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23698 (eval "$ac_link") 2>conftest.er1
23700 grep -v '^
*+' conftest.er1 >conftest.err
23702 cat conftest.err >&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); } && {
23705 test -z "$ac_c_werror_flag" ||
23706 test ! -s conftest.err
23707 } && test -s conftest$ac_exeext &&
23708 $as_test_x conftest$ac_exeext; then
23709 ac_cv_lib_speex_speex_encode=yes
23711 echo "$as_me: failed program was:" >&5
23712 sed 's
/^
/|
/' conftest.$ac_ext >&5
23714 ac_cv_lib_speex_speex_encode=no
23717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23718 conftest$ac_exeext conftest.$ac_ext
23719 LIBS=$ac_check_lib_save_LIBS
23721 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
23722 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
23723 if test $ac_cv_lib_speex_speex_encode = yes; then
23724 AST_SPEEX_FOUND=yes
23730 if test "${AST_SPEEX_FOUND}" = "yes"; then
23731 SPEEX_LIB="-lspeex -lm"
23732 SPEEX_HEADER_FOUND="1"
23733 if test "x${SPEEX_DIR}" != "x"; then
23734 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
23735 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
23736 if test "xspeex/speex.h" != "x" ; then
23737 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
23738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23739 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
23740 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
23741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23742 echo $ECHO_N "(cached) $ECHO_C" >&6
23744 ac_res=`eval echo '${'$as_ac_Header'}'`
23745 { echo "$as_me:$LINENO: result: $ac_res" >&5
23746 echo "${ECHO_T}$ac_res" >&6; }
23748 # Is the header compilable?
23749 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
23750 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
23751 cat >conftest.$ac_ext <<_ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23757 $ac_includes_default
23758 #include <${SPEEX_DIR}/include/speex/speex.h>
23760 rm -f conftest.$ac_objext
23761 if { (ac_try="$ac_compile"
23762 case "(($ac_try" in
23763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764 *) ac_try_echo=$ac_try;;
23766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767 (eval "$ac_compile") 2>conftest.er1
23769 grep -v '^
*+' conftest.er1 >conftest.err
23771 cat conftest.err >&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } && {
23774 test -z "$ac_c_werror_flag" ||
23775 test ! -s conftest.err
23776 } && test -s conftest.$ac_objext; then
23777 ac_header_compiler=yes
23779 echo "$as_me: failed program was:" >&5
23780 sed 's
/^
/|
/' conftest.$ac_ext >&5
23782 ac_header_compiler=no
23785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23787 echo "${ECHO_T}$ac_header_compiler" >&6; }
23789 # Is the header present?
23790 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
23791 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
23792 cat >conftest.$ac_ext <<_ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 #include <${SPEEX_DIR}/include/speex/speex.h>
23800 if { (ac_try="$ac_cpp conftest.$ac_ext"
23801 case "(($ac_try" in
23802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23808 grep -v '^
*+' conftest.er1 >conftest.err
23810 cat conftest.err >&5
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } >/dev/null && {
23813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23814 test ! -s conftest.err
23816 ac_header_preproc=yes
23818 echo "$as_me: failed program was:" >&5
23819 sed 's
/^
/|
/' conftest.$ac_ext >&5
23821 ac_header_preproc=no
23824 rm -f conftest.err conftest.$ac_ext
23825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23826 echo "${ECHO_T}$ac_header_preproc" >&6; }
23828 # So? What about this header?
23829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23831 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23832 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23833 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result
" >&5
23834 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: proceeding with the compiler
's result" >&2;}
23835 ac_header_preproc=yes
23838 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
23839 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
23840 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
23841 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
23842 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
23843 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
23844 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
23845 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23846 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result
" >&5
23847 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: proceeding with the preprocessor
's result" >&2;}
23848 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
23849 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
23853 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
23854 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
23855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23856 echo $ECHO_N "(cached) $ECHO_C" >&6
23858 eval "$as_ac_Header=\$ac_header_preproc"
23860 ac_res=`eval echo '${'$as_ac_Header'}'`
23861 { echo "$as_me:$LINENO: result: $ac_res" >&5
23862 echo "${ECHO_T}$ac_res" >&6; }
23865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23866 SPEEX_HEADER_FOUND=1
23868 SPEEX_HEADER_FOUND=0
23874 if test "xspeex/speex.h" != "x" ; then
23875 if test "${ac_cv_header_speex_speex_h+set}" = set; then
23876 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
23877 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
23878 if test "${ac_cv_header_speex_speex_h+set}" = set; then
23879 echo $ECHO_N "(cached) $ECHO_C" >&6
23881 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
23882 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
23884 # Is the header compilable?
23885 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
23886 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
23887 cat >conftest.$ac_ext <<_ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h. */
23893 $ac_includes_default
23894 #include <speex/speex.h>
23896 rm -f conftest.$ac_objext
23897 if { (ac_try="$ac_compile"
23898 case "(($ac_try" in
23899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23900 *) ac_try_echo=$ac_try;;
23902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23903 (eval "$ac_compile") 2>conftest.er1
23905 grep -v '^
*+' conftest.er1 >conftest.err
23907 cat conftest.err >&5
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } && {
23910 test -z "$ac_c_werror_flag" ||
23911 test ! -s conftest.err
23912 } && test -s conftest.$ac_objext; then
23913 ac_header_compiler=yes
23915 echo "$as_me: failed program was:" >&5
23916 sed 's
/^
/|
/' conftest.$ac_ext >&5
23918 ac_header_compiler=no
23921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23923 echo "${ECHO_T}$ac_header_compiler" >&6; }
23925 # Is the header present?
23926 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
23927 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
23928 cat >conftest.$ac_ext <<_ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23934 #include <speex/speex.h>
23936 if { (ac_try="$ac_cpp conftest.$ac_ext"
23937 case "(($ac_try" in
23938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23944 grep -v '^
*+' conftest.er1 >conftest.err
23946 cat conftest.err >&5
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } >/dev/null && {
23949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23950 test ! -s conftest.err
23952 ac_header_preproc=yes
23954 echo "$as_me: failed program was:" >&5
23955 sed 's
/^
/|
/' conftest.$ac_ext >&5
23957 ac_header_preproc=no
23960 rm -f conftest.err conftest.$ac_ext
23961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23962 echo "${ECHO_T}$ac_header_preproc" >&6; }
23964 # So? What about this header?
23965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23967 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23968 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23969 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result
" >&5
23970 echo "$as_me: WARNING
: speex
/speex.h
: proceeding with the compiler
's result" >&2;}
23971 ac_header_preproc=yes
23974 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
23975 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
23976 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
23977 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
23978 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
23979 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
23980 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
23981 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23982 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result
" >&5
23983 echo "$as_me: WARNING
: speex
/speex.h
: proceeding with the preprocessor
's result" >&2;}
23984 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
23985 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
23989 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
23990 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
23991 if test "${ac_cv_header_speex_speex_h+set}" = set; then
23992 echo $ECHO_N "(cached) $ECHO_C" >&6
23994 ac_cv_header_speex_speex_h=$ac_header_preproc
23996 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
23997 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
24000 if test $ac_cv_header_speex_speex_h = yes; then
24001 SPEEX_HEADER_FOUND=1
24003 SPEEX_HEADER_FOUND=0
24009 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
24010 if test ! -z "${SPEEX_MANDATORY}" ;
24012 { echo "$as_me:$LINENO: ***" >&5
24013 echo "$as_me: ***" >&6;}
24014 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
24015 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
24016 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
24017 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
24018 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
24019 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
24028 cat >>confdefs.h <<_ACEOF
24029 #define HAVE_SPEEX 1
24033 elif test ! -z "${SPEEX_MANDATORY}";
24035 { echo "$as_me:$LINENO: ***" >&5
24036 echo "$as_me: ***" >&6;}
24037 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
24038 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
24039 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24040 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24041 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
24042 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
24049 if test "${USE_SQLITE}" != "no"; then
24051 if test "x${SQLITE_DIR}" != "x"; then
24052 if test -d ${SQLITE_DIR}/lib; then
24053 pbxlibdir="-L${SQLITE_DIR}/lib"
24055 pbxlibdir="-L${SQLITE_DIR}"
24058 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
24059 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
24060 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
24061 echo $ECHO_N "(cached) $ECHO_C" >&6
24063 ac_check_lib_save_LIBS=$LIBS
24064 LIBS="-lsqlite ${pbxlibdir} $LIBS"
24065 cat >conftest.$ac_ext <<_ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h. */
24072 /* Override any GCC internal prototype to avoid an error.
24073 Use char because int might match the return type of a GCC
24074 builtin and then its argument prototype would still apply. */
24078 char sqlite_exec ();
24082 return sqlite_exec ();
24087 rm -f conftest.$ac_objext conftest$ac_exeext
24088 if { (ac_try="$ac_link"
24089 case "(($ac_try" in
24090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24091 *) ac_try_echo=$ac_try;;
24093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24094 (eval "$ac_link") 2>conftest.er1
24096 grep -v '^
*+' conftest.er1 >conftest.err
24098 cat conftest.err >&5
24099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); } && {
24101 test -z "$ac_c_werror_flag" ||
24102 test ! -s conftest.err
24103 } && test -s conftest$ac_exeext &&
24104 $as_test_x conftest$ac_exeext; then
24105 ac_cv_lib_sqlite_sqlite_exec=yes
24107 echo "$as_me: failed program was:" >&5
24108 sed 's
/^
/|
/' conftest.$ac_ext >&5
24110 ac_cv_lib_sqlite_sqlite_exec=no
24113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24114 conftest$ac_exeext conftest.$ac_ext
24115 LIBS=$ac_check_lib_save_LIBS
24117 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
24118 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
24119 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
24120 AST_SQLITE_FOUND=yes
24122 AST_SQLITE_FOUND=no
24126 if test "${AST_SQLITE_FOUND}" = "yes"; then
24127 SQLITE_LIB="-lsqlite "
24128 SQLITE_HEADER_FOUND="1"
24129 if test "x${SQLITE_DIR}" != "x"; then
24130 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
24131 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
24132 if test "xsqlite.h" != "x" ; then
24133 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
24134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24135 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
24136 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
24137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24138 echo $ECHO_N "(cached) $ECHO_C" >&6
24140 ac_res=`eval echo '${'$as_ac_Header'}'`
24141 { echo "$as_me:$LINENO: result: $ac_res" >&5
24142 echo "${ECHO_T}$ac_res" >&6; }
24144 # Is the header compilable?
24145 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
24146 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
24147 cat >conftest.$ac_ext <<_ACEOF
24150 cat confdefs.h >>conftest.$ac_ext
24151 cat >>conftest.$ac_ext <<_ACEOF
24152 /* end confdefs.h. */
24153 $ac_includes_default
24154 #include <${SQLITE_DIR}/include/sqlite.h>
24156 rm -f conftest.$ac_objext
24157 if { (ac_try="$ac_compile"
24158 case "(($ac_try" in
24159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24160 *) ac_try_echo=$ac_try;;
24162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24163 (eval "$ac_compile") 2>conftest.er1
24165 grep -v '^
*+' conftest.er1 >conftest.err
24167 cat conftest.err >&5
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); } && {
24170 test -z "$ac_c_werror_flag" ||
24171 test ! -s conftest.err
24172 } && test -s conftest.$ac_objext; then
24173 ac_header_compiler=yes
24175 echo "$as_me: failed program was:" >&5
24176 sed 's
/^
/|
/' conftest.$ac_ext >&5
24178 ac_header_compiler=no
24181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24183 echo "${ECHO_T}$ac_header_compiler" >&6; }
24185 # Is the header present?
24186 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
24187 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
24188 cat >conftest.$ac_ext <<_ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h. */
24194 #include <${SQLITE_DIR}/include/sqlite.h>
24196 if { (ac_try="$ac_cpp conftest.$ac_ext"
24197 case "(($ac_try" in
24198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199 *) ac_try_echo=$ac_try;;
24201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24204 grep -v '^
*+' conftest.er1 >conftest.err
24206 cat conftest.err >&5
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } >/dev/null && {
24209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24210 test ! -s conftest.err
24212 ac_header_preproc=yes
24214 echo "$as_me: failed program was:" >&5
24215 sed 's
/^
/|
/' conftest.$ac_ext >&5
24217 ac_header_preproc=no
24220 rm -f conftest.err conftest.$ac_ext
24221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24222 echo "${ECHO_T}$ac_header_preproc" >&6; }
24224 # So? What about this header?
24225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24227 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
24228 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24229 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result
" >&5
24230 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: proceeding with the compiler
's result" >&2;}
24231 ac_header_preproc=yes
24234 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
24235 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
24236 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
24237 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
24238 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
24239 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
24240 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
24241 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
24242 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result
" >&5
24243 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: proceeding with the preprocessor
's result" >&2;}
24244 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
24245 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
24249 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
24250 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
24251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24252 echo $ECHO_N "(cached) $ECHO_C" >&6
24254 eval "$as_ac_Header=\$ac_header_preproc"
24256 ac_res=`eval echo '${'$as_ac_Header'}'`
24257 { echo "$as_me:$LINENO: result: $ac_res" >&5
24258 echo "${ECHO_T}$ac_res" >&6; }
24261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24262 SQLITE_HEADER_FOUND=1
24264 SQLITE_HEADER_FOUND=0
24270 if test "xsqlite.h" != "x" ; then
24271 if test "${ac_cv_header_sqlite_h+set}" = set; then
24272 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
24273 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
24274 if test "${ac_cv_header_sqlite_h+set}" = set; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24277 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
24278 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
24280 # Is the header compilable?
24281 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
24282 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
24283 cat >conftest.$ac_ext <<_ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24289 $ac_includes_default
24290 #include <sqlite.h>
24292 rm -f conftest.$ac_objext
24293 if { (ac_try="$ac_compile"
24294 case "(($ac_try" in
24295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24296 *) ac_try_echo=$ac_try;;
24298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24299 (eval "$ac_compile") 2>conftest.er1
24301 grep -v '^
*+' conftest.er1 >conftest.err
24303 cat conftest.err >&5
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); } && {
24306 test -z "$ac_c_werror_flag" ||
24307 test ! -s conftest.err
24308 } && test -s conftest.$ac_objext; then
24309 ac_header_compiler=yes
24311 echo "$as_me: failed program was:" >&5
24312 sed 's
/^
/|
/' conftest.$ac_ext >&5
24314 ac_header_compiler=no
24317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24319 echo "${ECHO_T}$ac_header_compiler" >&6; }
24321 # Is the header present?
24322 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
24323 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
24324 cat >conftest.$ac_ext <<_ACEOF
24327 cat confdefs.h >>conftest.$ac_ext
24328 cat >>conftest.$ac_ext <<_ACEOF
24329 /* end confdefs.h. */
24330 #include <sqlite.h>
24332 if { (ac_try="$ac_cpp conftest.$ac_ext"
24333 case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24340 grep -v '^
*+' conftest.er1 >conftest.err
24342 cat conftest.err >&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); } >/dev/null && {
24345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24346 test ! -s conftest.err
24348 ac_header_preproc=yes
24350 echo "$as_me: failed program was:" >&5
24351 sed 's
/^
/|
/' conftest.$ac_ext >&5
24353 ac_header_preproc=no
24356 rm -f conftest.err conftest.$ac_ext
24357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24358 echo "${ECHO_T}$ac_header_preproc" >&6; }
24360 # So? What about this header?
24361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24363 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
24364 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24365 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result
" >&5
24366 echo "$as_me: WARNING
: sqlite.h
: proceeding with the compiler
's result" >&2;}
24367 ac_header_preproc=yes
24370 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
24371 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
24372 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
24373 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
24374 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
24375 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
24376 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
24377 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
24378 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result
" >&5
24379 echo "$as_me: WARNING
: sqlite.h
: proceeding with the preprocessor
's result" >&2;}
24380 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
24381 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
24385 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
24386 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
24387 if test "${ac_cv_header_sqlite_h+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 ac_cv_header_sqlite_h=$ac_header_preproc
24392 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
24393 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
24396 if test $ac_cv_header_sqlite_h = yes; then
24397 SQLITE_HEADER_FOUND=1
24399 SQLITE_HEADER_FOUND=0
24405 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
24406 if test ! -z "${SQLITE_MANDATORY}" ;
24408 { echo "$as_me:$LINENO: ***" >&5
24409 echo "$as_me: ***" >&6;}
24410 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
24411 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
24412 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
24413 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
24414 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
24415 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
24424 cat >>confdefs.h <<_ACEOF
24425 #define HAVE_SQLITE 1
24429 elif test ! -z "${SQLITE_MANDATORY}";
24431 { echo "$as_me:$LINENO: ***" >&5
24432 echo "$as_me: ***" >&6;}
24433 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
24434 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
24435 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24436 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24437 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
24438 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
24445 if test "${USE_OPENSSL}" != "no"; then
24447 if test "x${OPENSSL_DIR}" != "x"; then
24448 if test -d ${OPENSSL_DIR}/lib; then
24449 pbxlibdir="-L${OPENSSL_DIR}/lib"
24451 pbxlibdir="-L${OPENSSL_DIR}"
24454 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
24455 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
24456 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
24457 echo $ECHO_N "(cached) $ECHO_C" >&6
24459 ac_check_lib_save_LIBS=$LIBS
24460 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
24461 cat >conftest.$ac_ext <<_ACEOF
24464 cat confdefs.h >>conftest.$ac_ext
24465 cat >>conftest.$ac_ext <<_ACEOF
24466 /* end confdefs.h. */
24468 /* Override any GCC internal prototype to avoid an error.
24469 Use char because int might match the return type of a GCC
24470 builtin and then its argument prototype would still apply. */
24474 char ssl2_connect ();
24478 return ssl2_connect ();
24483 rm -f conftest.$ac_objext conftest$ac_exeext
24484 if { (ac_try="$ac_link"
24485 case "(($ac_try" in
24486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487 *) ac_try_echo=$ac_try;;
24489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24490 (eval "$ac_link") 2>conftest.er1
24492 grep -v '^
*+' conftest.er1 >conftest.err
24494 cat conftest.err >&5
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); } && {
24497 test -z "$ac_c_werror_flag" ||
24498 test ! -s conftest.err
24499 } && test -s conftest$ac_exeext &&
24500 $as_test_x conftest$ac_exeext; then
24501 ac_cv_lib_ssl_ssl2_connect=yes
24503 echo "$as_me: failed program was:" >&5
24504 sed 's
/^
/|
/' conftest.$ac_ext >&5
24506 ac_cv_lib_ssl_ssl2_connect=no
24509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24510 conftest$ac_exeext conftest.$ac_ext
24511 LIBS=$ac_check_lib_save_LIBS
24513 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
24514 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
24515 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
24516 AST_OPENSSL_FOUND=yes
24518 AST_OPENSSL_FOUND=no
24522 if test "${AST_OPENSSL_FOUND}" = "yes"; then
24523 OPENSSL_LIB="-lssl -lcrypto"
24524 OPENSSL_HEADER_FOUND="1"
24525 if test "x${OPENSSL_DIR}" != "x"; then
24526 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
24527 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
24528 if test "xopenssl/ssl.h" != "x" ; then
24529 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
24530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24531 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
24532 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
24533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24534 echo $ECHO_N "(cached) $ECHO_C" >&6
24536 ac_res=`eval echo '${'$as_ac_Header'}'`
24537 { echo "$as_me:$LINENO: result: $ac_res" >&5
24538 echo "${ECHO_T}$ac_res" >&6; }
24540 # Is the header compilable?
24541 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
24542 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
24543 cat >conftest.$ac_ext <<_ACEOF
24546 cat confdefs.h >>conftest.$ac_ext
24547 cat >>conftest.$ac_ext <<_ACEOF
24548 /* end confdefs.h. */
24549 $ac_includes_default
24550 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
24552 rm -f conftest.$ac_objext
24553 if { (ac_try="$ac_compile"
24554 case "(($ac_try" in
24555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556 *) ac_try_echo=$ac_try;;
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559 (eval "$ac_compile") 2>conftest.er1
24561 grep -v '^
*+' conftest.er1 >conftest.err
24563 cat conftest.err >&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); } && {
24566 test -z "$ac_c_werror_flag" ||
24567 test ! -s conftest.err
24568 } && test -s conftest.$ac_objext; then
24569 ac_header_compiler=yes
24571 echo "$as_me: failed program was:" >&5
24572 sed 's
/^
/|
/' conftest.$ac_ext >&5
24574 ac_header_compiler=no
24577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24579 echo "${ECHO_T}$ac_header_compiler" >&6; }
24581 # Is the header present?
24582 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
24583 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
24584 cat >conftest.$ac_ext <<_ACEOF
24587 cat confdefs.h >>conftest.$ac_ext
24588 cat >>conftest.$ac_ext <<_ACEOF
24589 /* end confdefs.h. */
24590 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
24592 if { (ac_try="$ac_cpp conftest.$ac_ext"
24593 case "(($ac_try" in
24594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595 *) ac_try_echo=$ac_try;;
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24600 grep -v '^
*+' conftest.er1 >conftest.err
24602 cat conftest.err >&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } >/dev/null && {
24605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24606 test ! -s conftest.err
24608 ac_header_preproc=yes
24610 echo "$as_me: failed program was:" >&5
24611 sed 's
/^
/|
/' conftest.$ac_ext >&5
24613 ac_header_preproc=no
24616 rm -f conftest.err conftest.$ac_ext
24617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24618 echo "${ECHO_T}$ac_header_preproc" >&6; }
24620 # So? What about this header?
24621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24623 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24624 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24625 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result
" >&5
24626 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: proceeding with the compiler
's result" >&2;}
24627 ac_header_preproc=yes
24630 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
24631 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
24632 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
24633 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
24634 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
24635 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
24636 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
24637 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24638 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result
" >&5
24639 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: proceeding with the preprocessor
's result" >&2;}
24640 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
24641 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
24645 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
24646 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
24647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24648 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 eval "$as_ac_Header=\$ac_header_preproc"
24652 ac_res=`eval echo '${'$as_ac_Header'}'`
24653 { echo "$as_me:$LINENO: result: $ac_res" >&5
24654 echo "${ECHO_T}$ac_res" >&6; }
24657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24658 OPENSSL_HEADER_FOUND=1
24660 OPENSSL_HEADER_FOUND=0
24666 if test "xopenssl/ssl.h" != "x" ; then
24667 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
24668 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
24669 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
24670 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
24671 echo $ECHO_N "(cached) $ECHO_C" >&6
24673 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
24674 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
24676 # Is the header compilable?
24677 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
24678 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
24679 cat >conftest.$ac_ext <<_ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 $ac_includes_default
24686 #include <openssl/ssl.h>
24688 rm -f conftest.$ac_objext
24689 if { (ac_try="$ac_compile"
24690 case "(($ac_try" in
24691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692 *) ac_try_echo=$ac_try;;
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695 (eval "$ac_compile") 2>conftest.er1
24697 grep -v '^
*+' conftest.er1 >conftest.err
24699 cat conftest.err >&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); } && {
24702 test -z "$ac_c_werror_flag" ||
24703 test ! -s conftest.err
24704 } && test -s conftest.$ac_objext; then
24705 ac_header_compiler=yes
24707 echo "$as_me: failed program was:" >&5
24708 sed 's
/^
/|
/' conftest.$ac_ext >&5
24710 ac_header_compiler=no
24713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24715 echo "${ECHO_T}$ac_header_compiler" >&6; }
24717 # Is the header present?
24718 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
24719 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
24720 cat >conftest.$ac_ext <<_ACEOF
24723 cat confdefs.h >>conftest.$ac_ext
24724 cat >>conftest.$ac_ext <<_ACEOF
24725 /* end confdefs.h. */
24726 #include <openssl/ssl.h>
24728 if { (ac_try="$ac_cpp conftest.$ac_ext"
24729 case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24736 grep -v '^
*+' conftest.er1 >conftest.err
24738 cat conftest.err >&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); } >/dev/null && {
24741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24742 test ! -s conftest.err
24744 ac_header_preproc=yes
24746 echo "$as_me: failed program was:" >&5
24747 sed 's
/^
/|
/' conftest.$ac_ext >&5
24749 ac_header_preproc=no
24752 rm -f conftest.err conftest.$ac_ext
24753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24754 echo "${ECHO_T}$ac_header_preproc" >&6; }
24756 # So? What about this header?
24757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24759 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24760 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24761 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result
" >&5
24762 echo "$as_me: WARNING
: openssl
/ssl.h
: proceeding with the compiler
's result" >&2;}
24763 ac_header_preproc=yes
24766 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
24767 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
24768 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
24769 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
24770 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
24771 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
24772 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
24773 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24774 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result
" >&5
24775 echo "$as_me: WARNING
: openssl
/ssl.h
: proceeding with the preprocessor
's result" >&2;}
24776 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
24777 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
24781 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
24782 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
24783 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24786 ac_cv_header_openssl_ssl_h=$ac_header_preproc
24788 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
24789 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
24792 if test $ac_cv_header_openssl_ssl_h = yes; then
24793 OPENSSL_HEADER_FOUND=1
24795 OPENSSL_HEADER_FOUND=0
24801 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
24802 if test ! -z "${OPENSSL_MANDATORY}" ;
24804 { echo "$as_me:$LINENO: ***" >&5
24805 echo "$as_me: ***" >&6;}
24806 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
24807 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
24808 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
24809 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
24810 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
24811 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
24820 cat >>confdefs.h <<_ACEOF
24821 #define HAVE_OPENSSL 1
24825 elif test ! -z "${OPENSSL_MANDATORY}";
24827 { echo "$as_me:$LINENO: ***" >&5
24828 echo "$as_me: ***" >&6;}
24829 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
24830 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
24831 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24832 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24833 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
24834 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
24841 if test "${USE_FREETDS}" != "no"; then
24843 if test "x${FREETDS_DIR}" != "x"; then
24844 if test -d ${FREETDS_DIR}/lib; then
24845 pbxlibdir="-L${FREETDS_DIR}/lib"
24847 pbxlibdir="-L${FREETDS_DIR}"
24850 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
24851 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
24852 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24855 ac_check_lib_save_LIBS=$LIBS
24856 LIBS="-ltds ${pbxlibdir} $LIBS"
24857 cat >conftest.$ac_ext <<_ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24864 /* Override any GCC internal prototype to avoid an error.
24865 Use char because int might match the return type of a GCC
24866 builtin and then its argument prototype would still apply. */
24870 char tds_version ();
24874 return tds_version ();
24879 rm -f conftest.$ac_objext conftest$ac_exeext
24880 if { (ac_try="$ac_link"
24881 case "(($ac_try" in
24882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883 *) ac_try_echo=$ac_try;;
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886 (eval "$ac_link") 2>conftest.er1
24888 grep -v '^
*+' conftest.er1 >conftest.err
24890 cat conftest.err >&5
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } && {
24893 test -z "$ac_c_werror_flag" ||
24894 test ! -s conftest.err
24895 } && test -s conftest$ac_exeext &&
24896 $as_test_x conftest$ac_exeext; then
24897 ac_cv_lib_tds_tds_version=yes
24899 echo "$as_me: failed program was:" >&5
24900 sed 's
/^
/|
/' conftest.$ac_ext >&5
24902 ac_cv_lib_tds_tds_version=no
24905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24906 conftest$ac_exeext conftest.$ac_ext
24907 LIBS=$ac_check_lib_save_LIBS
24909 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
24910 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
24911 if test $ac_cv_lib_tds_tds_version = yes; then
24912 AST_FREETDS_FOUND=yes
24914 AST_FREETDS_FOUND=no
24918 if test "${AST_FREETDS_FOUND}" = "yes"; then
24919 FREETDS_LIB="-ltds "
24920 FREETDS_HEADER_FOUND="1"
24921 if test "x${FREETDS_DIR}" != "x"; then
24922 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
24923 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
24924 if test "xtds.h" != "x" ; then
24925 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
24926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24927 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
24928 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
24929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24932 ac_res=`eval echo '${'$as_ac_Header'}'`
24933 { echo "$as_me:$LINENO: result: $ac_res" >&5
24934 echo "${ECHO_T}$ac_res" >&6; }
24936 # Is the header compilable?
24937 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
24938 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
24939 cat >conftest.$ac_ext <<_ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h. */
24945 $ac_includes_default
24946 #include <${FREETDS_DIR}/include/tds.h>
24948 rm -f conftest.$ac_objext
24949 if { (ac_try="$ac_compile"
24950 case "(($ac_try" in
24951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952 *) ac_try_echo=$ac_try;;
24954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955 (eval "$ac_compile") 2>conftest.er1
24957 grep -v '^
*+' conftest.er1 >conftest.err
24959 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } && {
24962 test -z "$ac_c_werror_flag" ||
24963 test ! -s conftest.err
24964 } && test -s conftest.$ac_objext; then
24965 ac_header_compiler=yes
24967 echo "$as_me: failed program was:" >&5
24968 sed 's
/^
/|
/' conftest.$ac_ext >&5
24970 ac_header_compiler=no
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24975 echo "${ECHO_T}$ac_header_compiler" >&6; }
24977 # Is the header present?
24978 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
24979 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
24980 cat >conftest.$ac_ext <<_ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24986 #include <${FREETDS_DIR}/include/tds.h>
24988 if { (ac_try="$ac_cpp conftest.$ac_ext"
24989 case "(($ac_try" in
24990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24991 *) ac_try_echo=$ac_try;;
24993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24996 grep -v '^
*+' conftest.er1 >conftest.err
24998 cat conftest.err >&5
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); } >/dev/null && {
25001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25002 test ! -s conftest.err
25004 ac_header_preproc=yes
25006 echo "$as_me: failed program was:" >&5
25007 sed 's
/^
/|
/' conftest.$ac_ext >&5
25009 ac_header_preproc=no
25012 rm -f conftest.err conftest.$ac_ext
25013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25014 echo "${ECHO_T}$ac_header_preproc" >&6; }
25016 # So? What about this header?
25017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25019 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
25020 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25021 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result
" >&5
25022 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: proceeding with the compiler
's result" >&2;}
25023 ac_header_preproc=yes
25026 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
25027 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
25028 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
25029 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
25030 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
25031 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
25032 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
25033 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
25034 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result
" >&5
25035 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: proceeding with the preprocessor
's result" >&2;}
25036 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
25037 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
25041 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
25042 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
25043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25044 echo $ECHO_N "(cached) $ECHO_C" >&6
25046 eval "$as_ac_Header=\$ac_header_preproc"
25048 ac_res=`eval echo '${'$as_ac_Header'}'`
25049 { echo "$as_me:$LINENO: result: $ac_res" >&5
25050 echo "${ECHO_T}$ac_res" >&6; }
25053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25054 FREETDS_HEADER_FOUND=1
25056 FREETDS_HEADER_FOUND=0
25062 if test "xtds.h" != "x" ; then
25063 if test "${ac_cv_header_tds_h+set}" = set; then
25064 { echo "$as_me:$LINENO: checking for tds.h" >&5
25065 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
25066 if test "${ac_cv_header_tds_h+set}" = set; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25069 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
25070 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
25072 # Is the header compilable?
25073 { echo "$as_me:$LINENO: checking tds.h usability" >&5
25074 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
25075 cat >conftest.$ac_ext <<_ACEOF
25078 cat confdefs.h >>conftest.$ac_ext
25079 cat >>conftest.$ac_ext <<_ACEOF
25080 /* end confdefs.h. */
25081 $ac_includes_default
25084 rm -f conftest.$ac_objext
25085 if { (ac_try="$ac_compile"
25086 case "(($ac_try" in
25087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088 *) ac_try_echo=$ac_try;;
25090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25091 (eval "$ac_compile") 2>conftest.er1
25093 grep -v '^
*+' conftest.er1 >conftest.err
25095 cat conftest.err >&5
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); } && {
25098 test -z "$ac_c_werror_flag" ||
25099 test ! -s conftest.err
25100 } && test -s conftest.$ac_objext; then
25101 ac_header_compiler=yes
25103 echo "$as_me: failed program was:" >&5
25104 sed 's
/^
/|
/' conftest.$ac_ext >&5
25106 ac_header_compiler=no
25109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25111 echo "${ECHO_T}$ac_header_compiler" >&6; }
25113 # Is the header present?
25114 { echo "$as_me:$LINENO: checking tds.h presence" >&5
25115 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
25116 cat >conftest.$ac_ext <<_ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h. */
25124 if { (ac_try="$ac_cpp conftest.$ac_ext"
25125 case "(($ac_try" in
25126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25132 grep -v '^
*+' conftest.er1 >conftest.err
25134 cat conftest.err >&5
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } >/dev/null && {
25137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25138 test ! -s conftest.err
25140 ac_header_preproc=yes
25142 echo "$as_me: failed program was:" >&5
25143 sed 's
/^
/|
/' conftest.$ac_ext >&5
25145 ac_header_preproc=no
25148 rm -f conftest.err conftest.$ac_ext
25149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25150 echo "${ECHO_T}$ac_header_preproc" >&6; }
25152 # So? What about this header?
25153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25155 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
25156 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25157 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result
" >&5
25158 echo "$as_me: WARNING
: tds.h
: proceeding with the compiler
's result" >&2;}
25159 ac_header_preproc=yes
25162 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
25163 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
25164 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
25165 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
25166 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
25167 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
25168 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
25169 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
25170 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result
" >&5
25171 echo "$as_me: WARNING
: tds.h
: proceeding with the preprocessor
's result" >&2;}
25172 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
25173 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
25177 { echo "$as_me:$LINENO: checking for tds.h" >&5
25178 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
25179 if test "${ac_cv_header_tds_h+set}" = set; then
25180 echo $ECHO_N "(cached) $ECHO_C" >&6
25182 ac_cv_header_tds_h=$ac_header_preproc
25184 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
25185 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
25188 if test $ac_cv_header_tds_h = yes; then
25189 FREETDS_HEADER_FOUND=1
25191 FREETDS_HEADER_FOUND=0
25197 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
25198 if test ! -z "${FREETDS_MANDATORY}" ;
25200 { echo "$as_me:$LINENO: ***" >&5
25201 echo "$as_me: ***" >&6;}
25202 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
25203 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
25204 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
25205 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
25206 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
25207 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
25216 cat >>confdefs.h <<_ACEOF
25217 #define HAVE_FREETDS 1
25221 elif test ! -z "${FREETDS_MANDATORY}";
25223 { echo "$as_me:$LINENO: ***" >&5
25224 echo "$as_me: ***" >&6;}
25225 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
25226 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
25227 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25228 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25229 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
25230 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
25235 if test "${PBX_FREETDS}" != "0";
25237 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
25239 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
25242 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
25245 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
25248 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
25254 if test "${USE_TERMCAP}" != "no"; then
25256 if test "x${TERMCAP_DIR}" != "x"; then
25257 if test -d ${TERMCAP_DIR}/lib; then
25258 pbxlibdir="-L${TERMCAP_DIR}/lib"
25260 pbxlibdir="-L${TERMCAP_DIR}"
25263 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
25264 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
25265 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
25266 echo $ECHO_N "(cached) $ECHO_C" >&6
25268 ac_check_lib_save_LIBS=$LIBS
25269 LIBS="-ltermcap ${pbxlibdir} $LIBS"
25270 cat >conftest.$ac_ext <<_ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h. */
25277 /* Override any GCC internal prototype to avoid an error.
25278 Use char because int might match the return type of a GCC
25279 builtin and then its argument prototype would still apply. */
25292 rm -f conftest.$ac_objext conftest$ac_exeext
25293 if { (ac_try="$ac_link"
25294 case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_link") 2>conftest.er1
25301 grep -v '^
*+' conftest.er1 >conftest.err
25303 cat conftest.err >&5
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); } && {
25306 test -z "$ac_c_werror_flag" ||
25307 test ! -s conftest.err
25308 } && test -s conftest$ac_exeext &&
25309 $as_test_x conftest$ac_exeext; then
25310 ac_cv_lib_termcap_tgetent=yes
25312 echo "$as_me: failed program was:" >&5
25313 sed 's
/^
/|
/' conftest.$ac_ext >&5
25315 ac_cv_lib_termcap_tgetent=no
25318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25319 conftest$ac_exeext conftest.$ac_ext
25320 LIBS=$ac_check_lib_save_LIBS
25322 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
25323 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
25324 if test $ac_cv_lib_termcap_tgetent = yes; then
25325 AST_TERMCAP_FOUND=yes
25327 AST_TERMCAP_FOUND=no
25331 if test "${AST_TERMCAP_FOUND}" = "yes"; then
25332 TERMCAP_LIB="-ltermcap "
25333 TERMCAP_HEADER_FOUND="1"
25334 if test "x${TERMCAP_DIR}" != "x"; then
25335 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
25336 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
25337 if test "x" != "x" ; then
25338 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
25339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25340 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
25341 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
25342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25343 echo $ECHO_N "(cached) $ECHO_C" >&6
25345 ac_res=`eval echo '${'$as_ac_Header'}'`
25346 { echo "$as_me:$LINENO: result: $ac_res" >&5
25347 echo "${ECHO_T}$ac_res" >&6; }
25349 # Is the header compilable?
25350 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
25351 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
25352 cat >conftest.$ac_ext <<_ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h. */
25358 $ac_includes_default
25359 #include <${TERMCAP_DIR}/include/>
25361 rm -f conftest.$ac_objext
25362 if { (ac_try="$ac_compile"
25363 case "(($ac_try" in
25364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25365 *) ac_try_echo=$ac_try;;
25367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25368 (eval "$ac_compile") 2>conftest.er1
25370 grep -v '^
*+' conftest.er1 >conftest.err
25372 cat conftest.err >&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } && {
25375 test -z "$ac_c_werror_flag" ||
25376 test ! -s conftest.err
25377 } && test -s conftest.$ac_objext; then
25378 ac_header_compiler=yes
25380 echo "$as_me: failed program was:" >&5
25381 sed 's
/^
/|
/' conftest.$ac_ext >&5
25383 ac_header_compiler=no
25386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25388 echo "${ECHO_T}$ac_header_compiler" >&6; }
25390 # Is the header present?
25391 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
25392 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
25393 cat >conftest.$ac_ext <<_ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h. */
25399 #include <${TERMCAP_DIR}/include/>
25401 if { (ac_try="$ac_cpp conftest.$ac_ext"
25402 case "(($ac_try" in
25403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404 *) ac_try_echo=$ac_try;;
25406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25409 grep -v '^
*+' conftest.er1 >conftest.err
25411 cat conftest.err >&5
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); } >/dev/null && {
25414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25415 test ! -s conftest.err
25417 ac_header_preproc=yes
25419 echo "$as_me: failed program was:" >&5
25420 sed 's
/^
/|
/' conftest.$ac_ext >&5
25422 ac_header_preproc=no
25425 rm -f conftest.err conftest.$ac_ext
25426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25427 echo "${ECHO_T}$ac_header_preproc" >&6; }
25429 # So? What about this header?
25430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25432 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
25433 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
25434 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result
" >&5
25435 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: proceeding with the compiler
's result" >&2;}
25436 ac_header_preproc=yes
25439 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
25440 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
25441 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
25442 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
25443 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
25444 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
25445 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
25446 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
25447 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result
" >&5
25448 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: proceeding with the preprocessor
's result" >&2;}
25449 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
25450 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
25454 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
25455 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
25456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25457 echo $ECHO_N "(cached) $ECHO_C" >&6
25459 eval "$as_ac_Header=\$ac_header_preproc"
25461 ac_res=`eval echo '${'$as_ac_Header'}'`
25462 { echo "$as_me:$LINENO: result: $ac_res" >&5
25463 echo "${ECHO_T}$ac_res" >&6; }
25466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25467 TERMCAP_HEADER_FOUND=1
25469 TERMCAP_HEADER_FOUND=0
25475 if test "x" != "x" ; then
25476 if test "${ac_cv_header_+set}" = set; then
25477 { echo "$as_me:$LINENO: checking for " >&5
25478 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25479 if test "${ac_cv_header_+set}" = set; then
25480 echo $ECHO_N "(cached) $ECHO_C" >&6
25482 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25483 echo "${ECHO_T}$ac_cv_header_" >&6; }
25485 # Is the header compilable?
25486 { echo "$as_me:$LINENO: checking usability" >&5
25487 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25488 cat >conftest.$ac_ext <<_ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h. */
25494 $ac_includes_default
25497 rm -f conftest.$ac_objext
25498 if { (ac_try="$ac_compile"
25499 case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_compile") 2>conftest.er1
25506 grep -v '^
*+' conftest.er1 >conftest.err
25508 cat conftest.err >&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } && {
25511 test -z "$ac_c_werror_flag" ||
25512 test ! -s conftest.err
25513 } && test -s conftest.$ac_objext; then
25514 ac_header_compiler=yes
25516 echo "$as_me: failed program was:" >&5
25517 sed 's
/^
/|
/' conftest.$ac_ext >&5
25519 ac_header_compiler=no
25522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25524 echo "${ECHO_T}$ac_header_compiler" >&6; }
25526 # Is the header present?
25527 { echo "$as_me:$LINENO: checking presence" >&5
25528 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25529 cat >conftest.$ac_ext <<_ACEOF
25532 cat confdefs.h >>conftest.$ac_ext
25533 cat >>conftest.$ac_ext <<_ACEOF
25534 /* end confdefs.h. */
25537 if { (ac_try="$ac_cpp conftest.$ac_ext"
25538 case "(($ac_try" in
25539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25540 *) ac_try_echo=$ac_try;;
25542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25545 grep -v '^
*+' conftest.er1 >conftest.err
25547 cat conftest.err >&5
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); } >/dev/null && {
25550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25551 test ! -s conftest.err
25553 ac_header_preproc=yes
25555 echo "$as_me: failed program was:" >&5
25556 sed 's
/^
/|
/' conftest.$ac_ext >&5
25558 ac_header_preproc=no
25561 rm -f conftest.err conftest.$ac_ext
25562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25563 echo "${ECHO_T}$ac_header_preproc" >&6; }
25565 # So? What about this header?
25566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25568 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25569 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25570 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result
" >&5
25571 echo "$as_me: WARNING
: : proceeding with the compiler
's result" >&2;}
25572 ac_header_preproc=yes
25575 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25576 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25577 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25578 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25579 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25580 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25581 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25582 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25583 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result
" >&5
25584 echo "$as_me: WARNING
: : proceeding with the preprocessor
's result" >&2;}
25585 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25586 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25590 { echo "$as_me:$LINENO: checking for " >&5
25591 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25592 if test "${ac_cv_header_+set}" = set; then
25593 echo $ECHO_N "(cached) $ECHO_C" >&6
25595 ac_cv_header_=$ac_header_preproc
25597 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25598 echo "${ECHO_T}$ac_cv_header_" >&6; }
25601 if test $ac_cv_header_ = yes; then
25602 TERMCAP_HEADER_FOUND=1
25604 TERMCAP_HEADER_FOUND=0
25610 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
25611 if test ! -z "${TERMCAP_MANDATORY}" ;
25613 { echo "$as_me:$LINENO: ***" >&5
25614 echo "$as_me: ***" >&6;}
25615 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
25616 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
25617 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
25618 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
25619 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
25620 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
25629 cat >>confdefs.h <<_ACEOF
25630 #define HAVE_TERMCAP 1
25634 elif test ! -z "${TERMCAP_MANDATORY}";
25636 { echo "$as_me:$LINENO: ***" >&5
25637 echo "$as_me: ***" >&6;}
25638 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
25639 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
25640 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25641 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25642 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
25643 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
25650 if test "${USE_TINFO}" != "no"; then
25652 if test "x${TINFO_DIR}" != "x"; then
25653 if test -d ${TINFO_DIR}/lib; then
25654 pbxlibdir="-L${TINFO_DIR}/lib"
25656 pbxlibdir="-L${TINFO_DIR}"
25659 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
25660 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
25661 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25664 ac_check_lib_save_LIBS=$LIBS
25665 LIBS="-ltinfo ${pbxlibdir} $LIBS"
25666 cat >conftest.$ac_ext <<_ACEOF
25669 cat confdefs.h >>conftest.$ac_ext
25670 cat >>conftest.$ac_ext <<_ACEOF
25671 /* end confdefs.h. */
25673 /* Override any GCC internal prototype to avoid an error.
25674 Use char because int might match the return type of a GCC
25675 builtin and then its argument prototype would still apply. */
25688 rm -f conftest.$ac_objext conftest$ac_exeext
25689 if { (ac_try="$ac_link"
25690 case "(($ac_try" in
25691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25692 *) ac_try_echo=$ac_try;;
25694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25695 (eval "$ac_link") 2>conftest.er1
25697 grep -v '^
*+' conftest.er1 >conftest.err
25699 cat conftest.err >&5
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); } && {
25702 test -z "$ac_c_werror_flag" ||
25703 test ! -s conftest.err
25704 } && test -s conftest$ac_exeext &&
25705 $as_test_x conftest$ac_exeext; then
25706 ac_cv_lib_tinfo_tgetent=yes
25708 echo "$as_me: failed program was:" >&5
25709 sed 's
/^
/|
/' conftest.$ac_ext >&5
25711 ac_cv_lib_tinfo_tgetent=no
25714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25715 conftest$ac_exeext conftest.$ac_ext
25716 LIBS=$ac_check_lib_save_LIBS
25718 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
25719 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
25720 if test $ac_cv_lib_tinfo_tgetent = yes; then
25721 AST_TINFO_FOUND=yes
25727 if test "${AST_TINFO_FOUND}" = "yes"; then
25728 TINFO_LIB="-ltinfo "
25729 TINFO_HEADER_FOUND="1"
25730 if test "x${TINFO_DIR}" != "x"; then
25731 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
25732 TINFO_INCLUDE="-I${TINFO_DIR}/include"
25733 if test "x" != "x" ; then
25734 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
25735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25736 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
25737 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
25738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25739 echo $ECHO_N "(cached) $ECHO_C" >&6
25741 ac_res=`eval echo '${'$as_ac_Header'}'`
25742 { echo "$as_me:$LINENO: result: $ac_res" >&5
25743 echo "${ECHO_T}$ac_res" >&6; }
25745 # Is the header compilable?
25746 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
25747 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
25748 cat >conftest.$ac_ext <<_ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h. */
25754 $ac_includes_default
25755 #include <${TINFO_DIR}/include/>
25757 rm -f conftest.$ac_objext
25758 if { (ac_try="$ac_compile"
25759 case "(($ac_try" in
25760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761 *) ac_try_echo=$ac_try;;
25763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25764 (eval "$ac_compile") 2>conftest.er1
25766 grep -v '^
*+' conftest.er1 >conftest.err
25768 cat conftest.err >&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } && {
25771 test -z "$ac_c_werror_flag" ||
25772 test ! -s conftest.err
25773 } && test -s conftest.$ac_objext; then
25774 ac_header_compiler=yes
25776 echo "$as_me: failed program was:" >&5
25777 sed 's
/^
/|
/' conftest.$ac_ext >&5
25779 ac_header_compiler=no
25782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25784 echo "${ECHO_T}$ac_header_compiler" >&6; }
25786 # Is the header present?
25787 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
25788 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
25789 cat >conftest.$ac_ext <<_ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25795 #include <${TINFO_DIR}/include/>
25797 if { (ac_try="$ac_cpp conftest.$ac_ext"
25798 case "(($ac_try" in
25799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800 *) ac_try_echo=$ac_try;;
25802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25805 grep -v '^
*+' conftest.er1 >conftest.err
25807 cat conftest.err >&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } >/dev/null && {
25810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25811 test ! -s conftest.err
25813 ac_header_preproc=yes
25815 echo "$as_me: failed program was:" >&5
25816 sed 's
/^
/|
/' conftest.$ac_ext >&5
25818 ac_header_preproc=no
25821 rm -f conftest.err conftest.$ac_ext
25822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25823 echo "${ECHO_T}$ac_header_preproc" >&6; }
25825 # So? What about this header?
25826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25828 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
25829 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
25830 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result
" >&5
25831 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: proceeding with the compiler
's result" >&2;}
25832 ac_header_preproc=yes
25835 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
25836 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
25837 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
25838 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
25839 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
25840 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
25841 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
25842 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result
" >&5
25844 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: proceeding with the preprocessor
's result" >&2;}
25845 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
25846 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
25850 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
25851 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
25852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25853 echo $ECHO_N "(cached) $ECHO_C" >&6
25855 eval "$as_ac_Header=\$ac_header_preproc"
25857 ac_res=`eval echo '${'$as_ac_Header'}'`
25858 { echo "$as_me:$LINENO: result: $ac_res" >&5
25859 echo "${ECHO_T}$ac_res" >&6; }
25862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25863 TINFO_HEADER_FOUND=1
25865 TINFO_HEADER_FOUND=0
25871 if test "x" != "x" ; then
25872 if test "${ac_cv_header_+set}" = set; then
25873 { echo "$as_me:$LINENO: checking for " >&5
25874 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25875 if test "${ac_cv_header_+set}" = set; then
25876 echo $ECHO_N "(cached) $ECHO_C" >&6
25878 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25879 echo "${ECHO_T}$ac_cv_header_" >&6; }
25881 # Is the header compilable?
25882 { echo "$as_me:$LINENO: checking usability" >&5
25883 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25884 cat >conftest.$ac_ext <<_ACEOF
25887 cat confdefs.h >>conftest.$ac_ext
25888 cat >>conftest.$ac_ext <<_ACEOF
25889 /* end confdefs.h. */
25890 $ac_includes_default
25893 rm -f conftest.$ac_objext
25894 if { (ac_try="$ac_compile"
25895 case "(($ac_try" in
25896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25897 *) ac_try_echo=$ac_try;;
25899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25900 (eval "$ac_compile") 2>conftest.er1
25902 grep -v '^
*+' conftest.er1 >conftest.err
25904 cat conftest.err >&5
25905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906 (exit $ac_status); } && {
25907 test -z "$ac_c_werror_flag" ||
25908 test ! -s conftest.err
25909 } && test -s conftest.$ac_objext; then
25910 ac_header_compiler=yes
25912 echo "$as_me: failed program was:" >&5
25913 sed 's
/^
/|
/' conftest.$ac_ext >&5
25915 ac_header_compiler=no
25918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25920 echo "${ECHO_T}$ac_header_compiler" >&6; }
25922 # Is the header present?
25923 { echo "$as_me:$LINENO: checking presence" >&5
25924 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25925 cat >conftest.$ac_ext <<_ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25933 if { (ac_try="$ac_cpp conftest.$ac_ext"
25934 case "(($ac_try" in
25935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25936 *) ac_try_echo=$ac_try;;
25938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25941 grep -v '^
*+' conftest.er1 >conftest.err
25943 cat conftest.err >&5
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); } >/dev/null && {
25946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25947 test ! -s conftest.err
25949 ac_header_preproc=yes
25951 echo "$as_me: failed program was:" >&5
25952 sed 's
/^
/|
/' conftest.$ac_ext >&5
25954 ac_header_preproc=no
25957 rm -f conftest.err conftest.$ac_ext
25958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25959 echo "${ECHO_T}$ac_header_preproc" >&6; }
25961 # So? What about this header?
25962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25964 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25965 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25966 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result
" >&5
25967 echo "$as_me: WARNING
: : proceeding with the compiler
's result" >&2;}
25968 ac_header_preproc=yes
25971 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25972 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25973 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25974 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25975 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25976 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25977 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25978 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25979 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result
" >&5
25980 echo "$as_me: WARNING
: : proceeding with the preprocessor
's result" >&2;}
25981 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25982 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25986 { echo "$as_me:$LINENO: checking for " >&5
25987 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25988 if test "${ac_cv_header_+set}" = set; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 ac_cv_header_=$ac_header_preproc
25993 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25994 echo "${ECHO_T}$ac_cv_header_" >&6; }
25997 if test $ac_cv_header_ = yes; then
25998 TINFO_HEADER_FOUND=1
26000 TINFO_HEADER_FOUND=0
26006 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
26007 if test ! -z "${TINFO_MANDATORY}" ;
26009 { echo "$as_me:$LINENO: ***" >&5
26010 echo "$as_me: ***" >&6;}
26011 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
26012 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
26013 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
26014 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
26015 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
26016 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
26025 cat >>confdefs.h <<_ACEOF
26026 #define HAVE_TINFO 1
26030 elif test ! -z "${TINFO_MANDATORY}";
26032 { echo "$as_me:$LINENO: ***" >&5
26033 echo "$as_me: ***" >&6;}
26034 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
26035 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
26036 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26037 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26038 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
26039 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
26045 if test "${host_os}" != "linux-gnu" ; then
26046 tonezone_extra="-lm"
26050 if test "${USE_TONEZONE}" != "no"; then
26052 if test "x${TONEZONE_DIR}" != "x"; then
26053 if test -d ${TONEZONE_DIR}/lib; then
26054 pbxlibdir="-L${TONEZONE_DIR}/lib"
26056 pbxlibdir="-L${TONEZONE_DIR}"
26059 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
26060 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
26061 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
26062 echo $ECHO_N "(cached) $ECHO_C" >&6
26064 ac_check_lib_save_LIBS=$LIBS
26065 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
26066 cat >conftest.$ac_ext <<_ACEOF
26069 cat confdefs.h >>conftest.$ac_ext
26070 cat >>conftest.$ac_ext <<_ACEOF
26071 /* end confdefs.h. */
26073 /* Override any GCC internal prototype to avoid an error.
26074 Use char because int might match the return type of a GCC
26075 builtin and then its argument prototype would still apply. */
26079 char tone_zone_find ();
26083 return tone_zone_find ();
26088 rm -f conftest.$ac_objext conftest$ac_exeext
26089 if { (ac_try="$ac_link"
26090 case "(($ac_try" in
26091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092 *) ac_try_echo=$ac_try;;
26094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26095 (eval "$ac_link") 2>conftest.er1
26097 grep -v '^
*+' conftest.er1 >conftest.err
26099 cat conftest.err >&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); } && {
26102 test -z "$ac_c_werror_flag" ||
26103 test ! -s conftest.err
26104 } && test -s conftest$ac_exeext &&
26105 $as_test_x conftest$ac_exeext; then
26106 ac_cv_lib_tonezone_tone_zone_find=yes
26108 echo "$as_me: failed program was:" >&5
26109 sed 's
/^
/|
/' conftest.$ac_ext >&5
26111 ac_cv_lib_tonezone_tone_zone_find=no
26114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26115 conftest$ac_exeext conftest.$ac_ext
26116 LIBS=$ac_check_lib_save_LIBS
26118 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
26119 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
26120 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
26121 AST_TONEZONE_FOUND=yes
26123 AST_TONEZONE_FOUND=no
26127 if test "${AST_TONEZONE_FOUND}" = "yes"; then
26128 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
26129 TONEZONE_HEADER_FOUND="1"
26130 if test "x${TONEZONE_DIR}" != "x"; then
26131 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
26132 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
26133 if test "xzaptel/tonezone.h" != "x" ; then
26134 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
26135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26136 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
26137 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
26138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26139 echo $ECHO_N "(cached) $ECHO_C" >&6
26141 ac_res=`eval echo '${'$as_ac_Header'}'`
26142 { echo "$as_me:$LINENO: result: $ac_res" >&5
26143 echo "${ECHO_T}$ac_res" >&6; }
26145 # Is the header compilable?
26146 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
26147 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
26148 cat >conftest.$ac_ext <<_ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h. */
26154 $ac_includes_default
26155 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
26157 rm -f conftest.$ac_objext
26158 if { (ac_try="$ac_compile"
26159 case "(($ac_try" in
26160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26161 *) ac_try_echo=$ac_try;;
26163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26164 (eval "$ac_compile") 2>conftest.er1
26166 grep -v '^
*+' conftest.er1 >conftest.err
26168 cat conftest.err >&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } && {
26171 test -z "$ac_c_werror_flag" ||
26172 test ! -s conftest.err
26173 } && test -s conftest.$ac_objext; then
26174 ac_header_compiler=yes
26176 echo "$as_me: failed program was:" >&5
26177 sed 's
/^
/|
/' conftest.$ac_ext >&5
26179 ac_header_compiler=no
26182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26184 echo "${ECHO_T}$ac_header_compiler" >&6; }
26186 # Is the header present?
26187 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
26188 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
26189 cat >conftest.$ac_ext <<_ACEOF
26192 cat confdefs.h >>conftest.$ac_ext
26193 cat >>conftest.$ac_ext <<_ACEOF
26194 /* end confdefs.h. */
26195 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
26197 if { (ac_try="$ac_cpp conftest.$ac_ext"
26198 case "(($ac_try" in
26199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26200 *) ac_try_echo=$ac_try;;
26202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26205 grep -v '^
*+' conftest.er1 >conftest.err
26207 cat conftest.err >&5
26208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26209 (exit $ac_status); } >/dev/null && {
26210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26211 test ! -s conftest.err
26213 ac_header_preproc=yes
26215 echo "$as_me: failed program was:" >&5
26216 sed 's
/^
/|
/' conftest.$ac_ext >&5
26218 ac_header_preproc=no
26221 rm -f conftest.err conftest.$ac_ext
26222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26223 echo "${ECHO_T}$ac_header_preproc" >&6; }
26225 # So? What about this header?
26226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26228 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
26229 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26230 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result
" >&5
26231 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: proceeding with the compiler
's result" >&2;}
26232 ac_header_preproc=yes
26235 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
26236 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
26237 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
26238 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
26239 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
26240 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
26241 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
26242 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
26243 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result
" >&5
26244 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: proceeding with the preprocessor
's result" >&2;}
26245 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
26246 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
26250 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
26251 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
26252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26253 echo $ECHO_N "(cached) $ECHO_C" >&6
26255 eval "$as_ac_Header=\$ac_header_preproc"
26257 ac_res=`eval echo '${'$as_ac_Header'}'`
26258 { echo "$as_me:$LINENO: result: $ac_res" >&5
26259 echo "${ECHO_T}$ac_res" >&6; }
26262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26263 TONEZONE_HEADER_FOUND=1
26265 TONEZONE_HEADER_FOUND=0
26271 if test "xzaptel/tonezone.h" != "x" ; then
26272 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
26273 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
26274 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
26275 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
26276 echo $ECHO_N "(cached) $ECHO_C" >&6
26278 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
26279 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
26281 # Is the header compilable?
26282 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
26283 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
26284 cat >conftest.$ac_ext <<_ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h. */
26290 $ac_includes_default
26291 #include <zaptel/tonezone.h>
26293 rm -f conftest.$ac_objext
26294 if { (ac_try="$ac_compile"
26295 case "(($ac_try" in
26296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26297 *) ac_try_echo=$ac_try;;
26299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26300 (eval "$ac_compile") 2>conftest.er1
26302 grep -v '^
*+' conftest.er1 >conftest.err
26304 cat conftest.err >&5
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } && {
26307 test -z "$ac_c_werror_flag" ||
26308 test ! -s conftest.err
26309 } && test -s conftest.$ac_objext; then
26310 ac_header_compiler=yes
26312 echo "$as_me: failed program was:" >&5
26313 sed 's
/^
/|
/' conftest.$ac_ext >&5
26315 ac_header_compiler=no
26318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26320 echo "${ECHO_T}$ac_header_compiler" >&6; }
26322 # Is the header present?
26323 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
26324 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
26325 cat >conftest.$ac_ext <<_ACEOF
26328 cat confdefs.h >>conftest.$ac_ext
26329 cat >>conftest.$ac_ext <<_ACEOF
26330 /* end confdefs.h. */
26331 #include <zaptel/tonezone.h>
26333 if { (ac_try="$ac_cpp conftest.$ac_ext"
26334 case "(($ac_try" in
26335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336 *) ac_try_echo=$ac_try;;
26338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26341 grep -v '^
*+' conftest.er1 >conftest.err
26343 cat conftest.err >&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } >/dev/null && {
26346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26347 test ! -s conftest.err
26349 ac_header_preproc=yes
26351 echo "$as_me: failed program was:" >&5
26352 sed 's
/^
/|
/' conftest.$ac_ext >&5
26354 ac_header_preproc=no
26357 rm -f conftest.err conftest.$ac_ext
26358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26359 echo "${ECHO_T}$ac_header_preproc" >&6; }
26361 # So? What about this header?
26362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26364 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
26365 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result
" >&5
26367 echo "$as_me: WARNING
: zaptel
/tonezone.h
: proceeding with the compiler
's result" >&2;}
26368 ac_header_preproc=yes
26371 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
26372 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
26374 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
26376 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
26377 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
26378 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
26379 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result
" >&5
26380 echo "$as_me: WARNING
: zaptel
/tonezone.h
: proceeding with the preprocessor
's result" >&2;}
26381 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
26382 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
26386 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
26387 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
26388 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26391 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
26393 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
26394 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
26397 if test $ac_cv_header_zaptel_tonezone_h = yes; then
26398 TONEZONE_HEADER_FOUND=1
26400 TONEZONE_HEADER_FOUND=0
26406 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
26407 if test ! -z "${TONEZONE_MANDATORY}" ;
26409 { echo "$as_me:$LINENO: ***" >&5
26410 echo "$as_me: ***" >&6;}
26411 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
26412 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
26413 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
26414 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
26415 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
26416 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
26420 TONEZONE_INCLUDE=""
26425 cat >>confdefs.h <<_ACEOF
26426 #define HAVE_TONEZONE 1
26430 elif test ! -z "${TONEZONE_MANDATORY}";
26432 { echo "$as_me:$LINENO: ***" >&5
26433 echo "$as_me: ***" >&6;}
26434 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
26435 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
26436 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26437 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26438 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
26439 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
26446 if test "${USE_VORBIS}" != "no"; then
26448 if test "x${VORBIS_DIR}" != "x"; then
26449 if test -d ${VORBIS_DIR}/lib; then
26450 pbxlibdir="-L${VORBIS_DIR}/lib"
26452 pbxlibdir="-L${VORBIS_DIR}"
26455 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
26456 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
26457 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
26458 echo $ECHO_N "(cached) $ECHO_C" >&6
26460 ac_check_lib_save_LIBS=$LIBS
26461 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
26462 cat >conftest.$ac_ext <<_ACEOF
26465 cat confdefs.h >>conftest.$ac_ext
26466 cat >>conftest.$ac_ext <<_ACEOF
26467 /* end confdefs.h. */
26469 /* Override any GCC internal prototype to avoid an error.
26470 Use char because int might match the return type of a GCC
26471 builtin and then its argument prototype would still apply. */
26475 char vorbis_info_init ();
26479 return vorbis_info_init ();
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (ac_try="$ac_link"
26486 case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_link") 2>conftest.er1
26493 grep -v '^
*+' conftest.er1 >conftest.err
26495 cat conftest.err >&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); } && {
26498 test -z "$ac_c_werror_flag" ||
26499 test ! -s conftest.err
26500 } && test -s conftest$ac_exeext &&
26501 $as_test_x conftest$ac_exeext; then
26502 ac_cv_lib_vorbis_vorbis_info_init=yes
26504 echo "$as_me: failed program was:" >&5
26505 sed 's
/^
/|
/' conftest.$ac_ext >&5
26507 ac_cv_lib_vorbis_vorbis_info_init=no
26510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26511 conftest$ac_exeext conftest.$ac_ext
26512 LIBS=$ac_check_lib_save_LIBS
26514 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
26515 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
26516 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
26517 AST_VORBIS_FOUND=yes
26519 AST_VORBIS_FOUND=no
26523 if test "${AST_VORBIS_FOUND}" = "yes"; then
26524 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
26525 VORBIS_HEADER_FOUND="1"
26526 if test "x${VORBIS_DIR}" != "x"; then
26527 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
26528 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
26529 if test "xvorbis/codec.h" != "x" ; then
26530 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
26531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26532 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
26533 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
26534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26537 ac_res=`eval echo '${'$as_ac_Header'}'`
26538 { echo "$as_me:$LINENO: result: $ac_res" >&5
26539 echo "${ECHO_T}$ac_res" >&6; }
26541 # Is the header compilable?
26542 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
26543 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $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. */
26550 $ac_includes_default
26551 #include <${VORBIS_DIR}/include/vorbis/codec.h>
26553 rm -f conftest.$ac_objext
26554 if { (ac_try="$ac_compile"
26555 case "(($ac_try" in
26556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26557 *) ac_try_echo=$ac_try;;
26559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26560 (eval "$ac_compile") 2>conftest.er1
26562 grep -v '^
*+' conftest.er1 >conftest.err
26564 cat conftest.err >&5
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); } && {
26567 test -z "$ac_c_werror_flag" ||
26568 test ! -s conftest.err
26569 } && test -s conftest.$ac_objext; then
26570 ac_header_compiler=yes
26572 echo "$as_me: failed program was:" >&5
26573 sed 's
/^
/|
/' conftest.$ac_ext >&5
26575 ac_header_compiler=no
26578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26580 echo "${ECHO_T}$ac_header_compiler" >&6; }
26582 # Is the header present?
26583 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
26584 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
26585 cat >conftest.$ac_ext <<_ACEOF
26588 cat confdefs.h >>conftest.$ac_ext
26589 cat >>conftest.$ac_ext <<_ACEOF
26590 /* end confdefs.h. */
26591 #include <${VORBIS_DIR}/include/vorbis/codec.h>
26593 if { (ac_try="$ac_cpp conftest.$ac_ext"
26594 case "(($ac_try" in
26595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26596 *) ac_try_echo=$ac_try;;
26598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26601 grep -v '^
*+' conftest.er1 >conftest.err
26603 cat conftest.err >&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } >/dev/null && {
26606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26607 test ! -s conftest.err
26609 ac_header_preproc=yes
26611 echo "$as_me: failed program was:" >&5
26612 sed 's
/^
/|
/' conftest.$ac_ext >&5
26614 ac_header_preproc=no
26617 rm -f conftest.err conftest.$ac_ext
26618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26619 echo "${ECHO_T}$ac_header_preproc" >&6; }
26621 # So? What about this header?
26622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26624 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
26625 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26626 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result
" >&5
26627 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: proceeding with the compiler
's result" >&2;}
26628 ac_header_preproc=yes
26631 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
26632 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
26633 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
26634 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
26635 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
26636 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
26637 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
26638 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
26639 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result
" >&5
26640 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: proceeding with the preprocessor
's result" >&2;}
26641 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
26642 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
26646 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
26647 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
26648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26649 echo $ECHO_N "(cached) $ECHO_C" >&6
26651 eval "$as_ac_Header=\$ac_header_preproc"
26653 ac_res=`eval echo '${'$as_ac_Header'}'`
26654 { echo "$as_me:$LINENO: result: $ac_res" >&5
26655 echo "${ECHO_T}$ac_res" >&6; }
26658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26659 VORBIS_HEADER_FOUND=1
26661 VORBIS_HEADER_FOUND=0
26667 if test "xvorbis/codec.h" != "x" ; then
26668 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26669 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
26670 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
26671 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26672 echo $ECHO_N "(cached) $ECHO_C" >&6
26674 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
26675 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
26677 # Is the header compilable?
26678 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
26679 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
26680 cat >conftest.$ac_ext <<_ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h. */
26686 $ac_includes_default
26687 #include <vorbis/codec.h>
26689 rm -f conftest.$ac_objext
26690 if { (ac_try="$ac_compile"
26691 case "(($ac_try" in
26692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693 *) ac_try_echo=$ac_try;;
26695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26696 (eval "$ac_compile") 2>conftest.er1
26698 grep -v '^
*+' conftest.er1 >conftest.err
26700 cat conftest.err >&5
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); } && {
26703 test -z "$ac_c_werror_flag" ||
26704 test ! -s conftest.err
26705 } && test -s conftest.$ac_objext; then
26706 ac_header_compiler=yes
26708 echo "$as_me: failed program was:" >&5
26709 sed 's
/^
/|
/' conftest.$ac_ext >&5
26711 ac_header_compiler=no
26714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26716 echo "${ECHO_T}$ac_header_compiler" >&6; }
26718 # Is the header present?
26719 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
26720 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
26721 cat >conftest.$ac_ext <<_ACEOF
26724 cat confdefs.h >>conftest.$ac_ext
26725 cat >>conftest.$ac_ext <<_ACEOF
26726 /* end confdefs.h. */
26727 #include <vorbis/codec.h>
26729 if { (ac_try="$ac_cpp conftest.$ac_ext"
26730 case "(($ac_try" in
26731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26732 *) ac_try_echo=$ac_try;;
26734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26737 grep -v '^
*+' conftest.er1 >conftest.err
26739 cat conftest.err >&5
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } >/dev/null && {
26742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26743 test ! -s conftest.err
26745 ac_header_preproc=yes
26747 echo "$as_me: failed program was:" >&5
26748 sed 's
/^
/|
/' conftest.$ac_ext >&5
26750 ac_header_preproc=no
26753 rm -f conftest.err conftest.$ac_ext
26754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26755 echo "${ECHO_T}$ac_header_preproc" >&6; }
26757 # So? What about this header?
26758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26760 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
26761 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26762 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result
" >&5
26763 echo "$as_me: WARNING
: vorbis
/codec.h
: proceeding with the compiler
's result" >&2;}
26764 ac_header_preproc=yes
26767 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
26768 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
26769 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
26770 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
26771 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
26772 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
26773 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
26774 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
26775 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result
" >&5
26776 echo "$as_me: WARNING
: vorbis
/codec.h
: proceeding with the preprocessor
's result" >&2;}
26777 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
26778 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
26782 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
26783 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
26784 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26785 echo $ECHO_N "(cached) $ECHO_C" >&6
26787 ac_cv_header_vorbis_codec_h=$ac_header_preproc
26789 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
26790 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
26793 if test $ac_cv_header_vorbis_codec_h = yes; then
26794 VORBIS_HEADER_FOUND=1
26796 VORBIS_HEADER_FOUND=0
26802 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
26803 if test ! -z "${VORBIS_MANDATORY}" ;
26805 { echo "$as_me:$LINENO: ***" >&5
26806 echo "$as_me: ***" >&6;}
26807 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
26808 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
26809 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
26810 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
26811 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
26812 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
26821 cat >>confdefs.h <<_ACEOF
26822 #define HAVE_VORBIS 1
26826 elif test ! -z "${VORBIS_MANDATORY}";
26828 { echo "$as_me:$LINENO: ***" >&5
26829 echo "$as_me: ***" >&6;}
26830 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
26831 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
26832 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26833 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26834 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
26835 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
26842 ac_cpp='$CXXCPP $CPPFLAGS'
26843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
26844 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
26845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26848 if test "${USE_VPB}" != "no"; then
26849 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
26850 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
26851 saved_libs="${LIBS}"
26852 saved_cppflags="${CPPFLAGS}"
26853 if test "x${VPB_DIR}" != "x"; then
26854 if test -d ${VPB_DIR}/lib; then
26855 vpblibdir=${VPB_DIR}/lib
26857 vpblibdir=${VPB_DIR}
26859 LIBS="${LIBS} -L${vpblibdir}"
26860 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
26862 LIBS="${LIBS} -lvpb -lpthread"
26863 cat >conftest.$ac_ext <<_ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h. */
26870 #include <vpbapi.h>
26874 int q = vpb_open(0,0);
26880 rm -f conftest.$ac_objext conftest$ac_exeext
26881 if { (ac_try="$ac_link"
26882 case "(($ac_try" in
26883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26884 *) ac_try_echo=$ac_try;;
26886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26887 (eval "$ac_link") 2>conftest.er1
26889 grep -v '^
*+' conftest.er1 >conftest.err
26891 cat conftest.err >&5
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); } && {
26894 test -z "$ac_cxx_werror_flag" ||
26895 test ! -s conftest.err
26896 } && test -s conftest$ac_exeext &&
26897 $as_test_x conftest$ac_exeext; then
26898 { echo "$as_me:$LINENO: result: yes" >&5
26899 echo "${ECHO_T}yes" >&6; }
26900 ac_cv_lib_vpb_vpb_open="yes"
26903 echo "$as_me: failed program was:" >&5
26904 sed 's
/^
/|
/' conftest.$ac_ext >&5
26906 { echo "$as_me:$LINENO: result: no" >&5
26907 echo "${ECHO_T}no" >&6; }
26908 ac_cv_lib_vpb_vpb_open="no"
26913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26914 conftest$ac_exeext conftest.$ac_ext
26915 LIBS="${saved_libs}"
26916 CPPFLAGS="${saved_cppflags}"
26917 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
26919 if test "${VPB_DIR}" != ""; then
26920 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
26921 VPB_INCLUDE="-I${VPB_DIR}/include"
26925 cat >>confdefs.h <<\_ACEOF
26929 elif test ! -z "${VPB_MANDATORY}"; then
26930 { echo "$as_me:$LINENO: ***" >&5
26931 echo "$as_me: ***" >&6;}
26932 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
26933 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
26934 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26935 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26936 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
26937 echo "$as_me: *** including --without-vpb." >&6;}
26943 ac_cpp='$CPP $CPPFLAGS'
26944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
26945 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
26946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26950 if test "${USE_ZLIB}" != "no"; then
26952 if test "x${ZLIB_DIR}" != "x"; then
26953 if test -d ${ZLIB_DIR}/lib; then
26954 pbxlibdir="-L${ZLIB_DIR}/lib"
26956 pbxlibdir="-L${ZLIB_DIR}"
26959 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
26960 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
26961 if test "${ac_cv_lib_z_compress+set}" = set; then
26962 echo $ECHO_N "(cached) $ECHO_C" >&6
26964 ac_check_lib_save_LIBS=$LIBS
26965 LIBS="-lz ${pbxlibdir} $LIBS"
26966 cat >conftest.$ac_ext <<_ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h. */
26973 /* Override any GCC internal prototype to avoid an error.
26974 Use char because int might match the return type of a GCC
26975 builtin and then its argument prototype would still apply. */
26983 return compress ();
26988 rm -f conftest.$ac_objext conftest$ac_exeext
26989 if { (ac_try="$ac_link"
26990 case "(($ac_try" in
26991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992 *) ac_try_echo=$ac_try;;
26994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26995 (eval "$ac_link") 2>conftest.er1
26997 grep -v '^
*+' conftest.er1 >conftest.err
26999 cat conftest.err >&5
27000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 (exit $ac_status); } && {
27002 test -z "$ac_c_werror_flag" ||
27003 test ! -s conftest.err
27004 } && test -s conftest$ac_exeext &&
27005 $as_test_x conftest$ac_exeext; then
27006 ac_cv_lib_z_compress=yes
27008 echo "$as_me: failed program was:" >&5
27009 sed 's
/^
/|
/' conftest.$ac_ext >&5
27011 ac_cv_lib_z_compress=no
27014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27015 conftest$ac_exeext conftest.$ac_ext
27016 LIBS=$ac_check_lib_save_LIBS
27018 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
27019 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
27020 if test $ac_cv_lib_z_compress = yes; then
27027 if test "${AST_ZLIB_FOUND}" = "yes"; then
27029 ZLIB_HEADER_FOUND="1"
27030 if test "x${ZLIB_DIR}" != "x"; then
27031 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
27032 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
27033 if test "xzlib.h" != "x" ; then
27034 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
27035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27036 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
27037 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
27038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27039 echo $ECHO_N "(cached) $ECHO_C" >&6
27041 ac_res=`eval echo '${'$as_ac_Header'}'`
27042 { echo "$as_me:$LINENO: result: $ac_res" >&5
27043 echo "${ECHO_T}$ac_res" >&6; }
27045 # Is the header compilable?
27046 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
27047 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
27048 cat >conftest.$ac_ext <<_ACEOF
27051 cat confdefs.h >>conftest.$ac_ext
27052 cat >>conftest.$ac_ext <<_ACEOF
27053 /* end confdefs.h. */
27054 $ac_includes_default
27055 #include <${ZLIB_DIR}/include/zlib.h>
27057 rm -f conftest.$ac_objext
27058 if { (ac_try="$ac_compile"
27059 case "(($ac_try" in
27060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27061 *) ac_try_echo=$ac_try;;
27063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27064 (eval "$ac_compile") 2>conftest.er1
27066 grep -v '^
*+' conftest.er1 >conftest.err
27068 cat conftest.err >&5
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); } && {
27071 test -z "$ac_c_werror_flag" ||
27072 test ! -s conftest.err
27073 } && test -s conftest.$ac_objext; then
27074 ac_header_compiler=yes
27076 echo "$as_me: failed program was:" >&5
27077 sed 's
/^
/|
/' conftest.$ac_ext >&5
27079 ac_header_compiler=no
27082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27084 echo "${ECHO_T}$ac_header_compiler" >&6; }
27086 # Is the header present?
27087 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
27088 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
27089 cat >conftest.$ac_ext <<_ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h. */
27095 #include <${ZLIB_DIR}/include/zlib.h>
27097 if { (ac_try="$ac_cpp conftest.$ac_ext"
27098 case "(($ac_try" in
27099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27100 *) ac_try_echo=$ac_try;;
27102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27105 grep -v '^
*+' conftest.er1 >conftest.err
27107 cat conftest.err >&5
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); } >/dev/null && {
27110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27111 test ! -s conftest.err
27113 ac_header_preproc=yes
27115 echo "$as_me: failed program was:" >&5
27116 sed 's
/^
/|
/' conftest.$ac_ext >&5
27118 ac_header_preproc=no
27121 rm -f conftest.err conftest.$ac_ext
27122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27123 echo "${ECHO_T}$ac_header_preproc" >&6; }
27125 # So? What about this header?
27126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27128 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27129 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27130 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result
" >&5
27131 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: proceeding with the compiler
's result" >&2;}
27132 ac_header_preproc=yes
27135 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
27136 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
27137 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
27138 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
27139 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
27140 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
27141 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
27142 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27143 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result
" >&5
27144 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: proceeding with the preprocessor
's result" >&2;}
27145 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
27146 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
27150 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
27151 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
27152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27153 echo $ECHO_N "(cached) $ECHO_C" >&6
27155 eval "$as_ac_Header=\$ac_header_preproc"
27157 ac_res=`eval echo '${'$as_ac_Header'}'`
27158 { echo "$as_me:$LINENO: result: $ac_res" >&5
27159 echo "${ECHO_T}$ac_res" >&6; }
27162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27163 ZLIB_HEADER_FOUND=1
27165 ZLIB_HEADER_FOUND=0
27171 if test "xzlib.h" != "x" ; then
27172 if test "${ac_cv_header_zlib_h+set}" = set; then
27173 { echo "$as_me:$LINENO: checking for zlib.h" >&5
27174 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27175 if test "${ac_cv_header_zlib_h+set}" = set; then
27176 echo $ECHO_N "(cached) $ECHO_C" >&6
27178 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27179 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27181 # Is the header compilable?
27182 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
27183 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
27184 cat >conftest.$ac_ext <<_ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h. */
27190 $ac_includes_default
27193 rm -f conftest.$ac_objext
27194 if { (ac_try="$ac_compile"
27195 case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_compile") 2>conftest.er1
27202 grep -v '^
*+' conftest.er1 >conftest.err
27204 cat conftest.err >&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); } && {
27207 test -z "$ac_c_werror_flag" ||
27208 test ! -s conftest.err
27209 } && test -s conftest.$ac_objext; then
27210 ac_header_compiler=yes
27212 echo "$as_me: failed program was:" >&5
27213 sed 's
/^
/|
/' conftest.$ac_ext >&5
27215 ac_header_compiler=no
27218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27220 echo "${ECHO_T}$ac_header_compiler" >&6; }
27222 # Is the header present?
27223 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
27224 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
27225 cat >conftest.$ac_ext <<_ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h. */
27233 if { (ac_try="$ac_cpp conftest.$ac_ext"
27234 case "(($ac_try" in
27235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236 *) ac_try_echo=$ac_try;;
27238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27241 grep -v '^
*+' conftest.er1 >conftest.err
27243 cat conftest.err >&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } >/dev/null && {
27246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27247 test ! -s conftest.err
27249 ac_header_preproc=yes
27251 echo "$as_me: failed program was:" >&5
27252 sed 's
/^
/|
/' conftest.$ac_ext >&5
27254 ac_header_preproc=no
27257 rm -f conftest.err conftest.$ac_ext
27258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27259 echo "${ECHO_T}$ac_header_preproc" >&6; }
27261 # So? What about this header?
27262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27264 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27265 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27266 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
27267 echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
27268 ac_header_preproc=yes
27271 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
27272 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
27273 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
27274 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
27275 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
27276 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
27277 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
27278 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27279 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
27280 echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
27281 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
27282 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
27286 { echo "$as_me:$LINENO: checking for zlib.h" >&5
27287 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27288 if test "${ac_cv_header_zlib_h+set}" = set; then
27289 echo $ECHO_N "(cached) $ECHO_C" >&6
27291 ac_cv_header_zlib_h=$ac_header_preproc
27293 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27294 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27297 if test $ac_cv_header_zlib_h = yes; then
27298 ZLIB_HEADER_FOUND=1
27300 ZLIB_HEADER_FOUND=0
27306 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
27307 if test ! -z "${ZLIB_MANDATORY}" ;
27309 { echo "$as_me:$LINENO: ***" >&5
27310 echo "$as_me: ***" >&6;}
27311 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
27312 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
27313 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
27314 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
27315 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
27316 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
27325 cat >>confdefs.h <<_ACEOF
27326 #define HAVE_ZLIB 1
27330 elif test ! -z "${ZLIB_MANDATORY}";
27332 { echo "$as_me:$LINENO: ***" >&5
27333 echo "$as_me: ***" >&6;}
27334 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
27335 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
27336 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27337 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27338 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
27339 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
27345 if test "${USE_ZAPTEL}" != "no"; then
27346 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel.h" >&5
27347 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel.h... $ECHO_C" >&6; }
27348 saved_cppflags="${CPPFLAGS}"
27349 if test "x${ZAPTEL_DIR}" != "x"; then
27350 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
27352 cat >conftest.$ac_ext <<_ACEOF
27356 cat confdefs.h >>conftest.$ac_ext
27357 cat >>conftest.$ac_ext <<_ACEOF
27358 /* end confdefs.h. */
27359 #include <zaptel/zaptel.h>
27363 int foo = ZT_TONE_DTMF_BASE;
27369 rm -f conftest.$ac_objext
27370 if { (ac_try="$ac_compile"
27371 case "(($ac_try" in
27372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373 *) ac_try_echo=$ac_try;;
27375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376 (eval "$ac_compile") 2>conftest.er1
27378 grep -v '^
*+' conftest.er1 >conftest.err
27380 cat conftest.err >&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); } && {
27383 test -z "$ac_c_werror_flag" ||
27384 test ! -s conftest.err
27385 } && test -s conftest.$ac_objext; then
27386 { echo "$as_me:$LINENO: result: yes" >&5
27387 echo "${ECHO_T}yes" >&6; }
27388 ac_cv_zaptel_h="yes"
27391 echo "$as_me: failed program was:" >&5
27392 sed 's
/^
/|
/' conftest.$ac_ext >&5
27394 { echo "$as_me:$LINENO: result: no" >&5
27395 echo "${ECHO_T}no" >&6; }
27396 ac_cv_zaptel_h="no"
27401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27402 CPPFLAGS="${saved_cppflags}"
27403 if test "${ac_cv_zaptel_h}" = "yes"; then
27404 if test "${ZAPTEL_DIR}" != ""; then
27405 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
27409 cat >>confdefs.h <<\_ACEOF
27410 #define HAVE_ZAPTEL 1
27413 elif test ! -z "${ZAPTEL_MANDATORY}";
27415 { echo "$as_me:$LINENO: ***" >&5
27416 echo "$as_me: ***" >&6;}
27417 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
27418 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
27419 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27420 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27421 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
27422 echo "$as_me: *** including --without-zaptel." >&6;}
27427 if test "${USE_ZAPTEL}" != "no"; then
27428 if test "${PBX_ZAPTEL}" != "1"; then
27429 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel.h" >&5
27430 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel.h... $ECHO_C" >&6; }
27431 saved_cppflags="${CPPFLAGS}"
27432 if test "x${ZAPTEL_DIR}" != "x"; then
27433 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
27435 cat >conftest.$ac_ext <<_ACEOF
27439 cat confdefs.h >>conftest.$ac_ext
27440 cat >>conftest.$ac_ext <<_ACEOF
27441 /* end confdefs.h. */
27442 #include <zaptel.h>
27446 int foo = ZT_DIAL_OP_CANCEL;
27452 rm -f conftest.$ac_objext
27453 if { (ac_try="$ac_compile"
27454 case "(($ac_try" in
27455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27456 *) ac_try_echo=$ac_try;;
27458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27459 (eval "$ac_compile") 2>conftest.er1
27461 grep -v '^
*+' conftest.er1 >conftest.err
27463 cat conftest.err >&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } && {
27466 test -z "$ac_c_werror_flag" ||
27467 test ! -s conftest.err
27468 } && test -s conftest.$ac_objext; then
27469 { echo "$as_me:$LINENO: result: yes" >&5
27470 echo "${ECHO_T}yes" >&6; }
27471 ac_cv_zaptel_h="yes"
27474 echo "$as_me: failed program was:" >&5
27475 sed 's
/^
/|
/' conftest.$ac_ext >&5
27477 { echo "$as_me:$LINENO: result: no" >&5
27478 echo "${ECHO_T}no" >&6; }
27479 ac_cv_zaptel_h="no"
27484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27485 CPPFLAGS="${saved_cppflags}"
27486 if test "${ac_cv_zaptel_h}" = "yes"; then
27487 { echo "$as_me:$LINENO: ***" >&5
27488 echo "$as_me: ***" >&6;}
27489 { echo "$as_me:$LINENO: *** The Zaptel installation on this system is too old" >&5
27490 echo "$as_me: *** The Zaptel installation on this system is too old" >&6;}
27491 { echo "$as_me:$LINENO: *** to be useable with this version of Asterisk." >&5
27492 echo "$as_me: *** to be useable with this version of Asterisk." >&6;}
27493 { echo "$as_me:$LINENO: *** Either upgrade your Zaptel installation, or run configure" >&5
27494 echo "$as_me: *** Either upgrade your Zaptel installation, or run configure" >&6;}
27495 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
27496 echo "$as_me: *** including --without-zaptel." >&6;}
27503 if test "x$TERMCAP_LIB" != "x" ; then
27504 EDITLINE_LIB="$TERMCAP_LIB"
27505 elif test "x$TINFO_LIB" != "x" ; then
27506 EDITLINE_LIB="$TINFO_LIB"
27507 elif test "x$CURSES_LIB" != "x" ; then
27508 EDITLINE_LIB="$CURSES_LIB"
27509 elif test "x$NCURSES_LIB" != "x" ; then
27510 EDITLINE_LIB="$NCURSES_LIB"
27512 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
27513 echo "$as_me: error: *** termcap support not found" >&2;}
27514 { (exit 1); exit 1; }; }
27518 if test "${ac_cv_header_h323_h+set}" = set; then
27519 { echo "$as_me:$LINENO: checking for h323.h" >&5
27520 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
27521 if test "${ac_cv_header_h323_h+set}" = set; then
27522 echo $ECHO_N "(cached) $ECHO_C" >&6
27524 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
27525 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
27527 # Is the header compilable?
27528 { echo "$as_me:$LINENO: checking h323.h usability" >&5
27529 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
27530 cat >conftest.$ac_ext <<_ACEOF
27533 cat confdefs.h >>conftest.$ac_ext
27534 cat >>conftest.$ac_ext <<_ACEOF
27535 /* end confdefs.h. */
27536 $ac_includes_default
27539 rm -f conftest.$ac_objext
27540 if { (ac_try="$ac_compile"
27541 case "(($ac_try" in
27542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543 *) ac_try_echo=$ac_try;;
27545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546 (eval "$ac_compile") 2>conftest.er1
27548 grep -v '^
*+' conftest.er1 >conftest.err
27550 cat conftest.err >&5
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); } && {
27553 test -z "$ac_c_werror_flag" ||
27554 test ! -s conftest.err
27555 } && test -s conftest.$ac_objext; then
27556 ac_header_compiler=yes
27558 echo "$as_me: failed program was:" >&5
27559 sed 's
/^
/|
/' conftest.$ac_ext >&5
27561 ac_header_compiler=no
27564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27566 echo "${ECHO_T}$ac_header_compiler" >&6; }
27568 # Is the header present?
27569 { echo "$as_me:$LINENO: checking h323.h presence" >&5
27570 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
27571 cat >conftest.$ac_ext <<_ACEOF
27574 cat confdefs.h >>conftest.$ac_ext
27575 cat >>conftest.$ac_ext <<_ACEOF
27576 /* end confdefs.h. */
27579 if { (ac_try="$ac_cpp conftest.$ac_ext"
27580 case "(($ac_try" in
27581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582 *) ac_try_echo=$ac_try;;
27584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27587 grep -v '^
*+' conftest.er1 >conftest.err
27589 cat conftest.err >&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); } >/dev/null && {
27592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27593 test ! -s conftest.err
27595 ac_header_preproc=yes
27597 echo "$as_me: failed program was:" >&5
27598 sed 's
/^
/|
/' conftest.$ac_ext >&5
27600 ac_header_preproc=no
27603 rm -f conftest.err conftest.$ac_ext
27604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27605 echo "${ECHO_T}$ac_header_preproc" >&6; }
27607 # So? What about this header?
27608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27610 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27611 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27612 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result
" >&5
27613 echo "$as_me: WARNING
: h323.h
: proceeding with the compiler
's result" >&2;}
27614 ac_header_preproc=yes
27617 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
27618 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
27619 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
27620 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
27621 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
27622 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
27623 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
27624 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27625 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result
" >&5
27626 echo "$as_me: WARNING
: h323.h
: proceeding with the preprocessor
's result" >&2;}
27627 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
27628 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
27632 { echo "$as_me:$LINENO: checking for h323.h" >&5
27633 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
27634 if test "${ac_cv_header_h323_h+set}" = set; then
27635 echo $ECHO_N "(cached) $ECHO_C" >&6
27637 ac_cv_header_h323_h=$ac_header_preproc
27639 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
27640 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
27643 if test $ac_cv_header_h323_h = yes; then
27652 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
27653 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
27654 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
27655 echo $ECHO_N "(cached) $ECHO_C" >&6
27657 cat >conftest.$ac_ext <<_ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h. */
27664 #include <linux/version.h>
27665 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
27666 #include <linux/compiler.h>
27670 #include <linux/ixjuser.h>
27672 rm -f conftest.$ac_objext
27673 if { (ac_try="$ac_compile"
27674 case "(($ac_try" in
27675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676 *) ac_try_echo=$ac_try;;
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679 (eval "$ac_compile") 2>conftest.er1
27681 grep -v '^
*+' conftest.er1 >conftest.err
27683 cat conftest.err >&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); } && {
27686 test -z "$ac_c_werror_flag" ||
27687 test ! -s conftest.err
27688 } && test -s conftest.$ac_objext; then
27689 ac_cv_header_linux_ixjuser_h=yes
27691 echo "$as_me: failed program was:" >&5
27692 sed 's
/^
/|
/' conftest.$ac_ext >&5
27694 ac_cv_header_linux_ixjuser_h=no
27697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27699 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
27700 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
27701 if test $ac_cv_header_linux_ixjuser_h = yes; then
27711 if test -n "$ac_tool_prefix"; then
27712 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
27713 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
27714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27716 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
27717 echo $ECHO_N "(cached) $ECHO_C" >&6
27719 if test -n "$GTKCONFIG"; then
27720 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
27722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27723 for as_dir in $PATH
27726 test -z "$as_dir" && as_dir=.
27727 for ac_exec_ext in '' $ac_executable_extensions; do
27728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27729 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
27730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27739 GTKCONFIG=$ac_cv_prog_GTKCONFIG
27740 if test -n "$GTKCONFIG"; then
27741 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
27742 echo "${ECHO_T}$GTKCONFIG" >&6; }
27744 { echo "$as_me:$LINENO: result: no" >&5
27745 echo "${ECHO_T}no" >&6; }
27750 if test -z "$ac_cv_prog_GTKCONFIG"; then
27751 ac_ct_GTKCONFIG=$GTKCONFIG
27752 # Extract the first word of "gtk-config", so it can be a program name with args.
27753 set dummy gtk-config; ac_word=$2
27754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27756 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27759 if test -n "$ac_ct_GTKCONFIG"; then
27760 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
27762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27763 for as_dir in $PATH
27766 test -z "$as_dir" && as_dir=.
27767 for ac_exec_ext in '' $ac_executable_extensions; do
27768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27769 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
27770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27779 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
27780 if test -n "$ac_ct_GTKCONFIG"; then
27781 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
27782 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
27784 { echo "$as_me:$LINENO: result: no" >&5
27785 echo "${ECHO_T}no" >&6; }
27788 if test "x$ac_ct_GTKCONFIG" = x; then
27791 case $cross_compiling:$ac_tool_warned in
27793 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27794 whose name does not start with the host triplet. If you think this
27795 configuration is useful to you, please write to autoconf@gnu.org." >&5
27796 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27797 whose name does not start with the host triplet. If you think this
27798 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27799 ac_tool_warned=yes ;;
27801 GTKCONFIG=$ac_ct_GTKCONFIG
27804 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
27807 if test ! "x${GTKCONFIG}" = xNo; then
27808 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
27809 GTK_LIB=$(${GTKCONFIG} --libs gthread)
27812 cat >>confdefs.h <<\_ACEOF
27821 if test "${USE_CURL}" != "no"; then
27822 if test -n "$ac_tool_prefix"; then
27823 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
27824 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
27825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27827 if test "${ac_cv_path_CURL+set}" = set; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27832 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
27835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27836 for as_dir in $PATH
27839 test -z "$as_dir" && as_dir=.
27840 for ac_exec_ext in '' $ac_executable_extensions; do
27841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27842 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
27843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27853 CURL=$ac_cv_path_CURL
27854 if test -n "$CURL"; then
27855 { echo "$as_me:$LINENO: result: $CURL" >&5
27856 echo "${ECHO_T}$CURL" >&6; }
27858 { echo "$as_me:$LINENO: result: no" >&5
27859 echo "${ECHO_T}no" >&6; }
27864 if test -z "$ac_cv_path_CURL"; then
27866 # Extract the first word of "curl-config", so it can be a program name with args.
27867 set dummy curl-config; ac_word=$2
27868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27870 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
27871 echo $ECHO_N "(cached) $ECHO_C" >&6
27873 case $ac_pt_CURL in
27875 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
27878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27879 for as_dir in $PATH
27882 test -z "$as_dir" && as_dir=.
27883 for ac_exec_ext in '' $ac_executable_extensions; do
27884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27885 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
27886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27896 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
27897 if test -n "$ac_pt_CURL"; then
27898 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
27899 echo "${ECHO_T}$ac_pt_CURL" >&6; }
27901 { echo "$as_me:$LINENO: result: no" >&5
27902 echo "${ECHO_T}no" >&6; }
27905 if test "x$ac_pt_CURL" = x; then
27908 case $cross_compiling:$ac_tool_warned in
27910 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27911 whose name does not start with the host triplet. If you think this
27912 configuration is useful to you, please write to autoconf@gnu.org." >&5
27913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27914 whose name does not start with the host triplet. If you think this
27915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27916 ac_tool_warned=yes ;;
27921 CURL="$ac_cv_path_CURL"
27924 if test ! x"${CURL}" = xNo; then
27925 # check for version
27926 if test $(printf "%d" 0x$(curl-config --vernum)) -ge $(printf "%d" 0x070907); then
27927 CURL_INCLUDE=$(${CURL} --cflags)
27928 CURL_LIB=$(${CURL} --libs)
27931 cat >>confdefs.h <<\_ACEOF
27932 #define HAVE_CURL 1
27939 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
27941 cat >confcache <<\_ACEOF
27942 # This file is a shell script that caches the results of configure
27943 # tests run on this system so they can be shared between configure
27944 # scripts and configure runs, see configure's option
--config-cache.
27945 # It is not useful on other systems. If it contains results you don't
27946 # want to keep, you may remove or edit it.
27948 # config.status only pays attention to the cache file if you give it
27949 # the --recheck option to rerun configure.
27951 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27952 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27953 # following values.
27957 # The following way of writing the cache mishandles newlines in values,
27958 # but we know of no workaround that is simple, portable, and efficient.
27959 # So, we kill variables containing newlines.
27960 # Ultrix sh set writes to stderr and can't be redirected directly,
27961 # and sets the high bit in the cache file unless we assign to the vars.
27963 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27964 eval ac_val
=\$
$ac_var
27968 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27969 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27972 _ | IFS | as_nl
) ;; #(
27973 *) $as_unset $ac_var ;;
27979 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27980 *${as_nl}ac_space
=\
*)
27981 # `set' does not quote correctly, so add quotes (double-quote
27982 # substitution turns \\\\ into \\, and sed turns \\ into \).
27985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27988 # `set' quotes correctly as required by POSIX, so do not add quotes.
27989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28000 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28002 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28003 if test -w "$cache_file"; then
28004 test "x$cache_file" != "x/dev/null" &&
28005 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28006 echo "$as_me: updating cache $cache_file" >&6;}
28007 cat confcache
>$cache_file
28009 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28010 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28015 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28016 # Let make expand exec_prefix.
28017 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28019 DEFS
=-DHAVE_CONFIG_H
28023 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28024 # 1. Remove the extension, and $U if already installed.
28025 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28026 ac_i
=`echo "$ac_i" | sed "$ac_script"`
28027 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28028 # will be set to the directory where LIBOBJS objects are built.
28029 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28030 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28032 LIBOBJS
=$ac_libobjs
28034 LTLIBOBJS
=$ac_ltlibobjs
28038 : ${CONFIG_STATUS=./config.status}
28039 ac_clean_files_save
=$ac_clean_files
28040 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28041 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28042 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28043 cat >$CONFIG_STATUS <<_ACEOF
28045 # Generated by $as_me.
28046 # Run this file to recreate the current configuration.
28047 # Compiler output produced by configure, useful for debugging
28048 # configure, is in config.log if it exists.
28051 ac_cs_recheck=false
28053 SHELL=\${CONFIG_SHELL-$SHELL}
28056 cat >>$CONFIG_STATUS <<\_ACEOF
28057 ## --------------------- ##
28058 ## M4sh Initialization. ##
28059 ## --------------------- ##
28061 # Be more Bourne compatible
28062 DUALCASE
=1; export DUALCASE
# for MKS sh
28063 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
28066 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28067 # is contrary to our usage. Disable this feature.
28068 alias -g '${1+"$@"}'='"$@"'
28069 setopt NO_GLOB_SUBST
28071 case `(set -o) 2>/dev/null` in
28072 *posix
*) set -o posix
;;
28081 # Avoid depending upon Character Ranges.
28082 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28083 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28084 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28085 as_cr_digits
='0123456789'
28086 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28088 # The user is always right.
28089 if test "${PATH_SEPARATOR+set}" != set; then
28090 echo "#! /bin/sh" >conf$$.sh
28091 echo "exit 0" >>conf$$.sh
28093 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
28101 # Support unset when possible.
28102 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
28110 # We need space, tab and new line, in precisely that order. Quoting is
28111 # there to prevent editors from complaining about space-tab.
28112 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28113 # splitting by setting IFS to empty value.)
28118 # Find who we are. Look in the path if we contain no directory separator.
28120 *[\\/]* ) as_myself
=$0 ;;
28121 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28122 for as_dir
in $PATH
28125 test -z "$as_dir" && as_dir
=.
28126 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
28132 # We did not find ourselves, most probably we were run as `sh COMMAND'
28133 # in which case we are not to be found in the path.
28134 if test "x$as_myself" = x
; then
28137 if test ! -f "$as_myself"; then
28138 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28139 { (exit 1); exit 1; }
28142 # Work around bugs in pre-3.0 UWIN ksh.
28143 for as_var
in ENV MAIL MAILPATH
28144 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
28152 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28153 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28154 LC_TELEPHONE LC_TIME
28156 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28157 eval $as_var=C
; export $as_var
28159 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
28163 # Required to use basename.
28164 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28165 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28171 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28172 as_basename
=basename
28178 # Name of the executable.
28179 as_me
=`$as_basename -- "$0" ||
28180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28181 X"$0" : 'X\(//\)$' \| \
28182 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28184 sed '/^.*\/\([^/][^/]*\)\/*$/{
28203 as_lineno_1
=$LINENO
28204 as_lineno_2
=$LINENO
28205 test "x$as_lineno_1" != "x$as_lineno_2" &&
28206 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
28208 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28209 # uniformly replaced by the line number. The first 'sed' inserts a
28210 # line-number line after each line using $LINENO; the second 'sed'
28211 # does the real work. The second script uses 'N' to pair each
28212 # line-number line with the line containing $LINENO, and appends
28213 # trailing '-' during substitution so that $LINENO is not a special
28214 # case at line end.
28215 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28216 # scripts with optimization help from Paolo Bonzini. Blame Lee
28217 # E. McMahon (1931-1989) for sed's syntax. :-)
28229 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28232 ' >$as_me.lineno
&&
28233 chmod +x
"$as_me.lineno" ||
28234 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28235 { (exit 1); exit 1; }; }
28237 # Don't try to exec as it changes $[0], causing all sort of problems
28238 # (the dirname of $[0] is not the place where we might find the
28239 # original and so on. Autoconf is especially sensitive to this).
28240 .
"./$as_me.lineno"
28241 # Exit status is that of the last command.
28246 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28252 ECHO_C
= ECHO_N
= ECHO_T
=
28253 case `echo -n x` in
28255 case `echo 'x\c'` in
28256 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28263 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28264 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28270 rm -f conf$$ conf$$.exe conf$$.
file
28271 if test -d conf$$.dir
; then
28272 rm -f conf$$.dir
/conf$$.
file
28278 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28280 # ... but there are two gotchas:
28281 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28282 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28283 # In both cases, we have to default to `cp -p'.
28284 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28286 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28291 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28292 rmdir conf$$.dir
2>/dev
/null
28294 if mkdir
-p .
2>/dev
/null
; then
28297 test -d .
/-p && rmdir .
/-p
28301 if test -x / >/dev
/null
2>&1; then
28302 as_test_x
='test -x'
28304 if ls -dL / >/dev
/null
2>&1; then
28311 if test -d "$1"; then
28317 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28318 ???[sx]*):;;*)false;;esac;fi
28322 as_executable_p
=$as_test_x
28324 # Sed expression to map a string onto a valid CPP name.
28325 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28327 # Sed expression to map a string onto a valid variable name.
28328 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28333 # Save the log message, to keep $[0] and so on meaningful, and to
28334 # report actual input values of CONFIG_FILES etc. instead of their
28335 # values after options handling.
28337 This file was extended by $as_me, which was
28338 generated by GNU Autoconf 2.61. Invocation command line was
28340 CONFIG_FILES = $CONFIG_FILES
28341 CONFIG_HEADERS = $CONFIG_HEADERS
28342 CONFIG_LINKS = $CONFIG_LINKS
28343 CONFIG_COMMANDS = $CONFIG_COMMANDS
28346 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28351 cat >>$CONFIG_STATUS <<_ACEOF
28352 # Files that config.status was made for.
28353 config_files="$ac_config_files"
28354 config_headers="$ac_config_headers"
28358 cat >>$CONFIG_STATUS <<\_ACEOF
28360 \`$as_me' instantiates files from templates according to the
28361 current configuration.
28363 Usage: $0 [OPTIONS] [FILE]...
28365 -h, --help print this help, then exit
28366 -V, --version print version number and configuration settings, then exit
28367 -q, --quiet do not print progress messages
28368 -d, --debug don't remove temporary files
28369 --recheck update $as_me by reconfiguring in the same conditions
28370 --file=FILE[:TEMPLATE]
28371 instantiate the configuration file FILE
28372 --header=FILE[:TEMPLATE]
28373 instantiate the configuration header FILE
28375 Configuration files:
28378 Configuration headers:
28381 Report bugs to <bug-autoconf@gnu.org>."
28384 cat >>$CONFIG_STATUS <<_ACEOF
28387 configured by $0, generated by GNU Autoconf 2.61,
28388 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28390 Copyright (C) 2006 Free Software Foundation, Inc.
28391 This config.status script is free software; the Free Software Foundation
28392 gives unlimited permission to copy, distribute and modify it."
28399 cat >>$CONFIG_STATUS <<\_ACEOF
28400 # If no file are specified by the user, then we need to provide default
28401 # value. By we need to know if files were specified by the user.
28407 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28408 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28419 # Handling of the options.
28420 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28422 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28423 echo "$ac_cs_version"; exit ;;
28424 --debug |
--debu |
--deb |
--de |
--d |
-d )
28426 --file |
--fil |
--fi |
--f )
28428 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
28429 ac_need_defaults
=false
;;
28430 --header |
--heade |
--head |
--hea )
28432 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
28433 ac_need_defaults
=false
;;
28435 # Conflict between --help and --header
28436 { echo "$as_me: error: ambiguous option: $1
28437 Try \`$0 --help' for more information." >&2
28438 { (exit 1); exit 1; }; };;
28439 --help |
--hel |
-h )
28440 echo "$ac_cs_usage"; exit ;;
28441 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28442 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28445 # This is an error.
28446 -*) { echo "$as_me: error: unrecognized option: $1
28447 Try \`$0 --help' for more information." >&2
28448 { (exit 1); exit 1; }; } ;;
28450 *) ac_config_targets
="$ac_config_targets $1"
28451 ac_need_defaults
=false
;;
28457 ac_configure_extra_args
=
28459 if $ac_cs_silent; then
28461 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28465 cat >>$CONFIG_STATUS <<_ACEOF
28466 if \$ac_cs_recheck; then
28467 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28468 CONFIG_SHELL=$SHELL
28469 export CONFIG_SHELL
28470 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28474 cat >>$CONFIG_STATUS <<\_ACEOF
28478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28479 ## Running $as_me. ##
28485 cat >>$CONFIG_STATUS <<_ACEOF
28488 cat >>$CONFIG_STATUS <<\_ACEOF
28490 # Handling of arguments.
28491 for ac_config_target
in $ac_config_targets
28493 case $ac_config_target in
28494 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
28495 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
28496 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
28497 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
28499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28501 { (exit 1); exit 1; }; };;
28506 # If the user did not use the arguments to specify the items to instantiate,
28507 # then the envvar interface is used. Set only those that are not.
28508 # We use the long form for the default assignment because of an extremely
28509 # bizarre bug on SunOS 4.1.3.
28510 if $ac_need_defaults; then
28511 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28512 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28515 # Have a temporary directory for convenience. Make it in the build tree
28516 # simply because there is no reason against having it here, and in addition,
28517 # creating and moving files from /tmp can sometimes cause problems.
28518 # Hook for its removal unless debugging.
28519 # Note that there is a small window in which the directory will not be cleaned:
28520 # after its creation but before its name has been assigned to `$tmp'.
28524 trap 'exit_status=$?
28525 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28527 trap '{ (exit 1); exit 1; }' 1 2 13 15
28529 # Create a (secure) tmp directory for tmp files.
28532 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28533 test -n "$tmp" && test -d "$tmp"
28536 tmp
=.
/conf$$
-$RANDOM
28537 (umask 077 && mkdir
"$tmp")
28540 echo "$me: cannot create a temporary directory in ." >&2
28541 { (exit 1); exit 1; }
28545 # Set up the sed scripts for CONFIG_FILES section.
28548 # No need to generate the scripts if there are no CONFIG_FILES.
28549 # This happens for instance when ./config.status config.h
28550 if test -n "$CONFIG_FILES"; then
28557 for ac_last_try
in false false false false false
:; do
28558 cat >conf$
$subs.
sed <<_ACEOF
28559 SHELL!$SHELL$ac_delim
28560 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28561 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28562 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28563 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28564 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28565 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28566 exec_prefix!$exec_prefix$ac_delim
28567 prefix!$prefix$ac_delim
28568 program_transform_name!$program_transform_name$ac_delim
28569 bindir!$bindir$ac_delim
28570 sbindir!$sbindir$ac_delim
28571 libexecdir!$libexecdir$ac_delim
28572 datarootdir!$datarootdir$ac_delim
28573 datadir!$datadir$ac_delim
28574 sysconfdir!$sysconfdir$ac_delim
28575 sharedstatedir!$sharedstatedir$ac_delim
28576 localstatedir!$localstatedir$ac_delim
28577 includedir!$includedir$ac_delim
28578 oldincludedir!$oldincludedir$ac_delim
28579 docdir!$docdir$ac_delim
28580 infodir!$infodir$ac_delim
28581 htmldir!$htmldir$ac_delim
28582 dvidir!$dvidir$ac_delim
28583 pdfdir!$pdfdir$ac_delim
28584 psdir!$psdir$ac_delim
28585 libdir!$libdir$ac_delim
28586 localedir!$localedir$ac_delim
28587 mandir!$mandir$ac_delim
28588 DEFS!$DEFS$ac_delim
28589 ECHO_C!$ECHO_C$ac_delim
28590 ECHO_N!$ECHO_N$ac_delim
28591 ECHO_T!$ECHO_T$ac_delim
28592 LIBS!$LIBS$ac_delim
28593 build_alias!$build_alias$ac_delim
28594 host_alias!$host_alias$ac_delim
28595 target_alias!$target_alias$ac_delim
28596 build!$build$ac_delim
28597 build_cpu!$build_cpu$ac_delim
28598 build_vendor!$build_vendor$ac_delim
28599 build_os!$build_os$ac_delim
28600 host!$host$ac_delim
28601 host_cpu!$host_cpu$ac_delim
28602 host_vendor!$host_vendor$ac_delim
28603 host_os!$host_os$ac_delim
28604 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
28605 BUILD_CPU!$BUILD_CPU$ac_delim
28606 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
28607 BUILD_OS!$BUILD_OS$ac_delim
28608 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
28609 HOST_CPU!$HOST_CPU$ac_delim
28610 HOST_VENDOR!$HOST_VENDOR$ac_delim
28611 HOST_OS!$HOST_OS$ac_delim
28612 OSARCH!$OSARCH$ac_delim
28613 UNAME!$UNAME$ac_delim
28614 PBX_OSREV!$PBX_OSREV$ac_delim
28618 RANLIB!$RANLIB$ac_delim
28620 CFLAGS!$CFLAGS$ac_delim
28621 LDFLAGS!$LDFLAGS$ac_delim
28622 CPPFLAGS!$CPPFLAGS$ac_delim
28623 ac_ct_CC!$ac_ct_CC$ac_delim
28624 EXEEXT!$EXEEXT$ac_delim
28625 OBJEXT!$OBJEXT$ac_delim
28626 CXXFLAGS!$CXXFLAGS$ac_delim
28627 ac_ct_CXX!$ac_ct_CXX$ac_delim
28629 CXXCPP!$CXXCPP$ac_delim
28631 EGREP!$EGREP$ac_delim
28633 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28634 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28635 INSTALL_DATA!$INSTALL_DATA$ac_delim
28636 LN_S!$LN_S$ac_delim
28637 GNU_MAKE!$GNU_MAKE$ac_delim
28638 GNU_LD!$GNU_LD$ac_delim
28639 GREP!$GREP$ac_delim
28640 FIND!$FIND$ac_delim
28641 COMPRESS!$COMPRESS$ac_delim
28642 BASENAME!$BASENAME$ac_delim
28644 DIRNAME!$DIRNAME$ac_delim
28647 STRIP!$STRIP$ac_delim
28648 WGET!$WGET$ac_delim
28649 FETCH!$FETCH$ac_delim
28650 DOWNLOAD!$DOWNLOAD$ac_delim
28651 AST_DEVMODE!$AST_DEVMODE$ac_delim
28652 ALSA_LIB!$ALSA_LIB$ac_delim
28653 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
28654 PBX_ALSA!$PBX_ALSA$ac_delim
28655 CURL_LIB!$CURL_LIB$ac_delim
28658 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28660 elif $ac_last_try; then
28661 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28662 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28663 { (exit 1); exit 1; }; }
28665 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28669 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28670 if test -n "$ac_eof"; then
28671 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28672 ac_eof
=`expr $ac_eof + 1`
28675 cat >>$CONFIG_STATUS <<_ACEOF
28676 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28680 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28681 s/^/s,@/; s/!/@,|#_!!_#|/
28684 s/'"$ac_delim"'$/,g/; t
28686 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28687 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28688 rm -f conf$
$subs.
sed
28689 cat >>$CONFIG_STATUS <<_ACEOF
28695 for ac_last_try
in false false false false false
:; do
28696 cat >conf$
$subs.
sed <<_ACEOF
28697 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
28698 PBX_CURL!$PBX_CURL$ac_delim
28699 CURSES_LIB!$CURSES_LIB$ac_delim
28700 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
28701 PBX_CURSES!$PBX_CURSES$ac_delim
28702 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
28703 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
28704 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
28705 GSM_LIB!$GSM_LIB$ac_delim
28706 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
28707 PBX_GSM!$PBX_GSM$ac_delim
28708 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
28709 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
28710 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
28711 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
28712 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
28713 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
28714 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
28715 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
28716 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
28717 KDE_LIB!$KDE_LIB$ac_delim
28718 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
28719 PBX_KDE!$PBX_KDE$ac_delim
28720 MISDN_LIB!$MISDN_LIB$ac_delim
28721 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
28722 PBX_MISDN!$PBX_MISDN$ac_delim
28723 NBS_LIB!$NBS_LIB$ac_delim
28724 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
28725 PBX_NBS!$PBX_NBS$ac_delim
28726 NCURSES_LIB!$NCURSES_LIB$ac_delim
28727 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
28728 PBX_NCURSES!$PBX_NCURSES$ac_delim
28729 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
28730 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
28731 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
28732 NEWT_LIB!$NEWT_LIB$ac_delim
28733 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
28734 PBX_NEWT!$PBX_NEWT$ac_delim
28735 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
28736 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
28737 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
28738 OGG_LIB!$OGG_LIB$ac_delim
28739 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
28740 PBX_OGG!$PBX_OGG$ac_delim
28741 OSPTK_LIB!$OSPTK_LIB$ac_delim
28742 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
28743 PBX_OSPTK!$PBX_OSPTK$ac_delim
28744 OSS_LIB!$OSS_LIB$ac_delim
28745 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
28746 PBX_OSS!$PBX_OSS$ac_delim
28747 POPT_LIB!$POPT_LIB$ac_delim
28748 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
28749 PBX_POPT!$PBX_POPT$ac_delim
28750 PGSQL_LIB!$PGSQL_LIB$ac_delim
28751 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
28752 PBX_PGSQL!$PBX_PGSQL$ac_delim
28753 PRI_LIB!$PRI_LIB$ac_delim
28754 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
28755 PBX_PRI!$PBX_PRI$ac_delim
28756 PWLIB_LIB!$PWLIB_LIB$ac_delim
28757 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
28758 PBX_PWLIB!$PBX_PWLIB$ac_delim
28759 OPENH323_LIB!$OPENH323_LIB$ac_delim
28760 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
28761 PBX_OPENH323!$PBX_OPENH323$ac_delim
28762 QT_LIB!$QT_LIB$ac_delim
28763 QT_INCLUDE!$QT_INCLUDE$ac_delim
28764 PBX_QT!$PBX_QT$ac_delim
28765 RADIUS_LIB!$RADIUS_LIB$ac_delim
28766 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
28767 PBX_RADIUS!$PBX_RADIUS$ac_delim
28768 SPEEX_LIB!$SPEEX_LIB$ac_delim
28769 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
28770 PBX_SPEEX!$PBX_SPEEX$ac_delim
28771 SQLITE_LIB!$SQLITE_LIB$ac_delim
28772 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
28773 PBX_SQLITE!$PBX_SQLITE$ac_delim
28774 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
28775 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
28776 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
28777 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
28778 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
28779 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
28780 FREETDS_LIB!$FREETDS_LIB$ac_delim
28781 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
28782 PBX_FREETDS!$PBX_FREETDS$ac_delim
28783 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
28784 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
28785 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
28786 TINFO_LIB!$TINFO_LIB$ac_delim
28787 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
28788 PBX_TINFO!$PBX_TINFO$ac_delim
28789 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
28790 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
28791 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
28792 VORBIS_LIB!$VORBIS_LIB$ac_delim
28793 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
28796 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28798 elif $ac_last_try; then
28799 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28800 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28801 { (exit 1); exit 1; }; }
28803 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28807 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28808 if test -n "$ac_eof"; then
28809 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28810 ac_eof
=`expr $ac_eof + 1`
28813 cat >>$CONFIG_STATUS <<_ACEOF
28814 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28818 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28819 s/^/s,@/; s/!/@,|#_!!_#|/
28822 s/'"$ac_delim"'$/,g/; t
28824 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28825 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28826 rm -f conf$
$subs.
sed
28827 cat >>$CONFIG_STATUS <<_ACEOF
28833 for ac_last_try
in false false false false false
:; do
28834 cat >conf$
$subs.
sed <<_ACEOF
28835 PBX_VORBIS!$PBX_VORBIS$ac_delim
28836 VPB_LIB!$VPB_LIB$ac_delim
28837 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
28838 PBX_VPB!$PBX_VPB$ac_delim
28839 ZLIB_LIB!$ZLIB_LIB$ac_delim
28840 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
28841 PBX_ZLIB!$PBX_ZLIB$ac_delim
28842 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
28843 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
28844 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
28845 ALLOCA!$ALLOCA$ac_delim
28846 LIBOBJS!$LIBOBJS$ac_delim
28847 POW_LIB!$POW_LIB$ac_delim
28848 GC_CFLAGS!$GC_CFLAGS$ac_delim
28849 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
28850 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
28851 KDEINIT!$KDEINIT$ac_delim
28852 KDEDIR!$KDEDIR$ac_delim
28853 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
28854 PG_CONFIG!$PG_CONFIG$ac_delim
28855 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
28856 PWLIBDIR!$PWLIBDIR$ac_delim
28857 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
28858 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
28859 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
28860 OPENH323DIR!$OPENH323DIR$ac_delim
28861 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
28862 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
28863 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
28864 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
28865 QTMOC!$QTMOC$ac_delim
28866 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
28867 PBX_H323!$PBX_H323$ac_delim
28868 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
28869 GTKCONFIG!$GTKCONFIG$ac_delim
28870 PBX_GTK!$PBX_GTK$ac_delim
28871 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
28872 GTK_LIB!$GTK_LIB$ac_delim
28873 CURL!$CURL$ac_delim
28874 LTLIBOBJS!$LTLIBOBJS$ac_delim
28877 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
28879 elif $ac_last_try; then
28880 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28881 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28882 { (exit 1); exit 1; }; }
28884 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28888 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28889 if test -n "$ac_eof"; then
28890 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28891 ac_eof
=`expr $ac_eof + 1`
28894 cat >>$CONFIG_STATUS <<_ACEOF
28895 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
28896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28899 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28900 s/^/s,@/; s/!/@,|#_!!_#|/
28903 s/'"$ac_delim"'$/,g/; t
28905 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28906 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28907 rm -f conf$
$subs.
sed
28908 cat >>$CONFIG_STATUS <<_ACEOF
28915 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28916 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28917 # trailing colons and then remove the whole line if VPATH becomes empty
28918 # (actually we leave an empty line to preserve line numbers).
28919 if test "x$srcdir" = x.
; then
28920 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
28921 s/:*\$(srcdir):*/:/
28922 s/:*\${srcdir}:*/:/
28924 s/^\([^=]*=[ ]*\):*/\1/
28930 cat >>$CONFIG_STATUS <<\_ACEOF
28931 fi # test -n "$CONFIG_FILES"
28934 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
28937 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28939 case $ac_mode$ac_tag in
28941 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28942 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28943 { (exit 1); exit 1; }; };;
28944 :[FH
]-) ac_tag
=-:-;;
28945 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28962 -) ac_f
="$tmp/stdin";;
28963 *) # Look for the file first in the build tree, then in the source tree
28964 # (if the path is not absolute). The absolute path cannot be DOS-style,
28965 # because $ac_f cannot contain `:'.
28969 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28971 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28972 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28973 { (exit 1); exit 1; }; };;
28975 ac_file_inputs
="$ac_file_inputs $ac_f"
28978 # Let's still pretend it is `configure' which instantiates (i.e., don't
28979 # use $as_me), people would be surprised to read:
28980 # /* config.h. Generated by config.status. */
28981 configure_input
="Generated from "`IFS=:
28982 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28983 if test x
"$ac_file" != x-
; then
28984 configure_input
="$ac_file. $configure_input"
28985 { echo "$as_me:$LINENO: creating $ac_file" >&5
28986 echo "$as_me: creating $ac_file" >&6;}
28990 *:-:* |
*:-) cat >"$tmp/stdin";;
28995 ac_dir
=`$as_dirname -- "$ac_file" ||
28996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28997 X"$ac_file" : 'X\(//\)[^/]' \| \
28998 X"$ac_file" : 'X\(//\)$' \| \
28999 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29005 /^X\(\/\/\)[^/].*/{
29020 -*) as_dir
=.
/$as_dir;;
29022 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
29026 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29027 *) as_qdir
=$as_dir;;
29029 as_dirs
="'$as_qdir' $as_dirs"
29030 as_dir
=`$as_dirname -- "$as_dir" ||
29031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29032 X"$as_dir" : 'X\(//\)[^/]' \| \
29033 X"$as_dir" : 'X\(//\)$' \| \
29034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29040 /^X\(\/\/\)[^/].*/{
29053 test -d "$as_dir" && break
29055 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29056 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29057 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29058 { (exit 1); exit 1; }; }; }
29062 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29064 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29065 # A ".." for each directory in $ac_dir_suffix.
29066 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29067 case $ac_top_builddir_sub in
29068 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29069 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29072 ac_abs_top_builddir
=$ac_pwd
29073 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29074 # for backward compatibility:
29075 ac_top_builddir
=$ac_top_build_prefix
29078 .
) # We are building in place.
29080 ac_top_srcdir
=$ac_top_builddir_sub
29081 ac_abs_top_srcdir
=$ac_pwd ;;
29082 [\\/]* | ?
:[\\/]* ) # Absolute name.
29083 ac_srcdir
=$srcdir$ac_dir_suffix;
29084 ac_top_srcdir
=$srcdir
29085 ac_abs_top_srcdir
=$srcdir ;;
29086 *) # Relative name.
29087 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29088 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29089 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29091 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29101 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
29102 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
29106 cat >>$CONFIG_STATUS <<\_ACEOF
29107 # If the template does not know about datarootdir, expand it.
29108 # FIXME: This hack should be removed a few years after 2.60.
29109 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29111 case `sed -n '/datarootdir/ {
29120 ' $ac_file_inputs` in
29121 *datarootdir
*) ac_datarootdir_seen
=yes;;
29122 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29123 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29124 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29126 cat >>$CONFIG_STATUS <<_ACEOF
29127 ac_datarootdir_hack='
29128 s&@datadir@&$datadir&g
29129 s&@docdir@&$docdir&g
29130 s&@infodir@&$infodir&g
29131 s&@localedir@&$localedir&g
29132 s&@mandir@&$mandir&g
29133 s&\\\${datarootdir}&$datarootdir&g' ;;
29137 # Neutralize VPATH when `$srcdir' = `.'.
29138 # Shell code in configure.ac might set extrasub.
29139 # FIXME: do we really want to maintain this feature?
29140 cat >>$CONFIG_STATUS <<_ACEOF
29144 cat >>$CONFIG_STATUS <<\_ACEOF
29146 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29147 s
&@configure_input@
&$configure_input&;t t
29148 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29149 s
&@srcdir@
&$ac_srcdir&;t t
29150 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29151 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29152 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29153 s
&@builddir@
&$ac_builddir&;t t
29154 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29155 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29156 s
&@INSTALL@
&$ac_INSTALL&;t t
29157 $ac_datarootdir_hack
29158 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
29160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29161 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29162 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29163 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29164 which seems to be undefined. Please make sure it is defined." >&5
29165 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29166 which seems to be undefined. Please make sure it is defined." >&2;}
29170 -) cat "$tmp/out"; rm -f "$tmp/out";;
29171 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29180 # Transform confdefs.h into a sed script `conftest.defines', that
29181 # substitutes the proper values into config.h.in to produce config.h.
29182 rm -f conftest.defines conftest.
tail
29183 # First, append a space to every undef/define line, to ease matching.
29184 echo 's/$/ /' >conftest.defines
29185 # Then, protect against being on the right side of a sed subst, or in
29186 # an unquoted here document, in config.status. If some macros were
29187 # called several times there might be several #defines for the same
29188 # symbol, which is useless. But do not sort them, since the last
29189 # AC_DEFINE must be honored.
29190 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
29191 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29192 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29193 # PARAMS is the parameter list in the macro definition--in most cases, it's
29194 # just an empty string.
29195 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29196 ac_dB
='\\)[ (].*,\\1define\\2'
29204 s/^[ ]*#[ ]*define[ ][ ]*//
29209 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29210 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29211 ' >>conftest.defines
29213 # Remove the space that was appended to ease matching.
29214 # Then replace #undef with comments. This is necessary, for
29215 # example, in the case of _POSIX_SOURCE, which is predefined and required
29216 # on some systems where configure will not decide to define it.
29217 # (The regexp can be short, since the line contains either #define or #undef.)
29219 s,^[ #]*u.*,/* & */,' >>conftest.defines
29221 # Break up conftest.defines:
29222 ac_max_sed_lines
=50
29224 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29225 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29226 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29228 ac_in
='$ac_file_inputs'
29229 ac_out
='"$tmp/out1"'
29230 ac_nxt
='"$tmp/out2"'
29234 # Write a here document:
29235 cat >>$CONFIG_STATUS <<_ACEOF
29236 # First, check the format of the line:
29237 cat >"\$tmp/defines.sed" <<\\CEOF
29238 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
29239 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
29243 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
29245 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29246 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
29247 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
29248 grep . conftest.
tail >/dev
/null ||
break
29249 rm -f conftest.defines
29250 mv conftest.
tail conftest.defines
29252 rm -f conftest.defines conftest.
tail
29254 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29255 cat >>$CONFIG_STATUS <<\_ACEOF
29256 if test x
"$ac_file" != x-
; then
29257 echo "/* $configure_input */" >"$tmp/config.h"
29258 cat "$ac_result" >>"$tmp/config.h"
29259 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
29260 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29261 echo "$as_me: $ac_file is unchanged" >&6;}
29264 mv "$tmp/config.h" $ac_file
29267 echo "/* $configure_input */"
29279 { (exit 0); exit 0; }
29281 chmod +x
$CONFIG_STATUS
29282 ac_clean_files
=$ac_clean_files_save
29285 # configure is writing to config.log, and then calls config.status.
29286 # config.status does its own redirection, appending to config.log.
29287 # Unfortunately, on DOS this fails, as config.log is still kept open
29288 # by configure, so config.status won't be able to write to it; its
29289 # output is simply discarded. So we exec the FD to /dev/null,
29290 # effectively closing config.log, so it can be properly (re)opened and
29291 # appended to by config.status. When coming back to configure, we
29292 # need to make the FD available again.
29293 if test "$no_create" != yes; then
29295 ac_config_status_args
=
29296 test "$silent" = yes &&
29297 ac_config_status_args
="$ac_config_status_args --quiet"
29299 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29302 # would make configure fail if this is the last instruction.
29303 $ac_cs_success ||
{ (exit 1); exit 1; }
29307 if test "x${silent}" != "xyes" ; then
29309 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
29310 echo " .\$7\$7.. .7\$\$7:. "
29311 echo " .\$\$:. ,\$7.7 "
29312 echo " .\$7. 7\$\$\$\$ .\$\$77 "
29313 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
29314 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
29315 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
29316 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
29317 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
29318 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
29319 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
29320 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
29321 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
29322 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
29323 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
29324 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
29325 echo " \$\$\$\$\$ \$\$\$ "
29326 echo " \$\$\$\$7. \$\$ (TM) "
29327 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
29328 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
29329 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
29333 { echo "$as_me:$LINENO: Package configured for: " >&5
29334 echo "$as_me: Package configured for: " >&6;}
29335 { echo "$as_me:$LINENO: OS type : $host_os" >&5
29336 echo "$as_me: OS type : $host_os" >&6;}
29337 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
29338 echo "$as_me: Host CPU : $host_cpu" >&6;}
29339 if test "${cross_compiling}" = "yes"; then
29340 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
29341 echo "$as_me: Cross Compilation = YES" >&6;}