2 # From configure.ac Revision: 101894 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60 for asterisk 1.4.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be Bourne compatible
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
29 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
30 DUALCASE
=1; export DUALCASE
# for MKS sh
34 # Avoid depending upon Character Ranges.
35 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits
='0123456789'
39 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
54 # Support unset when possible.
55 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself
=$0 ;;
74 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir
=.
79 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x
; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var
in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C
; export $as_var
112 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me
=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x
; then
156 if (eval ":") 2>/dev
/null
; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev
/null
; then
222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
223 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir
=.
229 for as_base
in sh bash ksh sh5
; do
230 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
237 for as_shell
in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
241 # Be Bourne compatible
242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
252 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
253 DUALCASE
=1; export DUALCASE
# for MKS sh
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 # Be Bourne compatible
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
272 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
273 DUALCASE
=1; export DUALCASE
# for MKS sh
285 as_func_ret_success
() {
288 as_func_ret_failure
() {
293 if as_func_success
; then
297 echo as_func_success failed.
300 if as_func_failure
; then
302 echo as_func_failure succeeded.
305 if as_func_ret_success
; then
309 echo as_func_ret_success failed.
312 if as_func_ret_failure
; then
314 echo as_func_ret_failure succeeded.
317 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
321 echo positional parameters were not saved.
324 test $exitcode = 0) ||
{ (exit 1); exit 1; }
329 test "x$as_lineno_1" != "x$as_lineno_2" &&
330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
341 if test "x$CONFIG_SHELL" != x
; then
342 for as_var
in BASH_ENV ENV
343 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
346 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 if test $as_have_required = no
; then
351 echo This
script requires a shell
more modern than all the
352 echo shells that I found on your system. Please
install a
353 echo modern shell
, or manually run the
script under such a
354 echo shell
if you
do have one.
355 { (exit 1); exit 1; }
365 (eval "as_func_return () {
374 as_func_ret_success () {
377 as_func_ret_failure () {
382 if as_func_success; then
386 echo as_func_success failed.
389 if as_func_failure; then
391 echo as_func_failure succeeded.
394 if as_func_ret_success; then
398 echo as_func_ret_success failed.
401 if as_func_ret_failure; then
403 echo as_func_ret_failure succeeded.
406 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 echo positional parameters were not saved.
413 test \$exitcode = 0") ||
{
414 echo No shell found that supports shell functions.
415 echo Please tell autoconf@gnu.org about your system
,
416 echo including any error possibly output before this
424 test "x$as_lineno_1" != "x$as_lineno_2" &&
425 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
427 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
428 # uniformly replaced by the line number. The first 'sed' inserts a
429 # line-number line after each line using $LINENO; the second 'sed'
430 # does the real work. The second script uses 'N' to pair each
431 # line-number line with the line containing $LINENO, and appends
432 # trailing '-' during substitution so that $LINENO is not a special
434 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
435 # scripts with optimization help from Paolo Bonzini. Blame Lee
436 # E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x
"$as_me.lineno" ||
453 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
454 { (exit 1); exit 1; }; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
465 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
471 ECHO_C
= ECHO_N
= ECHO_T
=
475 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
482 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
483 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
489 rm -f conf$$ conf$$.exe conf$$.
file
490 if test -d conf$$.dir
; then
491 rm -f conf$$.dir
/conf$$.
file
497 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
499 # ... but there are two gotchas:
500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
502 # In both cases, we have to default to `cp -p'.
503 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
505 elif ln conf$$.
file conf$$
2>/dev
/null
; then
510 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
511 rmdir conf$$.dir
2>/dev
/null
513 if mkdir
-p .
2>/dev
/null
; then
516 test -d .
/-p && rmdir .
/-p
520 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
521 # systems may use methods other than mode bits to determine executability.
522 cat >conf$$.
file <<_ASEOF
527 if test -x conf$$.
file >/dev
/null
2>&1; then
528 as_executable_p
="test -x"
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 exec 7<&0 </dev
/null
6>&1
545 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
552 ac_default_prefix
=/usr
/local
554 ac_config_libobj_dir
=.
560 SHELL
=${CONFIG_SHELL-/bin/sh}
562 # Identity of this package.
563 PACKAGE_NAME
='asterisk'
564 PACKAGE_TARNAME
='asterisk'
565 PACKAGE_VERSION
='1.4'
566 PACKAGE_STRING
='asterisk 1.4'
567 PACKAGE_BUGREPORT
='www.asterisk.org'
569 ac_unique_file
="main/asterisk.c"
570 # Factoring default headers for most tests.
571 ac_includes_default
="\
574 # include <sys/types.h>
577 # include <sys/stat.h>
588 # if !STDC_HEADERS && HAVE_MEMORY_H
594 # include <strings.h>
597 # include <inttypes.h>
615 program_transform_name
869 AST_DECLARATION_AFTER_STATEMENT
901 ac_precious_vars
='build_alias
915 # Initialize some variables set by options.
917 ac_init_version
=false
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
927 program_transform_name
=s
,x
,x
,
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir
='${exec_prefix}/bin'
942 sbindir
='${exec_prefix}/sbin'
943 libexecdir
='${exec_prefix}/libexec'
944 datarootdir
='${prefix}/share'
945 datadir
='${datarootdir}'
946 sysconfdir
='${prefix}/etc'
947 sharedstatedir
='${prefix}/com'
948 localstatedir
='${prefix}/var'
949 includedir
='${prefix}/include'
950 oldincludedir
='/usr/include'
951 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
952 infodir
='${datarootdir}/info'
957 libdir
='${exec_prefix}/lib'
958 localedir
='${datarootdir}/locale'
959 mandir
='${datarootdir}/man'
965 # If the previous option needs an argument, assign it.
966 if test -n "$ac_prev"; then
967 eval $ac_prev=\
$ac_option
973 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
983 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
985 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
988 -build |
--build |
--buil |
--bui |
--bu)
989 ac_prev
=build_alias
;;
990 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
991 build_alias
=$ac_optarg ;;
993 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
994 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
995 ac_prev
=cache_file
;;
996 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
997 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
998 cache_file
=$ac_optarg ;;
1000 --config-cache |
-C)
1001 cache_file
=config.cache
;;
1003 -datadir |
--datadir |
--datadi |
--datad)
1005 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1006 datadir
=$ac_optarg ;;
1008 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1009 |
--dataroo |
--dataro |
--datar)
1010 ac_prev
=datarootdir
;;
1011 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1012 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1013 datarootdir
=$ac_optarg ;;
1015 -disable-* |
--disable-*)
1016 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1022 eval enable_
$ac_feature=no
;;
1024 -docdir |
--docdir |
--docdi |
--doc |
--do)
1026 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1027 docdir
=$ac_optarg ;;
1029 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1031 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1032 dvidir
=$ac_optarg ;;
1034 -enable-* |
--enable-*)
1035 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1041 eval enable_
$ac_feature=\
$ac_optarg ;;
1043 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1044 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1045 |
--exec |
--exe |
--ex)
1046 ac_prev
=exec_prefix
;;
1047 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1048 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1049 |
--exec=* |
--exe=* |
--ex=*)
1050 exec_prefix
=$ac_optarg ;;
1052 -gas |
--gas |
--ga |
--g)
1053 # Obsolete; use --with-gas.
1056 -help |
--help |
--hel |
--he |
-h)
1057 ac_init_help
=long
;;
1058 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1059 ac_init_help
=recursive
;;
1060 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1061 ac_init_help
=short
;;
1063 -host |
--host |
--hos |
--ho)
1064 ac_prev
=host_alias
;;
1065 -host=* |
--host=* |
--hos=* |
--ho=*)
1066 host_alias
=$ac_optarg ;;
1068 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1070 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1072 htmldir
=$ac_optarg ;;
1074 -includedir |
--includedir |
--includedi |
--included |
--include \
1075 |
--includ |
--inclu |
--incl |
--inc)
1076 ac_prev
=includedir
;;
1077 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1078 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1079 includedir
=$ac_optarg ;;
1081 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1083 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1084 infodir
=$ac_optarg ;;
1086 -libdir |
--libdir |
--libdi |
--libd)
1088 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1089 libdir
=$ac_optarg ;;
1091 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1092 |
--libexe |
--libex |
--libe)
1093 ac_prev
=libexecdir
;;
1094 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1095 |
--libexe=* |
--libex=* |
--libe=*)
1096 libexecdir
=$ac_optarg ;;
1098 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1099 ac_prev
=localedir
;;
1100 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1101 localedir
=$ac_optarg ;;
1103 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1104 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1105 ac_prev
=localstatedir
;;
1106 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1107 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1108 localstatedir
=$ac_optarg ;;
1110 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1112 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1113 mandir
=$ac_optarg ;;
1115 -nfp |
--nfp |
--nf)
1116 # Obsolete; use --without-fp.
1119 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1120 |
--no-cr |
--no-c |
-n)
1123 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1124 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1127 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1128 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1129 |
--oldin |
--oldi |
--old |
--ol |
--o)
1130 ac_prev
=oldincludedir
;;
1131 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1132 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1133 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1134 oldincludedir
=$ac_optarg ;;
1136 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1138 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1139 prefix
=$ac_optarg ;;
1141 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1142 |
--program-pre |
--program-pr |
--program-p)
1143 ac_prev
=program_prefix
;;
1144 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1145 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1146 program_prefix
=$ac_optarg ;;
1148 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1149 |
--program-suf |
--program-su |
--program-s)
1150 ac_prev
=program_suffix
;;
1151 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1152 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1153 program_suffix
=$ac_optarg ;;
1155 -program-transform-name |
--program-transform-name \
1156 |
--program-transform-nam |
--program-transform-na \
1157 |
--program-transform-n |
--program-transform- \
1158 |
--program-transform |
--program-transfor \
1159 |
--program-transfo |
--program-transf \
1160 |
--program-trans |
--program-tran \
1161 |
--progr-tra |
--program-tr |
--program-t)
1162 ac_prev
=program_transform_name
;;
1163 -program-transform-name=* |
--program-transform-name=* \
1164 |
--program-transform-nam=* |
--program-transform-na=* \
1165 |
--program-transform-n=* |
--program-transform-=* \
1166 |
--program-transform=* |
--program-transfor=* \
1167 |
--program-transfo=* |
--program-transf=* \
1168 |
--program-trans=* |
--program-tran=* \
1169 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1170 program_transform_name
=$ac_optarg ;;
1172 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1174 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1175 pdfdir
=$ac_optarg ;;
1177 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1179 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1182 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1183 |
-silent |
--silent |
--silen |
--sile |
--sil)
1186 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1188 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1190 sbindir
=$ac_optarg ;;
1192 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1193 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1194 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1196 ac_prev
=sharedstatedir
;;
1197 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1198 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1199 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1201 sharedstatedir
=$ac_optarg ;;
1203 -site |
--site |
--sit)
1205 -site=* |
--site=* |
--sit=*)
1208 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1210 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1211 srcdir
=$ac_optarg ;;
1213 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1214 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1215 ac_prev
=sysconfdir
;;
1216 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1217 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1218 sysconfdir
=$ac_optarg ;;
1220 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1221 ac_prev
=target_alias
;;
1222 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1223 target_alias
=$ac_optarg ;;
1225 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1228 -version |
--version |
--versio |
--versi |
--vers |
-V)
1229 ac_init_version
=: ;;
1232 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1238 eval with_
$ac_package=\
$ac_optarg ;;
1240 -without-* |
--without-*)
1241 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1247 eval with_
$ac_package=no
;;
1250 # Obsolete; use --with-x.
1253 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1254 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1255 ac_prev
=x_includes
;;
1256 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1257 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1258 x_includes
=$ac_optarg ;;
1260 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1261 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1262 ac_prev
=x_libraries
;;
1263 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1264 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1265 x_libraries
=$ac_optarg ;;
1267 -*) { echo "$as_me: error: unrecognized option: $ac_option
1268 Try \`$0 --help' for more information." >&2
1269 { (exit 1); exit 1; }; }
1273 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1276 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277 { (exit 1); exit 1; }; }
1278 eval $ac_envvar=\
$ac_optarg
1279 export $ac_envvar ;;
1282 # FIXME: should be removed in autoconf 3.0.
1283 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1285 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1292 if test -n "$ac_prev"; then
1293 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1294 { echo "$as_me: error: missing argument to $ac_option" >&2
1295 { (exit 1); exit 1; }; }
1298 # Be sure to have absolute directory names.
1299 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val
=\$
$ac_var
1306 [\\/$
]* | ?
:[\\/]* ) continue;;
1307 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1309 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1318 target
=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x
; then
1322 if test "x$build_alias" = x
; then
1323 cross_compiling
=maybe
1324 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1332 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1334 test "$silent" = yes && exec 6>/dev
/null
1337 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di
=`ls -di .` &&
1339 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1340 { echo "$as_me: error: Working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted
=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir
=`$as_dirname -- "$0" ||
1352 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$0" : 'X\(//\)[^/]' \| \
1354 X"$0" : 'X\(//\)$' \| \
1355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted
=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1383 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1386 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1399 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 for ac_var
in $ac_precious_vars; do
1402 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1404 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1415 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --build=BUILD configure
for building on BUILD
[guessed
]
1474 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive
) echo "Configuration of asterisk 1.4:";;
1485 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1486 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1487 --enable-dev-mode Turn on developer mode
1488 --disable-largefile omit support
for large files
1491 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1492 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1493 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1494 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1495 --with-curl=PATH use cURL files
in PATH
1496 --with-cap=PATH use POSIX
1.e capabilities files
in PATH
1497 --with-curses=PATH use curses files
in PATH
1498 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1500 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1501 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1502 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1503 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1504 --with-kde=PATH use KDE files
in PATH
1505 --with-ltdl=PATH use libtool files
in PATH
1506 --with-misdn=PATH use mISDN User Library files
in PATH
1507 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1508 --with-ncurses=PATH use ncurses files
in PATH
1509 --with-netsnmp=PATH use Net-SNMP files
in PATH
1510 --with-newt=PATH use newt files
in PATH
1511 --with-odbc=PATH use unixODBC files
in PATH
1512 --with-ogg=PATH use OGG files
in PATH
1513 --with-osptk=PATH use OSP Toolkit files
in PATH
1514 --with-oss=PATH use Open Sound System files
in PATH
1515 --with-popt=PATH use popt files
in PATH
1516 --with-postgres=PATH use PostgreSQL files
in PATH
1517 --with-pri=PATH use ISDN PRI files
in PATH
1518 --with-pwlib=PATH use PWlib files
in PATH
1519 --with-h323=PATH use OpenH323 files
in PATH
1520 --with-radius=PATH use Radius Client files
in PATH
1521 --with-speex=PATH use Speex files
in PATH
1522 --with-speexdsp=PATH use Speexdsp files
in PATH
1523 --with-sqlite=PATH use SQLite files
in PATH
1524 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1525 --with-ssl=PATH use OpenSSL files
in PATH
1526 --with-tds=PATH use FreeTDS files
in PATH
1527 --with-termcap=PATH use Termcap files
in PATH
1528 --with-tinfo=PATH use Term Info files
in PATH
1529 --with-tonezone=PATH use tonezone files
in PATH
1530 --with-usb=PATH use usb files
in PATH
1531 --with-vorbis=PATH use Vorbis files
in PATH
1532 --with-vpb=PATH use Voicetronix API files
in PATH
1533 --with-z=PATH use zlib files
in PATH
1534 --with-zaptel=PATH use Zaptel files
in PATH
1536 Some influential environment variables
:
1537 CC C compiler
command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1540 nonstandard directory
<lib dir
>
1541 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1542 you have headers
in a nonstandard directory
<include dir
>
1544 CXX C
++ compiler
command
1545 CXXFLAGS C
++ compiler flags
1546 CXXCPP C
++ preprocessor
1548 Use these variables to override the choices made by
`configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1551 Report bugs to <www.asterisk.org>.
1556 if test "$ac_init_help" = "recursive"; then
1557 # If there are subdirs, report their specific --help.
1558 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559 test -d "$ac_dir" || continue
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1579 .) # We are building in place.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1612 asterisk configure 1.4
1613 generated by GNU Autoconf 2.60
1615 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1616 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1624 cat >config.log <<_ACEOF
1625 This file contains any messages produced by compilers while
1626 running configure, to aid debugging if configure makes a mistake.
1628 It was created by asterisk $as_me 1.4, which was
1629 generated by GNU Autoconf 2.60. Invocation command line was
1641 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1642 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1643 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1644 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1645 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1647 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1648 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1650 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1651 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1652 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1653 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1654 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1655 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1656 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 test -z "$as_dir" && as_dir=.
1665 echo "PATH: $as_dir"
1681 # Keep a trace of the command line.
1682 # Strip out --no-create and --no-recursion so they do not pile up.
1683 # Strip out --silent because we don't want to record it for future runs.
1684 # Also quote any args containing shell meta-characters.
1685 # Make two passes to allow for proper duplicate-argument suppression.
1689 ac_must_keep_next=false
1695 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1697 | -silent | --silent | --silen | --sile | --sil)
1700 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1703 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1705 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1706 if test $ac_must_keep_next = true; then
1707 ac_must_keep_next=false # Got value, back to normal.
1710 *=* | --config-cache | -C | -disable-* | --disable-* \
1711 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1712 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1713 | -with-* | --with-* | -without-* | --without-* | --x)
1714 case "$ac_configure_args0 " in
1715 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1718 -* ) ac_must_keep_next=true ;;
1721 ac_configure_args="$ac_configure_args '$ac_arg'"
1726 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1727 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1729 # When interrupted or exit'd, cleanup temporary files, and complete
1730 # config.log. We remove comments because anyway the quotes in there
1731 # would cause problems or look ugly.
1732 # WARNING: Use '\'' to represent an apostrophe within the trap.
1733 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1734 trap 'exit_status=$?
1735 # Save into config.log some information that might help in debugging.
1740 ## ---------------- ##
1741 ## Cache variables. ##
1742 ## ---------------- ##
1745 # The following way of writing the cache mishandles newlines in values,
1747 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1748 eval ac_val=\$$ac_var
1752 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1753 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1756 _ | IFS | as_nl) ;; #(
1757 *) $as_unset $ac_var ;;
1762 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1763 *${as_nl}ac_space=\ *)
1765 "s/'\''/'\''\\\\'\'''\''/g;
1766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1777 ## ----------------- ##
1778 ## Output variables. ##
1779 ## ----------------- ##
1782 for ac_var in $ac_subst_vars
1784 eval ac_val=\$$ac_var
1786 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1788 echo "$ac_var='\''$ac_val'\''"
1792 if test -n "$ac_subst_files"; then
1794 ## ------------------- ##
1795 ## File substitutions. ##
1796 ## ------------------- ##
1799 for ac_var in $ac_subst_files
1801 eval ac_val=\$$ac_var
1803 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805 echo "$ac_var='\''$ac_val'\''"
1810 if test -s confdefs.h; then
1820 test "$ac_signal" != 0 &&
1821 echo "$as_me: caught signal $ac_signal"
1822 echo "$as_me: exit $exit_status"
1824 rm -f core *.core core.conftest.* &&
1825 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1828 for ac_signal in 1 2 13 15; do
1829 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1833 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1834 rm -f -r conftest* confdefs.h
1836 # Predefined preprocessor variables.
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_NAME "$PACKAGE_NAME"
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_STRING "$PACKAGE_STRING"
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1863 # Let the site file select an alternate cache file if it wants to.
1864 # Prefer explicitly selected file to automatically selected ones.
1865 if test -n "$CONFIG_SITE"; then
1866 set x "$CONFIG_SITE"
1867 elif test "x$prefix" != xNONE; then
1868 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1870 set x "$ac_default_prefix/share/config.site" \
1871 "$ac_default_prefix/etc/config.site"
1876 if test -r "$ac_site_file"; then
1877 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1878 echo "$as_me: loading site script $ac_site_file" >&6;}
1879 sed 's/^/| /' "$ac_site_file" >&5
1884 if test -r "$cache_file"; then
1885 # Some versions of bash will fail to source /dev/null (special
1886 # files actually), so we avoid doing that.
1887 if test -f "$cache_file"; then
1888 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1889 echo "$as_me: loading cache $cache_file" >&6;}
1891 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1892 *) . "./$cache_file";;
1896 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1897 echo "$as_me: creating cache $cache_file" >&6;}
1901 # Check that the precious variables saved in the cache have kept the same
1903 ac_cache_corrupted=false
1904 for ac_var in $ac_precious_vars; do
1905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1906 eval ac_new_set=\$ac_env_${ac_var}_set
1907 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1908 eval ac_new_val=\$ac_env_${ac_var}_value
1909 case $ac_old_set,$ac_new_set in
1911 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1912 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1913 ac_cache_corrupted=: ;;
1915 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1916 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1917 ac_cache_corrupted=: ;;
1920 if test "x$ac_old_val" != "x$ac_new_val"; then
1921 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1922 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1923 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1924 echo "$as_me: former value
: $ac_old_val" >&2;}
1925 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1926 echo "$as_me: current value
: $ac_new_val" >&2;}
1927 ac_cache_corrupted=:
1930 # Pass precious variables to config.status.
1931 if test "$ac_new_set" = set; then
1933 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1934 *) ac_arg=$ac_var=$ac_new_val ;;
1936 case " $ac_configure_args " in
1937 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1938 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1942 if $ac_cache_corrupted; then
1943 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1944 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1945 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1946 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1947 { (exit 1); exit 1; }; }
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982 # cross-compile macros
1984 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1985 if test -f "$ac_dir/install-sh"; then
1987 ac_install_sh="$ac_aux_dir/install-sh -c"
1989 elif test -f "$ac_dir/install.sh"; then
1991 ac_install_sh="$ac_aux_dir/install.sh -c"
1993 elif test -f "$ac_dir/shtool"; then
1995 ac_install_sh="$ac_aux_dir/shtool install -c"
1999 if test -z "$ac_aux_dir"; then
2000 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2001 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2002 { (exit 1); exit 1; }; }
2005 # These three variables are undocumented and unsupported,
2006 # and are intended to be withdrawn in a future Autoconf release.
2007 # They can cause serious problems if a builder's source tree is in a directory
2008 # whose full name contains unusual characters.
2009 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2010 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2011 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2014 # Make sure we can run config.sub.
2015 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2016 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2017 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2018 { (exit 1); exit 1; }; }
2020 { echo "$as_me:$LINENO: checking build system type" >&5
2021 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2022 if test "${ac_cv_build+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 ac_build_alias=$build_alias
2026 test "x$ac_build_alias" = x &&
2027 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2028 test "x$ac_build_alias" = x &&
2029 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2030 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2031 { (exit 1); exit 1; }; }
2032 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2033 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2034 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2035 { (exit 1); exit 1; }; }
2038 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2039 echo "${ECHO_T}$ac_cv_build" >&6; }
2040 case $ac_cv_build in
2042 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2043 echo "$as_me: error: invalid value of canonical build" >&2;}
2044 { (exit 1); exit 1; }; };;
2047 ac_save_IFS=$IFS; IFS='-'
2053 # Remember, the first character of IFS is used to create $*,
2054 # except with old shells:
2057 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2060 { echo "$as_me:$LINENO: checking host system type" >&5
2061 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2062 if test "${ac_cv_host+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 if test "x$host_alias" = x; then
2066 ac_cv_host=$ac_cv_build
2068 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2069 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2070 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2071 { (exit 1); exit 1; }; }
2075 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2076 echo "${ECHO_T}$ac_cv_host" >&6; }
2079 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2080 echo "$as_me: error: invalid value of canonical host" >&2;}
2081 { (exit 1); exit 1; }; };;
2084 ac_save_IFS=$IFS; IFS='-'
2090 # Remember, the first character of IFS is used to create $*,
2091 # except with old shells:
2094 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2098 # check existence of the package
2101 # specify output header file
2102 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2109 cat >>confdefs.h <<\_ACEOF
2110 #define _GNU_SOURCE 1
2115 ac_cpp='$CPP $CPPFLAGS'
2116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2119 if test -n "$ac_tool_prefix"; then
2120 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2121 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_prog_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 if test -n "$CC"; then
2128 ac_cv_prog_CC="$CC" # Let the user override the test.
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2137 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 if test -n "$CC"; then
2149 { echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6; }
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2158 if test -z "$ac_cv_prog_CC"; then
2160 # Extract the first word of "gcc", so it can be a program name with args.
2161 set dummy gcc; ac_word=$2
2162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test -n "$ac_ct_CC"; then
2168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2177 ac_cv_prog_ac_ct_CC="gcc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188 if test -n "$ac_ct_CC"; then
2189 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190 echo "${ECHO_T}$ac_ct_CC" >&6; }
2192 { echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6; }
2196 if test "x$ac_ct_CC" = x; then
2199 case $cross_compiling:$ac_tool_warned in
2201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to autoconf@gnu.org." >&5
2204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2205 whose name does not start with the host triplet. If you think this
2206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2207 ac_tool_warned=yes ;;
2215 if test -z "$CC"; then
2216 if test -n "$ac_tool_prefix"; then
2217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2218 set dummy ${ac_tool_prefix}cc; ac_word=$2
2219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2221 if test "${ac_cv_prog_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 if test -n "$CC"; then
2225 ac_cv_prog_CC="$CC" # Let the user override the test.
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2234 ac_cv_prog_CC="${ac_tool_prefix}cc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 if test -n "$CC"; then
2246 { echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6; }
2249 { echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6; }
2256 if test -z "$CC"; then
2257 # Extract the first word of "cc", so it can be a program name with args.
2258 set dummy cc; ac_word=$2
2259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2261 if test "${ac_cv_prog_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 if test -n "$CC"; then
2265 ac_cv_prog_CC="$CC" # Let the user override the test.
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2276 ac_prog_rejected=yes
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 if test $ac_prog_rejected = yes; then
2288 # We found a bogon in the path, so make sure we never use it.
2289 set dummy $ac_cv_prog_CC
2291 if test $# != 0; then
2292 # We chose a different compiler from the bogus one.
2293 # However, it has the same basename, so the bogon will be chosen
2294 # first if we set CC to just the basename; use the full file name.
2296 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2302 if test -n "$CC"; then
2303 { echo "$as_me:$LINENO: result: $CC" >&5
2304 echo "${ECHO_T}$CC" >&6; }
2306 { echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6; }
2312 if test -z "$CC"; then
2313 if test -n "$ac_tool_prefix"; then
2314 for ac_prog in cl.exe
2316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 if test -n "$CC"; then
2345 { echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6; }
2348 { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2353 test -n "$CC" && break
2356 if test -z "$CC"; then
2358 for ac_prog in cl.exe
2360 # Extract the first word of "$ac_prog", so it can be a program name with args.
2361 set dummy $ac_prog; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 if test -n "$ac_ct_CC"; then
2368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_CC="$ac_prog"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6; }
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2397 test -n "$ac_ct_CC" && break
2400 if test "x$ac_ct_CC" = x; then
2403 case $cross_compiling:$ac_tool_warned in
2405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2406 whose name does not start with the host triplet. If you think this
2407 configuration is useful to you, please write to autoconf@gnu.org." >&5
2408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2409 whose name does not start with the host triplet. If you think this
2410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2411 ac_tool_warned=yes ;;
2420 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2421 See \`config.log
' for more details." >&5
2422 echo "$as_me: error: no acceptable C compiler found in \$PATH
2423 See \`config.log' for more details.
" >&2;}
2424 { (exit 1); exit 1; }; }
2426 # Provide some information about the compiler.
2427 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2428 ac_compiler=`set X $ac_compile; echo $2`
2429 { (ac_try="$ac_compiler --version >&5"
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_compiler --version >&5") 2>&5
2437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2438 (exit $ac_status); }
2439 { (ac_try="$ac_compiler -v >&5"
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compiler -v >&5") 2>&5
2447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2448 (exit $ac_status); }
2449 { (ac_try="$ac_compiler -V >&5"
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compiler -V >&5") 2>&5
2457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2458 (exit $ac_status); }
2460 cat >conftest.$ac_ext <<_ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h. */
2475 ac_clean_files_save=$ac_clean_files
2476 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2477 # Try to create an executable without -o first, disregard a.out.
2478 # It will help us diagnose broken compilers, and finding out an intuition
2480 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2481 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2482 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2484 # List of possible output files, starting from the most likely.
2485 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2486 # only as a last resort. b.out is created by i960 compilers.
2487 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2489 # The IRIX 6 linker writes into existing files which may not be
2490 # executable, retaining their permissions. Remove them first so a
2491 # subsequent execution test works.
2493 for ac_file in $ac_files
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2497 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2502 if { (ac_try="$ac_link_default"
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_link_default") 2>&5
2510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2511 (exit $ac_status); }; then
2512 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2513 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2514 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2515 # so that the user can short-circuit this test for compilers unknown to
2517 for ac_file in $ac_files
2519 test -f "$ac_file" || continue
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2524 # We found the default executable, but exeext='' is most
2528 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532 # We set ac_cv_exeext here because the later test for it is not
2533 # safe: cross compilers may not add the suffix if given an `-o'
2534 # argument, so we may need to know it at that point already.
2535 # Even if this section looks crufty: it has the advantage of
2542 test "$ac_cv_exeext" = no && ac_cv_exeext=
2545 echo "$as_me: failed program was
:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2549 See \
`config.log' for more details." >&5
2550 echo "$as_me: error: C compiler cannot create executables
2551 See \`config.log
' for more details." >&2;}
2552 { (exit 77); exit 77; }; }
2555 ac_exeext=$ac_cv_exeext
2556 { echo "$as_me:$LINENO: result: $ac_file" >&5
2557 echo "${ECHO_T}$ac_file" >&6; }
2559 # Check that the compiler produces executables we can run. If not, either
2560 # the compiler is broken, or we cross compile.
2561 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2562 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2563 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2564 # If not cross compiling, check that we can run a simple program.
2565 if test "$cross_compiling" != yes; then
2566 if { ac_try='.
/$ac_file'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2578 if test "$cross_compiling" = maybe; then
2581 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2582 If you meant to cross compile, use \`--host'.
2583 See \
`config.log' for more details." >&5
2584 echo "$as_me: error: cannot run C compiled programs.
2585 If you meant to cross compile, use \`--host'.
2586 See \`config.log' for more details.
" >&2;}
2587 { (exit 1); exit 1; }; }
2591 { echo "$as_me:$LINENO: result
: yes" >&5
2592 echo "${ECHO_T}yes" >&6; }
2594 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2595 ac_clean_files=$ac_clean_files_save
2596 # Check that the compiler produces executables we can run. If not, either
2597 # the compiler is broken, or we cross compile.
2598 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2599 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2600 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2601 echo "${ECHO_T}$cross_compiling" >&6; }
2603 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2604 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2605 if { (ac_try="$ac_link"
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_link") 2>&5
2613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2614 (exit $ac_status); }; then
2615 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2616 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2617 # work properly (i.e., refer to `conftest.exe'), while it won't with
2619 for ac_file in conftest.exe conftest conftest.*; do
2620 test -f "$ac_file" || continue
2622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2623 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2629 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2630 See \
`config.log' for more details." >&5
2631 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2632 See \`config.log
' for more details." >&2;}
2633 { (exit 1); exit 1; }; }
2636 rm -f conftest$ac_cv_exeext
2637 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2638 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2640 rm -f conftest.$ac_ext
2641 EXEEXT=$ac_cv_exeext
2643 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2644 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2645 if test "${ac_cv_objext+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2663 rm -f conftest.o conftest.obj
2664 if { (ac_try="$ac_compile"
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compile") 2>&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; then
2674 for ac_file in conftest.o conftest.obj conftest.*; do
2675 test -f "$ac_file" || continue;
2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2678 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2683 echo "$as_me: failed program was:" >&5
2684 sed 's
/^
/|
/' conftest.$ac_ext >&5
2686 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details.
" >&5
2688 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2689 See \
`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2695 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2696 echo "${ECHO_T}$ac_cv_objext" >&6; }
2697 OBJEXT=$ac_cv_objext
2699 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2700 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2701 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 cat >conftest.$ac_ext <<_ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2722 rm -f conftest.$ac_objext
2723 if { (ac_try="$ac_compile"
2725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2726 *) ac_try_echo
=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compile") 2>conftest.er1
2731 grep -v '^ *+' conftest.er1
>conftest.err
2733 cat conftest.err
>&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2737 { (case "(($ac_try" in
2738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_try") 2>&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (case "(($ac_try" in
2748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2749 *) ac_try_echo
=$ac_try;;
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_try") 2>&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.
$ac_ext >&5
2764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2765 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2768 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2769 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2770 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2771 ac_test_CFLAGS
=${CFLAGS+set}
2772 ac_save_CFLAGS
=$CFLAGS
2773 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_cc_g+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 ac_save_c_werror_flag
=$ac_c_werror_flag
2779 ac_c_werror_flag
=yes
2782 cat >conftest.
$ac_ext <<_ACEOF
2785 cat confdefs.h
>>conftest.
$ac_ext
2786 cat >>conftest.
$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2797 rm -f conftest.
$ac_objext
2798 if { (ac_try
="$ac_compile"
2800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_compile") 2>conftest.er1
2806 grep -v '^ *+' conftest.er1 >conftest.err
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2812 { (case "(($ac_try" in
2813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2814 *) ac_try_echo
=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_try") 2>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try
='test -s conftest.$ac_objext'
2822 { (case "(($ac_try" in
2823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_try") 2>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2852 rm -f conftest.$ac_objext
2853 if { (ac_try="$ac_compile"
2855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2856 *) ac_try_echo
=$ac_try;;
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_compile") 2>conftest.er1
2861 grep -v '^ *+' conftest.er1
>conftest.err
2863 cat conftest.err
>&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2867 { (case "(($ac_try" in
2868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_try") 2>&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (case "(($ac_try" in
2878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2879 *) ac_try_echo
=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_try") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.
$ac_ext >&5
2891 ac_c_werror_flag
=$ac_save_c_werror_flag
2893 cat >conftest.
$ac_ext <<_ACEOF
2896 cat confdefs.h
>>conftest.
$ac_ext
2897 cat >>conftest.
$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2908 rm -f conftest.
$ac_objext
2909 if { (ac_try
="$ac_compile"
2911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_compile") 2>conftest.er1
2917 grep -v '^ *+' conftest.er1 >conftest.err
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2923 { (case "(($ac_try" in
2924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2925 *) ac_try_echo
=$ac_try;;
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_try") 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; } &&
2932 { ac_try
='test -s conftest.$ac_objext'
2933 { (case "(($ac_try" in
2934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_try") 2>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 ac_c_werror_flag=$ac_save_c_werror_flag
2959 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2960 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2961 if test "$ac_test_CFLAGS" = set; then
2962 CFLAGS=$ac_save_CFLAGS
2963 elif test $ac_cv_prog_cc_g = yes; then
2964 if test "$GCC" = yes; then
2970 if test "$GCC" = yes; then
2976 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2977 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_cc_c89+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 ac_cv_prog_cc_c89=no
2983 cat >conftest.$ac_ext <<_ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2991 #include <sys/types.h>
2992 #include <sys/stat.h>
2993 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2994 struct buf { int x; };
2995 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2996 static char *e (p, i)
3002 static char *f (char * (*g) (char **, int), char **p, ...)
3007 s = g (p, va_arg (v,int));
3012 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3013 function prototypes and stuff, but not '\xHH' hex character constants.
3014 These don't provoke an error unfortunately, instead are silently treated
3015 as 'x'. The following induces an error, until -std is added to get
3016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3017 array size at least. It's necessary to write '\x00'==0 to get something
3018 that's true only with -std. */
3019 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3021 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3022 inside strings and character constants. */
3024 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3026 int test (int i, double x);
3027 struct s1 {int (*f) (int a);};
3028 struct s2 {int (*f) (double a);};
3029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3040 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3043 CC="$ac_save_CC $ac_arg"
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3048 *) ac_try_echo
=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1
>conftest.err
3055 cat conftest.err
>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3071 *) ac_try_echo
=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 ac_cv_prog_cc_c89
=$ac_arg
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.
$ac_ext >&5
3086 rm -f core conftest.err conftest.
$ac_objext
3087 test "x$ac_cv_prog_cc_c89" != "xno" && break
3089 rm -f conftest.
$ac_ext
3094 case "x$ac_cv_prog_cc_c89" in
3096 { echo "$as_me:$LINENO: result: none needed" >&5
3097 echo "${ECHO_T}none needed" >&6; } ;;
3099 { echo "$as_me:$LINENO: result: unsupported" >&5
3100 echo "${ECHO_T}unsupported" >&6; } ;;
3102 CC
="$CC $ac_cv_prog_cc_c89"
3103 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3104 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3109 ac_cpp
='$CPP $CPPFLAGS'
3110 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3116 ac_cpp
='$CPP $CPPFLAGS'
3117 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3120 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3121 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3122 # On Suns, sometimes $CPP names a directory.
3123 if test -n "$CPP" && test -d "$CPP"; then
3126 if test -z "$CPP"; then
3127 if test "${ac_cv_prog_CPP+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 # Double quotes because CPP needs to be expanded
3131 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3134 for ac_c_preproc_warn_flag
in '' yes
3136 # Use a header file that comes with gcc, so configuring glibc
3137 # with a fresh cross-compiler works.
3138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139 # <limits.h> exists even on freestanding compilers.
3140 # On the NeXT, cc -E runs the code through the compiler's parser,
3141 # not just through cpp. "Syntax error" is here to catch this case.
3142 cat >conftest.
$ac_ext <<_ACEOF
3145 cat confdefs.h
>>conftest.
$ac_ext
3146 cat >>conftest.
$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3149 # include <limits.h>
3151 # include <assert.h>
3155 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3163 grep -v '^ *+' conftest.er1 >conftest.err
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } >/dev/null; then
3168 if test -s conftest.err; then
3169 ac_cpp_err=$ac_c_preproc_warn_flag
3170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3177 if test -z "$ac_cpp_err"; then
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 # Broken: fails on valid input.
3187 rm -f conftest.err conftest.$ac_ext
3189 # OK, works on sane cases. Now check whether nonexistent headers
3190 # can be detected and how.
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3197 #include <ac_nonexistent.h>
3199 if { (ac_try="$ac_cpp conftest.$ac_ext"
3201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3202 *) ac_try_echo
=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3207 grep -v '^ *+' conftest.er1
>conftest.err
3209 cat conftest.err
>&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev
/null
; then
3212 if test -s conftest.err
; then
3213 ac_cpp_err
=$ac_c_preproc_warn_flag
3214 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3221 if test -z "$ac_cpp_err"; then
3222 # Broken: success on invalid input.
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.
$ac_ext >&5
3228 # Passes both tests.
3233 rm -f conftest.err conftest.
$ac_ext
3236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3237 rm -f conftest.err conftest.
$ac_ext
3238 if $ac_preproc_ok; then
3250 { echo "$as_me:$LINENO: result: $CPP" >&5
3251 echo "${ECHO_T}$CPP" >&6; }
3253 for ac_c_preproc_warn_flag
in '' yes
3255 # Use a header file that comes with gcc, so configuring glibc
3256 # with a fresh cross-compiler works.
3257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258 # <limits.h> exists even on freestanding compilers.
3259 # On the NeXT, cc -E runs the code through the compiler's parser,
3260 # not just through cpp. "Syntax error" is here to catch this case.
3261 cat >conftest.
$ac_ext <<_ACEOF
3264 cat confdefs.h
>>conftest.
$ac_ext
3265 cat >>conftest.
$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3268 # include <limits.h>
3270 # include <assert.h>
3274 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296 if test -z "$ac_cpp_err"; then
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 # Broken: fails on valid input.
3306 rm -f conftest.err conftest.$ac_ext
3308 # OK, works on sane cases. Now check whether nonexistent headers
3309 # can be detected and how.
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 #include <ac_nonexistent.h>
3318 if { (ac_try="$ac_cpp conftest.$ac_ext"
3320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3321 *) ac_try_echo
=$ac_try;;
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1
>conftest.err
3328 cat conftest.err
>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } >/dev
/null
; then
3331 if test -s conftest.err
; then
3332 ac_cpp_err
=$ac_c_preproc_warn_flag
3333 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3340 if test -z "$ac_cpp_err"; then
3341 # Broken: success on invalid input.
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.
$ac_ext >&5
3347 # Passes both tests.
3352 rm -f conftest.err conftest.
$ac_ext
3355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356 rm -f conftest.err conftest.
$ac_ext
3357 if $ac_preproc_ok; then
3360 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3361 See \`config.log' for more details." >&5
3362 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3363 See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }
3368 ac_cpp
='$CPP $CPPFLAGS'
3369 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3374 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3375 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3376 if test "${ac_cv_path_GREP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 # Extract the first word of "grep ggrep" to use in msg output
3380 if test -z "$GREP"; then
3381 set dummy
grep ggrep
; ac_prog_name
=$2
3382 if test "${ac_cv_path_GREP+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 ac_path_GREP_found
=false
3386 # Loop through the user's path and test for each of PROGNAME-LIST
3387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3388 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3391 test -z "$as_dir" && as_dir
=.
3392 for ac_prog
in grep ggrep
; do
3393 for ac_exec_ext
in '' $ac_executable_extensions; do
3394 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3395 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3396 # Check for GNU ac_path_GREP and select it if it is found.
3397 # Check for GNU $ac_path_GREP
3398 case `"$ac_path_GREP" --version 2>&1` in
3400 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3403 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3406 cat "conftest.in" "conftest.in" >"conftest.tmp"
3407 mv "conftest.tmp" "conftest.in"
3408 cp "conftest.in" "conftest.nl"
3409 echo 'GREP' >> "conftest.nl"
3410 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3411 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3412 ac_count
=`expr $ac_count + 1`
3413 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3414 # Best one so far, save it but keep looking for a better one
3415 ac_cv_path_GREP
="$ac_path_GREP"
3416 ac_path_GREP_max
=$ac_count
3418 # 10*(2^10) chars as input seems more than enough
3419 test $ac_count -gt 10 && break
3421 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3425 $ac_path_GREP_found && break 3
3435 GREP
="$ac_cv_path_GREP"
3436 if test -z "$GREP"; then
3437 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3438 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3439 { (exit 1); exit 1; }; }
3443 ac_cv_path_GREP
=$GREP
3448 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3449 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3450 GREP
="$ac_cv_path_GREP"
3453 { echo "$as_me:$LINENO: checking for egrep" >&5
3454 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3455 if test "${ac_cv_path_EGREP+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3459 then ac_cv_path_EGREP
="$GREP -E"
3461 # Extract the first word of "egrep" to use in msg output
3462 if test -z "$EGREP"; then
3463 set dummy
egrep; ac_prog_name
=$2
3464 if test "${ac_cv_path_EGREP+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_path_EGREP_found
=false
3468 # Loop through the user's path and test for each of PROGNAME-LIST
3469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3470 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3473 test -z "$as_dir" && as_dir
=.
3474 for ac_prog
in egrep; do
3475 for ac_exec_ext
in '' $ac_executable_extensions; do
3476 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3477 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3478 # Check for GNU ac_path_EGREP and select it if it is found.
3479 # Check for GNU $ac_path_EGREP
3480 case `"$ac_path_EGREP" --version 2>&1` in
3482 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3485 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3488 cat "conftest.in" "conftest.in" >"conftest.tmp"
3489 mv "conftest.tmp" "conftest.in"
3490 cp "conftest.in" "conftest.nl"
3491 echo 'EGREP' >> "conftest.nl"
3492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3493 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3494 ac_count
=`expr $ac_count + 1`
3495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3496 # Best one so far, save it but keep looking for a better one
3497 ac_cv_path_EGREP
="$ac_path_EGREP"
3498 ac_path_EGREP_max
=$ac_count
3500 # 10*(2^10) chars as input seems more than enough
3501 test $ac_count -gt 10 && break
3503 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3507 $ac_path_EGREP_found && break 3
3517 EGREP
="$ac_cv_path_EGREP"
3518 if test -z "$EGREP"; then
3519 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3520 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3521 { (exit 1); exit 1; }; }
3525 ac_cv_path_EGREP
=$EGREP
3531 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3532 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3533 EGREP
="$ac_cv_path_EGREP"
3537 { echo "$as_me:$LINENO: checking for AIX" >&5
3538 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3539 cat >conftest.
$ac_ext <<_ACEOF
3542 cat confdefs.h
>>conftest.
$ac_ext
3543 cat >>conftest.
$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 $EGREP "yes" >/dev
/null
2>&1; then
3552 { echo "$as_me:$LINENO: result: yes" >&5
3553 echo "${ECHO_T}yes" >&6; }
3554 cat >>confdefs.h
<<\_ACEOF
3555 #define _ALL_SOURCE 1
3559 { echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6; }
3565 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3566 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3567 if test "${ac_cv_header_stdc+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 cat >conftest.
$ac_ext <<_ACEOF
3573 cat confdefs.h
>>conftest.
$ac_ext
3574 cat >>conftest.
$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3589 rm -f conftest.
$ac_objext
3590 if { (ac_try
="$ac_compile"
3592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_compile") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3604 { (case "(($ac_try" in
3605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3606 *) ac_try_echo
=$ac_try;;
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_try") 2>&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try
='test -s conftest.$ac_objext'
3614 { (case "(($ac_try" in
3615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_try") 2>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_header_stdc=yes
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 ac_cv_header_stdc=no
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 if test $ac_cv_header_stdc = yes; then
3634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3635 cat >conftest.$ac_ext <<_ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645 $EGREP "memchr" >/dev/null 2>&1; then
3648 ac_cv_header_stdc=no
3654 if test $ac_cv_header_stdc = yes; then
3655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666 $EGREP "free" >/dev/null 2>&1; then
3669 ac_cv_header_stdc=no
3675 if test $ac_cv_header_stdc = yes; then
3676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3677 if test "$cross_compiling" = yes; then
3680 cat >conftest.$ac_ext <<_ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3688 #if ((' ' & 0x0FF) == 0x020)
3689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3692 # define ISLOWER(c) \
3693 (('a' <= (c) && (c) <= 'i') \
3694 || ('j' <= (c) && (c) <= 'r') \
3695 || ('s' <= (c) && (c) <= 'z'))
3696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3704 for (i = 0; i < 256; i++)
3705 if (XOR (islower (i), ISLOWER (i))
3706 || toupper (i) != TOUPPER (i))
3711 rm -f conftest$ac_exeext
3712 if { (ac_try="$ac_link"
3714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3715 *) ac_try_echo
=$ac_try;;
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_link") 2>&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3722 { (case "(($ac_try" in
3723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_try") 2>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3733 echo "$as_me: program exited with status $ac_status" >&5
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3738 ac_cv_header_stdc=no
3740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3746 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3747 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3748 if test $ac_cv_header_stdc = yes; then
3750 cat >>confdefs.h <<\_ACEOF
3751 #define STDC_HEADERS 1
3756 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3766 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3767 inttypes.h stdint.h unistd.h
3769 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 $ac_includes_default
3783 #include <$ac_header>
3785 rm -f conftest.$ac_objext
3786 if { (ac_try="$ac_compile"
3788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3789 *) ac_try_echo
=$ac_try;;
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_compile") 2>conftest.er1
3794 grep -v '^ *+' conftest.er1
>conftest.err
3796 cat conftest.err
>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800 { (case "(($ac_try" in
3801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_try") 2>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; } &&
3809 { ac_try='test -s conftest.$ac_objext'
3810 { (case "(($ac_try" in
3811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3812 *) ac_try_echo
=$ac_try;;
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_try") 2>&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 eval "$as_ac_Header=yes"
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.
$ac_ext >&5
3824 eval "$as_ac_Header=no"
3827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3829 ac_res
=`eval echo '${'$as_ac_Header'}'`
3830 { echo "$as_me:$LINENO: result: $ac_res" >&5
3831 echo "${ECHO_T}$ac_res" >&6; }
3832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3833 cat >>confdefs.h
<<_ACEOF
3834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3842 if test "${ac_cv_header_minix_config_h+set}" = set; then
3843 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3844 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3845 if test "${ac_cv_header_minix_config_h+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3849 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3851 # Is the header compilable?
3852 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3853 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3854 cat >conftest.
$ac_ext <<_ACEOF
3857 cat confdefs.h
>>conftest.
$ac_ext
3858 cat >>conftest.
$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3860 $ac_includes_default
3861 #include <minix/config.h>
3863 rm -f conftest.
$ac_objext
3864 if { (ac_try
="$ac_compile"
3866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3870 (eval "$ac_compile") 2>conftest.er1
3872 grep -v '^ *+' conftest.er1 >conftest.err
3874 cat conftest.err >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3878 { (case "(($ac_try" in
3879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3880 *) ac_try_echo
=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_try") 2>&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; } &&
3887 { ac_try
='test -s conftest.$ac_objext'
3888 { (case "(($ac_try" in
3889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_try") 2>&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_header_compiler=yes
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 ac_header_compiler=no
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3907 echo "${ECHO_T}$ac_header_compiler" >&6; }
3909 # Is the header present?
3910 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3911 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <minix/config.h>
3920 if { (ac_try="$ac_cpp conftest.$ac_ext"
3922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3923 *) ac_try_echo
=$ac_try;;
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3928 grep -v '^ *+' conftest.er1
>conftest.err
3930 cat conftest.err
>&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } >/dev
/null
; then
3933 if test -s conftest.err
; then
3934 ac_cpp_err
=$ac_c_preproc_warn_flag
3935 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3942 if test -z "$ac_cpp_err"; then
3943 ac_header_preproc
=yes
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.
$ac_ext >&5
3948 ac_header_preproc
=no
3951 rm -f conftest.err conftest.
$ac_ext
3952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3953 echo "${ECHO_T}$ac_header_preproc" >&6; }
3955 # So? What about this header?
3956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3958 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3959 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3960 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3961 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3962 ac_header_preproc
=yes
3965 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3966 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3967 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3968 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3969 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3970 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3971 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3972 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3973 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3974 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3975 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3976 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3978 ## ------------------------------- ##
3979 ## Report this to www.asterisk.org ##
3980 ## ------------------------------- ##
3982 ) |
sed "s/^/$as_me: WARNING: /" >&2
3985 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3986 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3987 if test "${ac_cv_header_minix_config_h+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 ac_cv_header_minix_config_h
=$ac_header_preproc
3992 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3993 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3996 if test $ac_cv_header_minix_config_h = yes; then
4003 if test "$MINIX" = yes; then
4005 cat >>confdefs.h
<<\_ACEOF
4006 #define _POSIX_SOURCE 1
4010 cat >>confdefs.h
<<\_ACEOF
4011 #define _POSIX_1_SOURCE 2
4015 cat >>confdefs.h
<<\_ACEOF
4031 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4032 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4033 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 cat >conftest.
$ac_ext <<_ACEOF
4039 cat confdefs.h
>>conftest.
$ac_ext
4040 cat >>conftest.
$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4043 # define __EXTENSIONS__ 1
4044 $ac_includes_default
4053 rm -f conftest.
$ac_objext
4054 if { (ac_try
="$ac_compile"
4056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4068 { (case "(($ac_try" in
4069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4070 *) ac_try_echo
=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_try") 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try
='test -s conftest.$ac_objext'
4078 { (case "(($ac_try" in
4079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_try") 2>&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_safe_to_define___extensions__=yes
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 ac_cv_safe_to_define___extensions__=no
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4098 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4099 test $ac_cv_safe_to_define___extensions__ = yes &&
4100 cat >>confdefs.h <<\_ACEOF
4101 #define __EXTENSIONS__ 1
4104 cat >>confdefs.h <<\_ACEOF
4105 #define _POSIX_PTHREAD_SEMANTICS 1
4108 # note- does not work on FreeBSD
4110 case "${host_os}" in
4112 ac_default_prefix=/usr/local
4113 CPPFLAGS=-I/usr/local/include
4114 LDFLAGS=-L/usr/local/lib
4117 ac_default_prefix=/usr
4118 if test ${sysconfdir} = '${prefix}/etc'; then
4121 if test ${mandir} = '${prefix}/man'; then
4122 mandir=/usr/share/man
4127 if test ${localstatedir} = '${prefix}/var'; then
4131 BUILD_PLATFORM=${build}
4132 BUILD_CPU=${build_cpu}
4133 BUILD_VENDOR=${build_vendor}
4134 BUILD_OS=${build_os}
4141 HOST_PLATFORM=${host}
4142 HOST_CPU=${host_cpu}
4143 HOST_VENDOR=${host_vendor}
4151 case "${host_os}" in
4172 if test -n "$ac_tool_prefix"; then
4173 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4174 set dummy ${ac_tool_prefix}uname; ac_word=$2
4175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4177 if test "${ac_cv_path_UNAME+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 UNAME=$ac_cv_path_UNAME
4204 if test -n "$UNAME"; then
4205 { echo "$as_me:$LINENO: result: $UNAME" >&5
4206 echo "${ECHO_T}$UNAME" >&6; }
4208 { echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6; }
4214 if test -z "$ac_cv_path_UNAME"; then
4216 # Extract the first word of "uname", so it can be a program name with args.
4217 set dummy uname; ac_word=$2
4218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4220 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 case $ac_pt_UNAME in
4225 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4247 if test -n "$ac_pt_UNAME"; then
4248 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4249 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4251 { echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6; }
4255 if test "x$ac_pt_UNAME" = x; then
4258 case $cross_compiling:$ac_tool_warned in
4260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4261 whose name does not start with the host triplet. If you think this
4262 configuration is useful to you, please write to autoconf@gnu.org." >&5
4263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4264 whose name does not start with the host triplet. If you think this
4265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4266 ac_tool_warned=yes ;;
4271 UNAME="$ac_cv_path_UNAME"
4274 if test ! x"${UNAME}" = xNo; then
4275 PBX_OSREV=$(${UNAME} -r)
4285 # cross-compile checks
4286 if test "${cross_compiling}" = "yes";
4288 if test -n "$ac_tool_prefix"; then
4289 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4290 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4293 if test "${ac_cv_prog_CC+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 if test -n "$CC"; then
4297 ac_cv_prog_CC="$CC" # Let the user override the test.
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 if test -n "$CC"; then
4318 { echo "$as_me:$LINENO: result: $CC" >&5
4319 echo "${ECHO_T}$CC" >&6; }
4321 { echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6; }
4327 if test -z "$ac_cv_prog_CC"; then
4329 # Extract the first word of "gcc", so it can be a program name with args.
4330 set dummy gcc; ac_word=$2
4331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 if test -n "$ac_ct_CC"; then
4337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_prog_ac_ct_CC="gcc"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4357 if test -n "$ac_ct_CC"; then
4358 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4359 echo "${ECHO_T}$ac_ct_CC" >&6; }
4361 { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4365 if test "x$ac_ct_CC" = x; then
4368 case $cross_compiling:$ac_tool_warned in
4370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4371 whose name does not start with the host triplet. If you think this
4372 configuration is useful to you, please write to autoconf@gnu.org." >&5
4373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4374 whose name does not start with the host triplet. If you think this
4375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4376 ac_tool_warned=yes ;;
4384 if test -n "$ac_tool_prefix"; then
4385 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4386 set dummy ${ac_tool_prefix}g++; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_CXX+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 if test -n "$CXX"; then
4393 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 if test -n "$CXX"; then
4414 { echo "$as_me:$LINENO: result: $CXX" >&5
4415 echo "${ECHO_T}$CXX" >&6; }
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4423 if test -z "$ac_cv_prog_CXX"; then
4425 # Extract the first word of "g++", so it can be a program name with args.
4426 set dummy g++; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$ac_ct_CXX"; then
4433 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_ac_ct_CXX="g++"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4453 if test -n "$ac_ct_CXX"; then
4454 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4455 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4461 if test "x$ac_ct_CXX" = x; then
4464 case $cross_compiling:$ac_tool_warned in
4466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4467 whose name does not start with the host triplet. If you think this
4468 configuration is useful to you, please write to autoconf@gnu.org." >&5
4469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4470 whose name does not start with the host triplet. If you think this
4471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4472 ac_tool_warned=yes ;;
4477 CXX="$ac_cv_prog_CXX"
4480 if test -n "$ac_tool_prefix"; then
4481 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4482 set dummy ${ac_tool_prefix}ld; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_prog_LD+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 if test -n "$LD"; then
4489 ac_cv_prog_LD="$LD" # Let the user override the test.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_LD="${ac_tool_prefix}ld"
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 if test -n "$LD"; then
4510 { echo "$as_me:$LINENO: result: $LD" >&5
4511 echo "${ECHO_T}$LD" >&6; }
4513 { echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6; }
4519 if test -z "$ac_cv_prog_LD"; then
4521 # Extract the first word of "ld", so it can be a program name with args.
4522 set dummy ld; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 if test -n "$ac_ct_LD"; then
4529 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_ac_ct_LD="ld"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4549 if test -n "$ac_ct_LD"; then
4550 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4551 echo "${ECHO_T}$ac_ct_LD" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4557 if test "x$ac_ct_LD" = x; then
4560 case $cross_compiling:$ac_tool_warned in
4562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4563 whose name does not start with the host triplet. If you think this
4564 configuration is useful to you, please write to autoconf@gnu.org." >&5
4565 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4566 whose name does not start with the host triplet. If you think this
4567 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4568 ac_tool_warned=yes ;;
4576 if test -n "$ac_tool_prefix"; then
4577 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4578 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_RANLIB+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if test -n "$RANLIB"; then
4585 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 RANLIB=$ac_cv_prog_RANLIB
4605 if test -n "$RANLIB"; then
4606 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4607 echo "${ECHO_T}$RANLIB" >&6; }
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4615 if test -z "$ac_cv_prog_RANLIB"; then
4616 ac_ct_RANLIB=$RANLIB
4617 # Extract the first word of "ranlib", so it can be a program name with args.
4618 set dummy ranlib; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 if test -n "$ac_ct_RANLIB"; then
4625 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_prog_ac_ct_RANLIB="ranlib"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4645 if test -n "$ac_ct_RANLIB"; then
4646 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4647 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4649 { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4653 if test "x$ac_ct_RANLIB" = x; then
4656 case $cross_compiling:$ac_tool_warned in
4658 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4659 whose name does not start with the host triplet. If you think this
4660 configuration is useful to you, please write to autoconf@gnu.org." >&5
4661 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4662 whose name does not start with the host triplet. If you think this
4663 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4664 ac_tool_warned=yes ;;
4666 RANLIB=$ac_ct_RANLIB
4669 RANLIB="$ac_cv_prog_RANLIB"
4674 # Checks for programs.
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680 if test -n "$ac_tool_prefix"; then
4681 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4682 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_prog_CC+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 if test -n "$CC"; then
4689 ac_cv_prog_CC="$CC" # Let the user override the test.
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 if test -n "$CC"; then
4710 { echo "$as_me:$LINENO: result: $CC" >&5
4711 echo "${ECHO_T}$CC" >&6; }
4713 { echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6; }
4719 if test -z "$ac_cv_prog_CC"; then
4721 # Extract the first word of "gcc", so it can be a program name with args.
4722 set dummy gcc; ac_word=$2
4723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 if test -n "$ac_ct_CC"; then
4729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_ac_ct_CC="gcc"
4739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4749 if test -n "$ac_ct_CC"; then
4750 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4751 echo "${ECHO_T}$ac_ct_CC" >&6; }
4753 { echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6; }
4757 if test "x$ac_ct_CC" = x; then
4760 case $cross_compiling:$ac_tool_warned in
4762 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4763 whose name does not start with the host triplet. If you think this
4764 configuration is useful to you, please write to autoconf@gnu.org." >&5
4765 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4766 whose name does not start with the host triplet. If you think this
4767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4768 ac_tool_warned=yes ;;
4776 if test -z "$CC"; then
4777 if test -n "$ac_tool_prefix"; then
4778 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4779 set dummy ${ac_tool_prefix}cc; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_prog_CC+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 if test -n "$CC"; then
4786 ac_cv_prog_CC="$CC" # Let the user override the test.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_CC="${ac_tool_prefix}cc"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 if test -n "$CC"; then
4807 { echo "$as_me:$LINENO: result: $CC" >&5
4808 echo "${ECHO_T}$CC" >&6; }
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4817 if test -z "$CC"; then
4818 # Extract the first word of "cc", so it can be a program name with args.
4819 set dummy cc; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_prog_CC+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 if test -n "$CC"; then
4826 ac_cv_prog_CC="$CC" # Let the user override the test.
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4837 ac_prog_rejected=yes
4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 if test $ac_prog_rejected = yes; then
4849 # We found a bogon in the path, so make sure we never use it.
4850 set dummy $ac_cv_prog_CC
4852 if test $# != 0; then
4853 # We chose a different compiler from the bogus one.
4854 # However, it has the same basename, so the bogon will be chosen
4855 # first if we set CC to just the basename; use the full file name.
4857 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4863 if test -n "$CC"; then
4864 { echo "$as_me:$LINENO: result: $CC" >&5
4865 echo "${ECHO_T}$CC" >&6; }
4867 { echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6; }
4873 if test -z "$CC"; then
4874 if test -n "$ac_tool_prefix"; then
4875 for ac_prog in cl.exe
4877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4881 if test "${ac_cv_prog_CC+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 if test -n "$CC"; then
4885 ac_cv_prog_CC="$CC" # Let the user override the test.
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 if test -n "$CC"; then
4906 { echo "$as_me:$LINENO: result: $CC" >&5
4907 echo "${ECHO_T}$CC" >&6; }
4909 { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4914 test -n "$CC" && break
4917 if test -z "$CC"; then
4919 for ac_prog in cl.exe
4921 # Extract the first word of "$ac_prog", so it can be a program name with args.
4922 set dummy $ac_prog; ac_word=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 if test -n "$ac_ct_CC"; then
4929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_ac_ct_CC="$ac_prog"
4939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4949 if test -n "$ac_ct_CC"; then
4950 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4951 echo "${ECHO_T}$ac_ct_CC" >&6; }
4953 { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4958 test -n "$ac_ct_CC" && break
4961 if test "x$ac_ct_CC" = x; then
4964 case $cross_compiling:$ac_tool_warned in
4966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4967 whose name does not start with the host triplet. If you think this
4968 configuration is useful to you, please write to autoconf@gnu.org." >&5
4969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4970 whose name does not start with the host triplet. If you think this
4971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4972 ac_tool_warned=yes ;;
4981 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4982 See \`config.log
' for more details." >&5
4983 echo "$as_me: error: no acceptable C compiler found in \$PATH
4984 See \`config.log' for more details.
" >&2;}
4985 { (exit 1); exit 1; }; }
4987 # Provide some information about the compiler.
4988 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4989 ac_compiler=`set X $ac_compile; echo $2`
4990 { (ac_try="$ac_compiler --version >&5"
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_compiler --version >&5") 2>&5
4998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4999 (exit $ac_status); }
5000 { (ac_try="$ac_compiler -v >&5"
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compiler -v >&5") 2>&5
5008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5009 (exit $ac_status); }
5010 { (ac_try="$ac_compiler -V >&5"
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_compiler -V >&5") 2>&5
5018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5019 (exit $ac_status); }
5021 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
5022 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
5023 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5024 echo $ECHO_N "(cached
) $ECHO_C" >&6
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5044 rm -f conftest.$ac_objext
5045 if { (ac_try="$ac_compile"
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_compile") 2>conftest.er1
5053 grep -v '^ *+' conftest.er1 >conftest.err
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5059 { (case "(($ac_try" in
5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5064 (eval "$ac_try") 2>&5
5066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try='test -s conftest.$ac_objext'
5069 { (case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5074 (eval "$ac_try") 2>&5
5076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5077 (exit $ac_status); }; }; then
5080 echo "$as_me: failed program was
:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5090 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
5091 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5092 GCC=`test $ac_compiler_gnu = yes && echo yes`
5093 ac_test_CFLAGS=${CFLAGS+set}
5094 ac_save_CFLAGS=$CFLAGS
5095 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
5096 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
5097 if test "${ac_cv_prog_cc_g+set}" = set; then
5098 echo $ECHO_N "(cached
) $ECHO_C" >&6
5100 ac_save_c_werror_flag=$ac_c_werror_flag
5101 ac_c_werror_flag=yes
5104 cat >conftest.$ac_ext <<_ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5119 rm -f conftest.$ac_objext
5120 if { (ac_try="$ac_compile"
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compile") 2>conftest.er1
5128 grep -v '^ *+' conftest.er1 >conftest.err
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5134 { (case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_try") 2>&5
5141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest.$ac_objext'
5144 { (case "(($ac_try" in
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5149 (eval "$ac_try") 2>&5
5151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5152 (exit $ac_status); }; }; then
5155 echo "$as_me: failed program was
:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5159 cat >conftest.$ac_ext <<_ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5174 rm -f conftest.$ac_objext
5175 if { (ac_try="$ac_compile"
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5181 (eval "$ac_compile") 2>conftest.er1
5183 grep -v '^ *+' conftest.er1 >conftest.err
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5189 { (case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_try") 2>&5
5196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_try") 2>&5
5206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5207 (exit $ac_status); }; }; then
5210 echo "$as_me: failed program was
:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 ac_c_werror_flag=$ac_save_c_werror_flag
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5230 rm -f conftest.$ac_objext
5231 if { (ac_try="$ac_compile"
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_compile") 2>conftest.er1
5239 grep -v '^ *+' conftest.er1 >conftest.err
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5245 { (case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_try") 2>&5
5252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5253 (exit $ac_status); }; } &&
5254 { ac_try='test -s conftest.$ac_objext'
5255 { (case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_try") 2>&5
5262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5263 (exit $ac_status); }; }; then
5266 echo "$as_me: failed program was
:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 ac_c_werror_flag=$ac_save_c_werror_flag
5281 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5282 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5283 if test "$ac_test_CFLAGS" = set; then
5284 CFLAGS=$ac_save_CFLAGS
5285 elif test $ac_cv_prog_cc_g = yes; then
5286 if test "$GCC" = yes; then
5292 if test "$GCC" = yes; then
5298 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5299 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5300 if test "${ac_cv_prog_cc_c89+set}" = set; then
5301 echo $ECHO_N "(cached
) $ECHO_C" >&6
5303 ac_cv_prog_cc_c89=no
5305 cat >conftest.$ac_ext <<_ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5313 #include <sys/types.h>
5314 #include <sys/stat.h>
5315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5316 struct buf { int x; };
5317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5318 static char *e (p, i)
5324 static char *f (char * (*g) (char **, int), char **p, ...)
5329 s = g (p, va_arg (v,int));
5334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5335 function prototypes and stuff, but not '\xHH' hex character constants.
5336 These don't provoke an error unfortunately, instead are silently treated
5337 as 'x'. The following induces an error, until -std is added to get
5338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5339 array size at least. It's necessary to write '\x00'==0 to get something
5340 that's true only with -std. */
5341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5344 inside strings and character constants. */
5346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5348 int test (int i, double x);
5349 struct s1 {int (*f) (int a);};
5350 struct s2 {int (*f) (double a);};
5351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5365 CC="$ac_save_CC $ac_arg"
5366 rm -f conftest.$ac_objext
5367 if { (ac_try="$ac_compile"
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5373 (eval "$ac_compile") 2>conftest.er1
5375 grep -v '^ *+' conftest.er1 >conftest.err
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5381 { (case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_try") 2>&5
5388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5389 (exit $ac_status); }; } &&
5390 { ac_try='test -s conftest.$ac_objext'
5391 { (case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_try") 2>&5
5398 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 ac_cv_prog_cc_c89=$ac_arg
5402 echo "$as_me: failed program was
:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5408 rm -f core conftest.err conftest.$ac_objext
5409 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5411 rm -f conftest.$ac_ext
5416 case "x
$ac_cv_prog_cc_c89" in
5418 { echo "$as_me:$LINENO: result
: none needed
" >&5
5419 echo "${ECHO_T}none needed
" >&6; } ;;
5421 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5422 echo "${ECHO_T}unsupported
" >&6; } ;;
5424 CC="$CC $ac_cv_prog_cc_c89"
5425 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5426 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5437 ac_cpp='$CXXCPP $CPPFLAGS'
5438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5441 if test -z "$CXX"; then
5442 if test -n "$CCC"; then
5445 if test -n "$ac_tool_prefix"; then
5446 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5450 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5451 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5452 if test "${ac_cv_prog_CXX+set}" = set; then
5453 echo $ECHO_N "(cached
) $ECHO_C" >&6
5455 if test -n "$CXX"; then
5456 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5466 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5476 if test -n "$CXX"; then
5477 { echo "$as_me:$LINENO: result
: $CXX" >&5
5478 echo "${ECHO_T}$CXX" >&6; }
5480 { echo "$as_me:$LINENO: result
: no
" >&5
5481 echo "${ECHO_T}no
" >&6; }
5485 test -n "$CXX" && break
5488 if test -z "$CXX"; then
5490 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5492 # Extract the first word of "$ac_prog", so it can be a program name with args.
5493 set dummy $ac_prog; ac_word=$2
5494 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5495 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5497 echo $ECHO_N "(cached
) $ECHO_C" >&6
5499 if test -n "$ac_ct_CXX"; then
5500 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5509 ac_cv_prog_ac_ct_CXX="$ac_prog"
5510 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5519 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5520 if test -n "$ac_ct_CXX"; then
5521 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5522 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5524 { echo "$as_me:$LINENO: result
: no
" >&5
5525 echo "${ECHO_T}no
" >&6; }
5529 test -n "$ac_ct_CXX" && break
5532 if test "x
$ac_ct_CXX" = x; then
5535 case $cross_compiling:$ac_tool_warned in
5537 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5538 whose name does not start with the
host triplet. If you think this
5539 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5540 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5541 whose name does not start with the
host triplet. If you think this
5542 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5543 ac_tool_warned=yes ;;
5551 # Provide some information about the compiler.
5552 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5553 ac_compiler=`set X $ac_compile; echo $2`
5554 { (ac_try="$ac_compiler --version >&5"
5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_compiler --version >&5") 2>&5
5562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5563 (exit $ac_status); }
5564 { (ac_try="$ac_compiler -v >&5"
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_compiler -v >&5") 2>&5
5572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5573 (exit $ac_status); }
5574 { (ac_try="$ac_compiler -V >&5"
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compiler -V >&5") 2>&5
5582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5583 (exit $ac_status); }
5585 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5586 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5587 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5588 echo $ECHO_N "(cached
) $ECHO_C" >&6
5590 cat >conftest.$ac_ext <<_ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5608 rm -f conftest.$ac_objext
5609 if { (ac_try="$ac_compile"
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5615 (eval "$ac_compile") 2>conftest.er1
5617 grep -v '^ *+' conftest.er1 >conftest.err
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5623 { (case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_try") 2>&5
5630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5631 (exit $ac_status); }; } &&
5632 { ac_try='test -s conftest.$ac_objext'
5633 { (case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_try") 2>&5
5640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5641 (exit $ac_status); }; }; then
5644 echo "$as_me: failed program was
:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5654 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5655 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5656 GXX=`test $ac_compiler_gnu = yes && echo yes`
5657 ac_test_CXXFLAGS=${CXXFLAGS+set}
5658 ac_save_CXXFLAGS=$CXXFLAGS
5659 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5660 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5661 if test "${ac_cv_prog_cxx_g+set}" = set; then
5662 echo $ECHO_N "(cached
) $ECHO_C" >&6
5664 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5665 ac_cxx_werror_flag=yes
5668 cat >conftest.$ac_ext <<_ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
5705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
5708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_prog_cxx_g=yes
5719 echo "$as_me: failed program was
:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5723 cat >conftest.$ac_ext <<_ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5738 rm -f conftest.$ac_objext
5739 if { (ac_try="$ac_compile"
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_compile") 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5753 { (case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_try") 2>&5
5760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5761 (exit $ac_status); }; } &&
5762 { ac_try='test -s conftest.$ac_objext'
5763 { (case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_try") 2>&5
5770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5771 (exit $ac_status); }; }; then
5774 echo "$as_me: failed program was
:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5809 { (case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_try") 2>&5
5816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_try") 2>&5
5826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_cv_prog_cxx_g=yes
5830 echo "$as_me: failed program was
:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5845 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5846 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5847 if test "$ac_test_CXXFLAGS" = set; then
5848 CXXFLAGS=$ac_save_CXXFLAGS
5849 elif test $ac_cv_prog_cxx_g = yes; then
5850 if test "$GXX" = yes; then
5856 if test "$GXX" = yes; then
5863 ac_cpp='$CPP $CPPFLAGS'
5864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5869 ac_cpp='$CPP $CPPFLAGS'
5870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5873 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5874 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5875 # On Suns, sometimes $CPP names a directory.
5876 if test -n "$CPP" && test -d "$CPP"; then
5879 if test -z "$CPP"; then
5880 if test "${ac_cv_prog_CPP+set}" = set; then
5881 echo $ECHO_N "(cached
) $ECHO_C" >&6
5883 # Double quotes because CPP needs to be expanded
5884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5887 for ac_c_preproc_warn_flag in '' yes
5889 # Use a header file that comes with gcc, so configuring glibc
5890 # with a fresh cross-compiler works.
5891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5892 # <limits.h> exists even on freestanding compilers.
5893 # On the NeXT, cc -E runs the code through the compiler's parser,
5894 # not just through cpp. "Syntax error
" is here to catch this case.
5895 cat >conftest.$ac_ext <<_ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5902 # include <limits.h>
5904 # include <assert.h>
5908 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5914 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5916 grep -v '^ *+' conftest.er1 >conftest.err
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5920 (exit $ac_status); } >/dev/null; then
5921 if test -s conftest.err; then
5922 ac_cpp_err=$ac_c_preproc_warn_flag
5923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5930 if test -z "$ac_cpp_err"; then
5933 echo "$as_me: failed program was
:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 # Broken: fails on valid input.
5940 rm -f conftest.err conftest.$ac_ext
5942 # OK, works on sane cases. Now check whether nonexistent headers
5943 # can be detected and how.
5944 cat >conftest.$ac_ext <<_ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 #include <ac_nonexistent.h>
5952 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5960 grep -v '^ *+' conftest.er1 >conftest.err
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5964 (exit $ac_status); } >/dev/null; then
5965 if test -s conftest.err; then
5966 ac_cpp_err=$ac_c_preproc_warn_flag
5967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5974 if test -z "$ac_cpp_err"; then
5975 # Broken: success on invalid input.
5978 echo "$as_me: failed program was
:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 # Passes both tests.
5986 rm -f conftest.err conftest.$ac_ext
5989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5990 rm -f conftest.err conftest.$ac_ext
5991 if $ac_preproc_ok; then
6003 { echo "$as_me:$LINENO: result
: $CPP" >&5
6004 echo "${ECHO_T}$CPP" >&6; }
6006 for ac_c_preproc_warn_flag in '' yes
6008 # Use a header file that comes with gcc, so configuring glibc
6009 # with a fresh cross-compiler works.
6010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6011 # <limits.h> exists even on freestanding compilers.
6012 # On the NeXT, cc -E runs the code through the compiler's parser,
6013 # not just through cpp. "Syntax error
" is here to catch this case.
6014 cat >conftest.$ac_ext <<_ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6021 # include <limits.h>
6023 # include <assert.h>
6027 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6035 grep -v '^ *+' conftest.er1 >conftest.err
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6039 (exit $ac_status); } >/dev/null; then
6040 if test -s conftest.err; then
6041 ac_cpp_err=$ac_c_preproc_warn_flag
6042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6049 if test -z "$ac_cpp_err"; then
6052 echo "$as_me: failed program was
:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 # Broken: fails on valid input.
6059 rm -f conftest.err conftest.$ac_ext
6061 # OK, works on sane cases. Now check whether nonexistent headers
6062 # can be detected and how.
6063 cat >conftest.$ac_ext <<_ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <ac_nonexistent.h>
6071 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6079 grep -v '^ *+' conftest.er1 >conftest.err
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6083 (exit $ac_status); } >/dev/null; then
6084 if test -s conftest.err; then
6085 ac_cpp_err=$ac_c_preproc_warn_flag
6086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6093 if test -z "$ac_cpp_err"; then
6094 # Broken: success on invalid input.
6097 echo "$as_me: failed program was
:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 # Passes both tests.
6105 rm -f conftest.err conftest.$ac_ext
6108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6109 rm -f conftest.err conftest.$ac_ext
6110 if $ac_preproc_ok; then
6113 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
6114 See \
`config.log' for more details." >&5
6115 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6116 See \`config.log
' for more details." >&2;}
6117 { (exit 1); exit 1; }; }
6121 ac_cpp='$CPP $CPPFLAGS'
6122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6123 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6127 ac_cpp='$CXXCPP $CPPFLAGS'
6128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6129 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6131 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6132 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6133 if test -z "$CXXCPP"; then
6134 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 # Double quotes because CXXCPP needs to be expanded
6138 for CXXCPP in "$CXX -E" "/lib/cpp"
6141 for ac_cxx_preproc_warn_flag in '' yes
6143 # Use a header file that comes with gcc, so configuring glibc
6144 # with a fresh cross-compiler works.
6145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6146 # <limits.h> exists even on freestanding compilers.
6147 # On the NeXT, cc -E runs the code through the compiler's parser
,
6148 # not just through cpp. "Syntax error" is here to catch this case.
6149 cat >conftest.
$ac_ext <<_ACEOF
6152 cat confdefs.h
>>conftest.
$ac_ext
6153 cat >>conftest.
$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6156 # include <limits.h>
6158 # include <assert.h>
6162 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } >/dev/null; then
6175 if test -s conftest.err; then
6176 ac_cpp_err=$ac_cxx_preproc_warn_flag
6177 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6184 if test -z "$ac_cpp_err"; then
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 # Broken: fails on valid input.
6194 rm -f conftest.err conftest.$ac_ext
6196 # OK, works on sane cases. Now check whether nonexistent headers
6197 # can be detected and how.
6198 cat >conftest.$ac_ext <<_ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 #include <ac_nonexistent.h>
6206 if { (ac_try="$ac_cpp conftest.$ac_ext"
6208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6209 *) ac_try_echo
=$ac_try;;
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6214 grep -v '^ *+' conftest.er1
>conftest.err
6216 cat conftest.err
>&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } >/dev
/null
; then
6219 if test -s conftest.err
; then
6220 ac_cpp_err
=$ac_cxx_preproc_warn_flag
6221 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
6228 if test -z "$ac_cpp_err"; then
6229 # Broken: success on invalid input.
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.
$ac_ext >&5
6235 # Passes both tests.
6240 rm -f conftest.err conftest.
$ac_ext
6243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6244 rm -f conftest.err conftest.
$ac_ext
6245 if $ac_preproc_ok; then
6250 ac_cv_prog_CXXCPP
=$CXXCPP
6253 CXXCPP
=$ac_cv_prog_CXXCPP
6255 ac_cv_prog_CXXCPP
=$CXXCPP
6257 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6258 echo "${ECHO_T}$CXXCPP" >&6; }
6260 for ac_cxx_preproc_warn_flag
in '' yes
6262 # Use a header file that comes with gcc, so configuring glibc
6263 # with a fresh cross-compiler works.
6264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6265 # <limits.h> exists even on freestanding compilers.
6266 # On the NeXT, cc -E runs the code through the compiler's parser,
6267 # not just through cpp. "Syntax error" is here to catch this case.
6268 cat >conftest.
$ac_ext <<_ACEOF
6271 cat confdefs.h
>>conftest.
$ac_ext
6272 cat >>conftest.
$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6275 # include <limits.h>
6277 # include <assert.h>
6281 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6289 grep -v '^ *+' conftest.er1 >conftest.err
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null; then
6294 if test -s conftest.err; then
6295 ac_cpp_err=$ac_cxx_preproc_warn_flag
6296 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6303 if test -z "$ac_cpp_err"; then
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 # Broken: fails on valid input.
6313 rm -f conftest.err conftest.$ac_ext
6315 # OK, works on sane cases. Now check whether nonexistent headers
6316 # can be detected and how.
6317 cat >conftest.$ac_ext <<_ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <ac_nonexistent.h>
6325 if { (ac_try="$ac_cpp conftest.$ac_ext"
6327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6328 *) ac_try_echo
=$ac_try;;
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6333 grep -v '^ *+' conftest.er1
>conftest.err
6335 cat conftest.err
>&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } >/dev
/null
; then
6338 if test -s conftest.err
; then
6339 ac_cpp_err
=$ac_cxx_preproc_warn_flag
6340 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
6347 if test -z "$ac_cpp_err"; then
6348 # Broken: success on invalid input.
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.
$ac_ext >&5
6354 # Passes both tests.
6359 rm -f conftest.err conftest.
$ac_ext
6362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6363 rm -f conftest.err conftest.
$ac_ext
6364 if $ac_preproc_ok; then
6367 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6368 See \`config.log' for more details." >&5
6369 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6370 See \`config.log' for more details." >&2;}
6371 { (exit 1); exit 1; }; }
6375 ac_cpp
='$CPP $CPPFLAGS'
6376 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6380 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6381 # the developers regenerating the configure script don't have to install libtool.
6382 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6383 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6384 if test "${ac_cv_path_SED+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6388 for ac_i
in 1 2 3 4 5 6 7; do
6389 ac_script
="$ac_script$as_nl$ac_script"
6391 echo "$ac_script" |
sed 99q
>conftest.
sed
6392 $as_unset ac_script || ac_script
=
6393 # Extract the first word of "sed gsed" to use in msg output
6394 if test -z "$SED"; then
6395 set dummy
sed gsed
; ac_prog_name
=$2
6396 if test "${ac_cv_path_SED+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 ac_path_SED_found
=false
6400 # Loop through the user's path and test for each of PROGNAME-LIST
6401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir
=.
6406 for ac_prog
in sed gsed
; do
6407 for ac_exec_ext
in '' $ac_executable_extensions; do
6408 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6409 { test -f "$ac_path_SED" && $as_executable_p "$ac_path_SED"; } ||
continue
6410 # Check for GNU ac_path_SED and select it if it is found.
6411 # Check for GNU $ac_path_SED
6412 case `"$ac_path_SED" --version 2>&1` in
6414 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6417 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6420 cat "conftest.in" "conftest.in" >"conftest.tmp"
6421 mv "conftest.tmp" "conftest.in"
6422 cp "conftest.in" "conftest.nl"
6423 echo '' >> "conftest.nl"
6424 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6425 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6426 ac_count
=`expr $ac_count + 1`
6427 if test $ac_count -gt ${ac_path_SED_max-0}; then
6428 # Best one so far, save it but keep looking for a better one
6429 ac_cv_path_SED
="$ac_path_SED"
6430 ac_path_SED_max
=$ac_count
6432 # 10*(2^10) chars as input seems more than enough
6433 test $ac_count -gt 10 && break
6435 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6439 $ac_path_SED_found && break 3
6449 SED
="$ac_cv_path_SED"
6450 if test -z "$SED"; then
6451 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6452 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6453 { (exit 1); exit 1; }; }
6461 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6462 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6463 SED
="$ac_cv_path_SED"
6466 { echo "$as_me:$LINENO: checking for egrep" >&5
6467 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6468 if test "${ac_cv_prog_egrep+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6472 then ac_cv_prog_egrep
='grep -E'
6473 else ac_cv_prog_egrep
='egrep'
6476 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6477 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6478 EGREP
=$ac_cv_prog_egrep
6482 # Check whether --with-gnu-ld was given.
6483 if test "${with_gnu_ld+set}" = set; then
6484 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6490 if test "$GCC" = yes; then
6491 # Check if gcc -print-prog-name=ld gives a path.
6492 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6493 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6496 # gcc leaves a trailing carriage return which upsets mingw
6497 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6499 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6502 # Accept absolute paths.
6504 re_direlt
='/[^/][^/]*/\.\./'
6505 # Canonicalize the pathname of ld
6506 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6507 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6508 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6510 test -z "$LD" && LD
="$ac_prog"
6513 # If it fails, then pretend we aren't using GCC.
6517 # If it is relative, then search for the first ld in PATH.
6521 elif test "$with_gnu_ld" = yes; then
6522 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6523 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6525 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6526 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6528 if test "${lt_cv_path_LD+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 if test -z "$LD"; then
6532 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6533 for ac_dir
in $PATH; do
6535 test -z "$ac_dir" && ac_dir
=.
6536 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6537 lt_cv_path_LD
="$ac_dir/$ac_prog"
6538 # Check to see if the program is GNU ld. I'd rather use --version,
6539 # but apparently some variants of GNU ld only accept -v.
6540 # Break only if it was the GNU/non-GNU ld that we prefer.
6541 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6542 *GNU
* |
*'with BFD'*)
6543 test "$with_gnu_ld" != no
&& break
6546 test "$with_gnu_ld" != yes && break
6553 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6558 if test -n "$LD"; then
6559 { echo "$as_me:$LINENO: result: $LD" >&5
6560 echo "${ECHO_T}$LD" >&6; }
6562 { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6565 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6566 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6567 { (exit 1); exit 1; }; }
6568 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6569 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6570 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6574 case `$LD -v 2>&1 </dev/null` in
6575 *GNU
* |
*'with BFD'*)
6576 lt_cv_prog_gnu_ld
=yes
6579 lt_cv_prog_gnu_ld
=no
6583 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6584 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6585 with_gnu_ld
=$lt_cv_prog_gnu_ld
6587 # note - does not work on freebsd
6588 for ac_prog
in gawk mawk nawk
awk
6590 # Extract the first word of "$ac_prog", so it can be a program name with args.
6591 set dummy
$ac_prog; ac_word
=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_prog_AWK+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 if test -n "$AWK"; then
6598 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6604 test -z "$as_dir" && as_dir
=.
6605 for ac_exec_ext
in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_prog_AWK
="$ac_prog"
6608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 if test -n "$AWK"; then
6619 { echo "$as_me:$LINENO: result: $AWK" >&5
6620 echo "${ECHO_T}$AWK" >&6; }
6622 { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6627 test -n "$AWK" && break
6630 # Find a good install program. We prefer a C program (faster),
6631 # so one script is as good as another. But avoid the broken or
6632 # incompatible versions:
6633 # SysV /etc/install, /usr/sbin/install
6634 # SunOS /usr/etc/install
6635 # IRIX /sbin/install
6637 # AmigaOS /C/install, which installs bootblocks on floppy discs
6638 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6639 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6640 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6641 # OS/2's system install, which has a completely different semantic
6642 # ./install, which can be erroneously created by make from ./install.sh.
6643 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6644 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6645 if test -z "$INSTALL"; then
6646 if test "${ac_cv_path_install+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir
=.
6654 # Account for people who put trailing slashes in PATH elements.
6656 .
/ | .
// |
/cC
/* | \
6657 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6658 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6661 # OSF1 and SCO ODT 3.0 have their own names for install.
6662 # Don't use installbsd from OSF since it installs stuff as root
6664 for ac_prog
in ginstall scoinst
install; do
6665 for ac_exec_ext
in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6667 if test $ac_prog = install &&
6668 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6669 # AIX install. It has an incompatible calling convention.
6671 elif test $ac_prog = install &&
6672 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6673 # program-specific install script used by HP pwplus--don't use.
6676 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6689 if test "${ac_cv_path_install+set}" = set; then
6690 INSTALL
=$ac_cv_path_install
6692 # As a last resort, use the slow shell script. Don't cache a
6693 # value for INSTALL within a source directory, because that will
6694 # break other packages using the cache if that directory is
6695 # removed, or if the value is a relative name.
6696 INSTALL
=$ac_install_sh
6699 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6700 echo "${ECHO_T}$INSTALL" >&6; }
6702 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6703 # It thinks the first close brace ends the variable substitution.
6704 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6706 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6708 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6710 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6711 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6713 if test "$LN_S" = "ln -s"; then
6714 { echo "$as_me:$LINENO: result: yes" >&5
6715 echo "${ECHO_T}yes" >&6; }
6717 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6718 echo "${ECHO_T}no, using $LN_S" >&6; }
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6723 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_prog_RANLIB+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 if test -n "$RANLIB"; then
6730 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6736 test -z "$as_dir" && as_dir
=.
6737 for ac_exec_ext
in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 RANLIB
=$ac_cv_prog_RANLIB
6750 if test -n "$RANLIB"; then
6751 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6752 echo "${ECHO_T}$RANLIB" >&6; }
6754 { echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6; }
6760 if test -z "$ac_cv_prog_RANLIB"; then
6761 ac_ct_RANLIB
=$RANLIB
6762 # Extract the first word of "ranlib", so it can be a program name with args.
6763 set dummy ranlib
; ac_word
=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 if test -n "$ac_ct_RANLIB"; then
6770 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir
=.
6777 for ac_exec_ext
in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6790 if test -n "$ac_ct_RANLIB"; then
6791 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6792 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6794 { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6798 if test "x$ac_ct_RANLIB" = x
; then
6801 case $cross_compiling:$ac_tool_warned in
6803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&5
6806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6807 whose name does not start with the host triplet. If you think this
6808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6809 ac_tool_warned
=yes ;;
6811 RANLIB
=$ac_ct_RANLIB
6814 RANLIB
="$ac_cv_prog_RANLIB"
6817 { echo "$as_me:$LINENO: checking for GNU make" >&5
6818 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6819 if test "${GNU_MAKE+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 GNU_MAKE
='Not Found' ;
6823 GNU_MAKE_VERSION_MAJOR
=0 ;
6824 GNU_MAKE_VERSION_MINOR
=0 ;
6825 for a
in make gmake gnumake
; do
6826 if test -z "$a" ; then continue ; fi ;
6827 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6829 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6830 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6836 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6837 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6838 if test "x$GNU_MAKE" = "xNot Found" ; then
6839 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6840 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6841 { (exit 1); exit 1; }; }
6847 if test -n "$ac_tool_prefix"; then
6848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6849 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_STRIP+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir
=.
6865 for ac_exec_ext
in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 STRIP
=$ac_cv_path_STRIP
6879 if test -n "$STRIP"; then
6880 { echo "$as_me:$LINENO: result: $STRIP" >&5
6881 echo "${ECHO_T}$STRIP" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6889 if test -z "$ac_cv_path_STRIP"; then
6891 # Extract the first word of "strip", so it can be a program name with args.
6892 set dummy strip
; ac_word
=$2
6893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 case $ac_pt_STRIP in
6900 ac_cv_path_ac_pt_STRIP
="$ac_pt_STRIP" # Let the user override the test with a path.
6903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6907 test -z "$as_dir" && as_dir
=.
6908 for ac_exec_ext
in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_path_ac_pt_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 ac_pt_STRIP
=$ac_cv_path_ac_pt_STRIP
6922 if test -n "$ac_pt_STRIP"; then
6923 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6924 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6930 if test "x$ac_pt_STRIP" = x
; then
6933 case $cross_compiling:$ac_tool_warned in
6935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet. If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet. If you think this
6940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941 ac_tool_warned
=yes ;;
6946 STRIP
="$ac_cv_path_STRIP"
6949 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6951 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_path_AR+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6966 test -z "$as_dir" && as_dir
=.
6967 for ac_exec_ext
in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 if test -n "$AR"; then
6982 { echo "$as_me:$LINENO: result: $AR" >&5
6983 echo "${ECHO_T}$AR" >&6; }
6985 { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6991 if test -z "$ac_cv_path_AR"; then
6993 # Extract the first word of "ar", so it can be a program name with args.
6994 set dummy
ar; ac_word
=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 ac_cv_path_ac_pt_AR
="$ac_pt_AR" # Let the user override the test with a path.
7005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir
=.
7010 for ac_exec_ext
in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_path_ac_pt_AR
="$as_dir/$ac_word$ac_exec_ext"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 ac_pt_AR
=$ac_cv_path_ac_pt_AR
7024 if test -n "$ac_pt_AR"; then
7025 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
7026 echo "${ECHO_T}$ac_pt_AR" >&6; }
7028 { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7032 if test "x$ac_pt_AR" = x
; then
7035 case $cross_compiling:$ac_tool_warned in
7037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7038 whose name does not start with the host triplet. If you think this
7039 configuration is useful to you, please write to autoconf@gnu.org." >&5
7040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7041 whose name does not start with the host triplet. If you think this
7042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7043 ac_tool_warned
=yes ;;
7053 if test "x$with_gnu_ld" = "xyes" ; then
7058 # Extract the first word of "awk", so it can be a program name with args.
7059 set dummy
awk; ac_word
=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_AWK+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
7070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir
=.
7075 for ac_exec_ext
in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK
=":"
7090 if test -n "$AWK"; then
7091 { echo "$as_me:$LINENO: result: $AWK" >&5
7092 echo "${ECHO_T}$AWK" >&6; }
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 # Extract the first word of "grep", so it can be a program name with args.
7100 set dummy
grep; ac_word
=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_GREP+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
7111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir
=.
7116 for ac_exec_ext
in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
7130 GREP
=$ac_cv_path_GREP
7131 if test -n "$GREP"; then
7132 { echo "$as_me:$LINENO: result: $GREP" >&5
7133 echo "${ECHO_T}$GREP" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 # Extract the first word of "find", so it can be a program name with args.
7141 set dummy
find; ac_word
=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_path_FIND+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
7152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7156 test -z "$as_dir" && as_dir
=.
7157 for ac_exec_ext
in '' $ac_executable_extensions; do
7158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7159 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
7171 FIND
=$ac_cv_path_FIND
7172 if test -n "$FIND"; then
7173 { echo "$as_me:$LINENO: result: $FIND" >&5
7174 echo "${ECHO_T}$FIND" >&6; }
7176 { echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6; }
7181 # Extract the first word of "compress", so it can be a program name with args.
7182 set dummy
compress; ac_word
=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_path_COMPRESS+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
7193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7197 test -z "$as_dir" && as_dir
=.
7198 for ac_exec_ext
in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
7212 COMPRESS
=$ac_cv_path_COMPRESS
7213 if test -n "$COMPRESS"; then
7214 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
7215 echo "${ECHO_T}$COMPRESS" >&6; }
7217 { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7222 # Extract the first word of "basename", so it can be a program name with args.
7223 set dummy
basename; ac_word
=$2
7224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226 if test "${ac_cv_path_BASENAME+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
7234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir
=.
7239 for ac_exec_ext
in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
7253 BASENAME
=$ac_cv_path_BASENAME
7254 if test -n "$BASENAME"; then
7255 { echo "$as_me:$LINENO: result: $BASENAME" >&5
7256 echo "${ECHO_T}$BASENAME" >&6; }
7258 { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7263 # Extract the first word of "id", so it can be a program name with args.
7264 set dummy id
; ac_word
=$2
7265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7267 if test "${ac_cv_path_ID+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
7275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir
=.
7280 for ac_exec_ext
in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
7283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
7295 if test -n "$ID"; then
7296 { echo "$as_me:$LINENO: result: $ID" >&5
7297 echo "${ECHO_T}$ID" >&6; }
7299 { echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6; }
7304 # Extract the first word of "dirname", so it can be a program name with args.
7305 set dummy
dirname; ac_word
=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_path_DIRNAME+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
7316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir
=.
7321 for ac_exec_ext
in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
7335 DIRNAME
=$ac_cv_path_DIRNAME
7336 if test -n "$DIRNAME"; then
7337 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7338 echo "${ECHO_T}$DIRNAME" >&6; }
7340 { echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6; }
7345 # Extract the first word of "sh", so it can be a program name with args.
7346 set dummy sh
; ac_word
=$2
7347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7349 if test "${ac_cv_path_SHELL+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
7357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir
=.
7362 for ac_exec_ext
in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
7376 SHELL
=$ac_cv_path_SHELL
7377 if test -n "$SHELL"; then
7378 { echo "$as_me:$LINENO: result: $SHELL" >&5
7379 echo "${ECHO_T}$SHELL" >&6; }
7381 { echo "$as_me:$LINENO: result: no" >&5
7382 echo "${ECHO_T}no" >&6; }
7386 # Extract the first word of "ln", so it can be a program name with args.
7387 set dummy
ln; ac_word
=$2
7388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7390 if test "${ac_cv_path_LN+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
7398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7402 test -z "$as_dir" && as_dir
=.
7403 for ac_exec_ext
in '' $ac_executable_extensions; do
7404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7405 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
7406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
7418 if test -n "$LN"; then
7419 { echo "$as_me:$LINENO: result: $LN" >&5
7420 echo "${ECHO_T}$LN" >&6; }
7422 { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7427 # Extract the first word of "dot", so it can be a program name with args.
7428 set dummy dot
; ac_word
=$2
7429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7431 if test "${ac_cv_path_DOT+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir
=.
7444 for ac_exec_ext
in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
7459 if test -n "$DOT"; then
7460 { echo "$as_me:$LINENO: result: $DOT" >&5
7461 echo "${ECHO_T}$DOT" >&6; }
7463 { echo "$as_me:$LINENO: result: no" >&5
7464 echo "${ECHO_T}no" >&6; }
7468 # Extract the first word of "wget", so it can be a program name with args.
7469 set dummy wget
; ac_word
=$2
7470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472 if test "${ac_cv_path_WGET+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
7480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir
=.
7485 for ac_exec_ext
in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
7499 WGET
=$ac_cv_path_WGET
7500 if test -n "$WGET"; then
7501 { echo "$as_me:$LINENO: result: $WGET" >&5
7502 echo "${ECHO_T}$WGET" >&6; }
7504 { echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6; }
7509 if test "${WGET}" != ":" ; then
7512 # Extract the first word of "fetch", so it can be a program name with args.
7513 set dummy fetch
; ac_word
=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_FETCH+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir
=.
7529 for ac_exec_ext
in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7543 FETCH
=$ac_cv_path_FETCH
7544 if test -n "$FETCH"; then
7545 { echo "$as_me:$LINENO: result: $FETCH" >&5
7546 echo "${ECHO_T}$FETCH" >&6; }
7548 { echo "$as_me:$LINENO: result: no" >&5
7549 echo "${ECHO_T}no" >&6; }
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7559 set dummy
${ac_tool_prefix}soxmix
; ac_word
=$2
7560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7562 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 if test -n "$SOXMIX"; then
7566 ac_cv_prog_SOXMIX
="$SOXMIX" # Let the user override the test.
7568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir
=.
7573 for ac_exec_ext
in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_SOXMIX
="${ac_tool_prefix}soxmix"
7576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 SOXMIX
=$ac_cv_prog_SOXMIX
7586 if test -n "$SOXMIX"; then
7587 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7588 echo "${ECHO_T}$SOXMIX" >&6; }
7590 { echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6; }
7596 if test -z "$ac_cv_prog_SOXMIX"; then
7597 ac_ct_SOXMIX
=$SOXMIX
7598 # Extract the first word of "soxmix", so it can be a program name with args.
7599 set dummy soxmix
; ac_word
=$2
7600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7602 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 if test -n "$ac_ct_SOXMIX"; then
7606 ac_cv_prog_ac_ct_SOXMIX
="$ac_ct_SOXMIX" # Let the user override the test.
7608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir
=.
7613 for ac_exec_ext
in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_ac_ct_SOXMIX
="soxmix"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 ac_ct_SOXMIX
=$ac_cv_prog_ac_ct_SOXMIX
7626 if test -n "$ac_ct_SOXMIX"; then
7627 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7628 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7630 { echo "$as_me:$LINENO: result: no" >&5
7631 echo "${ECHO_T}no" >&6; }
7634 if test "x$ac_ct_SOXMIX" = x
; then
7637 case $cross_compiling:$ac_tool_warned in
7639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7640 whose name does not start with the host triplet. If you think this
7641 configuration is useful to you, please write to autoconf@gnu.org." >&5
7642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7643 whose name does not start with the host triplet. If you think this
7644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7645 ac_tool_warned
=yes ;;
7647 SOXMIX
=$ac_ct_SOXMIX
7650 SOXMIX
="$ac_cv_prog_SOXMIX"
7653 if test "${SOXMIX}" != ":" ; then
7655 cat >>confdefs.h
<<\_ACEOF
7656 #define HAVE_SOXMIX 1
7665 ac_cpp
='$CPP $CPPFLAGS'
7666 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7667 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7668 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7672 # We used to check for pthread.h first, but this fails if pthread.h
7673 # requires special compiler flags (e.g. on True64 or Sequent).
7674 # It gets checked for in the link test anyway.
7676 # First of all, check if the user has set any of the PTHREAD_LIBS,
7677 # etcetera environment variables, and if threads linking works using
7679 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
7680 save_CFLAGS
="$CFLAGS"
7681 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7683 LIBS
="$PTHREAD_LIBS $LIBS"
7684 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7685 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7686 cat >conftest.
$ac_ext <<_ACEOF
7689 cat confdefs.h
>>conftest.
$ac_ext
7690 cat >>conftest.
$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7693 /* Override any GCC internal prototype to avoid an error.
7694 Use char because int might match the return type of a GCC
7695 builtin and then its argument prototype would still apply. */
7699 char pthread_join ();
7703 return pthread_join ();
7708 rm -f conftest.
$ac_objext conftest
$ac_exeext
7709 if { (ac_try
="$ac_link"
7711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_link") 2>conftest.er1
7717 grep -v '^ *+' conftest.er1 >conftest.err
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } &&
7722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7723 { (case "(($ac_try" in
7724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7725 *) ac_try_echo
=$ac_try;;
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_try") 2>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try
='test -s conftest$ac_exeext'
7733 { (case "(($ac_try" in
7734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_try") 2>&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7750 rm -f core conftest.err conftest.$ac_objext \
7751 conftest$ac_exeext conftest.$ac_ext
7752 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7753 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7754 if test x"$acx_pthread_ok" = xno; then
7759 CFLAGS="$save_CFLAGS"
7762 # We must check for the threads library under a number of different
7763 # names; the ordering is very important because some systems
7764 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7765 # libraries is broken (non-POSIX).
7767 # Create a list of thread flags to try. Items starting with a "-" are
7768 # C compiler flags, and other items are library names, except for "none"
7769 # which indicates that we try without any flags at all, and "pthread-config"
7770 # which is a program returning the flags for the Pth emulation library.
7772 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7774 # The ordering *is* (sometimes) important. Some notes on the
7775 # individual items follow:
7777 # pthreads: AIX (must check this before -lpthread)
7778 # none: in case threads are in libc; should be tried before -Kthread and
7779 # other compiler flags to prevent continual compiler warnings
7780 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7781 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7782 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7783 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7784 # -pthreads: Solaris/gcc
7785 # -mthreads: Mingw32/gcc, Lynx/gcc
7786 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7787 # doesn't hurt to check since this sometimes defines pthreads too;
7788 # also defines -D_REENTRANT)
7789 # ... -mt is also the pthreads flag for HP/aCC
7790 # pthread: Linux, etcetera
7791 # --thread-safe: KAI C++
7792 # pthread-config: use pthread-config program (for GNU Pth library)
7794 case "${host_cpu}-${host_os}" in
7797 # On Solaris (at least, for some versions), libc contains stubbed
7798 # (non-functional) versions of the pthreads routines, so link-based
7799 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7800 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7801 # a function called by this macro, so we could check for that, but
7802 # who knows whether they'll stub that too in a future libc.) So,
7803 # we'll just look for -pthreads and -lpthread first:
7805 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7809 if test x"$acx_pthread_ok" = xno; then
7810 for flag in $acx_pthread_flags; do
7814 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7815 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7819 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7820 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7821 PTHREAD_CFLAGS="$flag"
7825 # Extract the first word of "pthread-config", so it can be a program name with args.
7826 set dummy pthread-config; ac_word=$2
7827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 if test -n "$acx_pthread_config"; then
7833 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_prog_acx_pthread_config="yes"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7853 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7854 if test -n "$acx_pthread_config"; then
7855 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7856 echo "${ECHO_T}$acx_pthread_config" >&6; }
7858 { echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6; }
7863 if test x"$acx_pthread_config" = xno; then continue; fi
7864 PTHREAD_CFLAGS="`pthread-config
--cflags`"
7865 PTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
7869 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7870 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7871 PTHREAD_LIBS="-l$flag"
7876 save_CFLAGS="$CFLAGS"
7877 LIBS="$PTHREAD_LIBS $LIBS"
7878 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7880 # Check for various functions. We must include pthread.h,
7881 # since some functions may be macros. (On the Sequent, we
7882 # need a special flag -Kthread to make this header compile.)
7883 # We check for pthread_join because it is in -lpthread on IRIX
7884 # while pthread_create is in libc. We check for pthread_attr_init
7885 # due to DEC craziness with -lpthreads. We check for
7886 # pthread_cleanup_push because it is one of the few pthread
7887 # functions on Solaris that doesn't have a non-functional libc stub.
7888 # We try pthread_create on general principles.
7889 cat >conftest.$ac_ext <<_ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 #include <pthread.h>
7899 pthread_t th; pthread_join(th, 0);
7900 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7901 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7906 rm -f conftest.$ac_objext conftest$ac_exeext
7907 if { (ac_try="$ac_link"
7909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7910 *) ac_try_echo
=$ac_try;;
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_link") 2>conftest.er1
7915 grep -v '^ *+' conftest.er1
>conftest.err
7917 cat conftest.err
>&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7921 { (case "(($ac_try" in
7922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_try") 2>&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try='test -s conftest$ac_exeext'
7931 { (case "(($ac_try" in
7932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7933 *) ac_try_echo
=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_try") 2>&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.
$ac_ext >&5
7948 rm -f core conftest.err conftest.
$ac_objext \
7949 conftest
$ac_exeext conftest.
$ac_ext
7952 CFLAGS
="$save_CFLAGS"
7954 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7955 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7956 if test "x$acx_pthread_ok" = xyes
; then
7965 # Various other checks:
7966 if test "x$acx_pthread_ok" = xyes
; then
7968 LIBS
="$PTHREAD_LIBS $LIBS"
7969 save_CFLAGS
="$CFLAGS"
7970 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7972 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7973 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7974 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7976 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7977 cat >conftest.
$ac_ext <<_ACEOF
7980 cat confdefs.h
>>conftest.
$ac_ext
7981 cat >>conftest.
$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 #include <pthread.h>
7987 int attr=$attr; return attr;
7992 rm -f conftest.
$ac_objext conftest
$ac_exeext
7993 if { (ac_try
="$ac_link"
7995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_link") 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007 { (case "(($ac_try" in
8008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8009 *) ac_try_echo
=$ac_try;;
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_try") 2>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try
='test -s conftest$ac_exeext'
8017 { (case "(($ac_try" in
8018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_try") 2>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 attr_name=$attr; break
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8034 rm -f core conftest.err conftest.$ac_objext \
8035 conftest$ac_exeext conftest.$ac_ext
8037 { echo "$as_me:$LINENO: result: $attr_name" >&5
8038 echo "${ECHO_T}$attr_name" >&6; }
8039 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8041 cat >>confdefs.h <<_ACEOF
8042 #define PTHREAD_CREATE_JOINABLE $attr_name
8047 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
8048 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
8050 case "${host_cpu}-${host_os}" in
8051 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8052 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8054 { echo "$as_me:$LINENO: result: ${flag}" >&5
8055 echo "${ECHO_T}${flag}" >&6; }
8056 if test "x$flag" != xno; then
8057 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8061 CFLAGS="$save_CFLAGS"
8063 # More AIX lossage: must compile with xlc_r or cc_r
8064 if test x"$GCC" != xyes; then
8065 for ac_prog in xlc_r cc_r
8067 # Extract the first word of "$ac_prog", so it can be a program name with args.
8068 set dummy $ac_prog; ac_word=$2
8069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8071 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 if test -n "$PTHREAD_CC"; then
8075 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_prog_PTHREAD_CC="$ac_prog"
8085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8095 if test -n "$PTHREAD_CC"; then
8096 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
8097 echo "${ECHO_T}$PTHREAD_CC" >&6; }
8099 { echo "$as_me:$LINENO: result: no" >&5
8100 echo "${ECHO_T}no" >&6; }
8104 test -n "$PTHREAD_CC" && break
8106 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8119 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8120 if test x"$acx_pthread_ok" = xyes; then
8122 cat >>confdefs.h <<\_ACEOF
8123 #define HAVE_PTHREAD 1
8132 ac_cpp='$CPP $CPPFLAGS'
8133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8140 ac_cpp='$CPP $CPPFLAGS'
8141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8146 # Check whether --enable-dev-mode was given.
8147 if test "${enable_dev_mode+set}" = set; then
8148 enableval=$enable_dev_mode; case "${enableval}" in
8149 y|ye|yes) AST_DEVMODE=yes ;;
8150 n|no) AST_DEVMODE=no ;;
8151 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
8152 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
8153 { (exit 1); exit 1; }; } ;;
8159 # package option names should be in alphabetical order
8160 # by the --with option name, to make things easier for the users :-)
8163 ALSA_DESCRIP="Advanced Linux Sound Architecture"
8164 ALSA_OPTION="asound"
8166 # Check whether --with-asound was given.
8167 if test "${with_asound+set}" = set; then
8168 withval=$with_asound;
8174 ALSA_MANDATORY="yes"
8177 ALSA_DIR="${withval}"
8178 ALSA_MANDATORY="yes"
8194 # Check whether --with-curl was given.
8195 if test "${with_curl+set}" = set; then
8202 CURL_MANDATORY="yes"
8205 CURL_DIR="${withval}"
8206 CURL_MANDATORY="yes"
8219 CAP_DESCRIP="POSIX 1.e capabilities"
8222 # Check whether --with-cap was given.
8223 if test "${with_cap+set}" = set; then
8233 CAP_DIR="${withval}"
8247 CURSES_DESCRIP="curses"
8248 CURSES_OPTION="curses"
8250 # Check whether --with-curses was given.
8251 if test "${with_curses+set}" = set; then
8252 withval=$with_curses;
8258 CURSES_MANDATORY="yes"
8261 CURSES_DIR="${withval}"
8262 CURSES_MANDATORY="yes"
8275 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
8276 GNUTLS_OPTION="gnutls"
8278 # Check whether --with-gnutls was given.
8279 if test "${with_gnutls+set}" = set; then
8280 withval=$with_gnutls;
8286 GNUTLS_MANDATORY="yes"
8289 GNUTLS_DIR="${withval}"
8290 GNUTLS_MANDATORY="yes"
8306 # Check whether --with-gsm was given.
8307 if test "${with_gsm+set}" = set; then
8317 GSM_DIR="${withval}"
8331 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8332 IKSEMEL_OPTION="iksemel"
8334 # Check whether --with-iksemel was given.
8335 if test "${with_iksemel+set}" = set; then
8336 withval=$with_iksemel;
8342 IKSEMEL_MANDATORY="yes"
8345 IKSEMEL_DIR="${withval}"
8346 IKSEMEL_MANDATORY="yes"
8359 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8360 IMAP_TK_OPTION="imap"
8362 # Check whether --with-imap was given.
8363 if test "${with_imap+set}" = set; then
8370 IMAP_TK_MANDATORY="yes"
8373 IMAP_TK_DIR="${withval}"
8374 IMAP_TK_MANDATORY="yes"
8387 ISDNNET_DESCRIP="ISDN4Linux Library"
8388 ISDNNET_OPTION="isdnnet"
8390 # Check whether --with-isdnnet was given.
8391 if test "${with_isdnnet+set}" = set; then
8392 withval=$with_isdnnet;
8398 ISDNNET_MANDATORY="yes"
8401 ISDNNET_DIR="${withval}"
8402 ISDNNET_MANDATORY="yes"
8418 # Check whether --with-kde was given.
8419 if test "${with_kde+set}" = set; then
8429 KDE_DIR="${withval}"
8443 LTDL_DESCRIP="libtool"
8446 # Check whether --with-ltdl was given.
8447 if test "${with_ltdl+set}" = set; then
8454 LTDL_MANDATORY="yes"
8457 LTDL_DIR="${withval}"
8458 LTDL_MANDATORY="yes"
8471 MISDN_DESCRIP="mISDN User Library"
8472 MISDN_OPTION="misdn"
8474 # Check whether --with-misdn was given.
8475 if test "${with_misdn+set}" = set; then
8476 withval=$with_misdn;
8482 MISDN_MANDATORY="yes"
8485 MISDN_DIR="${withval}"
8486 MISDN_MANDATORY="yes"
8499 NBS_DESCRIP="Network Broadcast Sound"
8502 # Check whether --with-nbs was given.
8503 if test "${with_nbs+set}" = set; then
8513 NBS_DIR="${withval}"
8527 NCURSES_DESCRIP="ncurses"
8528 NCURSES_OPTION="ncurses"
8530 # Check whether --with-ncurses was given.
8531 if test "${with_ncurses+set}" = set; then
8532 withval=$with_ncurses;
8538 NCURSES_MANDATORY="yes"
8541 NCURSES_DIR="${withval}"
8542 NCURSES_MANDATORY="yes"
8555 NETSNMP_DESCRIP="Net-SNMP"
8556 NETSNMP_OPTION="netsnmp"
8558 # Check whether --with-netsnmp was given.
8559 if test "${with_netsnmp+set}" = set; then
8560 withval=$with_netsnmp;
8566 NETSNMP_MANDATORY="yes"
8569 NETSNMP_DIR="${withval}"
8570 NETSNMP_MANDATORY="yes"
8586 # Check whether --with-newt was given.
8587 if test "${with_newt+set}" = set; then
8594 NEWT_MANDATORY="yes"
8597 NEWT_DIR="${withval}"
8598 NEWT_MANDATORY="yes"
8611 UNIXODBC_DESCRIP="unixODBC"
8612 UNIXODBC_OPTION="odbc"
8614 # Check whether --with-odbc was given.
8615 if test "${with_odbc+set}" = set; then
8622 UNIXODBC_MANDATORY="yes"
8625 UNIXODBC_DIR="${withval}"
8626 UNIXODBC_MANDATORY="yes"
8642 # Check whether --with-ogg was given.
8643 if test "${with_ogg+set}" = set; then
8653 OGG_DIR="${withval}"
8667 OSPTK_DESCRIP="OSP Toolkit"
8668 OSPTK_OPTION="osptk"
8670 # Check whether --with-osptk was given.
8671 if test "${with_osptk+set}" = set; then
8672 withval=$with_osptk;
8678 OSPTK_MANDATORY="yes"
8681 OSPTK_DIR="${withval}"
8682 OSPTK_MANDATORY="yes"
8695 OSS_DESCRIP="Open Sound System"
8698 # Check whether --with-oss was given.
8699 if test "${with_oss+set}" = set; then
8709 OSS_DIR="${withval}"
8726 # Check whether --with-popt was given.
8727 if test "${with_popt+set}" = set; then
8734 POPT_MANDATORY="yes"
8737 POPT_DIR="${withval}"
8738 POPT_MANDATORY="yes"
8751 PGSQL_DESCRIP="PostgreSQL"
8752 PGSQL_OPTION="postgres"
8754 # Check whether --with-postgres was given.
8755 if test "${with_postgres+set}" = set; then
8756 withval=$with_postgres;
8762 PGSQL_MANDATORY="yes"
8765 PGSQL_DIR="${withval}"
8766 PGSQL_MANDATORY="yes"
8779 PRI_DESCRIP="ISDN PRI"
8782 # Check whether --with-pri was given.
8783 if test "${with_pri+set}" = set; then
8793 PRI_DIR="${withval}"
8807 PWLIB_DESCRIP="PWlib"
8808 PWLIB_OPTION="pwlib"
8810 # Check whether --with-pwlib was given.
8811 if test "${with_pwlib+set}" = set; then
8812 withval=$with_pwlib;
8818 PWLIB_MANDATORY="yes"
8821 PWLIB_DIR="${withval}"
8822 PWLIB_MANDATORY="yes"
8835 OPENH323_DESCRIP="OpenH323"
8836 OPENH323_OPTION="h323"
8838 # Check whether --with-h323 was given.
8839 if test "${with_h323+set}" = set; then
8846 OPENH323_MANDATORY="yes"
8849 OPENH323_DIR="${withval}"
8850 OPENH323_MANDATORY="yes"
8863 RADIUS_DESCRIP="Radius Client"
8864 RADIUS_OPTION="radius"
8866 # Check whether --with-radius was given.
8867 if test "${with_radius+set}" = set; then
8868 withval=$with_radius;
8874 RADIUS_MANDATORY="yes"
8877 RADIUS_DIR="${withval}"
8878 RADIUS_MANDATORY="yes"
8891 SPEEX_DESCRIP="Speex"
8892 SPEEX_OPTION="speex"
8894 # Check whether --with-speex was given.
8895 if test "${with_speex+set}" = set; then
8896 withval=$with_speex;
8902 SPEEX_MANDATORY="yes"
8905 SPEEX_DIR="${withval}"
8906 SPEEX_MANDATORY="yes"
8919 SPEEXDSP_DESCRIP="Speexdsp"
8920 SPEEXDSP_OPTION="speexdsp"
8922 # Check whether --with-speexdsp was given.
8923 if test "${with_speexdsp+set}" = set; then
8924 withval=$with_speexdsp;
8930 SPEEXDSP_MANDATORY="yes"
8933 SPEEXDSP_DIR="${withval}"
8934 SPEEXDSP_MANDATORY="yes"
8947 SQLITE_DESCRIP="SQLite"
8948 SQLITE_OPTION="sqlite"
8950 # Check whether --with-sqlite was given.
8951 if test "${with_sqlite+set}" = set; then
8952 withval=$with_sqlite;
8958 SQLITE_MANDATORY="yes"
8961 SQLITE_DIR="${withval}"
8962 SQLITE_MANDATORY="yes"
8975 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8976 SUPPSERV_OPTION="suppserv"
8978 # Check whether --with-suppserv was given.
8979 if test "${with_suppserv+set}" = set; then
8980 withval=$with_suppserv;
8986 SUPPSERV_MANDATORY="yes"
8989 SUPPSERV_DIR="${withval}"
8990 SUPPSERV_MANDATORY="yes"
9003 OPENSSL_DESCRIP="OpenSSL"
9004 OPENSSL_OPTION="ssl"
9006 # Check whether --with-ssl was given.
9007 if test "${with_ssl+set}" = set; then
9014 OPENSSL_MANDATORY="yes"
9017 OPENSSL_DIR="${withval}"
9018 OPENSSL_MANDATORY="yes"
9031 FREETDS_DESCRIP="FreeTDS"
9032 FREETDS_OPTION="tds"
9034 # Check whether --with-tds was given.
9035 if test "${with_tds+set}" = set; then
9042 FREETDS_MANDATORY="yes"
9045 FREETDS_DIR="${withval}"
9046 FREETDS_MANDATORY="yes"
9059 TERMCAP_DESCRIP="Termcap"
9060 TERMCAP_OPTION="termcap"
9062 # Check whether --with-termcap was given.
9063 if test "${with_termcap+set}" = set; then
9064 withval=$with_termcap;
9070 TERMCAP_MANDATORY="yes"
9073 TERMCAP_DIR="${withval}"
9074 TERMCAP_MANDATORY="yes"
9087 TINFO_DESCRIP="Term Info"
9088 TINFO_OPTION="tinfo"
9090 # Check whether --with-tinfo was given.
9091 if test "${with_tinfo+set}" = set; then
9092 withval=$with_tinfo;
9098 TINFO_MANDATORY="yes"
9101 TINFO_DIR="${withval}"
9102 TINFO_MANDATORY="yes"
9115 TONEZONE_DESCRIP="tonezone"
9116 TONEZONE_OPTION="tonezone"
9118 # Check whether --with-tonezone was given.
9119 if test "${with_tonezone+set}" = set; then
9120 withval=$with_tonezone;
9126 TONEZONE_MANDATORY="yes"
9129 TONEZONE_DIR="${withval}"
9130 TONEZONE_MANDATORY="yes"
9146 # Check whether --with-usb was given.
9147 if test "${with_usb+set}" = set; then
9157 USB_DIR="${withval}"
9171 VORBIS_DESCRIP="Vorbis"
9172 VORBIS_OPTION="vorbis"
9174 # Check whether --with-vorbis was given.
9175 if test "${with_vorbis+set}" = set; then
9176 withval=$with_vorbis;
9182 VORBIS_MANDATORY="yes"
9185 VORBIS_DIR="${withval}"
9186 VORBIS_MANDATORY="yes"
9199 VPB_DESCRIP="Voicetronix API"
9202 # Check whether --with-vpb was given.
9203 if test "${with_vpb+set}" = set; then
9213 VPB_DIR="${withval}"
9230 # Check whether --with-z was given.
9231 if test "${with_z+set}" = set; then
9238 ZLIB_MANDATORY="yes"
9241 ZLIB_DIR="${withval}"
9242 ZLIB_MANDATORY="yes"
9255 ZAPTEL_DESCRIP="Zaptel"
9256 ZAPTEL_OPTION="zaptel"
9258 # Check whether --with-zaptel was given.
9259 if test "${with_zaptel+set}" = set; then
9260 withval=$with_zaptel;
9266 ZAPTEL_MANDATORY="yes"
9269 ZAPTEL_DIR="${withval}"
9270 ZAPTEL_MANDATORY="yes"
9283 # check for basic system features and functionality before
9284 # checking for package libraries
9286 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9287 # for constant arguments. Useless!
9288 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9289 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9290 if test "${ac_cv_working_alloca_h+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 cat >conftest.$ac_ext <<_ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9303 char *p = (char *) alloca (2 * sizeof (int));
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (ac_try="$ac_link"
9312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9313 *) ac_try_echo
=$ac_try;;
9315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_link") 2>conftest.er1
9318 grep -v '^ *+' conftest.er1
>conftest.err
9320 cat conftest.err
>&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9324 { (case "(($ac_try" in
9325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_try") 2>&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
9333 { ac_try='test -s conftest$ac_exeext'
9334 { (case "(($ac_try" in
9335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9336 *) ac_try_echo
=$ac_try;;
9338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_try") 2>&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_cv_working_alloca_h
=yes
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.
$ac_ext >&5
9348 ac_cv_working_alloca_h
=no
9351 rm -f core conftest.err conftest.
$ac_objext \
9352 conftest
$ac_exeext conftest.
$ac_ext
9354 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9355 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9356 if test $ac_cv_working_alloca_h = yes; then
9358 cat >>confdefs.h
<<\_ACEOF
9359 #define HAVE_ALLOCA_H 1
9364 { echo "$as_me:$LINENO: checking for alloca" >&5
9365 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9366 if test "${ac_cv_func_alloca_works+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 cat >conftest.
$ac_ext <<_ACEOF
9372 cat confdefs.h
>>conftest.
$ac_ext
9373 cat >>conftest.
$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9376 # define alloca __builtin_alloca
9379 # include <malloc.h>
9380 # define alloca _alloca
9383 # include <alloca.h>
9388 # ifndef alloca /* predefined by HP cc +Olibcalls */
9399 char *p = (char *) alloca (1);
9405 rm -f conftest.
$ac_objext conftest
$ac_exeext
9406 if { (ac_try
="$ac_link"
9408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_link") 2>conftest.er1
9414 grep -v '^ *+' conftest.er1 >conftest.err
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9420 { (case "(($ac_try" in
9421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9422 *) ac_try_echo
=$ac_try;;
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_try") 2>&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try
='test -s conftest$ac_exeext'
9430 { (case "(($ac_try" in
9431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9432 *) ac_try_echo=$ac_try;;
9434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435 (eval "$ac_try") 2>&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
9439 ac_cv_func_alloca_works=yes
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9444 ac_cv_func_alloca_works=no
9447 rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9450 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9451 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9453 if test $ac_cv_func_alloca_works = yes; then
9455 cat >>confdefs.h <<\_ACEOF
9456 #define HAVE_ALLOCA 1
9460 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9461 # that cause trouble. Some versions do not even contain alloca or
9462 # contain a buggy version. If you still want to use their alloca,
9463 # use ar to extract alloca.o from them instead of compiling alloca.c.
9465 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9467 cat >>confdefs.h <<\_ACEOF
9472 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
9473 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
9474 if test "${ac_cv_os_cray+set}" = set; then
9475 echo $ECHO_N "(cached
) $ECHO_C" >&6
9477 cat >conftest.$ac_ext <<_ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 #if defined CRAY && ! defined CRAY2
9490 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9491 $EGREP "webecray
" >/dev/null 2>&1; then
9499 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
9500 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9501 if test $ac_cv_os_cray = yes; then
9502 for ac_func in _getb67 GETB67 getb67; do
9503 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9504 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9505 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9506 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9507 echo $ECHO_N "(cached
) $ECHO_C" >&6
9509 cat >conftest.$ac_ext <<_ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9517 #define $ac_func innocuous_$ac_func
9519 /* System header to define __stub macros and hopefully few prototypes,
9520 which can conflict with char $ac_func (); below.
9521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9522 <limits.h> exists even on freestanding compilers. */
9525 # include <limits.h>
9527 # include <assert.h>
9532 /* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
9539 /* The GNU C library defines this for functions which it implements
9540 to always fail with ENOSYS. Some functions are actually named
9541 something starting with __ and the normal name is an alias. */
9542 #if defined __stub_$ac_func || defined __stub___$ac_func
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (ac_try="$ac_link"
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
9563 grep -v '^ *+' conftest.er1 >conftest.err
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9569 { (case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_try") 2>&5
9576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_try") 2>&5
9586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 eval "$as_ac_var=yes"
9590 echo "$as_me: failed program was
:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 eval "$as_ac_var=no
"
9596 rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9599 ac_res=`eval echo '${'$as_ac_var'}'`
9600 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9601 echo "${ECHO_T}$ac_res" >&6; }
9602 if test `eval echo '${'$as_ac_var'}'` = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define CRAY_STACKSEG_END $ac_func
9614 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
9615 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
9616 if test "${ac_cv_c_stack_direction+set}" = set; then
9617 echo $ECHO_N "(cached
) $ECHO_C" >&6
9619 if test "$cross_compiling" = yes; then
9620 ac_cv_c_stack_direction=0
9622 cat >conftest.$ac_ext <<_ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9628 $ac_includes_default
9630 find_stack_direction ()
9632 static char *addr = 0;
9637 return find_stack_direction ();
9640 return (&dummy > addr) ? 1 : -1;
9646 return find_stack_direction () < 0;
9649 rm -f conftest$ac_exeext
9650 if { (ac_try="$ac_link"
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_link") 2>&5
9658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9660 { (case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_try") 2>&5
9667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669 ac_cv_c_stack_direction=1
9671 echo "$as_me: program exited with status
$ac_status" >&5
9672 echo "$as_me: failed program was
:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_cv_c_stack_direction=-1
9678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9683 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
9684 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9686 cat >>confdefs.h <<_ACEOF
9687 #define STACK_DIRECTION $ac_cv_c_stack_direction
9699 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9700 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
9701 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
9702 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
9703 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9704 echo $ECHO_N "(cached
) $ECHO_C" >&6
9706 cat >conftest.$ac_ext <<_ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 #include <sys/types.h>
9724 rm -f conftest.$ac_objext
9725 if { (ac_try="$ac_compile"
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_compile") 2>conftest.er1
9733 grep -v '^ *+' conftest.er1 >conftest.err
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739 { (case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_try") 2>&5
9746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest.$ac_objext'
9749 { (case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_try") 2>&5
9756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 eval "$as_ac_Header=yes"
9760 echo "$as_me: failed program was
:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 eval "$as_ac_Header=no
"
9766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9768 ac_res=`eval echo '${'$as_ac_Header'}'`
9769 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9770 echo "${ECHO_T}$ac_res" >&6; }
9771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9772 cat >>confdefs.h <<_ACEOF
9773 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
9776 ac_header_dirent=$ac_hdr; break
9780 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9781 if test $ac_header_dirent = dirent.h; then
9782 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9783 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9784 if test "${ac_cv_search_opendir+set}" = set; then
9785 echo $ECHO_N "(cached
) $ECHO_C" >&6
9787 ac_func_search_save_LIBS=$LIBS
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9795 /* Override any GCC internal prototype to avoid an error.
9796 Use char because int might match the return type of a GCC
9797 builtin and then its argument prototype would still apply. */
9810 for ac_lib in '' dir; do
9811 if test -z "$ac_lib"; then
9812 ac_res="none required
"
9815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
9839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
9849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_cv_search_opendir=$ac_res
9853 echo "$as_me: failed program was
:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9859 rm -f core conftest.err conftest.$ac_objext \
9861 if test "${ac_cv_search_opendir+set}" = set; then
9865 if test "${ac_cv_search_opendir+set}" = set; then
9868 ac_cv_search_opendir=no
9871 LIBS=$ac_func_search_save_LIBS
9873 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9874 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9875 ac_res=$ac_cv_search_opendir
9876 if test "$ac_res" != no; then
9877 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9882 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9883 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9884 if test "${ac_cv_search_opendir+set}" = set; then
9885 echo $ECHO_N "(cached
) $ECHO_C" >&6
9887 ac_func_search_save_LIBS=$LIBS
9888 cat >conftest.$ac_ext <<_ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9895 /* Override any GCC internal prototype to avoid an error.
9896 Use char because int might match the return type of a GCC
9897 builtin and then its argument prototype would still apply. */
9910 for ac_lib in '' x; do
9911 if test -z "$ac_lib"; then
9912 ac_res="none required
"
9915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (ac_try="$ac_link"
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_link") 2>conftest.er1
9926 grep -v '^ *+' conftest.er1 >conftest.err
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9932 { (case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_try") 2>&5
9939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_try") 2>&5
9949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9950 (exit $ac_status); }; }; then
9951 ac_cv_search_opendir=$ac_res
9953 echo "$as_me: failed program was
:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9959 rm -f core conftest.err conftest.$ac_objext \
9961 if test "${ac_cv_search_opendir+set}" = set; then
9965 if test "${ac_cv_search_opendir+set}" = set; then
9968 ac_cv_search_opendir=no
9971 LIBS=$ac_func_search_save_LIBS
9973 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9974 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9975 ac_res=$ac_cv_search_opendir
9976 if test "$ac_res" != no; then
9977 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9983 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
9984 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
9985 if test "${ac_cv_header_stdc+set}" = set; then
9986 echo $ECHO_N "(cached
) $ECHO_C" >&6
9988 cat >conftest.$ac_ext <<_ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
10007 rm -f conftest.$ac_objext
10008 if { (ac_try="$ac_compile"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10014 (eval "$ac_compile") 2>conftest.er1
10016 grep -v '^ *+' conftest.er1 >conftest.err
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10022 { (case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_try") 2>&5
10029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10030 (exit $ac_status); }; } &&
10031 { ac_try='test -s conftest.$ac_objext'
10032 { (case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10037 (eval "$ac_try") 2>&5
10039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10040 (exit $ac_status); }; }; then
10041 ac_cv_header_stdc=yes
10043 echo "$as_me: failed program was
:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 ac_cv_header_stdc=no
10049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10051 if test $ac_cv_header_stdc = yes; then
10052 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 #include <string.h>
10062 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10063 $EGREP "memchr
" >/dev/null 2>&1; then
10066 ac_cv_header_stdc=no
10072 if test $ac_cv_header_stdc = yes; then
10073 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10074 cat >conftest.$ac_ext <<_ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 #include <stdlib.h>
10083 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10084 $EGREP "free
" >/dev/null 2>&1; then
10087 ac_cv_header_stdc=no
10093 if test $ac_cv_header_stdc = yes; then
10094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10095 if test "$cross_compiling" = yes; then
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10105 #include <stdlib.h>
10106 #if ((' ' & 0x0FF) == 0x020)
10107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10110 # define ISLOWER(c) \
10111 (('a' <= (c) && (c) <= 'i') \
10112 || ('j' <= (c) && (c) <= 'r') \
10113 || ('s' <= (c) && (c) <= 'z'))
10114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10122 for (i = 0; i < 256; i++)
10123 if (XOR (islower (i), ISLOWER (i))
10124 || toupper (i) != TOUPPER (i))
10129 rm -f 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>&5
10138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10140 { (case "(($ac_try" in
10141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142 *) ac_try_echo=$ac_try;;
10144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10145 (eval "$ac_try") 2>&5
10147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10148 (exit $ac_status); }; }; then
10151 echo "$as_me: program exited with status
$ac_status" >&5
10152 echo "$as_me: failed program was
:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10155 ( exit $ac_status )
10156 ac_cv_header_stdc=no
10158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10164 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
10165 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10166 if test $ac_cv_header_stdc = yes; then
10168 cat >>confdefs.h <<\_ACEOF
10169 #define STDC_HEADERS 1
10174 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
10175 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
10176 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10177 echo $ECHO_N "(cached
) $ECHO_C" >&6
10179 cat >conftest.$ac_ext <<_ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185 #include <sys/types.h>
10186 #include <sys/wait.h>
10187 #ifndef WEXITSTATUS
10188 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10191 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10199 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10204 rm -f conftest.$ac_objext
10205 if { (ac_try="$ac_compile"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest.$ac_objext'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_header_sys_wait_h=yes
10240 echo "$as_me: failed program was
:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10243 ac_cv_header_sys_wait_h=no
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10248 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
10249 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10250 if test $ac_cv_header_sys_wait_h = yes; then
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_SYS_WAIT_H 1
10281 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
10283 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10284 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10285 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10286 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10287 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10288 echo $ECHO_N "(cached
) $ECHO_C" >&6
10290 ac_res=`eval echo '${'$as_ac_Header'}'`
10291 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10292 echo "${ECHO_T}$ac_res" >&6; }
10294 # Is the header compilable?
10295 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10296 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10297 cat >conftest.$ac_ext <<_ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 $ac_includes_default
10304 #include <$ac_header>
10306 rm -f conftest.$ac_objext
10307 if { (ac_try="$ac_compile"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_compile") 2>conftest.er1
10315 grep -v '^ *+' conftest.er1 >conftest.err
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10321 { (case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_try") 2>&5
10328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest.$ac_objext'
10331 { (case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_try") 2>&5
10338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_header_compiler=yes
10342 echo "$as_me: failed program was
:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_header_compiler=no
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10350 echo "${ECHO_T}$ac_header_compiler" >&6; }
10352 # Is the header present?
10353 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10354 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10355 cat >conftest.$ac_ext <<_ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 #include <$ac_header>
10363 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10364 case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10371 grep -v '^ *+' conftest.er1 >conftest.err
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10375 (exit $ac_status); } >/dev/null; then
10376 if test -s conftest.err; then
10377 ac_cpp_err=$ac_c_preproc_warn_flag
10378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10385 if test -z "$ac_cpp_err"; then
10386 ac_header_preproc=yes
10388 echo "$as_me: failed program was
:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 ac_header_preproc=no
10394 rm -f conftest.err conftest.$ac_ext
10395 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10396 echo "${ECHO_T}$ac_header_preproc" >&6; }
10398 # So? What about this header?
10399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10401 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10402 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10403 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10405 ac_header_preproc=yes
10408 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10409 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10410 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10411 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10412 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10413 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10414 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10415 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10416 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10418 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10419 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10421 ## ------------------------------- ##
10422 ## Report this to www.asterisk.org ##
10423 ## ------------------------------- ##
10425 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
10428 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10429 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10430 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10431 echo $ECHO_N "(cached
) $ECHO_C" >&6
10433 eval "$as_ac_Header=\
$ac_header_preproc"
10435 ac_res=`eval echo '${'$as_ac_Header'}'`
10436 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10437 echo "${ECHO_T}$ac_res" >&6; }
10440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10441 cat >>confdefs.h <<_ACEOF
10442 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10450 # Check whether --enable-largefile was given.
10451 if test "${enable_largefile+set}" = set; then
10452 enableval=$enable_largefile;
10455 if test "$enable_largefile" != no; then
10457 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
10458 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
10459 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10460 echo $ECHO_N "(cached
) $ECHO_C" >&6
10462 ac_cv_sys_largefile_CC=no
10463 if test "$GCC" != yes; then
10466 # IRIX 6.2 and later do not support large files by default,
10467 # so use the C compiler's -n32 option if that helps.
10468 cat >conftest.$ac_ext <<_ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 #include <sys/types.h>
10475 /* Check that off_t can represent 2**63 - 1 correctly.
10476 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10477 since some C++ compilers masquerading as C compilers
10478 incorrectly reject 9223372036854775807. */
10479 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10481 && LARGE_OFF_T % 2147483647 == 1)
10491 rm -f conftest.$ac_objext
10492 if { (ac_try="$ac_compile"
10493 case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_compile") 2>conftest.er1
10500 grep -v '^ *+' conftest.er1 >conftest.err
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10506 { (case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_try") 2>&5
10513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_try") 2>&5
10523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10524 (exit $ac_status); }; }; then
10527 echo "$as_me: failed program was
:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10533 rm -f core conftest.err conftest.$ac_objext
10535 rm -f conftest.$ac_objext
10536 if { (ac_try="$ac_compile"
10537 case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_compile") 2>conftest.er1
10544 grep -v '^ *+' conftest.er1 >conftest.err
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10550 { (case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_try") 2>&5
10557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest.$ac_objext'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 ac_cv_sys_largefile_CC=' -n32'; break
10571 echo "$as_me: failed program was
:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10577 rm -f core conftest.err conftest.$ac_objext
10581 rm -f conftest.$ac_ext
10584 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
10585 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10586 if test "$ac_cv_sys_largefile_CC" != no; then
10587 CC=$CC$ac_cv_sys_largefile_CC
10590 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
10591 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
10592 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10593 echo $ECHO_N "(cached
) $ECHO_C" >&6
10596 ac_cv_sys_file_offset_bits=no
10597 cat >conftest.$ac_ext <<_ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 #include <sys/types.h>
10604 /* Check that off_t can represent 2**63 - 1 correctly.
10605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10606 since some C++ compilers masquerading as C compilers
10607 incorrectly reject 9223372036854775807. */
10608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10610 && LARGE_OFF_T % 2147483647 == 1)
10620 rm -f conftest.$ac_objext
10621 if { (ac_try="$ac_compile"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_compile") 2>conftest.er1
10629 grep -v '^ *+' conftest.er1 >conftest.err
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10633 (exit $ac_status); } &&
10634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10642 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest.$ac_objext'
10645 { (case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_try") 2>&5
10652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10653 (exit $ac_status); }; }; then
10656 echo "$as_me: failed program was
:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 #define _FILE_OFFSET_BITS 64
10670 #include <sys/types.h>
10671 /* Check that off_t can represent 2**63 - 1 correctly.
10672 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10673 since some C++ compilers masquerading as C compilers
10674 incorrectly reject 9223372036854775807. */
10675 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10676 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10677 && LARGE_OFF_T % 2147483647 == 1)
10687 rm -f conftest.$ac_objext
10688 if { (ac_try="$ac_compile"
10689 case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10693 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_compile") 2>conftest.er1
10696 grep -v '^ *+' conftest.er1 >conftest.err
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10702 { (case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_try") 2>&5
10709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10710 (exit $ac_status); }; } &&
10711 { ac_try='test -s conftest.$ac_objext'
10712 { (case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_try") 2>&5
10719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_sys_file_offset_bits=64; break
10723 echo "$as_me: failed program was
:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
10734 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10735 if test "$ac_cv_sys_file_offset_bits" != no; then
10737 cat >>confdefs.h <<_ACEOF
10738 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10743 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
10744 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
10745 if test "${ac_cv_sys_large_files+set}" = set; then
10746 echo $ECHO_N "(cached
) $ECHO_C" >&6
10749 ac_cv_sys_large_files=no
10750 cat >conftest.$ac_ext <<_ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10756 #include <sys/types.h>
10757 /* Check that off_t can represent 2**63 - 1 correctly.
10758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10759 since some C++ compilers masquerading as C compilers
10760 incorrectly reject 9223372036854775807. */
10761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10763 && LARGE_OFF_T % 2147483647 == 1)
10773 rm -f conftest.$ac_objext
10774 if { (ac_try="$ac_compile"
10775 case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_compile") 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788 { (case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_try") 2>&5
10795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest.$ac_objext'
10798 { (case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_try") 2>&5
10805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10806 (exit $ac_status); }; }; then
10809 echo "$as_me: failed program was
:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 cat >conftest.$ac_ext <<_ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 #define _LARGE_FILES 1
10823 #include <sys/types.h>
10824 /* Check that off_t can represent 2**63 - 1 correctly.
10825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10826 since some C++ compilers masquerading as C compilers
10827 incorrectly reject 9223372036854775807. */
10828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10830 && LARGE_OFF_T % 2147483647 == 1)
10840 rm -f conftest.$ac_objext
10841 if { (ac_try="$ac_compile"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_compile") 2>conftest.er1
10849 grep -v '^ *+' conftest.er1 >conftest.err
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10855 { (case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_try") 2>&5
10862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest.$ac_objext'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_cv_sys_large_files=1; break
10876 echo "$as_me: failed program was
:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10886 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
10887 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10888 if test "$ac_cv_sys_large_files" != no; then
10890 cat >>confdefs.h <<_ACEOF
10891 #define _LARGE_FILES $ac_cv_sys_large_files
10899 # Checks for typedefs, structures, and compiler characteristics.
10900 { echo "$as_me:$LINENO: checking
for stdbool.h that conforms to C99
" >&5
10901 echo $ECHO_N "checking
for stdbool.h that conforms to C99...
$ECHO_C" >&6; }
10902 if test "${ac_cv_header_stdbool_h+set}" = set; then
10903 echo $ECHO_N "(cached
) $ECHO_C" >&6
10905 cat >conftest.$ac_ext <<_ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10912 #include <stdbool.h>
10914 "error
: bool is not defined
"
10917 "error
: false is not defined
"
10920 "error
: false is not
0"
10923 "error
: true is not defined
"
10926 "error
: true is not
1"
10928 #ifndef __bool_true_false_are_defined
10929 "error
: __bool_true_false_are_defined is not defined
"
10932 struct s { _Bool s: 1; _Bool t; } s;
10934 char a[true == 1 ? 1 : -1];
10935 char b[false == 0 ? 1 : -1];
10936 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10937 char d[(bool) 0.5 == true ? 1 : -1];
10939 char f[(_Bool) 0.0 == false ? 1 : -1];
10941 char h[sizeof (_Bool)];
10942 char i[sizeof s.t];
10943 enum { j = false, k = true, l = false * true, m = true * 256 };
10945 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10946 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10947 # if defined __xlc__ || defined __GNUC__
10948 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10949 reported by James Lemley on 2005-10-05; see
10950 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10951 This test is not quite right, since xlc is allowed to
10952 reject this program, as the initializer for xlcbug is
10953 not one of the forms that C requires support for.
10954 However, doing the test right would require a runtime
10955 test, and that would make cross-compilation harder.
10956 Let us hope that IBM fixes the xlc bug, and also adds
10957 support for this kind of constant expression. In the
10958 meantime, this test will reject xlc, which is OK, since
10959 our stdbool.h substitute should suffice. We also test
10960 this with GCC, where it should work, to detect more
10961 quickly whether someone messes up the test in the
10963 char digs[] = "0123456789";
10964 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10966 /* Catch a bug in an HP-UX C compiler. See
10967 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10968 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10979 /* Refer to every declared value, to avoid compiler optimizations. */
10980 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10981 + !m + !n + !o + !p + !q + !pq);
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_compile") 2>conftest.er1
10996 grep -v '^ *+' conftest.er1 >conftest.err
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11002 { (case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_try") 2>&5
11009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11010 (exit $ac_status); }; } &&
11011 { ac_try='test -s conftest.$ac_objext'
11012 { (case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_try") 2>&5
11019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 ac_cv_header_stdbool_h=yes
11023 echo "$as_me: failed program was
:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 ac_cv_header_stdbool_h=no
11029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11031 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdbool_h" >&5
11032 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11033 { echo "$as_me:$LINENO: checking
for _Bool
" >&5
11034 echo $ECHO_N "checking
for _Bool...
$ECHO_C" >&6; }
11035 if test "${ac_cv_type__Bool+set}" = set; then
11036 echo $ECHO_N "(cached
) $ECHO_C" >&6
11038 cat >conftest.$ac_ext <<_ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 $ac_includes_default
11045 typedef _Bool ac__type_new_;
11049 if ((ac__type_new_ *) 0)
11051 if (sizeof (ac__type_new_))
11057 rm -f conftest.$ac_objext
11058 if { (ac_try="$ac_compile"
11059 case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_compile") 2>conftest.er1
11066 grep -v '^ *+' conftest.er1 >conftest.err
11068 cat conftest.err >&5
11069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11070 (exit $ac_status); } &&
11071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11072 { (case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_try") 2>&5
11079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11080 (exit $ac_status); }; } &&
11081 { ac_try='test -s conftest.$ac_objext'
11082 { (case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_try") 2>&5
11089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 ac_cv_type__Bool=yes
11093 echo "$as_me: failed program was
:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11096 ac_cv_type__Bool=no
11099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11101 { echo "$as_me:$LINENO: result
: $ac_cv_type__Bool" >&5
11102 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11103 if test $ac_cv_type__Bool = yes; then
11105 cat >>confdefs.h <<_ACEOF
11106 #define HAVE__BOOL 1
11112 if test $ac_cv_header_stdbool_h = yes; then
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_STDBOOL_H 1
11120 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
11121 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
11122 if test "${ac_cv_c_const+set}" = set; then
11123 echo $ECHO_N "(cached
) $ECHO_C" >&6
11125 cat >conftest.$ac_ext <<_ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11135 /* FIXME: Include the comments suggested by Paul. */
11136 #ifndef __cplusplus
11137 /* Ultrix mips cc rejects this. */
11138 typedef int charset[2];
11140 /* SunOS 4.1.1 cc rejects this. */
11141 char const *const *ccp;
11143 /* NEC SVR4.0.2 mips cc rejects this. */
11144 struct point {int x, y;};
11145 static struct point const zero = {0,0};
11146 /* AIX XL C 1.02.0.0 rejects this.
11147 It does not let you subtract one const X* pointer from another in
11148 an arm of an if-expression whose if-part is not a constant
11150 const char *g = "string
";
11151 ccp = &g + (g ? g-g : 0);
11152 /* HPUX 7.0 cc rejects these. */
11155 ccp = (char const *const *) p;
11156 { /* SCO 3.2v4 cc rejects this. */
11158 char const *s = 0 ? (char *) 0 : (char const *) 0;
11163 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11164 int x[] = {25, 17};
11165 const int *foo = &x[0];
11168 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11169 typedef const int *iptr;
11173 { /* AIX XL C 1.02.0.0 rejects this saying
11174 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11175 struct s { int j; const int *ap[3]; };
11176 struct s *b; b->j = 5;
11178 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11179 const int foo = 10;
11180 if (!foo) return 0;
11182 return !x[0] && !zero.x;
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_compile") 2>conftest.er1
11198 grep -v '^ *+' conftest.er1 >conftest.err
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11202 (exit $ac_status); } &&
11203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11204 { (case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_try") 2>&5
11211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11212 (exit $ac_status); }; } &&
11213 { ac_try='test -s conftest.$ac_objext'
11214 { (case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11218 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_try") 2>&5
11221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11222 (exit $ac_status); }; }; then
11225 echo "$as_me: failed program was
:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
11234 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11235 if test $ac_cv_c_const = no; then
11237 cat >>confdefs.h <<\_ACEOF
11243 { echo "$as_me:$LINENO: checking
for uid_t
in sys
/types.h
" >&5
11244 echo $ECHO_N "checking
for uid_t
in sys
/types.h...
$ECHO_C" >&6; }
11245 if test "${ac_cv_type_uid_t+set}" = set; then
11246 echo $ECHO_N "(cached
) $ECHO_C" >&6
11248 cat >conftest.$ac_ext <<_ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 #include <sys/types.h>
11257 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
11258 $EGREP "uid_t
" >/dev/null 2>&1; then
11259 ac_cv_type_uid_t=yes
11261 ac_cv_type_uid_t=no
11266 { echo "$as_me:$LINENO: result
: $ac_cv_type_uid_t" >&5
11267 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11268 if test $ac_cv_type_uid_t = no; then
11270 cat >>confdefs.h <<\_ACEOF
11275 cat >>confdefs.h <<\_ACEOF
11281 { echo "$as_me:$LINENO: checking
for inline
" >&5
11282 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
11283 if test "${ac_cv_c_inline+set}" = set; then
11284 echo $ECHO_N "(cached
) $ECHO_C" >&6
11287 for ac_kw in inline __inline__ __inline; do
11288 cat >conftest.$ac_ext <<_ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 #ifndef __cplusplus
11296 static $ac_kw foo_t static_foo () {return 0; }
11297 $ac_kw foo_t foo () {return 0; }
11301 rm -f conftest.$ac_objext
11302 if { (ac_try="$ac_compile"
11303 case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_compile") 2>conftest.er1
11310 grep -v '^ *+' conftest.er1 >conftest.err
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try='test -s conftest.$ac_objext'
11326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_cv_c_inline=$ac_kw
11337 echo "$as_me: failed program was
:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 test "$ac_cv_c_inline" != no && break
11348 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
11349 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11352 case $ac_cv_c_inline in
11355 case $ac_cv_c_inline in
11357 *) ac_val=$ac_cv_c_inline;;
11359 cat >>confdefs.h <<_ACEOF
11360 #ifndef __cplusplus
11361 #define inline $ac_val
11367 { echo "$as_me:$LINENO: checking
for mode_t
" >&5
11368 echo $ECHO_N "checking
for mode_t...
$ECHO_C" >&6; }
11369 if test "${ac_cv_type_mode_t+set}" = set; then
11370 echo $ECHO_N "(cached
) $ECHO_C" >&6
11372 cat >conftest.$ac_ext <<_ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 $ac_includes_default
11379 typedef mode_t ac__type_new_;
11383 if ((ac__type_new_ *) 0)
11385 if (sizeof (ac__type_new_))
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_cv_type_mode_t=yes
11427 echo "$as_me: failed program was
:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_cv_type_mode_t=no
11433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11435 { echo "$as_me:$LINENO: result
: $ac_cv_type_mode_t" >&5
11436 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11437 if test $ac_cv_type_mode_t = yes; then
11441 cat >>confdefs.h <<_ACEOF
11447 { echo "$as_me:$LINENO: checking
for off_t
" >&5
11448 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
11449 if test "${ac_cv_type_off_t+set}" = set; then
11450 echo $ECHO_N "(cached
) $ECHO_C" >&6
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 typedef off_t ac__type_new_;
11463 if ((ac__type_new_ *) 0)
11465 if (sizeof (ac__type_new_))
11471 rm -f conftest.$ac_objext
11472 if { (ac_try="$ac_compile"
11473 case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_compile") 2>conftest.er1
11480 grep -v '^ *+' conftest.er1 >conftest.err
11482 cat conftest.err >&5
11483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11484 (exit $ac_status); } &&
11485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11486 { (case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_try") 2>&5
11493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11494 (exit $ac_status); }; } &&
11495 { ac_try='test -s conftest.$ac_objext'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_try") 2>&5
11503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_cv_type_off_t=yes
11507 echo "$as_me: failed program was
:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_cv_type_off_t=no
11513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11515 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
11516 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11517 if test $ac_cv_type_off_t = yes; then
11521 cat >>confdefs.h <<_ACEOF
11522 #define off_t long int
11527 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
11528 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
11529 if test "${ac_cv_type_pid_t+set}" = set; then
11530 echo $ECHO_N "(cached
) $ECHO_C" >&6
11532 cat >conftest.$ac_ext <<_ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 $ac_includes_default
11539 typedef pid_t ac__type_new_;
11543 if ((ac__type_new_ *) 0)
11545 if (sizeof (ac__type_new_))
11551 rm -f conftest.$ac_objext
11552 if { (ac_try="$ac_compile"
11553 case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11558 (eval "$ac_compile") 2>conftest.er1
11560 grep -v '^ *+' conftest.er1 >conftest.err
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11566 { (case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_try") 2>&5
11573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11574 (exit $ac_status); }; } &&
11575 { ac_try='test -s conftest.$ac_objext'
11576 { (case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_try") 2>&5
11583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 ac_cv_type_pid_t=yes
11587 echo "$as_me: failed program was
:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 ac_cv_type_pid_t=no
11593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
11596 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11597 if test $ac_cv_type_pid_t = yes; then
11601 cat >>confdefs.h <<_ACEOF
11607 { echo "$as_me:$LINENO: checking
for size_t
" >&5
11608 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
11609 if test "${ac_cv_type_size_t+set}" = set; then
11610 echo $ECHO_N "(cached
) $ECHO_C" >&6
11612 cat >conftest.$ac_ext <<_ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 $ac_includes_default
11619 typedef size_t ac__type_new_;
11623 if ((ac__type_new_ *) 0)
11625 if (sizeof (ac__type_new_))
11631 rm -f conftest.$ac_objext
11632 if { (ac_try="$ac_compile"
11633 case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_compile") 2>conftest.er1
11640 grep -v '^ *+' conftest.er1 >conftest.err
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11646 { (case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_try") 2>&5
11653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try='test -s conftest.$ac_objext'
11656 { (case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_try") 2>&5
11663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 ac_cv_type_size_t=yes
11667 echo "$as_me: failed program was
:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 ac_cv_type_size_t=no
11673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11675 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
11676 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11677 if test $ac_cv_type_size_t = yes; then
11681 cat >>confdefs.h <<_ACEOF
11682 #define size_t unsigned int
11687 { echo "$as_me:$LINENO: checking
for struct stat.st_blksize
" >&5
11688 echo $ECHO_N "checking
for struct stat.st_blksize...
$ECHO_C" >&6; }
11689 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11690 echo $ECHO_N "(cached
) $ECHO_C" >&6
11692 cat >conftest.$ac_ext <<_ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 $ac_includes_default
11702 static struct stat ac_aggr;
11703 if (ac_aggr.st_blksize)
11709 rm -f conftest.$ac_objext
11710 if { (ac_try="$ac_compile"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_compile") 2>conftest.er1
11718 grep -v '^ *+' conftest.er1 >conftest.err
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11724 { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_try") 2>&5
11731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11732 (exit $ac_status); }; } &&
11733 { ac_try='test -s conftest.$ac_objext'
11734 { (case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_try") 2>&5
11741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 ac_cv_member_struct_stat_st_blksize=yes
11745 echo "$as_me: failed program was
:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 cat >conftest.$ac_ext <<_ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 $ac_includes_default
11758 static struct stat ac_aggr;
11759 if (sizeof ac_aggr.st_blksize)
11765 rm -f conftest.$ac_objext
11766 if { (ac_try="$ac_compile"
11767 case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_compile") 2>conftest.er1
11774 grep -v '^ *+' conftest.er1 >conftest.err
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11780 { (case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_try") 2>&5
11787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest.$ac_objext'
11790 { (case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_try") 2>&5
11797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_member_struct_stat_st_blksize=yes
11801 echo "$as_me: failed program was
:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 ac_cv_member_struct_stat_st_blksize=no
11807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blksize" >&5
11813 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11814 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11816 cat >>confdefs.h <<_ACEOF
11817 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11823 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
11824 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
11825 if test "${ac_cv_header_time+set}" = set; then
11826 echo $ECHO_N "(cached
) $ECHO_C" >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 #include <sys/types.h>
11835 #include <sys/time.h>
11841 if ((struct tm *) 0)
11847 rm -f conftest.$ac_objext
11848 if { (ac_try="$ac_compile"
11849 case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11854 (eval "$ac_compile") 2>conftest.er1
11856 grep -v '^ *+' conftest.er1 >conftest.err
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11862 { (case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_try") 2>&5
11869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11870 (exit $ac_status); }; } &&
11871 { ac_try='test -s conftest.$ac_objext'
11872 { (case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11876 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_try") 2>&5
11879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 ac_cv_header_time=yes
11883 echo "$as_me: failed program was
:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 ac_cv_header_time=no
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
11892 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11893 if test $ac_cv_header_time = yes; then
11895 cat >>confdefs.h <<\_ACEOF
11896 #define TIME_WITH_SYS_TIME 1
11901 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
11902 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
11903 if test "${ac_cv_struct_tm+set}" = set; then
11904 echo $ECHO_N "(cached
) $ECHO_C" >&6
11906 cat >conftest.$ac_ext <<_ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912 #include <sys/types.h>
11918 struct tm *tp; tp->tm_sec;
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_compile") 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11938 { (case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11943 (eval "$ac_try") 2>&5
11945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest.$ac_objext'
11948 { (case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_try") 2>&5
11955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_struct_tm=time.h
11959 echo "$as_me: failed program was
:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_cv_struct_tm=sys/time.h
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
11968 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11969 if test $ac_cv_struct_tm = sys/time.h; then
11971 cat >>confdefs.h <<\_ACEOF
11972 #define TM_IN_SYS_TIME 1
11977 { echo "$as_me:$LINENO: checking
for working volatile
" >&5
11978 echo $ECHO_N "checking
for working volatile...
$ECHO_C" >&6; }
11979 if test "${ac_cv_c_volatile+set}" = set; then
11980 echo $ECHO_N "(cached
) $ECHO_C" >&6
11982 cat >conftest.$ac_ext <<_ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11994 int * volatile y = (int *) 0;
12000 rm -f conftest.$ac_objext
12001 if { (ac_try="$ac_compile"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_compile") 2>conftest.er1
12009 grep -v '^ *+' conftest.er1 >conftest.err
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12015 { (case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_try") 2>&5
12022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest.$ac_objext'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_cv_c_volatile=yes
12036 echo "$as_me: failed program was
:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 ac_cv_c_volatile=no
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 { echo "$as_me:$LINENO: result
: $ac_cv_c_volatile" >&5
12045 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12046 if test $ac_cv_c_volatile = no; then
12048 cat >>confdefs.h <<\_ACEOF
12054 { echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
12055 echo $ECHO_N "checking
for ptrdiff_t...
$ECHO_C" >&6; }
12056 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12057 echo $ECHO_N "(cached
) $ECHO_C" >&6
12059 cat >conftest.$ac_ext <<_ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 $ac_includes_default
12066 typedef ptrdiff_t ac__type_new_;
12070 if ((ac__type_new_ *) 0)
12072 if (sizeof (ac__type_new_))
12078 rm -f conftest.$ac_objext
12079 if { (ac_try="$ac_compile"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_compile") 2>conftest.er1
12087 grep -v '^ *+' conftest.er1 >conftest.err
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12093 { (case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_try") 2>&5
12100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12101 (exit $ac_status); }; } &&
12102 { ac_try='test -s conftest.$ac_objext'
12103 { (case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_try") 2>&5
12110 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_type_ptrdiff_t=yes
12114 echo "$as_me: failed program was
:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12117 ac_cv_type_ptrdiff_t=no
12120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 { echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
12123 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12124 if test $ac_cv_type_ptrdiff_t = yes; then
12126 cat >>confdefs.h <<_ACEOF
12127 #define HAVE_PTRDIFF_T 1
12134 # Checks for library functions.
12136 for ac_header in unistd.h
12138 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12139 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12140 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12141 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12142 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12143 echo $ECHO_N "(cached
) $ECHO_C" >&6
12145 ac_res=`eval echo '${'$as_ac_Header'}'`
12146 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12147 echo "${ECHO_T}$ac_res" >&6; }
12149 # Is the header compilable?
12150 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12151 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12152 cat >conftest.$ac_ext <<_ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12158 $ac_includes_default
12159 #include <$ac_header>
12161 rm -f conftest.$ac_objext
12162 if { (ac_try="$ac_compile"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_compile") 2>conftest.er1
12170 grep -v '^ *+' conftest.er1 >conftest.err
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12176 { (case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_try") 2>&5
12183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest.$ac_objext'
12186 { (case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_try") 2>&5
12193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12194 (exit $ac_status); }; }; then
12195 ac_header_compiler=yes
12197 echo "$as_me: failed program was
:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 ac_header_compiler=no
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12205 echo "${ECHO_T}$ac_header_compiler" >&6; }
12207 # Is the header present?
12208 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12209 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12210 cat >conftest.$ac_ext <<_ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 #include <$ac_header>
12218 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12219 case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12226 grep -v '^ *+' conftest.er1 >conftest.err
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12230 (exit $ac_status); } >/dev/null; then
12231 if test -s conftest.err; then
12232 ac_cpp_err=$ac_c_preproc_warn_flag
12233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12240 if test -z "$ac_cpp_err"; then
12241 ac_header_preproc=yes
12243 echo "$as_me: failed program was
:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_header_preproc=no
12249 rm -f conftest.err conftest.$ac_ext
12250 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12251 echo "${ECHO_T}$ac_header_preproc" >&6; }
12253 # So? What about this header?
12254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12256 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12257 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12258 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12260 ac_header_preproc=yes
12263 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12264 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12265 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12266 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12267 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12268 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12269 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12270 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12271 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12273 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12274 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12276 ## ------------------------------- ##
12277 ## Report this to www.asterisk.org ##
12278 ## ------------------------------- ##
12280 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12283 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12284 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12285 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12286 echo $ECHO_N "(cached
) $ECHO_C" >&6
12288 eval "$as_ac_Header=\
$ac_header_preproc"
12290 ac_res=`eval echo '${'$as_ac_Header'}'`
12291 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12292 echo "${ECHO_T}$ac_res" >&6; }
12295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12304 { echo "$as_me:$LINENO: checking
for working chown
" >&5
12305 echo $ECHO_N "checking
for working chown...
$ECHO_C" >&6; }
12306 if test "${ac_cv_func_chown_works+set}" = set; then
12307 echo $ECHO_N "(cached
) $ECHO_C" >&6
12309 if test "$cross_compiling" = yes; then
12310 ac_cv_func_chown_works=no
12312 cat >conftest.$ac_ext <<_ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 $ac_includes_default
12324 char *f = "conftest.chown
";
12325 struct stat before, after;
12327 if (creat (f, 0600) < 0)
12329 if (stat (f, &before) < 0)
12331 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12333 if (stat (f, &after) < 0)
12335 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12341 rm -f conftest$ac_exeext
12342 if { (ac_try="$ac_link"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_link") 2>&5
12350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12352 { (case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_try") 2>&5
12359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_func_chown_works=yes
12363 echo "$as_me: program exited with status
$ac_status" >&5
12364 echo "$as_me: failed program was
:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ( exit $ac_status )
12368 ac_cv_func_chown_works=no
12370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12374 rm -f conftest.chown
12377 { echo "$as_me:$LINENO: result
: $ac_cv_func_chown_works" >&5
12378 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12379 if test $ac_cv_func_chown_works = yes; then
12381 cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_CHOWN 1
12387 { echo "$as_me:$LINENO: checking whether closedir returns void
" >&5
12388 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; }
12389 if test "${ac_cv_func_closedir_void+set}" = set; then
12390 echo $ECHO_N "(cached
) $ECHO_C" >&6
12392 if test "$cross_compiling" = yes; then
12393 ac_cv_func_closedir_void=yes
12395 cat >conftest.$ac_ext <<_ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12401 $ac_includes_default
12402 #include <$ac_header_dirent>
12403 #ifndef __cplusplus
12410 return closedir (opendir (".
")) != 0;
12415 rm -f conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_link") 2>&5
12424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_cv_func_closedir_void=no
12437 echo "$as_me: program exited with status
$ac_status" >&5
12438 echo "$as_me: failed program was
:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ( exit $ac_status )
12442 ac_cv_func_closedir_void=yes
12444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12449 { echo "$as_me:$LINENO: result
: $ac_cv_func_closedir_void" >&5
12450 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12451 if test $ac_cv_func_closedir_void = yes; then
12453 cat >>confdefs.h <<\_ACEOF
12454 #define CLOSEDIR_VOID 1
12459 { echo "$as_me:$LINENO: checking
for error_at_line
" >&5
12460 echo $ECHO_N "checking
for error_at_line...
$ECHO_C" >&6; }
12461 if test "${ac_cv_lib_error_at_line+set}" = set; then
12462 echo $ECHO_N "(cached
) $ECHO_C" >&6
12464 cat >conftest.$ac_ext <<_ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 $ac_includes_default
12474 error_at_line (0, 0, "", 0, "");
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (ac_try="$ac_link"
12481 case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_link") 2>conftest.er1
12488 grep -v '^ *+' conftest.er1 >conftest.err
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12494 { (case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_try") 2>&5
12501 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12502 (exit $ac_status); }; } &&
12503 { ac_try='test -s conftest$ac_exeext'
12504 { (case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_try") 2>&5
12511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 ac_cv_lib_error_at_line=yes
12515 echo "$as_me: failed program was
:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 ac_cv_lib_error_at_line=no
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12524 { echo "$as_me:$LINENO: result
: $ac_cv_lib_error_at_line" >&5
12525 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12526 if test $ac_cv_lib_error_at_line = no; then
12527 case " $LIBOBJS " in
12528 *" error.
$ac_objext "* ) ;;
12529 *) LIBOBJS="$LIBOBJS error.
$ac_objext"
12536 for ac_header in vfork.h
12538 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12539 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12540 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12541 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12542 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12543 echo $ECHO_N "(cached
) $ECHO_C" >&6
12545 ac_res=`eval echo '${'$as_ac_Header'}'`
12546 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12547 echo "${ECHO_T}$ac_res" >&6; }
12549 # Is the header compilable?
12550 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12551 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12552 cat >conftest.$ac_ext <<_ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 $ac_includes_default
12559 #include <$ac_header>
12561 rm -f conftest.$ac_objext
12562 if { (ac_try="$ac_compile"
12563 case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_compile") 2>conftest.er1
12570 grep -v '^ *+' conftest.er1 >conftest.err
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12576 { (case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_try") 2>&5
12583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest.$ac_objext'
12586 { (case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_try") 2>&5
12593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_header_compiler=yes
12597 echo "$as_me: failed program was
:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12600 ac_header_compiler=no
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12605 echo "${ECHO_T}$ac_header_compiler" >&6; }
12607 # Is the header present?
12608 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12609 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12610 cat >conftest.$ac_ext <<_ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 #include <$ac_header>
12618 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12626 grep -v '^ *+' conftest.er1 >conftest.err
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12630 (exit $ac_status); } >/dev/null; then
12631 if test -s conftest.err; then
12632 ac_cpp_err=$ac_c_preproc_warn_flag
12633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12640 if test -z "$ac_cpp_err"; then
12641 ac_header_preproc=yes
12643 echo "$as_me: failed program was
:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 ac_header_preproc=no
12649 rm -f conftest.err conftest.$ac_ext
12650 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12651 echo "${ECHO_T}$ac_header_preproc" >&6; }
12653 # So? What about this header?
12654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12656 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12657 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12658 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12660 ac_header_preproc=yes
12663 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12664 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12665 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12666 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12667 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12668 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12669 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12670 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12671 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12673 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12674 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12676 ## ------------------------------- ##
12677 ## Report this to www.asterisk.org ##
12678 ## ------------------------------- ##
12680 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12683 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12684 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12685 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12686 echo $ECHO_N "(cached
) $ECHO_C" >&6
12688 eval "$as_ac_Header=\
$ac_header_preproc"
12690 ac_res=`eval echo '${'$as_ac_Header'}'`
12691 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12692 echo "${ECHO_T}$ac_res" >&6; }
12695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12696 cat >>confdefs.h <<_ACEOF
12697 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12706 for ac_func in fork vfork
12708 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12709 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12710 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12711 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12712 echo $ECHO_N "(cached
) $ECHO_C" >&6
12714 cat >conftest.$ac_ext <<_ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12722 #define $ac_func innocuous_$ac_func
12724 /* System header to define __stub macros and hopefully few prototypes,
12725 which can conflict with char $ac_func (); below.
12726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727 <limits.h> exists even on freestanding compilers. */
12730 # include <limits.h>
12732 # include <assert.h>
12737 /* Override any GCC internal prototype to avoid an error.
12738 Use char because int might match the return type of a GCC
12739 builtin and then its argument prototype would still apply. */
12744 /* The GNU C library defines this for functions which it implements
12745 to always fail with ENOSYS. Some functions are actually named
12746 something starting with __ and the normal name is an alias. */
12747 #if defined __stub_$ac_func || defined __stub___$ac_func
12754 return $ac_func ();
12759 rm -f conftest.$ac_objext conftest$ac_exeext
12760 if { (ac_try="$ac_link"
12761 case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_link") 2>conftest.er1
12768 grep -v '^ *+' conftest.er1 >conftest.err
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12772 (exit $ac_status); } &&
12773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12774 { (case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_try") 2>&5
12781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try='test -s conftest$ac_exeext'
12784 { (case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_try") 2>&5
12791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 eval "$as_ac_var=yes"
12795 echo "$as_me: failed program was
:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 eval "$as_ac_var=no
"
12801 rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12804 ac_res=`eval echo '${'$as_ac_var'}'`
12805 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12806 echo "${ECHO_T}$ac_res" >&6; }
12807 if test `eval echo '${'$as_ac_var'}'` = yes; then
12808 cat >>confdefs.h <<_ACEOF
12809 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12815 if test "x
$ac_cv_func_fork" = xyes; then
12816 { echo "$as_me:$LINENO: checking
for working fork
" >&5
12817 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
12818 if test "${ac_cv_func_fork_works+set}" = set; then
12819 echo $ECHO_N "(cached
) $ECHO_C" >&6
12821 if test "$cross_compiling" = yes; then
12822 ac_cv_func_fork_works=cross
12824 cat >conftest.$ac_ext <<_ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12830 $ac_includes_default
12835 /* By Ruediger Kuhlmann. */
12836 return fork () < 0;
12842 rm -f conftest$ac_exeext
12843 if { (ac_try="$ac_link"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>&5
12851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 ac_cv_func_fork_works=yes
12864 echo "$as_me: program exited with status
$ac_status" >&5
12865 echo "$as_me: failed program was
:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 ( exit $ac_status )
12869 ac_cv_func_fork_works=no
12871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12876 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
12877 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12880 ac_cv_func_fork_works=$ac_cv_func_fork
12882 if test "x
$ac_cv_func_fork_works" = xcross; then
12884 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12885 # Override, as these systems have only a dummy fork() stub
12886 ac_cv_func_fork_works=no
12889 ac_cv_func_fork_works=yes
12892 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
12893 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
12895 ac_cv_func_vfork_works=$ac_cv_func_vfork
12896 if test "x
$ac_cv_func_vfork" = xyes; then
12897 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
12898 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
12899 if test "${ac_cv_func_vfork_works+set}" = set; then
12900 echo $ECHO_N "(cached
) $ECHO_C" >&6
12902 if test "$cross_compiling" = yes; then
12903 ac_cv_func_vfork_works=cross
12905 cat >conftest.$ac_ext <<_ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12911 /* Thanks to Paul Eggert for this test. */
12912 $ac_includes_default
12913 #include <sys/wait.h>
12915 # include <vfork.h>
12917 /* On some sparc systems, changes by the child to local and incoming
12918 argument registers are propagated back to the parent. The compiler
12919 is told about this with #include <vfork.h>, but some compilers
12920 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12921 static variable whose address is put into a register that is
12922 clobbered by the vfork. */
12925 sparc_address_test (int arg)
12927 sparc_address_test (arg) int arg;
12930 static pid_t child;
12948 pid_t parent = getpid ();
12951 sparc_address_test (0);
12956 /* Here is another test for sparc vfork register problems. This
12957 test uses lots of local variables, at least as many local
12958 variables as main has allocated so far including compiler
12959 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12960 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12961 reuse the register of parent for one of the local variables,
12962 since it will think that parent can't possibly be used any more
12963 in this routine. Assigning to the local variable will thus
12964 munge parent in the parent process. */
12966 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12967 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12968 /* Convince the compiler that p..p7 are live; otherwise, it might
12969 use the same hardware register for all 8 local variables. */
12970 if (p != p1 || p != p2 || p != p3 || p != p4
12971 || p != p5 || p != p6 || p != p7)
12974 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12975 from child file descriptors. If the child closes a descriptor
12976 before it execs or exits, this munges the parent's descriptor
12977 as well. Test for this by closing stdout in the child. */
12978 _exit(close(fileno(stdout)) != 0);
12983 while (wait(&status) != child)
12986 /* Was there some problem with vforking? */
12989 /* Did the child fail? (This shouldn't happen.) */
12992 /* Did the vfork/compiler bug occur? */
12993 || parent != getpid()
12995 /* Did the file descriptor bug occur? */
12996 || fstat(fileno(stdout), &st) != 0
13001 rm -f conftest$ac_exeext
13002 if { (ac_try="$ac_link"
13003 case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_link") 2>&5
13010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13012 { (case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13017 (eval "$ac_try") 2>&5
13019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13020 (exit $ac_status); }; }; then
13021 ac_cv_func_vfork_works=yes
13023 echo "$as_me: program exited with status
$ac_status" >&5
13024 echo "$as_me: failed program was
:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13027 ( exit $ac_status )
13028 ac_cv_func_vfork_works=no
13030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13035 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
13036 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
13039 if test "x
$ac_cv_func_fork_works" = xcross; then
13040 ac_cv_func_vfork_works=$ac_cv_func_vfork
13041 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
13042 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
13045 if test "x
$ac_cv_func_vfork_works" = xyes; then
13047 cat >>confdefs.h <<\_ACEOF
13048 #define HAVE_WORKING_VFORK 1
13053 cat >>confdefs.h <<\_ACEOF
13058 if test "x
$ac_cv_func_fork_works" = xyes; then
13060 cat >>confdefs.h <<\_ACEOF
13061 #define HAVE_WORKING_FORK 1
13066 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
13067 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
13068 if test "${ac_cv_sys_largefile_source+set}" = set; then
13069 echo $ECHO_N "(cached
) $ECHO_C" >&6
13072 ac_cv_sys_largefile_source=no
13073 cat >conftest.$ac_ext <<_ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13088 rm -f conftest.$ac_objext
13089 if { (ac_try="$ac_compile"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_compile") 2>conftest.er1
13097 grep -v '^ *+' conftest.er1 >conftest.err
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13103 { (case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_try") 2>&5
13110 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest.$ac_objext'
13113 { (case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_try") 2>&5
13120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13121 (exit $ac_status); }; }; then
13124 echo "$as_me: failed program was
:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 cat >conftest.$ac_ext <<_ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 #define _LARGEFILE_SOURCE 1
13147 rm -f conftest.$ac_objext
13148 if { (ac_try="$ac_compile"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_compile") 2>conftest.er1
13156 grep -v '^ *+' conftest.er1 >conftest.err
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13162 { (case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_try") 2>&5
13169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest.$ac_objext'
13172 { (case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_try") 2>&5
13179 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13180 (exit $ac_status); }; }; then
13181 ac_cv_sys_largefile_source=1; break
13183 echo "$as_me: failed program was
:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
13194 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
13195 if test "$ac_cv_sys_largefile_source" != no; then
13197 cat >>confdefs.h <<_ACEOF
13198 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13204 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13205 # in glibc 2.1.3, but that breaks too many other things.
13206 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13207 { echo "$as_me:$LINENO: checking
for fseeko
" >&5
13208 echo $ECHO_N "checking
for fseeko...
$ECHO_C" >&6; }
13209 if test "${ac_cv_func_fseeko+set}" = set; then
13210 echo $ECHO_N "(cached
) $ECHO_C" >&6
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13222 return fseeko && fseeko (stdin, 0, 0);
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (ac_try="$ac_link"
13229 case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13234 (eval "$ac_link") 2>conftest.er1
13236 grep -v '^ *+' conftest.er1 >conftest.err
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13242 { (case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_try") 2>&5
13249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13250 (exit $ac_status); }; } &&
13251 { ac_try='test -s conftest$ac_exeext'
13252 { (case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_try") 2>&5
13259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 ac_cv_func_fseeko=yes
13263 echo "$as_me: failed program was
:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ac_cv_func_fseeko=no
13269 rm -f core conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
13272 { echo "$as_me:$LINENO: result
: $ac_cv_func_fseeko" >&5
13273 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
13274 if test $ac_cv_func_fseeko = yes; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_FSEEKO 1
13282 if test $ac_cv_c_compiler_gnu = yes; then
13283 { echo "$as_me:$LINENO: checking whether
$CC needs
-traditional" >&5
13284 echo $ECHO_N "checking whether
$CC needs
-traditional...
$ECHO_C" >&6; }
13285 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13286 echo $ECHO_N "(cached
) $ECHO_C" >&6
13288 ac_pattern="Autoconf.
*'x'"
13289 cat >conftest.$ac_ext <<_ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13298 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13299 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13300 ac_cv_prog_gcc_traditional=yes
13302 ac_cv_prog_gcc_traditional=no
13307 if test $ac_cv_prog_gcc_traditional = no; then
13308 cat >conftest.$ac_ext <<_ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 #include <termio.h>
13317 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13318 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13319 ac_cv_prog_gcc_traditional=yes
13325 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gcc_traditional" >&5
13326 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
13327 if test $ac_cv_prog_gcc_traditional = yes; then
13328 CC="$CC -traditional"
13332 # XXX: these are commented out until we determine whether it matters if our malloc()
13333 # acts exactly like glibc's or not
13336 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
13337 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
13338 if test "${ac_cv_func_memcmp_working+set}" = set; then
13339 echo $ECHO_N "(cached
) $ECHO_C" >&6
13341 if test "$cross_compiling" = yes; then
13342 ac_cv_func_memcmp_working=no
13344 cat >conftest.$ac_ext <<_ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350 $ac_includes_default
13355 /* Some versions of memcmp are not 8-bit clean. */
13356 char c0 = '\100', c1 = '\200', c2 = '\201';
13357 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13360 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13361 or more and with at least one buffer not starting on a 4-byte boundary.
13362 William Lewis provided this test program. */
13367 for (i = 0; i < 4; i++)
13371 strcpy (a, "--------01111111");
13372 strcpy (b, "--------10000000");
13373 if (memcmp (a, b, 16) >= 0)
13383 rm -f conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_link") 2>&5
13392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13394 { (case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_try") 2>&5
13401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_cv_func_memcmp_working=yes
13405 echo "$as_me: program exited with status
$ac_status" >&5
13406 echo "$as_me: failed program was
:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13409 ( exit $ac_status )
13410 ac_cv_func_memcmp_working=no
13412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13417 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
13418 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13419 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13420 *" memcmp.
$ac_objext "* ) ;;
13421 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
13429 for ac_header in stdlib.h sys/time.h unistd.h
13431 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13432 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13433 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13434 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13435 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13436 echo $ECHO_N "(cached
) $ECHO_C" >&6
13438 ac_res=`eval echo '${'$as_ac_Header'}'`
13439 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13440 echo "${ECHO_T}$ac_res" >&6; }
13442 # Is the header compilable?
13443 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13444 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13445 cat >conftest.$ac_ext <<_ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451 $ac_includes_default
13452 #include <$ac_header>
13454 rm -f conftest.$ac_objext
13455 if { (ac_try="$ac_compile"
13456 case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_compile") 2>conftest.er1
13463 grep -v '^ *+' conftest.er1 >conftest.err
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13469 { (case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_try") 2>&5
13476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13477 (exit $ac_status); }; } &&
13478 { ac_try='test -s conftest.$ac_objext'
13479 { (case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_try") 2>&5
13486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 ac_header_compiler=yes
13490 echo "$as_me: failed program was
:" >&5
13491 sed 's/^/| /' conftest.$ac_ext >&5
13493 ac_header_compiler=no
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13497 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13498 echo "${ECHO_T}$ac_header_compiler" >&6; }
13500 # Is the header present?
13501 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
13502 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
13503 cat >conftest.$ac_ext <<_ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509 #include <$ac_header>
13511 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13512 case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13519 grep -v '^ *+' conftest.er1 >conftest.err
13521 cat conftest.err >&5
13522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13523 (exit $ac_status); } >/dev/null; then
13524 if test -s conftest.err; then
13525 ac_cpp_err=$ac_c_preproc_warn_flag
13526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13533 if test -z "$ac_cpp_err"; then
13534 ac_header_preproc=yes
13536 echo "$as_me: failed program was
:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_header_preproc=no
13542 rm -f conftest.err conftest.$ac_ext
13543 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13544 echo "${ECHO_T}$ac_header_preproc" >&6; }
13546 # So? What about this header?
13547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13549 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
13550 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13551 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
13552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
13553 ac_header_preproc=yes
13556 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
13557 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
13558 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
13559 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
13560 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
13561 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
13562 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
13563 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
13564 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
13565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
13566 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
13567 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
13569 ## ------------------------------- ##
13570 ## Report this to www.asterisk.org ##
13571 ## ------------------------------- ##
13573 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
13576 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13577 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13578 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13579 echo $ECHO_N "(cached
) $ECHO_C" >&6
13581 eval "$as_ac_Header=\
$ac_header_preproc"
13583 ac_res=`eval echo '${'$as_ac_Header'}'`
13584 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13585 echo "${ECHO_T}$ac_res" >&6; }
13588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13589 cat >>confdefs.h <<_ACEOF
13590 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
13598 for ac_func in alarm
13600 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
13601 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
13602 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
13603 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
13604 echo $ECHO_N "(cached
) $ECHO_C" >&6
13606 cat >conftest.$ac_ext <<_ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13614 #define $ac_func innocuous_$ac_func
13616 /* System header to define __stub macros and hopefully few prototypes,
13617 which can conflict with char $ac_func (); below.
13618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13619 <limits.h> exists even on freestanding compilers. */
13622 # include <limits.h>
13624 # include <assert.h>
13629 /* Override any GCC internal prototype to avoid an error.
13630 Use char because int might match the return type of a GCC
13631 builtin and then its argument prototype would still apply. */
13636 /* The GNU C library defines this for functions which it implements
13637 to always fail with ENOSYS. Some functions are actually named
13638 something starting with __ and the normal name is an alias. */
13639 #if defined __stub_$ac_func || defined __stub___$ac_func
13646 return $ac_func ();
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (ac_try="$ac_link"
13653 case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_link") 2>conftest.er1
13660 grep -v '^ *+' conftest.er1 >conftest.err
13662 cat conftest.err >&5
13663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13666 { (case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_try") 2>&5
13673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest$ac_exeext'
13676 { (case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_try") 2>&5
13683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 eval "$as_ac_var=yes"
13687 echo "$as_me: failed program was
:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13690 eval "$as_ac_var=no
"
13693 rm -f core conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13696 ac_res=`eval echo '${'$as_ac_var'}'`
13697 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13698 echo "${ECHO_T}$ac_res" >&6; }
13699 if test `eval echo '${'$as_ac_var'}'` = yes; then
13700 cat >>confdefs.h <<_ACEOF
13701 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
13707 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
13708 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
13709 if test "${ac_cv_func_working_mktime+set}" = set; then
13710 echo $ECHO_N "(cached
) $ECHO_C" >&6
13712 if test "$cross_compiling" = yes; then
13713 ac_cv_func_working_mktime=no
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 /* Test program from Paul Eggert and Tony Leneis. */
13722 #if TIME_WITH_SYS_TIME
13723 # include <sys/time.h>
13726 # if HAVE_SYS_TIME_H
13727 # include <sys/time.h>
13734 # include <stdlib.h>
13738 # include <unistd.h>
13742 # define alarm(X) /* empty */
13745 /* Work around redefinition to rpl_putenv by other config tests. */
13748 static time_t time_t_max;
13749 static time_t time_t_min;
13751 /* Values we'll use to set the TZ environment variable. */
13752 static char *tz_strings[] = {
13753 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
13754 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
13756 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13758 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13759 Based on a problem report from Andreas Jaeger. */
13761 spring_forward_gap ()
13763 /* glibc (up to about 1998-10-07) failed this test. */
13766 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
13767 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
13768 on systems that don't support the Olson extension, or don't have the
13769 full zoneinfo tables installed. */
13770 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
13779 return mktime (&tm) != (time_t) -1;
13787 return ! (lt = localtime (&now)) || mktime (lt) == now;
13794 return (mktime_test1 (now)
13795 && mktime_test1 ((time_t) (time_t_max - now))
13796 && mktime_test1 ((time_t) (time_t_min + now)));
13802 /* Based on code from Ariel Faigon. */
13812 return tm.tm_mon == 2 && tm.tm_mday == 31;
13821 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13822 now = mktime (&tm);
13823 if (now != (time_t) -1)
13825 struct tm *lt = localtime (&now);
13827 && lt->tm_year == tm.tm_year
13828 && lt->tm_mon == tm.tm_mon
13829 && lt->tm_mday == tm.tm_mday
13830 && lt->tm_hour == tm.tm_hour
13831 && lt->tm_min == tm.tm_min
13832 && lt->tm_sec == tm.tm_sec
13833 && lt->tm_yday == tm.tm_yday
13834 && lt->tm_wday == tm.tm_wday
13835 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13836 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13848 /* This test makes some buggy mktime implementations loop.
13849 Give up after 60 seconds; a mktime slower than that
13850 isn't worth using anyway. */
13853 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13856 if ((time_t) -1 < 0)
13857 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13859 delta = time_t_max / 997; /* a suitable prime number */
13860 for (i = 0; i < N_STRINGS; i++)
13863 putenv (tz_strings[i]);
13865 for (t = 0; t <= time_t_max - delta; t += delta)
13866 if (! mktime_test (t))
13868 if (! (mktime_test ((time_t) 1)
13869 && mktime_test ((time_t) (60 * 60))
13870 && mktime_test ((time_t) (60 * 60 * 24))))
13873 for (j = 1; 0 < j; j *= 2)
13874 if (! bigtime_test (j))
13876 if (! bigtime_test (j - 1))
13879 return ! (irix_6_4_bug () && spring_forward_gap ());
13882 rm -f conftest$ac_exeext
13883 if { (ac_try="$ac_link"
13884 case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_link") 2>&5
13891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_func_working_mktime=yes
13904 echo "$as_me: program exited with status
$ac_status" >&5
13905 echo "$as_me: failed program was
:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 ( exit $ac_status )
13909 ac_cv_func_working_mktime=no
13911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13916 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
13917 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
13918 if test $ac_cv_func_working_mktime = no; then
13919 case " $LIBOBJS " in
13920 *" mktime.
$ac_objext "* ) ;;
13921 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
13929 for ac_header in stdlib.h unistd.h
13931 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13932 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13933 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13934 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13935 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13936 echo $ECHO_N "(cached
) $ECHO_C" >&6
13938 ac_res=`eval echo '${'$as_ac_Header'}'`
13939 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13940 echo "${ECHO_T}$ac_res" >&6; }
13942 # Is the header compilable?
13943 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13944 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
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 #include <$ac_header>
13954 rm -f conftest.$ac_objext
13955 if { (ac_try="$ac_compile"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_compile") 2>conftest.er1
13963 grep -v '^ *+' conftest.er1 >conftest.err
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13967 (exit $ac_status); } &&
13968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13969 { (case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_try") 2>&5
13976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_try") 2>&5
13986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13987 (exit $ac_status); }; }; then
13988 ac_header_compiler=yes
13990 echo "$as_me: failed program was
:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_header_compiler=no
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13998 echo "${ECHO_T}$ac_header_compiler" >&6; }
14000 # Is the header present?
14001 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14002 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <$ac_header>
14011 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14019 grep -v '^ *+' conftest.er1 >conftest.err
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14023 (exit $ac_status); } >/dev/null; then
14024 if test -s conftest.err; then
14025 ac_cpp_err=$ac_c_preproc_warn_flag
14026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14033 if test -z "$ac_cpp_err"; then
14034 ac_header_preproc=yes
14036 echo "$as_me: failed program was
:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ac_header_preproc=no
14042 rm -f conftest.err conftest.$ac_ext
14043 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14044 echo "${ECHO_T}$ac_header_preproc" >&6; }
14046 # So? What about this header?
14047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14049 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14050 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14051 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14053 ac_header_preproc=yes
14056 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14057 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14058 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14059 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14060 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14061 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14062 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14063 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14064 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14066 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14067 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14069 ## ------------------------------- ##
14070 ## Report this to www.asterisk.org ##
14071 ## ------------------------------- ##
14073 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
14076 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14077 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14078 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14079 echo $ECHO_N "(cached
) $ECHO_C" >&6
14081 eval "$as_ac_Header=\
$ac_header_preproc"
14083 ac_res=`eval echo '${'$as_ac_Header'}'`
14084 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14085 echo "${ECHO_T}$ac_res" >&6; }
14088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14089 cat >>confdefs.h <<_ACEOF
14090 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14098 for ac_func in getpagesize
14100 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14101 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14102 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14103 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14104 echo $ECHO_N "(cached
) $ECHO_C" >&6
14106 cat >conftest.$ac_ext <<_ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14114 #define $ac_func innocuous_$ac_func
14116 /* System header to define __stub macros and hopefully few prototypes,
14117 which can conflict with char $ac_func (); below.
14118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14119 <limits.h> exists even on freestanding compilers. */
14122 # include <limits.h>
14124 # include <assert.h>
14129 /* Override any GCC internal prototype to avoid an error.
14130 Use char because int might match the return type of a GCC
14131 builtin and then its argument prototype would still apply. */
14136 /* The GNU C library defines this for functions which it implements
14137 to always fail with ENOSYS. Some functions are actually named
14138 something starting with __ and the normal name is an alias. */
14139 #if defined __stub_$ac_func || defined __stub___$ac_func
14146 return $ac_func ();
14151 rm -f conftest.$ac_objext conftest$ac_exeext
14152 if { (ac_try="$ac_link"
14153 case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_link") 2>conftest.er1
14160 grep -v '^ *+' conftest.er1 >conftest.err
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14166 { (case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_try") 2>&5
14173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try='test -s conftest$ac_exeext'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 eval "$as_ac_var=yes"
14187 echo "$as_me: failed program was
:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14190 eval "$as_ac_var=no
"
14193 rm -f core conftest.err conftest.$ac_objext \
14194 conftest$ac_exeext conftest.$ac_ext
14196 ac_res=`eval echo '${'$as_ac_var'}'`
14197 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14198 echo "${ECHO_T}$ac_res" >&6; }
14199 if test `eval echo '${'$as_ac_var'}'` = yes; then
14200 cat >>confdefs.h <<_ACEOF
14201 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14207 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
14208 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
14209 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14210 echo $ECHO_N "(cached
) $ECHO_C" >&6
14212 if test "$cross_compiling" = yes; then
14213 ac_cv_func_mmap_fixed_mapped=no
14215 cat >conftest.$ac_ext <<_ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221 $ac_includes_default
14222 /* malloc might have been renamed as rpl_malloc. */
14225 /* Thanks to Mike Haertel and Jim Avera for this test.
14226 Here is a matrix of mmap possibilities:
14227 mmap private not fixed
14228 mmap private fixed at somewhere currently unmapped
14229 mmap private fixed at somewhere already mapped
14230 mmap shared not fixed
14231 mmap shared fixed at somewhere currently unmapped
14232 mmap shared fixed at somewhere already mapped
14233 For private mappings, we should verify that changes cannot be read()
14234 back from the file, nor mmap's back from the file at a different
14235 address. (There have been systems where private was not correctly
14236 implemented like the infamous i386 svr4.0, and systems where the
14237 VM page cache was not coherent with the file system buffer cache
14238 like early versions of FreeBSD and possibly contemporary NetBSD.)
14239 For shared mappings, we should conversely verify that changes get
14240 propagated back to all the places they're supposed to be.
14242 Grep wants private fixed already mapped.
14243 The main things grep needs to know about mmap are:
14244 * does it exist and is it safe to write into the mmap'd area
14245 * how to use it (BSD variants) */
14248 #include <sys/mman.h>
14250 #if !STDC_HEADERS && !HAVE_STDLIB_H
14254 /* This mess was copied from the GNU getpagesize.h. */
14255 #if !HAVE_GETPAGESIZE
14256 /* Assume that all systems that can run configure have sys/param.h. */
14257 # if !HAVE_SYS_PARAM_H
14258 # define HAVE_SYS_PARAM_H 1
14261 # ifdef _SC_PAGESIZE
14262 # define getpagesize() sysconf(_SC_PAGESIZE)
14263 # else /* no _SC_PAGESIZE */
14264 # if HAVE_SYS_PARAM_H
14265 # include <sys/param.h>
14266 # ifdef EXEC_PAGESIZE
14267 # define getpagesize() EXEC_PAGESIZE
14268 # else /* no EXEC_PAGESIZE */
14270 # define getpagesize() NBPG * CLSIZE
14273 # endif /* no CLSIZE */
14274 # else /* no NBPG */
14276 # define getpagesize() NBPC
14277 # else /* no NBPC */
14279 # define getpagesize() PAGESIZE
14280 # endif /* PAGESIZE */
14281 # endif /* no NBPC */
14282 # endif /* no NBPG */
14283 # endif /* no EXEC_PAGESIZE */
14284 # else /* no HAVE_SYS_PARAM_H */
14285 # define getpagesize() 8192 /* punt totally */
14286 # endif /* no HAVE_SYS_PARAM_H */
14287 # endif /* no _SC_PAGESIZE */
14289 #endif /* no HAVE_GETPAGESIZE */
14294 char *data, *data2, *data3;
14298 pagesize = getpagesize ();
14300 /* First, make a file with some known garbage in it. */
14301 data = (char *) malloc (pagesize);
14304 for (i = 0; i < pagesize; ++i)
14305 *(data + i) = rand ();
14307 fd = creat ("conftest.mmap
", 0600);
14310 if (write (fd, data, pagesize) != pagesize)
14314 /* Next, try to mmap the file at a fixed address which already has
14315 something else allocated at it. If we can, also make sure that
14316 we see the same garbage. */
14317 fd = open ("conftest.mmap
", O_RDWR);
14320 data2 = (char *) malloc (2 * pagesize);
14323 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
14324 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14325 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14327 for (i = 0; i < pagesize; ++i)
14328 if (*(data + i) != *(data2 + i))
14331 /* Finally, make sure that changes to the mapped area do not
14332 percolate back to the file as seen by read(). (This is a bug on
14333 some variants of i386 svr4.0.) */
14334 for (i = 0; i < pagesize; ++i)
14335 *(data2 + i) = *(data2 + i) + 1;
14336 data3 = (char *) malloc (pagesize);
14339 if (read (fd, data3, pagesize) != pagesize)
14341 for (i = 0; i < pagesize; ++i)
14342 if (*(data + i) != *(data3 + i))
14348 rm -f conftest$ac_exeext
14349 if { (ac_try="$ac_link"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_link") 2>&5
14357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14359 { (case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14364 (eval "$ac_try") 2>&5
14366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 ac_cv_func_mmap_fixed_mapped=yes
14370 echo "$as_me: program exited with status
$ac_status" >&5
14371 echo "$as_me: failed program was
:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14374 ( exit $ac_status )
14375 ac_cv_func_mmap_fixed_mapped=no
14377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14382 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
14383 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
14384 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14386 cat >>confdefs.h <<\_ACEOF
14387 #define HAVE_MMAP 1
14391 rm -f conftest.mmap
14395 for ac_header in sys/select.h sys/socket.h
14397 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14398 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14399 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14400 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14401 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14402 echo $ECHO_N "(cached
) $ECHO_C" >&6
14404 ac_res=`eval echo '${'$as_ac_Header'}'`
14405 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14406 echo "${ECHO_T}$ac_res" >&6; }
14408 # Is the header compilable?
14409 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14410 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
14411 cat >conftest.$ac_ext <<_ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h. */
14417 $ac_includes_default
14418 #include <$ac_header>
14420 rm -f conftest.$ac_objext
14421 if { (ac_try="$ac_compile"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_compile") 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest.$ac_objext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_header_compiler=yes
14456 echo "$as_me: failed program was
:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_header_compiler=no
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14463 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14464 echo "${ECHO_T}$ac_header_compiler" >&6; }
14466 # Is the header present?
14467 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14468 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14469 cat >conftest.$ac_ext <<_ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 #include <$ac_header>
14477 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14485 grep -v '^ *+' conftest.er1 >conftest.err
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14489 (exit $ac_status); } >/dev/null; then
14490 if test -s conftest.err; then
14491 ac_cpp_err=$ac_c_preproc_warn_flag
14492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14499 if test -z "$ac_cpp_err"; then
14500 ac_header_preproc=yes
14502 echo "$as_me: failed program was
:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_header_preproc=no
14508 rm -f conftest.err conftest.$ac_ext
14509 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14510 echo "${ECHO_T}$ac_header_preproc" >&6; }
14512 # So? What about this header?
14513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14515 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14516 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14517 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14519 ac_header_preproc=yes
14522 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14523 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14524 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14525 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14526 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14527 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14528 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14529 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14530 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14532 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14533 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14535 ## ------------------------------- ##
14536 ## Report this to www.asterisk.org ##
14537 ## ------------------------------- ##
14539 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
14542 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14543 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14544 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14545 echo $ECHO_N "(cached
) $ECHO_C" >&6
14547 eval "$as_ac_Header=\
$ac_header_preproc"
14549 ac_res=`eval echo '${'$as_ac_Header'}'`
14550 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14551 echo "${ECHO_T}$ac_res" >&6; }
14554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14563 { echo "$as_me:$LINENO: checking types of arguments
for select" >&5
14564 echo $ECHO_N "checking types of arguments
for select...
$ECHO_C" >&6; }
14565 if test "${ac_cv_func_select_args+set}" = set; then
14566 echo $ECHO_N "(cached
) $ECHO_C" >&6
14568 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14569 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14570 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14571 cat >conftest.$ac_ext <<_ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 $ac_includes_default
14578 #if HAVE_SYS_SELECT_H
14579 # include <sys/select.h>
14581 #if HAVE_SYS_SOCKET_H
14582 # include <sys/socket.h>
14588 extern int select ($ac_arg1,
14589 $ac_arg234, $ac_arg234, $ac_arg234,
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_compile") 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest.$ac_objext'
14620 { (case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_try") 2>&5
14627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14631 echo "$as_me: failed program was
:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641 # Provide a safe default value.
14642 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14645 { echo "$as_me:$LINENO: result
: $ac_cv_func_select_args" >&5
14646 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
14647 ac_save_IFS=$IFS; IFS=','
14648 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14652 cat >>confdefs.h <<_ACEOF
14653 #define SELECT_TYPE_ARG1 $1
14657 cat >>confdefs.h <<_ACEOF
14658 #define SELECT_TYPE_ARG234 ($2)
14662 cat >>confdefs.h <<_ACEOF
14663 #define SELECT_TYPE_ARG5 ($3)
14668 { echo "$as_me:$LINENO: checking
for function prototypes
" >&5
14669 echo $ECHO_N "checking
for function prototypes...
$ECHO_C" >&6; }
14670 if test "$ac_cv_prog_cc_c89" != no; then
14671 { echo "$as_me:$LINENO: result
: yes" >&5
14672 echo "${ECHO_T}yes" >&6; }
14674 cat >>confdefs.h <<\_ACEOF
14675 #define PROTOTYPES 1
14679 cat >>confdefs.h <<\_ACEOF
14680 #define __PROTOTYPES 1
14684 { echo "$as_me:$LINENO: result
: no
" >&5
14685 echo "${ECHO_T}no
" >&6; }
14688 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed
" >&5
14689 echo $ECHO_N "checking whether setvbuf arguments are reversed...
$ECHO_C" >&6; }
14690 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
14691 echo $ECHO_N "(cached
) $ECHO_C" >&6
14693 ac_cv_func_setvbuf_reversed=no
14694 cat >conftest.$ac_ext <<_ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14702 int (setvbuf) (FILE *, int, char *, size_t);
14707 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
14712 rm -f conftest.$ac_objext conftest$ac_exeext
14713 if { (ac_try="$ac_link"
14714 case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_link") 2>conftest.er1
14721 grep -v '^ *+' conftest.er1 >conftest.err
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14727 { (case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_try") 2>&5
14734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest$ac_exeext'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_try") 2>&5
14744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14745 (exit $ac_status); }; }; then
14746 cat >conftest.$ac_ext <<_ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14754 int (setvbuf) (FILE *, int, char *, size_t);
14759 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (ac_try="$ac_link"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_link") 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest$ac_exeext'
14789 { (case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_try") 2>&5
14796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 # It compiles and links either way, so it must not be declared
14799 # with a prototype and most likely this is a K&R C compiler.
14801 if test "$cross_compiling" = yes; then
14802 : # Assume setvbuf is not reversed when cross-compiling.
14804 cat >conftest.$ac_ext <<_ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 $ac_includes_default
14814 /* This call has the arguments reversed.
14815 A reversed system may check and see that the address of buf
14816 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
14818 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
14821 return 0; /* Non-reversed systems SEGV here. */
14826 rm -f conftest$ac_exeext
14827 if { (ac_try="$ac_link"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_link") 2>&5
14835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14837 { (case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_try") 2>&5
14844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_cv_func_setvbuf_reversed=yes
14848 echo "$as_me: program exited with status
$ac_status" >&5
14849 echo "$as_me: failed program was
:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14857 ac_cv_func_setvbuf_reversed=yes
14859 echo "$as_me: failed program was
:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14865 rm -f core conftest.err conftest.$ac_objext \
14866 conftest$ac_exeext conftest.$ac_ext
14868 echo "$as_me: failed program was
:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14874 rm -f core conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14877 { echo "$as_me:$LINENO: result
: $ac_cv_func_setvbuf_reversed" >&5
14878 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
14879 if test $ac_cv_func_setvbuf_reversed = yes; then
14881 cat >>confdefs.h <<\_ACEOF
14882 #define SETVBUF_REVERSED 1
14887 { echo "$as_me:$LINENO: checking
return type of signal handlers
" >&5
14888 echo $ECHO_N "checking
return type of signal handlers...
$ECHO_C" >&6; }
14889 if test "${ac_cv_type_signal+set}" = set; then
14890 echo $ECHO_N "(cached
) $ECHO_C" >&6
14892 cat >conftest.$ac_ext <<_ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14898 #include <sys/types.h>
14899 #include <signal.h>
14904 return *(signal (0, 0)) (0) == 1;
14909 rm -f conftest.$ac_objext
14910 if { (ac_try="$ac_compile"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_compile") 2>conftest.er1
14918 grep -v '^ *+' conftest.er1 >conftest.err
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14922 (exit $ac_status); } &&
14923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14924 { (case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_try") 2>&5
14931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try='test -s conftest.$ac_objext'
14934 { (case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_try") 2>&5
14941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_cv_type_signal=int
14945 echo "$as_me: failed program was
:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14948 ac_cv_type_signal=void
14951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953 { echo "$as_me:$LINENO: result
: $ac_cv_type_signal" >&5
14954 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14956 cat >>confdefs.h <<_ACEOF
14957 #define RETSIGTYPE $ac_cv_type_signal
14961 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash
" >&5
14962 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash...
$ECHO_C" >&6; }
14963 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14964 echo $ECHO_N "(cached
) $ECHO_C" >&6
14966 rm -f conftest.sym conftest.file
14967 echo >conftest.file
14968 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14969 if test "$cross_compiling" = yes; then
14970 ac_cv_func_lstat_dereferences_slashed_symlink=no
14972 cat >conftest.$ac_ext <<_ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14978 $ac_includes_default
14983 /* Linux will dereference the symlink and fail.
14984 That is better in the sense that it means we will not
14985 have to compile and use the lstat wrapper. */
14986 return lstat ("conftest.sym
/", &sbuf) == 0;
14991 rm -f conftest$ac_exeext
14992 if { (ac_try="$ac_link"
14993 case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_link") 2>&5
15000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15002 { (case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_try") 2>&5
15009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 ac_cv_func_lstat_dereferences_slashed_symlink=yes
15013 echo "$as_me: program exited with status
$ac_status" >&5
15014 echo "$as_me: failed program was
:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15017 ( exit $ac_status )
15018 ac_cv_func_lstat_dereferences_slashed_symlink=no
15020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15025 # If the `ln -s' command failed, then we probably don't even
15026 # have an lstat function.
15027 ac_cv_func_lstat_dereferences_slashed_symlink=no
15029 rm -f conftest.sym conftest.file
15032 { echo "$as_me:$LINENO: result
: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15033 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
15035 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15037 cat >>confdefs.h <<_ACEOF
15038 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15042 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15043 case " $LIBOBJS " in
15044 *" lstat.
$ac_objext "* ) ;;
15045 *) LIBOBJS="$LIBOBJS lstat.
$ac_objext"
15051 { echo "$as_me:$LINENO: checking whether stat accepts an empty string
" >&5
15052 echo $ECHO_N "checking whether stat accepts an empty string...
$ECHO_C" >&6; }
15053 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
15054 echo $ECHO_N "(cached
) $ECHO_C" >&6
15056 if test "$cross_compiling" = yes; then
15057 ac_cv_func_stat_empty_string_bug=yes
15059 cat >conftest.$ac_ext <<_ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15070 return stat ("", &sbuf) == 0;
15075 rm -f conftest$ac_exeext
15076 if { (ac_try="$ac_link"
15077 case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_link") 2>&5
15084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15086 { (case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_cv_func_stat_empty_string_bug=no
15097 echo "$as_me: program exited with status
$ac_status" >&5
15098 echo "$as_me: failed program was
:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15101 ( exit $ac_status )
15102 ac_cv_func_stat_empty_string_bug=yes
15104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15109 { echo "$as_me:$LINENO: result
: $ac_cv_func_stat_empty_string_bug" >&5
15110 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
15111 if test $ac_cv_func_stat_empty_string_bug = yes; then
15112 case " $LIBOBJS " in
15113 *" stat.
$ac_objext "* ) ;;
15114 *) LIBOBJS="$LIBOBJS stat.
$ac_objext"
15119 cat >>confdefs.h <<_ACEOF
15120 #define HAVE_STAT_EMPTY_STRING_BUG 1
15125 { echo "$as_me:$LINENO: checking
for working strcoll
" >&5
15126 echo $ECHO_N "checking
for working strcoll...
$ECHO_C" >&6; }
15127 if test "${ac_cv_func_strcoll_works+set}" = set; then
15128 echo $ECHO_N "(cached
) $ECHO_C" >&6
15130 if test "$cross_compiling" = yes; then
15131 ac_cv_func_strcoll_works=no
15133 cat >conftest.$ac_ext <<_ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15139 $ac_includes_default
15143 return (strcoll ("abc
", "def
") >= 0 ||
15144 strcoll ("ABC
", "DEF
") >= 0 ||
15145 strcoll ("123", "456") >= 0)
15150 rm -f conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_link") 2>&5
15159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15161 { (case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_try") 2>&5
15168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_cv_func_strcoll_works=yes
15172 echo "$as_me: program exited with status
$ac_status" >&5
15173 echo "$as_me: failed program was
:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ( exit $ac_status )
15177 ac_cv_func_strcoll_works=no
15179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15184 { echo "$as_me:$LINENO: result
: $ac_cv_func_strcoll_works" >&5
15185 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
15186 if test $ac_cv_func_strcoll_works = yes; then
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_STRCOLL 1
15195 for ac_func in strftime
15197 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15198 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15199 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15200 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15201 echo $ECHO_N "(cached
) $ECHO_C" >&6
15203 cat >conftest.$ac_ext <<_ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15211 #define $ac_func innocuous_$ac_func
15213 /* System header to define __stub macros and hopefully few prototypes,
15214 which can conflict with char $ac_func (); below.
15215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15216 <limits.h> exists even on freestanding compilers. */
15219 # include <limits.h>
15221 # include <assert.h>
15226 /* Override any GCC internal prototype to avoid an error.
15227 Use char because int might match the return type of a GCC
15228 builtin and then its argument prototype would still apply. */
15233 /* The GNU C library defines this for functions which it implements
15234 to always fail with ENOSYS. Some functions are actually named
15235 something starting with __ and the normal name is an alias. */
15236 #if defined __stub_$ac_func || defined __stub___$ac_func
15243 return $ac_func ();
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (ac_try="$ac_link"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_link") 2>conftest.er1
15257 grep -v '^ *+' conftest.er1 >conftest.err
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263 { (case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_try") 2>&5
15270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest$ac_exeext'
15273 { (case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_try") 2>&5
15280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 eval "$as_ac_var=yes"
15284 echo "$as_me: failed program was
:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15287 eval "$as_ac_var=no
"
15290 rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
15293 ac_res=`eval echo '${'$as_ac_var'}'`
15294 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15295 echo "${ECHO_T}$ac_res" >&6; }
15296 if test `eval echo '${'$as_ac_var'}'` = yes; then
15297 cat >>confdefs.h <<_ACEOF
15298 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15302 # strftime is in -lintl on SCO UNIX.
15303 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
15304 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
15305 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15306 echo $ECHO_N "(cached
) $ECHO_C" >&6
15308 ac_check_lib_save_LIBS=$LIBS
15309 LIBS="-lintl $LIBS"
15310 cat >conftest.$ac_ext <<_ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15317 /* Override any GCC internal prototype to avoid an error.
15318 Use char because int might match the return type of a GCC
15319 builtin and then its argument prototype would still apply. */
15327 return strftime ();
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (ac_try="$ac_link"
15334 case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_link") 2>conftest.er1
15341 grep -v '^ *+' conftest.er1 >conftest.err
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15345 (exit $ac_status); } &&
15346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15347 { (case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_try") 2>&5
15354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest$ac_exeext'
15357 { (case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_try") 2>&5
15364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_cv_lib_intl_strftime=yes
15368 echo "$as_me: failed program was
:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 ac_cv_lib_intl_strftime=no
15374 rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
15376 LIBS=$ac_check_lib_save_LIBS
15378 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
15379 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
15380 if test $ac_cv_lib_intl_strftime = yes; then
15381 cat >>confdefs.h <<\_ACEOF
15382 #define HAVE_STRFTIME 1
15385 LIBS="-lintl $LIBS"
15391 { echo "$as_me:$LINENO: checking
for working strnlen
" >&5
15392 echo $ECHO_N "checking
for working strnlen...
$ECHO_C" >&6; }
15393 if test "${ac_cv_func_strnlen_working+set}" = set; then
15394 echo $ECHO_N "(cached
) $ECHO_C" >&6
15396 if test "$cross_compiling" = yes; then
15397 ac_cv_func_strnlen_working=no
15399 cat >conftest.$ac_ext <<_ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 $ac_includes_default
15411 #define S_LEN (sizeof S - 1)
15413 /* At least one implementation is buggy: that of AIX 4.3 would
15414 give strnlen (S, 1) == 3. */
15417 for (i = 0; i < S_LEN + 1; ++i)
15419 int expected = i <= S_LEN ? i : S_LEN;
15420 if (strnlen (S, i) != expected)
15429 rm -f conftest$ac_exeext
15430 if { (ac_try="$ac_link"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_link") 2>&5
15438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15440 { (case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_try") 2>&5
15447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_cv_func_strnlen_working=yes
15451 echo "$as_me: program exited with status
$ac_status" >&5
15452 echo "$as_me: failed program was
:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ( exit $ac_status )
15456 ac_cv_func_strnlen_working=no
15458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15463 { echo "$as_me:$LINENO: result
: $ac_cv_func_strnlen_working" >&5
15464 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
15465 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
15466 *" strnlen.
$ac_objext "* ) ;;
15467 *) LIBOBJS="$LIBOBJS strnlen.
$ac_objext"
15472 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
15473 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
15474 if test "${ac_cv_func_strtod+set}" = set; then
15475 echo $ECHO_N "(cached
) $ECHO_C" >&6
15477 if test "$cross_compiling" = yes; then
15478 ac_cv_func_strtod=no
15480 cat >conftest.$ac_ext <<_ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15487 $ac_includes_default
15495 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
15496 char *string = " +69";
15499 value = strtod (string, &term);
15500 if (value != 69 || term != (string + 4))
15505 /* Under Solaris 2.4, strtod returns the wrong value for the
15506 terminating character under some conditions. */
15507 char *string = "NaN
";
15509 strtod (string, &term);
15510 if (term != string && *(term - 1) == 0)
15517 rm -f conftest$ac_exeext
15518 if { (ac_try="$ac_link"
15519 case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_link") 2>&5
15526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15528 { (case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_try") 2>&5
15535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_cv_func_strtod=yes
15539 echo "$as_me: program exited with status
$ac_status" >&5
15540 echo "$as_me: failed program was
:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ( exit $ac_status )
15544 ac_cv_func_strtod=no
15546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15551 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
15552 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
15553 if test $ac_cv_func_strtod = no; then
15554 case " $LIBOBJS " in
15555 *" strtod.
$ac_objext "* ) ;;
15556 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
15560 { echo "$as_me:$LINENO: checking
for pow
" >&5
15561 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
15562 if test "${ac_cv_func_pow+set}" = set; then
15563 echo $ECHO_N "(cached
) $ECHO_C" >&6
15565 cat >conftest.$ac_ext <<_ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
15572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15573 #define pow innocuous_pow
15575 /* System header to define __stub macros and hopefully few prototypes,
15576 which can conflict with char pow (); below.
15577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15578 <limits.h> exists even on freestanding compilers. */
15581 # include <limits.h>
15583 # include <assert.h>
15588 /* Override any GCC internal prototype to avoid an error.
15589 Use char because int might match the return type of a GCC
15590 builtin and then its argument prototype would still apply. */
15595 /* The GNU C library defines this for functions which it implements
15596 to always fail with ENOSYS. Some functions are actually named
15597 something starting with __ and the normal name is an alias. */
15598 #if defined __stub_pow || defined __stub___pow
15610 rm -f conftest.$ac_objext conftest$ac_exeext
15611 if { (ac_try="$ac_link"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_link") 2>conftest.er1
15619 grep -v '^ *+' conftest.er1 >conftest.err
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest$ac_exeext'
15635 { (case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
15642 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15643 (exit $ac_status); }; }; then
15646 echo "$as_me: failed program was
:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15652 rm -f core conftest.err conftest.$ac_objext \
15653 conftest$ac_exeext conftest.$ac_ext
15655 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
15656 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
15658 if test $ac_cv_func_pow = no; then
15659 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
15660 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
15661 if test "${ac_cv_lib_m_pow+set}" = set; then
15662 echo $ECHO_N "(cached
) $ECHO_C" >&6
15664 ac_check_lib_save_LIBS=$LIBS
15666 cat >conftest.$ac_ext <<_ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15673 /* Override any GCC internal prototype to avoid an error.
15674 Use char because int might match the return type of a GCC
15675 builtin and then its argument prototype would still apply. */
15688 rm -f conftest.$ac_objext conftest$ac_exeext
15689 if { (ac_try="$ac_link"
15690 case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15695 (eval "$ac_link") 2>conftest.er1
15697 grep -v '^ *+' conftest.er1 >conftest.err
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest$ac_exeext'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_cv_lib_m_pow=yes
15724 echo "$as_me: failed program was
:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15730 rm -f core conftest.err conftest.$ac_objext \
15731 conftest$ac_exeext conftest.$ac_ext
15732 LIBS=$ac_check_lib_save_LIBS
15734 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
15735 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
15736 if test $ac_cv_lib_m_pow = yes; then
15739 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
15740 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
15747 { echo "$as_me:$LINENO: checking whether utime accepts a null argument
" >&5
15748 echo $ECHO_N "checking whether utime accepts a null argument...
$ECHO_C" >&6; }
15749 if test "${ac_cv_func_utime_null+set}" = set; then
15750 echo $ECHO_N "(cached
) $ECHO_C" >&6
15752 rm -f conftest.data; >conftest.data
15753 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
15754 if test "$cross_compiling" = yes; then
15755 ac_cv_func_utime_null=no
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 $ac_includes_default
15768 return ! (stat ("conftest.data
", &s) == 0
15769 && utime ("conftest.data
", 0) == 0
15770 && stat ("conftest.data
", &t) == 0
15771 && t.st_mtime >= s.st_mtime
15772 && t.st_mtime - s.st_mtime < 120);
15777 rm -f conftest$ac_exeext
15778 if { (ac_try="$ac_link"
15779 case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_link") 2>&5
15786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15788 { (case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15792 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_try") 2>&5
15795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15796 (exit $ac_status); }; }; then
15797 ac_cv_func_utime_null=yes
15799 echo "$as_me: program exited with status
$ac_status" >&5
15800 echo "$as_me: failed program was
:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15803 ( exit $ac_status )
15804 ac_cv_func_utime_null=no
15806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15811 { echo "$as_me:$LINENO: result
: $ac_cv_func_utime_null" >&5
15812 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
15813 if test $ac_cv_func_utime_null = yes; then
15815 cat >>confdefs.h <<\_ACEOF
15816 #define HAVE_UTIME_NULL 1
15820 rm -f conftest.data
15823 for ac_func in vprintf
15825 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15826 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15827 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15828 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15829 echo $ECHO_N "(cached
) $ECHO_C" >&6
15831 cat >conftest.$ac_ext <<_ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15839 #define $ac_func innocuous_$ac_func
15841 /* System header to define __stub macros and hopefully few prototypes,
15842 which can conflict with char $ac_func (); below.
15843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15844 <limits.h> exists even on freestanding compilers. */
15847 # include <limits.h>
15849 # include <assert.h>
15854 /* Override any GCC internal prototype to avoid an error.
15855 Use char because int might match the return type of a GCC
15856 builtin and then its argument prototype would still apply. */
15861 /* The GNU C library defines this for functions which it implements
15862 to always fail with ENOSYS. Some functions are actually named
15863 something starting with __ and the normal name is an alias. */
15864 #if defined __stub_$ac_func || defined __stub___$ac_func
15871 return $ac_func ();
15876 rm -f conftest.$ac_objext conftest$ac_exeext
15877 if { (ac_try="$ac_link"
15878 case "(($ac_try" in
15879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880 *) ac_try_echo=$ac_try;;
15882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15883 (eval "$ac_link") 2>conftest.er1
15885 grep -v '^ *+' conftest.er1 >conftest.err
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15891 { (case "(($ac_try" in
15892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15896 (eval "$ac_try") 2>&5
15898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try='test -s conftest$ac_exeext'
15901 { (case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_try") 2>&5
15908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 eval "$as_ac_var=yes"
15912 echo "$as_me: failed program was
:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15915 eval "$as_ac_var=no
"
15918 rm -f core conftest.err conftest.$ac_objext \
15919 conftest$ac_exeext conftest.$ac_ext
15921 ac_res=`eval echo '${'$as_ac_var'}'`
15922 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15923 echo "${ECHO_T}$ac_res" >&6; }
15924 if test `eval echo '${'$as_ac_var'}'` = yes; then
15925 cat >>confdefs.h <<_ACEOF
15926 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15929 { echo "$as_me:$LINENO: checking
for _doprnt
" >&5
15930 echo $ECHO_N "checking
for _doprnt...
$ECHO_C" >&6; }
15931 if test "${ac_cv_func__doprnt+set}" = set; then
15932 echo $ECHO_N "(cached
) $ECHO_C" >&6
15934 cat >conftest.$ac_ext <<_ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
15941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15942 #define _doprnt innocuous__doprnt
15944 /* System header to define __stub macros and hopefully few prototypes,
15945 which can conflict with char _doprnt (); below.
15946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15947 <limits.h> exists even on freestanding compilers. */
15950 # include <limits.h>
15952 # include <assert.h>
15957 /* Override any GCC internal prototype to avoid an error.
15958 Use char because int might match the return type of a GCC
15959 builtin and then its argument prototype would still apply. */
15964 /* The GNU C library defines this for functions which it implements
15965 to always fail with ENOSYS. Some functions are actually named
15966 something starting with __ and the normal name is an alias. */
15967 #if defined __stub__doprnt || defined __stub____doprnt
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (ac_try="$ac_link"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_link") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15992 (exit $ac_status); } &&
15993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15994 { (case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_try") 2>&5
16001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16002 (exit $ac_status); }; } &&
16003 { ac_try='test -s conftest$ac_exeext'
16004 { (case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_try") 2>&5
16011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16012 (exit $ac_status); }; }; then
16013 ac_cv_func__doprnt=yes
16015 echo "$as_me: failed program was
:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 ac_cv_func__doprnt=no
16021 rm -f core conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
16024 { echo "$as_me:$LINENO: result
: $ac_cv_func__doprnt" >&5
16025 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
16026 if test $ac_cv_func__doprnt = yes; then
16028 cat >>confdefs.h <<\_ACEOF
16029 #define HAVE_DOPRNT 1
16087 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 strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
16089 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16090 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16091 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16092 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16093 echo $ECHO_N "(cached
) $ECHO_C" >&6
16095 cat >conftest.$ac_ext <<_ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16103 #define $ac_func innocuous_$ac_func
16105 /* System header to define __stub macros and hopefully few prototypes,
16106 which can conflict with char $ac_func (); below.
16107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16108 <limits.h> exists even on freestanding compilers. */
16111 # include <limits.h>
16113 # include <assert.h>
16118 /* Override any GCC internal prototype to avoid an error.
16119 Use char because int might match the return type of a GCC
16120 builtin and then its argument prototype would still apply. */
16125 /* The GNU C library defines this for functions which it implements
16126 to always fail with ENOSYS. Some functions are actually named
16127 something starting with __ and the normal name is an alias. */
16128 #if defined __stub_$ac_func || defined __stub___$ac_func
16135 return $ac_func ();
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (ac_try="$ac_link"
16142 case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_link") 2>conftest.er1
16149 grep -v '^ *+' conftest.er1 >conftest.err
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16155 { (case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_try") 2>&5
16162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest$ac_exeext'
16165 { (case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_try") 2>&5
16172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16173 (exit $ac_status); }; }; then
16174 eval "$as_ac_var=yes"
16176 echo "$as_me: failed program was
:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 eval "$as_ac_var=no
"
16182 rm -f core conftest.err conftest.$ac_objext \
16183 conftest$ac_exeext conftest.$ac_ext
16185 ac_res=`eval echo '${'$as_ac_var'}'`
16186 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16187 echo "${ECHO_T}$ac_res" >&6; }
16188 if test `eval echo '${'$as_ac_var'}'` = yes; then
16189 cat >>confdefs.h <<_ACEOF
16190 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16197 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
16198 { echo "$as_me:$LINENO: checking
for library containing gethostbyname_r
" >&5
16199 echo $ECHO_N "checking
for library containing gethostbyname_r...
$ECHO_C" >&6; }
16200 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
16201 echo $ECHO_N "(cached
) $ECHO_C" >&6
16203 ac_func_search_save_LIBS=$LIBS
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16211 /* Override any GCC internal prototype to avoid an error.
16212 Use char because int might match the return type of a GCC
16213 builtin and then its argument prototype would still apply. */
16217 char gethostbyname_r ();
16221 return gethostbyname_r ();
16226 for ac_lib in '' socket nsl; do
16227 if test -z "$ac_lib"; then
16228 ac_res="none required
"
16231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16233 rm -f conftest.$ac_objext conftest$ac_exeext
16234 if { (ac_try="$ac_link"
16235 case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_link") 2>conftest.er1
16242 grep -v '^ *+' conftest.er1 >conftest.err
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest$ac_exeext'
16258 { (case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_try") 2>&5
16265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_cv_search_gethostbyname_r=$ac_res
16269 echo "$as_me: failed program was
:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16275 rm -f core conftest.err conftest.$ac_objext \
16277 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
16281 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
16284 ac_cv_search_gethostbyname_r=no
16286 rm conftest.$ac_ext
16287 LIBS=$ac_func_search_save_LIBS
16289 { echo "$as_me:$LINENO: result
: $ac_cv_search_gethostbyname_r" >&5
16290 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
16291 ac_res=$ac_cv_search_gethostbyname_r
16292 if test "$ac_res" != no; then
16293 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
16298 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
6 arguments
" >&5
16299 echo $ECHO_N "checking
for gethostbyname_r with
6 arguments...
$ECHO_C" >&6; }
16300 cat >conftest.$ac_ext <<_ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16306 #include <stdlib.h>
16311 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
16316 rm -f conftest.$ac_objext conftest$ac_exeext
16317 if { (ac_try="$ac_link"
16318 case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_link") 2>conftest.er1
16325 grep -v '^ *+' conftest.er1 >conftest.err
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16331 { (case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_try") 2>&5
16338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try='test -s conftest$ac_exeext'
16341 { (case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_try") 2>&5
16348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 { echo "$as_me:$LINENO: result
: yes" >&5
16351 echo "${ECHO_T}yes" >&6; }
16353 cat >>confdefs.h <<\_ACEOF
16354 #define HAVE_GETHOSTBYNAME_R_6 1
16358 echo "$as_me: failed program was
:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 { echo "$as_me:$LINENO: result
: no
" >&5
16362 echo "${ECHO_T}no
" >&6; }
16366 rm -f core conftest.err conftest.$ac_objext \
16367 conftest$ac_exeext conftest.$ac_ext
16369 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
5 arguments
" >&5
16370 echo $ECHO_N "checking
for gethostbyname_r with
5 arguments...
$ECHO_C" >&6; }
16371 cat >conftest.$ac_ext <<_ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 #include <stdlib.h>
16382 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
16387 rm -f conftest.$ac_objext conftest$ac_exeext
16388 if { (ac_try="$ac_link"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_link") 2>conftest.er1
16396 grep -v '^ *+' conftest.er1 >conftest.err
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402 { (case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_try") 2>&5
16409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest$ac_exeext'
16412 { (case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_try") 2>&5
16419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 { echo "$as_me:$LINENO: result
: yes" >&5
16422 echo "${ECHO_T}yes" >&6; }
16424 cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_GETHOSTBYNAME_R_5 1
16429 echo "$as_me: failed program was
:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16432 { echo "$as_me:$LINENO: result
: no
" >&5
16433 echo "${ECHO_T}no
" >&6; }
16437 rm -f core conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16440 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_INITIALIZER
" >&5
16441 echo $ECHO_N "checking
for PTHREAD_RWLOCK_INITIALIZER...
$ECHO_C" >&6; }
16442 cat >conftest.$ac_ext <<_ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16448 #include <pthread.h>
16452 int foo = PTHREAD_RWLOCK_INITIALIZER;
16457 rm -f conftest.$ac_objext conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>conftest.er1
16466 grep -v '^ *+' conftest.er1 >conftest.err
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16472 { (case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_try") 2>&5
16479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest$ac_exeext'
16482 { (case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_try") 2>&5
16489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16490 (exit $ac_status); }; }; then
16491 { echo "$as_me:$LINENO: result
: yes" >&5
16492 echo "${ECHO_T}yes" >&6; }
16494 cat >>confdefs.h <<\_ACEOF
16495 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16499 echo "$as_me: failed program was
:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 { echo "$as_me:$LINENO: result
: no
" >&5
16503 echo "${ECHO_T}no
" >&6; }
16507 rm -f core conftest.err conftest.$ac_objext \
16508 conftest$ac_exeext conftest.$ac_ext
16510 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP
" >&5
16511 echo $ECHO_N "checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP...
$ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 #include <pthread.h>
16522 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (ac_try="$ac_link"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_link") 2>conftest.er1
16536 grep -v '^ *+' conftest.er1 >conftest.err
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16542 { (case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_try") 2>&5
16549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16550 (exit $ac_status); }; } &&
16551 { ac_try='test -s conftest$ac_exeext'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 { echo "$as_me:$LINENO: result
: yes" >&5
16562 echo "${ECHO_T}yes" >&6; }
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16569 echo "$as_me: failed program was
:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16572 { echo "$as_me:$LINENO: result
: no
" >&5
16573 echo "${ECHO_T}no
" >&6; }
16577 rm -f core conftest.err conftest.$ac_objext \
16578 conftest$ac_exeext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: checking
for compiler atomic operations
" >&5
16581 echo $ECHO_N "checking
for compiler atomic operations...
$ECHO_C" >&6; }
16582 cat >conftest.$ac_ext <<_ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h. */
16592 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (ac_try="$ac_link"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_link") 2>conftest.er1
16606 grep -v '^ *+' conftest.er1 >conftest.err
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16612 { (case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_try") 2>&5
16619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest$ac_exeext'
16622 { (case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_try") 2>&5
16629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 { echo "$as_me:$LINENO: result
: yes" >&5
16632 echo "${ECHO_T}yes" >&6; }
16634 cat >>confdefs.h <<\_ACEOF
16635 #define HAVE_GCC_ATOMICS 1
16639 echo "$as_me: failed program was
:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16642 { echo "$as_me:$LINENO: result
: no
" >&5
16643 echo "${ECHO_T}no
" >&6; }
16647 rm -f core conftest.err conftest.$ac_objext \
16648 conftest$ac_exeext conftest.$ac_ext
16651 { echo "$as_me:$LINENO: checking
for compiler
'attribute pure' support
" >&5
16652 echo $ECHO_N "checking
for compiler
'attribute pure' support...
$ECHO_C" >&6; }
16653 cat >conftest.$ac_ext <<_ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 static int __attribute__((pure)) test(void) {}
16668 rm -f conftest.$ac_objext
16669 if { (ac_try="$ac_compile"
16670 case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_compile") 2>conftest.er1
16677 grep -v '^ *+' conftest.er1 >conftest.err
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16683 { (case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_try") 2>&5
16690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest.$ac_objext'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
16700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 { echo "$as_me:$LINENO: result
: yes" >&5
16703 echo "${ECHO_T}yes" >&6; }
16705 cat >>confdefs.h <<_ACEOF
16706 #define HAVE_ATTRIBUTE_pure 1
16710 echo "$as_me: failed program was
:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 { echo "$as_me:$LINENO: result
: no
" >&5
16714 echo "${ECHO_T}no
" >&6; }
16717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16720 { echo "$as_me:$LINENO: checking
for compiler
'attribute malloc' support
" >&5
16721 echo $ECHO_N "checking
for compiler
'attribute malloc' support...
$ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 static int __attribute__((malloc)) test(void) {}
16737 rm -f conftest.$ac_objext
16738 if { (ac_try="$ac_compile"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_compile") 2>conftest.er1
16746 grep -v '^ *+' conftest.er1 >conftest.err
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752 { (case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_try") 2>&5
16759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest.$ac_objext'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 { echo "$as_me:$LINENO: result
: yes" >&5
16772 echo "${ECHO_T}yes" >&6; }
16774 cat >>confdefs.h <<_ACEOF
16775 #define HAVE_ATTRIBUTE_malloc 1
16779 echo "$as_me: failed program was
:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 { echo "$as_me:$LINENO: result
: no
" >&5
16783 echo "${ECHO_T}no
" >&6; }
16786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789 { echo "$as_me:$LINENO: checking
for compiler
'attribute const' support
" >&5
16790 echo $ECHO_N "checking
for compiler
'attribute const' support...
$ECHO_C" >&6; }
16791 cat >conftest.$ac_ext <<_ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h. */
16797 static int __attribute__((const)) test(void) {}
16806 rm -f conftest.$ac_objext
16807 if { (ac_try="$ac_compile"
16808 case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_compile") 2>conftest.er1
16815 grep -v '^ *+' conftest.er1 >conftest.err
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest.$ac_objext'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 { echo "$as_me:$LINENO: result
: yes" >&5
16841 echo "${ECHO_T}yes" >&6; }
16843 cat >>confdefs.h <<_ACEOF
16844 #define HAVE_ATTRIBUTE_const 1
16848 echo "$as_me: failed program was
:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16851 { echo "$as_me:$LINENO: result
: no
" >&5
16852 echo "${ECHO_T}no
" >&6; }
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16858 { echo "$as_me:$LINENO: checking
for compiler
'attribute unused' support
" >&5
16859 echo $ECHO_N "checking
for compiler
'attribute unused' support...
$ECHO_C" >&6; }
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 static int __attribute__((unused)) test(void) {}
16875 rm -f conftest.$ac_objext
16876 if { (ac_try="$ac_compile"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_compile") 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16890 { (case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_try") 2>&5
16897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16898 (exit $ac_status); }; } &&
16899 { ac_try='test -s conftest.$ac_objext'
16900 { (case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_try") 2>&5
16907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16908 (exit $ac_status); }; }; then
16909 { echo "$as_me:$LINENO: result
: yes" >&5
16910 echo "${ECHO_T}yes" >&6; }
16912 cat >>confdefs.h <<_ACEOF
16913 #define HAVE_ATTRIBUTE_unused 1
16917 echo "$as_me: failed program was
:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16920 { echo "$as_me:$LINENO: result
: no
" >&5
16921 echo "${ECHO_T}no
" >&6; }
16924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16927 { echo "$as_me:$LINENO: checking
for compiler
'attribute always_inline' support
" >&5
16928 echo $ECHO_N "checking
for compiler
'attribute always_inline' support...
$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 static int __attribute__((always_inline)) test(void) {}
16944 rm -f conftest.$ac_objext
16945 if { (ac_try="$ac_compile"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_compile") 2>conftest.er1
16953 grep -v '^ *+' conftest.er1 >conftest.err
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16957 (exit $ac_status); } &&
16958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16959 { (case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_try") 2>&5
16966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16967 (exit $ac_status); }; } &&
16968 { ac_try='test -s conftest.$ac_objext'
16969 { (case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_try") 2>&5
16976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 { echo "$as_me:$LINENO: result
: yes" >&5
16979 echo "${ECHO_T}yes" >&6; }
16981 cat >>confdefs.h <<_ACEOF
16982 #define HAVE_ATTRIBUTE_always_inline 1
16986 echo "$as_me: failed program was
:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16989 { echo "$as_me:$LINENO: result
: no
" >&5
16990 echo "${ECHO_T}no
" >&6; }
16993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 { echo "$as_me:$LINENO: checking
for compiler
'attribute deprecated' support
" >&5
16997 echo $ECHO_N "checking
for compiler
'attribute deprecated' support...
$ECHO_C" >&6; }
16998 cat >conftest.$ac_ext <<_ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17004 static int __attribute__((deprecated)) test(void) {}
17013 rm -f conftest.$ac_objext
17014 if { (ac_try="$ac_compile"
17015 case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_compile") 2>conftest.er1
17022 grep -v '^ *+' conftest.er1 >conftest.err
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17028 { (case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_try") 2>&5
17035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17036 (exit $ac_status); }; } &&
17037 { ac_try='test -s conftest.$ac_objext'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 { echo "$as_me:$LINENO: result
: yes" >&5
17048 echo "${ECHO_T}yes" >&6; }
17050 cat >>confdefs.h <<_ACEOF
17051 #define HAVE_ATTRIBUTE_deprecated 1
17055 echo "$as_me: failed program was
:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 { echo "$as_me:$LINENO: result
: no
" >&5
17059 echo "${ECHO_T}no
" >&6; }
17062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065 { echo "$as_me:$LINENO: checking
for -ffunction-sections support
" >&5
17066 echo $ECHO_N "checking
for -ffunction-sections support...
$ECHO_C" >&6; }
17067 saved_CFLAGS="${CFLAGS}"
17068 CFLAGS="${CFLAGS} -ffunction-sections"
17069 cat >conftest.$ac_ext <<_ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17084 rm -f conftest.$ac_objext
17085 if { (ac_try="$ac_compile"
17086 case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_compile") 2>conftest.er1
17093 grep -v '^ *+' conftest.er1 >conftest.err
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17097 (exit $ac_status); } &&
17098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17099 { (case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_try") 2>&5
17106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try='test -s conftest.$ac_objext'
17109 { (case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17114 (eval "$ac_try") 2>&5
17116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 { echo "$as_me:$LINENO: result
: yes" >&5
17119 echo "${ECHO_T}yes" >&6; }
17120 saved_LDFLAGS="${LDFLAGS}"
17121 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
17122 { echo "$as_me:$LINENO: checking
for --gc-sections support
" >&5
17123 echo $ECHO_N "checking
for --gc-sections support...
$ECHO_C" >&6; }
17124 cat >conftest.$ac_ext <<_ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17139 rm -f conftest.$ac_objext conftest$ac_exeext
17140 if { (ac_try="$ac_link"
17141 case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_link") 2>conftest.er1
17148 grep -v '^ *+' conftest.er1 >conftest.err
17150 cat conftest.err >&5
17151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17152 (exit $ac_status); } &&
17153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17154 { (case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_try") 2>&5
17161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest$ac_exeext'
17164 { (case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17168 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_try") 2>&5
17171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 { echo "$as_me:$LINENO: result
: yes" >&5
17174 echo "${ECHO_T}yes" >&6; }
17175 GC_CFLAGS="-ffunction-sections"
17176 GC_LDFLAGS="-Wl,--gc-sections"
17178 echo "$as_me: failed program was
:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 { echo "$as_me:$LINENO: result
: no
" >&5
17182 echo "${ECHO_T}no
" >&6; }
17186 rm -f core conftest.err conftest.$ac_objext \
17187 conftest$ac_exeext conftest.$ac_ext
17188 LDFLAGS="${saved_LDFLAGS}"
17190 echo "$as_me: failed program was
:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 { echo "$as_me:$LINENO: result
: no
" >&5
17194 echo "${ECHO_T}no
" >&6; }
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199 CFLAGS="${saved_CFLAGS}"
17203 { echo "$as_me:$LINENO: checking
for -Wdeclaration-after-statement support
" >&5
17204 echo $ECHO_N "checking
for -Wdeclaration-after-statement support...
$ECHO_C" >&6; }
17205 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17206 { echo "$as_me:$LINENO: result
: yes" >&5
17207 echo "${ECHO_T}yes" >&6; }
17208 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
17210 { echo "$as_me:$LINENO: result
: no
" >&5
17211 echo "${ECHO_T}no
" >&6; }
17212 AST_DECLARATION_AFTER_STATEMENT=
17216 { echo "$as_me:$LINENO: checking
for res_ninit
" >&5
17217 echo $ECHO_N "checking
for res_ninit...
$ECHO_C" >&6; }
17218 cat >conftest.$ac_ext <<_ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 #include <resolv.h>
17228 int foo = res_ninit(NULL);
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (ac_try="$ac_link"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_link") 2>conftest.er1
17242 grep -v '^ *+' conftest.er1 >conftest.err
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17248 { (case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17253 (eval "$ac_try") 2>&5
17255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest$ac_exeext'
17258 { (case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_try") 2>&5
17265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 { echo "$as_me:$LINENO: result
: yes" >&5
17268 echo "${ECHO_T}yes" >&6; }
17270 cat >>confdefs.h <<\_ACEOF
17271 #define HAVE_RES_NINIT 1
17274 { echo "$as_me:$LINENO: checking
for res_ndestroy
" >&5
17275 echo $ECHO_N "checking
for res_ndestroy...
$ECHO_C" >&6; }
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 #include <resolv.h>
17286 int foo = res_ndestroy(NULL);
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (ac_try="$ac_link"
17293 case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_link") 2>conftest.er1
17300 grep -v '^ *+' conftest.er1 >conftest.err
17302 cat conftest.err >&5
17303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17306 { (case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_try") 2>&5
17313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try='test -s conftest$ac_exeext'
17316 { (case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_try") 2>&5
17323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 { echo "$as_me:$LINENO: result
: yes" >&5
17326 echo "${ECHO_T}yes" >&6; }
17328 cat >>confdefs.h <<\_ACEOF
17329 #define HAVE_RES_NDESTROY 1
17333 echo "$as_me: failed program was
:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 { echo "$as_me:$LINENO: result
: no
" >&5
17337 echo "${ECHO_T}no
" >&6; }
17341 rm -f core conftest.err conftest.$ac_objext \
17342 conftest$ac_exeext conftest.$ac_ext
17344 echo "$as_me: failed program was
:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 { echo "$as_me:$LINENO: result
: no
" >&5
17348 echo "${ECHO_T}no
" >&6; }
17352 rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17355 { echo "$as_me:$LINENO: checking
for RTLD_NOLOAD
" >&5
17356 echo $ECHO_N "checking
for RTLD_NOLOAD...
$ECHO_C" >&6; }
17357 cat >conftest.$ac_ext <<_ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h. */
17367 int foo = RTLD_NOLOAD;
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
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_link") 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); } &&
17386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 { echo "$as_me:$LINENO: result
: yes" >&5
17407 echo "${ECHO_T}yes" >&6; }
17409 cat >>confdefs.h <<\_ACEOF
17410 #define HAVE_RTLD_NOLOAD 1
17414 echo "$as_me: failed program was
:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 { echo "$as_me:$LINENO: result
: no
" >&5
17418 echo "${ECHO_T}no
" >&6; }
17422 rm -f core conftest.err conftest.$ac_objext \
17423 conftest$ac_exeext conftest.$ac_ext
17425 { echo "$as_me:$LINENO: checking
for IP_MTU_DISCOVER
" >&5
17426 echo $ECHO_N "checking
for IP_MTU_DISCOVER...
$ECHO_C" >&6; }
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 #include <netinet/in.h>
17437 int foo = IP_MTU_DISCOVER;
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_link") 2>conftest.er1
17451 grep -v '^ *+' conftest.er1 >conftest.err
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17455 (exit $ac_status); } &&
17456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17457 { (case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_try") 2>&5
17464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest$ac_exeext'
17467 { (case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_try") 2>&5
17474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 { echo "$as_me:$LINENO: result
: yes" >&5
17477 echo "${ECHO_T}yes" >&6; }
17479 cat >>confdefs.h <<\_ACEOF
17480 #define HAVE_IP_MTU_DISCOVER 1
17484 echo "$as_me: failed program was
:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 { echo "$as_me:$LINENO: result
: no
" >&5
17488 echo "${ECHO_T}no
" >&6; }
17492 rm -f core conftest.err conftest.$ac_objext \
17493 conftest$ac_exeext conftest.$ac_ext
17495 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17496 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
17497 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
17498 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17499 echo $ECHO_N "(cached
) $ECHO_C" >&6
17501 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
17502 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17504 # Is the header compilable?
17505 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h usability
" >&5
17506 echo $ECHO_N "checking libkern
/OSAtomic.h usability...
$ECHO_C" >&6; }
17507 cat >conftest.$ac_ext <<_ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h. */
17513 $ac_includes_default
17514 #include <libkern/OSAtomic.h>
17516 rm -f conftest.$ac_objext
17517 if { (ac_try="$ac_compile"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_compile") 2>conftest.er1
17525 grep -v '^ *+' conftest.er1 >conftest.err
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17529 (exit $ac_status); } &&
17530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17531 { (case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_try") 2>&5
17538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest.$ac_objext'
17541 { (case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_try") 2>&5
17548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 ac_header_compiler=yes
17552 echo "$as_me: failed program was
:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 ac_header_compiler=no
17558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17560 echo "${ECHO_T}$ac_header_compiler" >&6; }
17562 # Is the header present?
17563 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h presence
" >&5
17564 echo $ECHO_N "checking libkern
/OSAtomic.h presence...
$ECHO_C" >&6; }
17565 cat >conftest.$ac_ext <<_ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 #include <libkern/OSAtomic.h>
17573 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17574 case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17581 grep -v '^ *+' conftest.er1 >conftest.err
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17585 (exit $ac_status); } >/dev/null; then
17586 if test -s conftest.err; then
17587 ac_cpp_err=$ac_c_preproc_warn_flag
17588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17595 if test -z "$ac_cpp_err"; then
17596 ac_header_preproc=yes
17598 echo "$as_me: failed program was
:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ac_header_preproc=no
17604 rm -f conftest.err conftest.$ac_ext
17605 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17606 echo "${ECHO_T}$ac_header_preproc" >&6; }
17608 # So? What about this header?
17609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17611 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17612 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17613 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the compiler
's result" >&5
17614 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result
" >&2;}
17615 ac_header_preproc=yes
17618 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&5
17619 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&2;}
17620 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&5
17621 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&2;}
17622 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&5
17623 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&2;}
17624 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17625 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17626 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the preprocessor
's result" >&5
17627 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result
" >&2;}
17628 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&5
17629 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&2;}
17631 ## ------------------------------- ##
17632 ## Report this to www.asterisk.org ##
17633 ## ------------------------------- ##
17635 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
17638 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
17639 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
17640 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17641 echo $ECHO_N "(cached
) $ECHO_C" >&6
17643 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17645 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
17646 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17649 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17651 cat >>confdefs.h <<_ACEOF
17652 #define HAVE_OSX_ATOMICS 1
17659 { echo "$as_me:$LINENO: checking
for int
" >&5
17660 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
17661 if test "${ac_cv_type_int+set}" = set; then
17662 echo $ECHO_N "(cached
) $ECHO_C" >&6
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 $ac_includes_default
17671 typedef int ac__type_new_;
17675 if ((ac__type_new_ *) 0)
17677 if (sizeof (ac__type_new_))
17683 rm -f conftest.$ac_objext
17684 if { (ac_try="$ac_compile"
17685 case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_compile") 2>conftest.er1
17692 grep -v '^ *+' conftest.er1 >conftest.err
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17696 (exit $ac_status); } &&
17697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17698 { (case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_try") 2>&5
17705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17706 (exit $ac_status); }; } &&
17707 { ac_try='test -s conftest.$ac_objext'
17708 { (case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_try") 2>&5
17715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17716 (exit $ac_status); }; }; then
17719 echo "$as_me: failed program was
:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17727 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
17728 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17730 { echo "$as_me:$LINENO: checking size of int
" >&5
17731 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
17732 if test "${ac_cv_sizeof_int+set}" = set; then
17733 echo $ECHO_N "(cached
) $ECHO_C" >&6
17735 if test "$ac_cv_type_int" = yes; then
17736 # The cast to long int works around a bug in the HP C Compiler
17737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17739 # This bug is HP SR number 8606223364.
17740 if test "$cross_compiling" = yes; then
17741 # Depending upon the size, compute the lo and hi bounds.
17742 cat >conftest.$ac_ext <<_ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17748 $ac_includes_default
17749 typedef int ac__type_sizeof_;
17753 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17760 rm -f conftest.$ac_objext
17761 if { (ac_try="$ac_compile"
17762 case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_compile") 2>conftest.er1
17769 grep -v '^ *+' conftest.er1 >conftest.err
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775 { (case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_try") 2>&5
17782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest.$ac_objext'
17785 { (case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_try") 2>&5
17792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17793 (exit $ac_status); }; }; then
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 $ac_includes_default
17803 typedef int ac__type_sizeof_;
17807 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17814 rm -f conftest.$ac_objext
17815 if { (ac_try="$ac_compile"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_compile") 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17833 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17836 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest.$ac_objext'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_hi=$ac_mid; break
17850 echo "$as_me: failed program was
:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 ac_lo=`expr $ac_mid + 1`
17854 if test $ac_lo -le $ac_mid; then
17858 ac_mid=`expr 2 '*' $ac_mid + 1`
17861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17864 echo "$as_me: failed program was
:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17867 cat >conftest.$ac_ext <<_ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h. */
17873 $ac_includes_default
17874 typedef int ac__type_sizeof_;
17878 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17894 grep -v '^ *+' conftest.er1 >conftest.err
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17898 (exit $ac_status); } &&
17899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17900 { (case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_try") 2>&5
17907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest.$ac_objext'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17918 (exit $ac_status); }; }; then
17921 cat >conftest.$ac_ext <<_ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 $ac_includes_default
17928 typedef int ac__type_sizeof_;
17932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
17939 rm -f conftest.$ac_objext
17940 if { (ac_try="$ac_compile"
17941 case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_compile") 2>conftest.er1
17948 grep -v '^ *+' conftest.er1 >conftest.err
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17952 (exit $ac_status); } &&
17953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17954 { (case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_try") 2>&5
17961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17962 (exit $ac_status); }; } &&
17963 { ac_try='test -s conftest.$ac_objext'
17964 { (case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_try") 2>&5
17971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 ac_lo=$ac_mid; break
17975 echo "$as_me: failed program was
:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17978 ac_hi=`expr '(' $ac_mid ')' - 1`
17979 if test $ac_mid -le $ac_hi; then
17983 ac_mid=`expr 2 '*' $ac_mid`
17986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17989 echo "$as_me: failed program was
:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17999 # Binary search between lo and hi bounds.
18000 while test "x
$ac_lo" != "x
$ac_hi"; do
18001 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18002 cat >conftest.$ac_ext <<_ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 $ac_includes_default
18009 typedef int ac__type_sizeof_;
18013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18020 rm -f conftest.$ac_objext
18021 if { (ac_try="$ac_compile"
18022 case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_compile") 2>conftest.er1
18029 grep -v '^ *+' conftest.er1 >conftest.err
18031 cat conftest.err >&5
18032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18033 (exit $ac_status); } &&
18034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18035 { (case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_try") 2>&5
18042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18043 (exit $ac_status); }; } &&
18044 { ac_try='test -s conftest.$ac_objext'
18045 { (case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18050 (eval "$ac_try") 2>&5
18052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18053 (exit $ac_status); }; }; then
18056 echo "$as_me: failed program was
:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18059 ac_lo=`expr '(' $ac_mid ')' + 1`
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18065 ?*) ac_cv_sizeof_int=$ac_lo;;
18066 '') { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
18067 See \
`config.log' for more details." >&5
18068 echo "$as_me: error: cannot compute sizeof (int)
18069 See \`config.log
' for more details." >&2;}
18070 { (exit 77); exit 77; }; } ;;
18073 cat >conftest.$ac_ext <<_ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 $ac_includes_default
18080 typedef int ac__type_sizeof_;
18081 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18082 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18084 #include <stdlib.h>
18089 FILE *f = fopen ("conftest.val", "w");
18092 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18094 long int i = longval ();
18095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18097 fprintf (f, "%ld\n", i);
18101 unsigned long int i = ulongval ();
18102 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18104 fprintf (f, "%lu\n", i);
18106 return ferror (f) || fclose (f) != 0;
18112 rm -f conftest$ac_exeext
18113 if { (ac_try="$ac_link"
18114 case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_link") 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
18123 { (case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_try") 2>&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; }; then
18132 ac_cv_sizeof_int=`cat conftest.val`
18134 echo "$as_me: program exited with status $ac_status" >&5
18135 echo "$as_me: failed program was:" >&5
18136 sed 's
/^
/|
/' conftest.$ac_ext >&5
18138 ( exit $ac_status )
18139 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18140 See \`config.log' for more details.
" >&5
18141 echo "$as_me: error
: cannot compute sizeof
(int
)
18142 See \
`config.log' for more details." >&2;}
18143 { (exit 77); exit 77; }; }
18145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18152 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18153 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
18154 cat >>confdefs.h <<_ACEOF
18155 #define SIZEOF_INT $ac_cv_sizeof_int
18160 # do the package library checks now
18163 if test "${USE_ALSA}" != "no"; then
18165 if test "x${ALSA_DIR}" != "x"; then
18166 if test -d ${ALSA_DIR}/lib; then
18167 pbxlibdir="-L${ALSA_DIR}/lib"
18169 pbxlibdir="-L${ALSA_DIR}"
18172 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
18173 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
18174 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 ac_check_lib_save_LIBS=$LIBS
18178 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
18179 cat >conftest.$ac_ext <<_ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18186 /* Override any GCC internal prototype to avoid an error.
18187 Use char because int might match the return type of a GCC
18188 builtin and then its argument prototype would still apply. */
18192 char snd_spcm_init ();
18196 return snd_spcm_init ();
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (ac_try="$ac_link"
18203 case "(($ac_try" in
18204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18205 *) ac_try_echo
=$ac_try;;
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208 (eval "$ac_link") 2>conftest.er1
18210 grep -v '^ *+' conftest.er1
>conftest.err
18212 cat conftest.err
>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } &&
18215 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18216 { (case "(($ac_try" in
18217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_try") 2>&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try='test -s conftest$ac_exeext'
18226 { (case "(($ac_try" in
18227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18228 *) ac_try_echo
=$ac_try;;
18230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18231 (eval "$ac_try") 2>&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 ac_cv_lib_asound_snd_spcm_init
=yes
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.
$ac_ext >&5
18240 ac_cv_lib_asound_snd_spcm_init
=no
18243 rm -f core conftest.err conftest.
$ac_objext \
18244 conftest
$ac_exeext conftest.
$ac_ext
18245 LIBS
=$ac_check_lib_save_LIBS
18247 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
18248 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
18249 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
18256 if test "${AST_ALSA_FOUND}" = "yes"; then
18257 ALSA_LIB
="-lasound -lm -ldl"
18258 ALSA_HEADER_FOUND
="1"
18259 if test "x${ALSA_DIR}" != "x"; then
18260 ALSA_LIB
="${pbxlibdir} ${ALSA_LIB}"
18261 ALSA_INCLUDE
="-I${ALSA_DIR}/include"
18262 saved_cppflags
="${CPPFLAGS}"
18263 CPPFLAGS
="${CPPFLAGS} -I${ALSA_DIR}/include"
18264 if test "xalsa/asoundlib.h" != "x" ; then
18265 as_ac_Header
=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
18266 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18267 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
18268 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
18269 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 ac_res
=`eval echo '${'$as_ac_Header'}'`
18273 { echo "$as_me:$LINENO: result: $ac_res" >&5
18274 echo "${ECHO_T}$ac_res" >&6; }
18276 # Is the header compilable?
18277 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
18278 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
18279 cat >conftest.
$ac_ext <<_ACEOF
18282 cat confdefs.h
>>conftest.
$ac_ext
18283 cat >>conftest.
$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 $ac_includes_default
18286 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
18288 rm -f conftest.
$ac_objext
18289 if { (ac_try
="$ac_compile"
18290 case "(($ac_try" in
18291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_compile") 2>conftest.er1
18297 grep -v '^ *+' conftest.er1 >conftest.err
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try
='test -s conftest.$ac_objext'
18313 { (case "(($ac_try" in
18314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_try") 2>&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_header_compiler=yes
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 ac_header_compiler=no
18330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18332 echo "${ECHO_T}$ac_header_compiler" >&6; }
18334 # Is the header present?
18335 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
18336 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
18337 cat >conftest.$ac_ext <<_ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
18345 if { (ac_try="$ac_cpp conftest.$ac_ext"
18346 case "(($ac_try" in
18347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18348 *) ac_try_echo
=$ac_try;;
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18353 grep -v '^ *+' conftest.er1
>conftest.err
18355 cat conftest.err
>&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } >/dev
/null
; then
18358 if test -s conftest.err
; then
18359 ac_cpp_err
=$ac_c_preproc_warn_flag
18360 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18367 if test -z "$ac_cpp_err"; then
18368 ac_header_preproc
=yes
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.
$ac_ext >&5
18373 ac_header_preproc
=no
18376 rm -f conftest.err conftest.
$ac_ext
18377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18378 echo "${ECHO_T}$ac_header_preproc" >&6; }
18380 # So? What about this header?
18381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18383 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18384 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18385 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
18386 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18387 ac_header_preproc
=yes
18390 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
18391 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
18392 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18393 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18394 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
18395 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18397 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18398 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18399 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18400 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18401 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18403 ## ------------------------------- ##
18404 ## Report this to www.asterisk.org ##
18405 ## ------------------------------- ##
18407 ) |
sed "s/^/$as_me: WARNING: /" >&2
18410 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
18411 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
18412 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 eval "$as_ac_Header=\$ac_header_preproc"
18417 ac_res
=`eval echo '${'$as_ac_Header'}'`
18418 { echo "$as_me:$LINENO: result: $ac_res" >&5
18419 echo "${ECHO_T}$ac_res" >&6; }
18422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18423 ALSA_HEADER_FOUND
=1
18425 ALSA_HEADER_FOUND
=0
18430 CPPFLAGS
="${saved_cppflags}"
18432 if test "xalsa/asoundlib.h" != "x" ; then
18433 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18434 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18435 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18436 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18439 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18440 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18442 # Is the header compilable?
18443 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
18444 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
18445 cat >conftest.
$ac_ext <<_ACEOF
18448 cat confdefs.h
>>conftest.
$ac_ext
18449 cat >>conftest.
$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18451 $ac_includes_default
18452 #include <alsa/asoundlib.h>
18454 rm -f conftest.
$ac_objext
18455 if { (ac_try
="$ac_compile"
18456 case "(($ac_try" in
18457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_compile") 2>conftest.er1
18463 grep -v '^ *+' conftest.er1 >conftest.err
18465 cat conftest.err >&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
18468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18469 { (case "(($ac_try" in
18470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18471 *) ac_try_echo
=$ac_try;;
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474 (eval "$ac_try") 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try
='test -s conftest.$ac_objext'
18479 { (case "(($ac_try" in
18480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_try") 2>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 ac_header_compiler=yes
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 ac_header_compiler=no
18496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18498 echo "${ECHO_T}$ac_header_compiler" >&6; }
18500 # Is the header present?
18501 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18502 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 #include <alsa/asoundlib.h>
18511 if { (ac_try="$ac_cpp conftest.$ac_ext"
18512 case "(($ac_try" in
18513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18514 *) ac_try_echo
=$ac_try;;
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18519 grep -v '^ *+' conftest.er1
>conftest.err
18521 cat conftest.err
>&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } >/dev
/null
; then
18524 if test -s conftest.err
; then
18525 ac_cpp_err
=$ac_c_preproc_warn_flag
18526 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18533 if test -z "$ac_cpp_err"; then
18534 ac_header_preproc
=yes
18536 echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.
$ac_ext >&5
18539 ac_header_preproc
=no
18542 rm -f conftest.err conftest.
$ac_ext
18543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18544 echo "${ECHO_T}$ac_header_preproc" >&6; }
18546 # So? What about this header?
18547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18549 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18550 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18551 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18552 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18553 ac_header_preproc
=yes
18556 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18557 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18559 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18561 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18563 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18565 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18567 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18569 ## ------------------------------- ##
18570 ## Report this to www.asterisk.org ##
18571 ## ------------------------------- ##
18573 ) |
sed "s/^/$as_me: WARNING: /" >&2
18576 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18577 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18578 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
18583 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18584 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18587 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18588 ALSA_HEADER_FOUND
=1
18590 ALSA_HEADER_FOUND
=0
18596 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18597 if test -n "${ALSA_MANDATORY}" ;
18599 { echo "$as_me:$LINENO: ***" >&5
18600 echo "$as_me: ***" >&6;}
18601 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
18602 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
18603 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
18604 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
18605 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
18606 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
18615 cat >>confdefs.h
<<_ACEOF
18616 #define HAVE_ALSA 1
18620 elif test -n "${ALSA_MANDATORY}";
18622 { echo "$as_me:$LINENO: ***" >&5
18623 echo "$as_me: ***" >&6;}
18624 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
18625 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
18626 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18627 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18628 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
18629 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
18636 if test "${USE_CURSES}" != "no"; then
18638 if test "x${CURSES_DIR}" != "x"; then
18639 if test -d ${CURSES_DIR}/lib
; then
18640 pbxlibdir
="-L${CURSES_DIR}/lib"
18642 pbxlibdir
="-L${CURSES_DIR}"
18645 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
18646 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
18647 if test "${ac_cv_lib_curses_initscr+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 ac_check_lib_save_LIBS
=$LIBS
18651 LIBS
="-lcurses ${pbxlibdir} $LIBS"
18652 cat >conftest.
$ac_ext <<_ACEOF
18655 cat confdefs.h
>>conftest.
$ac_ext
18656 cat >>conftest.
$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18659 /* Override any GCC internal prototype to avoid an error.
18660 Use char because int might match the return type of a GCC
18661 builtin and then its argument prototype would still apply. */
18674 rm -f conftest.
$ac_objext conftest
$ac_exeext
18675 if { (ac_try
="$ac_link"
18676 case "(($ac_try" in
18677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_link") 2>conftest.er1
18683 grep -v '^ *+' conftest.er1 >conftest.err
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18691 *) ac_try_echo
=$ac_try;;
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try
='test -s conftest$ac_exeext'
18699 { (case "(($ac_try" in
18700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_try") 2>&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 ac_cv_lib_curses_initscr=yes
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_cv_lib_curses_initscr=no
18716 rm -f core conftest.err conftest.$ac_objext \
18717 conftest$ac_exeext conftest.$ac_ext
18718 LIBS=$ac_check_lib_save_LIBS
18720 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
18721 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
18722 if test $ac_cv_lib_curses_initscr = yes; then
18723 AST_CURSES_FOUND=yes
18725 AST_CURSES_FOUND=no
18729 if test "${AST_CURSES_FOUND}" = "yes"; then
18730 CURSES_LIB="-lcurses "
18731 CURSES_HEADER_FOUND="1"
18732 if test "x${CURSES_DIR}" != "x"; then
18733 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
18734 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18735 saved_cppflags="${CPPFLAGS}"
18736 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
18737 if test "xcurses.h" != "x" ; then
18738 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" |
$as_tr_sh`
18739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18740 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
18741 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
18742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 ac_res=`eval echo '${'$as_ac_Header'}'`
18746 { echo "$as_me:$LINENO: result: $ac_res" >&5
18747 echo "${ECHO_T}$ac_res" >&6; }
18749 # Is the header compilable?
18750 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
18751 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
18752 cat >conftest.$ac_ext <<_ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18758 $ac_includes_default
18759 #include <${CURSES_DIR}/include/curses.h>
18761 rm -f conftest.$ac_objext
18762 if { (ac_try="$ac_compile"
18763 case "(($ac_try" in
18764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18765 *) ac_try_echo
=$ac_try;;
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_compile") 2>conftest.er1
18770 grep -v '^ *+' conftest.er1
>conftest.err
18772 cat conftest.err
>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
18775 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18776 { (case "(($ac_try" in
18777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18778 *) ac_try_echo=$ac_try;;
18780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781 (eval "$ac_try") 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest.$ac_objext'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18788 *) ac_try_echo
=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; }; then
18795 ac_header_compiler
=yes
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.
$ac_ext >&5
18800 ac_header_compiler
=no
18803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18805 echo "${ECHO_T}$ac_header_compiler" >&6; }
18807 # Is the header present?
18808 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
18809 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
18810 cat >conftest.
$ac_ext <<_ACEOF
18813 cat confdefs.h
>>conftest.
$ac_ext
18814 cat >>conftest.
$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 #include <${CURSES_DIR}/include/curses.h>
18818 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18819 case "(($ac_try" in
18820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18821 *) ac_try_echo=$ac_try;;
18823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18826 grep -v '^ *+' conftest.er1 >conftest.err
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } >/dev/null; then
18831 if test -s conftest.err; then
18832 ac_cpp_err=$ac_c_preproc_warn_flag
18833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18840 if test -z "$ac_cpp_err"; then
18841 ac_header_preproc=yes
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_header_preproc=no
18849 rm -f conftest.err conftest.$ac_ext
18850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18851 echo "${ECHO_T}$ac_header_preproc" >&6; }
18853 # So? What about this header?
18854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18856 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18857 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18858 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
18859 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
18860 ac_header_preproc=yes
18863 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
18864 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
18865 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
18866 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
18867 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
18868 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
18869 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
18870 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
18872 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
18874 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
18876 ## ------------------------------- ##
18877 ## Report this to www.asterisk.org ##
18878 ## ------------------------------- ##
18880 ) | sed "s/^/$as_me: WARNING: /" >&2
18883 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
18884 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
18885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 eval "$as_ac_Header=\$ac_header_preproc"
18890 ac_res=`eval echo '${'$as_ac_Header'}'`
18891 { echo "$as_me:$LINENO: result: $ac_res" >&5
18892 echo "${ECHO_T}$ac_res" >&6; }
18895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18896 CURSES_HEADER_FOUND=1
18898 CURSES_HEADER_FOUND=0
18903 CPPFLAGS="${saved_cppflags}"
18905 if test "xcurses.h" != "x" ; then
18906 if test "${ac_cv_header_curses_h+set}" = set; then
18907 { echo "$as_me:$LINENO: checking for curses.h" >&5
18908 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18909 if test "${ac_cv_header_curses_h+set}" = set; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18913 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18915 # Is the header compilable?
18916 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18917 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18918 cat >conftest.$ac_ext <<_ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h. */
18924 $ac_includes_default
18925 #include <curses.h>
18927 rm -f conftest.$ac_objext
18928 if { (ac_try="$ac_compile"
18929 case "(($ac_try" in
18930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18931 *) ac_try_echo
=$ac_try;;
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_compile") 2>conftest.er1
18936 grep -v '^ *+' conftest.er1
>conftest.err
18938 cat conftest.err
>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
18941 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18942 { (case "(($ac_try" in
18943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_try") 2>&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest.$ac_objext'
18952 { (case "(($ac_try" in
18953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18954 *) ac_try_echo
=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 ac_header_compiler
=yes
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.
$ac_ext >&5
18966 ac_header_compiler
=no
18969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18971 echo "${ECHO_T}$ac_header_compiler" >&6; }
18973 # Is the header present?
18974 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18975 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18976 cat >conftest.
$ac_ext <<_ACEOF
18979 cat confdefs.h
>>conftest.
$ac_ext
18980 cat >>conftest.
$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 #include <curses.h>
18984 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18985 case "(($ac_try" in
18986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18992 grep -v '^ *+' conftest.er1 >conftest.err
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } >/dev/null; then
18997 if test -s conftest.err; then
18998 ac_cpp_err=$ac_c_preproc_warn_flag
18999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19006 if test -z "$ac_cpp_err"; then
19007 ac_header_preproc=yes
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19012 ac_header_preproc=no
19015 rm -f conftest.err conftest.$ac_ext
19016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19017 echo "${ECHO_T}$ac_header_preproc" >&6; }
19019 # So? What about this header?
19020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19022 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19023 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19025 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19026 ac_header_preproc=yes
19029 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19030 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19032 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19034 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19035 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19036 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19038 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19039 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19040 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19042 ## ------------------------------- ##
19043 ## Report this to www.asterisk.org ##
19044 ## ------------------------------- ##
19046 ) | sed "s/^/$as_me: WARNING: /" >&2
19049 { echo "$as_me:$LINENO: checking for curses.h" >&5
19050 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19051 if test "${ac_cv_header_curses_h+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 ac_cv_header_curses_h=$ac_header_preproc
19056 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19057 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19060 if test $ac_cv_header_curses_h = yes; then
19061 CURSES_HEADER_FOUND=1
19063 CURSES_HEADER_FOUND=0
19069 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
19070 if test -n "${CURSES_MANDATORY}" ;
19072 { echo "$as_me:$LINENO: ***" >&5
19073 echo "$as_me: ***" >&6;}
19074 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
19075 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
19076 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
19077 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
19078 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
19079 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
19088 cat >>confdefs.h <<_ACEOF
19089 #define HAVE_CURSES 1
19093 elif test -n "${CURSES_MANDATORY}";
19095 { echo "$as_me:$LINENO: ***" >&5
19096 echo "$as_me: ***" >&6;}
19097 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
19098 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19099 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19100 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19101 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
19102 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
19108 if test "x${host_os}" = "xlinux-gnu" ; then
19110 if test "${USE_CAP}" != "no"; then
19112 if test "x${CAP_DIR}" != "x"; then
19113 if test -d ${CAP_DIR}/lib; then
19114 pbxlibdir="-L${CAP_DIR}/lib"
19116 pbxlibdir="-L${CAP_DIR}"
19119 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
19120 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
19121 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19124 ac_check_lib_save_LIBS=$LIBS
19125 LIBS="-lcap ${pbxlibdir} $LIBS"
19126 cat >conftest.$ac_ext <<_ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19133 /* Override any GCC internal prototype to avoid an error.
19134 Use char because int might match the return type of a GCC
19135 builtin and then its argument prototype would still apply. */
19139 char cap_from_text ();
19143 return cap_from_text ();
19148 rm -f conftest.$ac_objext conftest$ac_exeext
19149 if { (ac_try="$ac_link"
19150 case "(($ac_try" in
19151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19152 *) ac_try_echo
=$ac_try;;
19154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155 (eval "$ac_link") 2>conftest.er1
19157 grep -v '^ *+' conftest.er1
>conftest.err
19159 cat conftest.err
>&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
19162 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19163 { (case "(($ac_try" in
19164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_try") 2>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest$ac_exeext'
19173 { (case "(($ac_try" in
19174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19175 *) ac_try_echo
=$ac_try;;
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_try") 2>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_cv_lib_cap_cap_from_text
=yes
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.
$ac_ext >&5
19187 ac_cv_lib_cap_cap_from_text
=no
19190 rm -f core conftest.err conftest.
$ac_objext \
19191 conftest
$ac_exeext conftest.
$ac_ext
19192 LIBS
=$ac_check_lib_save_LIBS
19194 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
19195 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
19196 if test $ac_cv_lib_cap_cap_from_text = yes; then
19203 if test "${AST_CAP_FOUND}" = "yes"; then
19205 CAP_HEADER_FOUND
="1"
19206 if test "x${CAP_DIR}" != "x"; then
19207 CAP_LIB
="${pbxlibdir} ${CAP_LIB}"
19208 CAP_INCLUDE
="-I${CAP_DIR}/include"
19209 saved_cppflags
="${CPPFLAGS}"
19210 CPPFLAGS
="${CPPFLAGS} -I${CAP_DIR}/include"
19211 if test "xsys/capability.h" != "x" ; then
19212 as_ac_Header
=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
19213 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19214 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
19215 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
19216 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 ac_res
=`eval echo '${'$as_ac_Header'}'`
19220 { echo "$as_me:$LINENO: result: $ac_res" >&5
19221 echo "${ECHO_T}$ac_res" >&6; }
19223 # Is the header compilable?
19224 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
19225 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
19226 cat >conftest.
$ac_ext <<_ACEOF
19229 cat confdefs.h
>>conftest.
$ac_ext
19230 cat >>conftest.
$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 $ac_includes_default
19233 #include <${CAP_DIR}/include/sys/capability.h>
19235 rm -f conftest.
$ac_objext
19236 if { (ac_try
="$ac_compile"
19237 case "(($ac_try" in
19238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_compile") 2>conftest.er1
19244 grep -v '^ *+' conftest.er1 >conftest.err
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19252 *) ac_try_echo
=$ac_try;;
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try
='test -s conftest.$ac_objext'
19260 { (case "(($ac_try" in
19261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_try") 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_header_compiler=yes
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 ac_header_compiler=no
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19279 echo "${ECHO_T}$ac_header_compiler" >&6; }
19281 # Is the header present?
19282 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
19283 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
19284 cat >conftest.$ac_ext <<_ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 #include <${CAP_DIR}/include/sys/capability.h>
19292 if { (ac_try="$ac_cpp conftest.$ac_ext"
19293 case "(($ac_try" in
19294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19295 *) ac_try_echo
=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19300 grep -v '^ *+' conftest.er1
>conftest.err
19302 cat conftest.err
>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } >/dev
/null
; then
19305 if test -s conftest.err
; then
19306 ac_cpp_err
=$ac_c_preproc_warn_flag
19307 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19314 if test -z "$ac_cpp_err"; then
19315 ac_header_preproc
=yes
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.
$ac_ext >&5
19320 ac_header_preproc
=no
19323 rm -f conftest.err conftest.
$ac_ext
19324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19325 echo "${ECHO_T}$ac_header_preproc" >&6; }
19327 # So? What about this header?
19328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19330 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
19331 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
19333 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
19334 ac_header_preproc
=yes
19337 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
19338 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
19339 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
19340 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
19341 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
19342 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
19343 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
19344 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
19345 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
19346 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
19347 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
19348 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
19350 ## ------------------------------- ##
19351 ## Report this to www.asterisk.org ##
19352 ## ------------------------------- ##
19354 ) |
sed "s/^/$as_me: WARNING: /" >&2
19357 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
19358 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
19359 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 eval "$as_ac_Header=\$ac_header_preproc"
19364 ac_res
=`eval echo '${'$as_ac_Header'}'`
19365 { echo "$as_me:$LINENO: result: $ac_res" >&5
19366 echo "${ECHO_T}$ac_res" >&6; }
19369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19377 CPPFLAGS
="${saved_cppflags}"
19379 if test "xsys/capability.h" != "x" ; then
19380 if test "${ac_cv_header_sys_capability_h+set}" = set; then
19381 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
19382 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
19383 if test "${ac_cv_header_sys_capability_h+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
19387 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
19389 # Is the header compilable?
19390 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
19391 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
19392 cat >conftest.
$ac_ext <<_ACEOF
19395 cat confdefs.h
>>conftest.
$ac_ext
19396 cat >>conftest.
$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 $ac_includes_default
19399 #include <sys/capability.h>
19401 rm -f conftest.
$ac_objext
19402 if { (ac_try
="$ac_compile"
19403 case "(($ac_try" in
19404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_compile") 2>conftest.er1
19410 grep -v '^ *+' conftest.er1 >conftest.err
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19416 { (case "(($ac_try" in
19417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19418 *) ac_try_echo
=$ac_try;;
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_try") 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; } &&
19425 { ac_try
='test -s conftest.$ac_objext'
19426 { (case "(($ac_try" in
19427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_try") 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 ac_header_compiler=yes
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 ac_header_compiler=no
19443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19445 echo "${ECHO_T}$ac_header_compiler" >&6; }
19447 # Is the header present?
19448 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
19449 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
19450 cat >conftest.$ac_ext <<_ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19456 #include <sys/capability.h>
19458 if { (ac_try="$ac_cpp conftest.$ac_ext"
19459 case "(($ac_try" in
19460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19461 *) ac_try_echo
=$ac_try;;
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19466 grep -v '^ *+' conftest.er1
>conftest.err
19468 cat conftest.err
>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } >/dev
/null
; then
19471 if test -s conftest.err
; then
19472 ac_cpp_err
=$ac_c_preproc_warn_flag
19473 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19480 if test -z "$ac_cpp_err"; then
19481 ac_header_preproc
=yes
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.
$ac_ext >&5
19486 ac_header_preproc
=no
19489 rm -f conftest.err conftest.
$ac_ext
19490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19491 echo "${ECHO_T}$ac_header_preproc" >&6; }
19493 # So? What about this header?
19494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19496 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
19497 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19498 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
19499 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
19500 ac_header_preproc
=yes
19503 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
19504 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
19505 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
19506 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
19507 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
19508 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
19509 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
19510 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
19511 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
19512 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
19513 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
19514 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
19516 ## ------------------------------- ##
19517 ## Report this to www.asterisk.org ##
19518 ## ------------------------------- ##
19520 ) |
sed "s/^/$as_me: WARNING: /" >&2
19523 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
19524 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
19525 if test "${ac_cv_header_sys_capability_h+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19528 ac_cv_header_sys_capability_h
=$ac_header_preproc
19530 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
19531 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
19534 if test $ac_cv_header_sys_capability_h = yes; then
19543 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
19544 if test -n "${CAP_MANDATORY}" ;
19546 { echo "$as_me:$LINENO: ***" >&5
19547 echo "$as_me: ***" >&6;}
19548 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
19549 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
19550 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
19551 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
19552 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
19553 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
19562 cat >>confdefs.h
<<_ACEOF
19567 elif test -n "${CAP_MANDATORY}";
19569 { echo "$as_me:$LINENO: ***" >&5
19570 echo "$as_me: ***" >&6;}
19571 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
19572 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
19573 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19574 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19575 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
19576 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
19584 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
19585 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
19586 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
19587 saved_cppflags
="${CPPFLAGS}"
19588 if test "x${GETIFADDRS_DIR}" != "x"; then
19589 GETIFADDRS_INCLUDE
="-I${GETIFADDRS_DIR}/include"
19591 CPPFLAGS
="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
19593 cat >conftest.
$ac_ext <<_ACEOF
19596 cat confdefs.h
>>conftest.
$ac_ext
19597 cat >>conftest.
$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 #include <ifaddrs.h>
19603 struct ifaddrs *p; getifaddrs(&p);
19609 rm -f conftest.
$ac_objext
19610 if { (ac_try
="$ac_compile"
19611 case "(($ac_try" in
19612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616 (eval "$ac_compile") 2>conftest.er1
19618 grep -v '^ *+' conftest.er1 >conftest.err
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19624 { (case "(($ac_try" in
19625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19626 *) ac_try_echo
=$ac_try;;
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_try") 2>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try
='test -s conftest.$ac_objext'
19634 { (case "(($ac_try" in
19635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19643 { echo "$as_me:$LINENO: result: yes" >&5
19644 echo "${ECHO_T}yes" >&6; }
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE_GETIFADDRS 1
19652 cat >>confdefs.h <<\_ACEOF
19653 #define HAVE_GETIFADDRS_VERSION
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19661 { echo "$as_me:$LINENO: result: no" >&5
19662 echo "${ECHO_T}no" >&6; }
19666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19667 CPPFLAGS="${saved_cppflags}"
19674 if test "${USE_GSM}" != "no"; then
19675 if test "${GSM_DIR}" = "internal"; then
19677 elif test "${GSM_DIR}" != ""; then
19680 if test "${GSM_SYSTEM}" = "yes"; then
19682 if test "x${GSM_DIR}" != "x"; then
19683 if test -d ${GSM_DIR}/lib; then
19684 gsmlibdir="-L${GSM_DIR}/lib"
19686 gsmlibdir="-L${GSM_DIR}"
19689 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
19690 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
19691 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 ac_check_lib_save_LIBS=$LIBS
19695 LIBS="-lgsm ${gsmlibdir} $LIBS"
19696 cat >conftest.$ac_ext <<_ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19703 /* Override any GCC internal prototype to avoid an error.
19704 Use char because int might match the return type of a GCC
19705 builtin and then its argument prototype would still apply. */
19709 char gsm_create ();
19713 return gsm_create ();
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (ac_try="$ac_link"
19720 case "(($ac_try" in
19721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19722 *) ac_try_echo
=$ac_try;;
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_link") 2>conftest.er1
19727 grep -v '^ *+' conftest.er1
>conftest.err
19729 cat conftest.err
>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19733 { (case "(($ac_try" in
19734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_try") 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try='test -s conftest$ac_exeext'
19743 { (case "(($ac_try" in
19744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19745 *) ac_try_echo
=$ac_try;;
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_try") 2>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_cv_lib_gsm_gsm_create
=yes
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.
$ac_ext >&5
19757 ac_cv_lib_gsm_gsm_create
=no
19760 rm -f core conftest.err conftest.
$ac_objext \
19761 conftest
$ac_exeext conftest.
$ac_ext
19762 LIBS
=$ac_check_lib_save_LIBS
19764 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
19765 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
19766 if test $ac_cv_lib_gsm_gsm_create = yes; then
19768 cat >>confdefs.h
<<_ACEOF
19774 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
19775 if test "x${GSM_DIR}" != "x" ; then
19776 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
19777 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19778 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
19779 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
19780 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 ac_res
=`eval echo '${'$as_ac_Header'}'`
19784 { echo "$as_me:$LINENO: result: $ac_res" >&5
19785 echo "${ECHO_T}$ac_res" >&6; }
19787 # Is the header compilable?
19788 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
19789 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
19790 cat >conftest.
$ac_ext <<_ACEOF
19793 cat confdefs.h
>>conftest.
$ac_ext
19794 cat >>conftest.
$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 $ac_includes_default
19797 #include <${GSM_DIR}/include/gsm.h>
19799 rm -f conftest.
$ac_objext
19800 if { (ac_try
="$ac_compile"
19801 case "(($ac_try" in
19802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_compile") 2>conftest.er1
19808 grep -v '^ *+' conftest.er1 >conftest.err
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19814 { (case "(($ac_try" in
19815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19816 *) ac_try_echo
=$ac_try;;
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_try") 2>&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try
='test -s conftest.$ac_objext'
19824 { (case "(($ac_try" in
19825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_try") 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 ac_header_compiler=yes
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19838 ac_header_compiler=no
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19843 echo "${ECHO_T}$ac_header_compiler" >&6; }
19845 # Is the header present?
19846 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
19847 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
19848 cat >conftest.$ac_ext <<_ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 #include <${GSM_DIR}/include/gsm.h>
19856 if { (ac_try="$ac_cpp conftest.$ac_ext"
19857 case "(($ac_try" in
19858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19859 *) ac_try_echo
=$ac_try;;
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19864 grep -v '^ *+' conftest.er1
>conftest.err
19866 cat conftest.err
>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } >/dev
/null
; then
19869 if test -s conftest.err
; then
19870 ac_cpp_err
=$ac_c_preproc_warn_flag
19871 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19878 if test -z "$ac_cpp_err"; then
19879 ac_header_preproc
=yes
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.
$ac_ext >&5
19884 ac_header_preproc
=no
19887 rm -f conftest.err conftest.
$ac_ext
19888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19889 echo "${ECHO_T}$ac_header_preproc" >&6; }
19891 # So? What about this header?
19892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19894 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
19895 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
19897 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
19898 ac_header_preproc
=yes
19901 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
19902 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
19903 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
19904 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
19905 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
19906 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
19907 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
19908 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
19909 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
19910 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
19911 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
19912 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
19914 ## ------------------------------- ##
19915 ## Report this to www.asterisk.org ##
19916 ## ------------------------------- ##
19918 ) |
sed "s/^/$as_me: WARNING: /" >&2
19921 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
19922 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
19923 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 eval "$as_ac_Header=\$ac_header_preproc"
19928 ac_res
=`eval echo '${'$as_ac_Header'}'`
19929 { echo "$as_me:$LINENO: result: $ac_res" >&5
19930 echo "${ECHO_T}$ac_res" >&6; }
19933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19940 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
19941 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
19943 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
19944 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 ac_res
=`eval echo '${'$as_ac_Header'}'`
19948 { echo "$as_me:$LINENO: result: $ac_res" >&5
19949 echo "${ECHO_T}$ac_res" >&6; }
19951 # Is the header compilable?
19952 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
19953 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
19954 cat >conftest.
$ac_ext <<_ACEOF
19957 cat confdefs.h
>>conftest.
$ac_ext
19958 cat >>conftest.
$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960 $ac_includes_default
19961 #include <${GSM_DIR}/include/gsm/gsm.h>
19963 rm -f conftest.
$ac_objext
19964 if { (ac_try
="$ac_compile"
19965 case "(($ac_try" in
19966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_compile") 2>conftest.er1
19972 grep -v '^ *+' conftest.er1 >conftest.err
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19978 { (case "(($ac_try" in
19979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19980 *) ac_try_echo
=$ac_try;;
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_try") 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; } &&
19987 { ac_try
='test -s conftest.$ac_objext'
19988 { (case "(($ac_try" in
19989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_try") 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; }; then
19997 ac_header_compiler=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_header_compiler=no
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20007 echo "${ECHO_T}$ac_header_compiler" >&6; }
20009 # Is the header present?
20010 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
20011 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
20012 cat >conftest.$ac_ext <<_ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20018 #include <${GSM_DIR}/include/gsm/gsm.h>
20020 if { (ac_try="$ac_cpp conftest.$ac_ext"
20021 case "(($ac_try" in
20022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20023 *) ac_try_echo
=$ac_try;;
20025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20028 grep -v '^ *+' conftest.er1
>conftest.err
20030 cat conftest.err
>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } >/dev
/null
; then
20033 if test -s conftest.err
; then
20034 ac_cpp_err
=$ac_c_preproc_warn_flag
20035 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20042 if test -z "$ac_cpp_err"; then
20043 ac_header_preproc
=yes
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.
$ac_ext >&5
20048 ac_header_preproc
=no
20051 rm -f conftest.err conftest.
$ac_ext
20052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20053 echo "${ECHO_T}$ac_header_preproc" >&6; }
20055 # So? What about this header?
20056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20058 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20059 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20060 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
20061 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
20062 ac_header_preproc
=yes
20065 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
20066 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
20067 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
20068 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
20070 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
20072 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
20074 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
20076 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
20078 ## ------------------------------- ##
20079 ## Report this to www.asterisk.org ##
20080 ## ------------------------------- ##
20082 ) |
sed "s/^/$as_me: WARNING: /" >&2
20085 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
20086 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
20087 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 eval "$as_ac_Header=\$ac_header_preproc"
20092 ac_res
=`eval echo '${'$as_ac_Header'}'`
20093 { echo "$as_me:$LINENO: result: $ac_res" >&5
20094 echo "${ECHO_T}$ac_res" >&6; }
20097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20098 GSM_GSM_HEADER_FOUND
=1
20100 GSM_GSM_HEADER_FOUND
=0
20105 if test "${ac_cv_header_gsm_h+set}" = set; then
20106 { echo "$as_me:$LINENO: checking for gsm.h" >&5
20107 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
20108 if test "${ac_cv_header_gsm_h+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
20112 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
20114 # Is the header compilable?
20115 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
20116 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
20117 cat >conftest.
$ac_ext <<_ACEOF
20120 cat confdefs.h
>>conftest.
$ac_ext
20121 cat >>conftest.
$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 $ac_includes_default
20126 rm -f conftest.
$ac_objext
20127 if { (ac_try
="$ac_compile"
20128 case "(($ac_try" in
20129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133 (eval "$ac_compile") 2>conftest.er1
20135 grep -v '^ *+' conftest.er1 >conftest.err
20137 cat conftest.err >&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } &&
20140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20141 { (case "(($ac_try" in
20142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20143 *) ac_try_echo
=$ac_try;;
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_try") 2>&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; } &&
20150 { ac_try
='test -s conftest.$ac_objext'
20151 { (case "(($ac_try" in
20152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_try") 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20160 ac_header_compiler=yes
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ac_header_compiler=no
20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20170 echo "${ECHO_T}$ac_header_compiler" >&6; }
20172 # Is the header present?
20173 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
20174 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
20175 cat >conftest.$ac_ext <<_ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20183 if { (ac_try="$ac_cpp conftest.$ac_ext"
20184 case "(($ac_try" in
20185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20186 *) ac_try_echo
=$ac_try;;
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20191 grep -v '^ *+' conftest.er1
>conftest.err
20193 cat conftest.err
>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } >/dev
/null
; then
20196 if test -s conftest.err
; then
20197 ac_cpp_err
=$ac_c_preproc_warn_flag
20198 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20205 if test -z "$ac_cpp_err"; then
20206 ac_header_preproc
=yes
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.
$ac_ext >&5
20211 ac_header_preproc
=no
20214 rm -f conftest.err conftest.
$ac_ext
20215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20216 echo "${ECHO_T}$ac_header_preproc" >&6; }
20218 # So? What about this header?
20219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20221 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20222 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
20224 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
20225 ac_header_preproc
=yes
20228 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
20229 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
20230 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
20231 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
20232 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
20233 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
20235 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
20237 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
20239 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
20241 ## ------------------------------- ##
20242 ## Report this to www.asterisk.org ##
20243 ## ------------------------------- ##
20245 ) |
sed "s/^/$as_me: WARNING: /" >&2
20248 { echo "$as_me:$LINENO: checking for gsm.h" >&5
20249 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
20250 if test "${ac_cv_header_gsm_h+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20253 ac_cv_header_gsm_h
=$ac_header_preproc
20255 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
20256 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
20259 if test $ac_cv_header_gsm_h = yes; then
20266 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
20267 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
20268 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
20269 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
20273 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
20275 # Is the header compilable?
20276 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
20277 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
20278 cat >conftest.
$ac_ext <<_ACEOF
20281 cat confdefs.h
>>conftest.
$ac_ext
20282 cat >>conftest.
$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 $ac_includes_default
20285 #include <gsm/gsm.h>
20287 rm -f conftest.
$ac_objext
20288 if { (ac_try
="$ac_compile"
20289 case "(($ac_try" in
20290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_compile") 2>conftest.er1
20296 grep -v '^ *+' conftest.er1 >conftest.err
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20302 { (case "(($ac_try" in
20303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20304 *) ac_try_echo
=$ac_try;;
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_try") 2>&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; } &&
20311 { ac_try
='test -s conftest.$ac_objext'
20312 { (case "(($ac_try" in
20313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_try") 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; }; then
20321 ac_header_compiler=yes
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20326 ac_header_compiler=no
20329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20331 echo "${ECHO_T}$ac_header_compiler" >&6; }
20333 # Is the header present?
20334 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
20335 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
20336 cat >conftest.$ac_ext <<_ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20342 #include <gsm/gsm.h>
20344 if { (ac_try="$ac_cpp conftest.$ac_ext"
20345 case "(($ac_try" in
20346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20347 *) ac_try_echo
=$ac_try;;
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20352 grep -v '^ *+' conftest.er1
>conftest.err
20354 cat conftest.err
>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } >/dev
/null
; then
20357 if test -s conftest.err
; then
20358 ac_cpp_err
=$ac_c_preproc_warn_flag
20359 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20366 if test -z "$ac_cpp_err"; then
20367 ac_header_preproc
=yes
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.
$ac_ext >&5
20372 ac_header_preproc
=no
20375 rm -f conftest.err conftest.
$ac_ext
20376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20377 echo "${ECHO_T}$ac_header_preproc" >&6; }
20379 # So? What about this header?
20380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20382 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20383 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20384 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
20385 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
20386 ac_header_preproc
=yes
20389 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
20390 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
20391 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
20392 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
20393 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
20394 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
20395 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
20396 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
20398 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
20400 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
20402 ## ------------------------------- ##
20403 ## Report this to www.asterisk.org ##
20404 ## ------------------------------- ##
20406 ) |
sed "s/^/$as_me: WARNING: /" >&2
20409 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
20410 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
20411 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 ac_cv_header_gsm_gsm_h
=$ac_header_preproc
20416 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
20417 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
20420 if test $ac_cv_header_gsm_gsm_h = yes; then
20421 GSM_GSM_HEADER_FOUND
=1
20423 GSM_GSM_HEADER_FOUND
=0
20428 if test "${GSM_HEADER_FOUND}" = "0" ; then
20429 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
20430 if test "x${GSM_MANDATORY}" = "xyes" ; then
20431 { echo "$as_me:$LINENO: ***" >&5
20432 echo "$as_me: ***" >&6;}
20433 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
20434 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
20435 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
20436 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
20437 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
20438 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
20444 if test "${GSM_HEADER_FOUND}" = "1" ; then
20446 cat >>confdefs.h
<<_ACEOF
20447 #define HAVE_GSM_HEADER 1
20452 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
20454 cat >>confdefs.h
<<_ACEOF
20455 #define HAVE_GSM_GSM_HEADER 1
20461 if test "${GSM_OK}" = "1" ; then
20463 if test "x${GSM_DIR}" != "x"; then
20464 GSM_LIB
="${gsmlibdir} ${GSM_LIB}"
20465 GSM_INCLUDE
="-I${GSM_DIR}/include"
20472 if test "${GSM_INTERNAL}" = "yes"; then
20475 cat >>confdefs.h
<<_ACEOF
20476 #define HAVE_GSM_HEADER 1
20483 if test "${USE_IKSEMEL}" != "no"; then
20485 if test "x${IKSEMEL_DIR}" != "x"; then
20486 if test -d ${IKSEMEL_DIR}/lib
; then
20487 pbxlibdir
="-L${IKSEMEL_DIR}/lib"
20489 pbxlibdir
="-L${IKSEMEL_DIR}"
20492 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
20493 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
20494 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 ac_check_lib_save_LIBS
=$LIBS
20498 LIBS
="-liksemel ${pbxlibdir} $LIBS"
20499 cat >conftest.
$ac_ext <<_ACEOF
20502 cat confdefs.h
>>conftest.
$ac_ext
20503 cat >>conftest.
$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20506 /* Override any GCC internal prototype to avoid an error.
20507 Use char because int might match the return type of a GCC
20508 builtin and then its argument prototype would still apply. */
20512 char iks_start_sasl ();
20516 return iks_start_sasl ();
20521 rm -f conftest.
$ac_objext conftest
$ac_exeext
20522 if { (ac_try
="$ac_link"
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_link") 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); } &&
20535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20536 { (case "(($ac_try" in
20537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20538 *) ac_try_echo
=$ac_try;;
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_try") 2>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try
='test -s conftest$ac_exeext'
20546 { (case "(($ac_try" in
20547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551 (eval "$ac_try") 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_lib_iksemel_iks_start_sasl=yes
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_cv_lib_iksemel_iks_start_sasl=no
20563 rm -f core conftest.err conftest.$ac_objext \
20564 conftest$ac_exeext conftest.$ac_ext
20565 LIBS=$ac_check_lib_save_LIBS
20567 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
20568 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
20569 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
20570 AST_IKSEMEL_FOUND=yes
20572 AST_IKSEMEL_FOUND=no
20576 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
20577 IKSEMEL_LIB="-liksemel "
20578 IKSEMEL_HEADER_FOUND="1"
20579 if test "x${IKSEMEL_DIR}" != "x"; then
20580 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
20581 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
20582 saved_cppflags="${CPPFLAGS}"
20583 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
20584 if test "xiksemel.h" != "x" ; then
20585 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" |
$as_tr_sh`
20586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20587 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
20588 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
20589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 ac_res=`eval echo '${'$as_ac_Header'}'`
20593 { echo "$as_me:$LINENO: result: $ac_res" >&5
20594 echo "${ECHO_T}$ac_res" >&6; }
20596 # Is the header compilable?
20597 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
20598 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
20599 cat >conftest.$ac_ext <<_ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20606 #include <${IKSEMEL_DIR}/include/iksemel.h>
20608 rm -f conftest.$ac_objext
20609 if { (ac_try="$ac_compile"
20610 case "(($ac_try" in
20611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20612 *) ac_try_echo
=$ac_try;;
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_compile") 2>conftest.er1
20617 grep -v '^ *+' conftest.er1
>conftest.err
20619 cat conftest.err
>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } &&
20622 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20623 { (case "(($ac_try" in
20624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_try") 2>&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; } &&
20632 { ac_try='test -s conftest.$ac_objext'
20633 { (case "(($ac_try" in
20634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20635 *) ac_try_echo
=$ac_try;;
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_try") 2>&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; }; then
20642 ac_header_compiler
=yes
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.
$ac_ext >&5
20647 ac_header_compiler
=no
20650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20652 echo "${ECHO_T}$ac_header_compiler" >&6; }
20654 # Is the header present?
20655 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
20656 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
20657 cat >conftest.
$ac_ext <<_ACEOF
20660 cat confdefs.h
>>conftest.
$ac_ext
20661 cat >>conftest.
$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20663 #include <${IKSEMEL_DIR}/include/iksemel.h>
20665 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20666 case "(($ac_try" in
20667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20673 grep -v '^ *+' conftest.er1 >conftest.err
20675 cat conftest.err >&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } >/dev/null; then
20678 if test -s conftest.err; then
20679 ac_cpp_err=$ac_c_preproc_warn_flag
20680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20687 if test -z "$ac_cpp_err"; then
20688 ac_header_preproc=yes
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693 ac_header_preproc=no
20696 rm -f conftest.err conftest.$ac_ext
20697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20698 echo "${ECHO_T}$ac_header_preproc" >&6; }
20700 # So? What about this header?
20701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20703 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
20704 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
20706 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
20707 ac_header_preproc=yes
20710 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
20711 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
20712 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
20713 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
20715 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
20717 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
20718 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
20719 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
20721 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
20723 ## ------------------------------- ##
20724 ## Report this to www.asterisk.org ##
20725 ## ------------------------------- ##
20727 ) | sed "s/^/$as_me: WARNING: /" >&2
20730 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
20731 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
20732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20735 eval "$as_ac_Header=\$ac_header_preproc"
20737 ac_res=`eval echo '${'$as_ac_Header'}'`
20738 { echo "$as_me:$LINENO: result: $ac_res" >&5
20739 echo "${ECHO_T}$ac_res" >&6; }
20742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20743 IKSEMEL_HEADER_FOUND=1
20745 IKSEMEL_HEADER_FOUND=0
20750 CPPFLAGS="${saved_cppflags}"
20752 if test "xiksemel.h" != "x" ; then
20753 if test "${ac_cv_header_iksemel_h+set}" = set; then
20754 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
20755 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
20756 if test "${ac_cv_header_iksemel_h+set}" = set; then
20757 echo $ECHO_N "(cached) $ECHO_C" >&6
20759 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
20760 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
20762 # Is the header compilable?
20763 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
20764 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 $ac_includes_default
20772 #include <iksemel.h>
20774 rm -f conftest.$ac_objext
20775 if { (ac_try="$ac_compile"
20776 case "(($ac_try" in
20777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20778 *) ac_try_echo
=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1
>conftest.err
20785 cat conftest.err
>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20789 { (case "(($ac_try" in
20790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_try") 2>&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest.$ac_objext'
20799 { (case "(($ac_try" in
20800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20801 *) ac_try_echo
=$ac_try;;
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20808 ac_header_compiler
=yes
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.
$ac_ext >&5
20813 ac_header_compiler
=no
20816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20818 echo "${ECHO_T}$ac_header_compiler" >&6; }
20820 # Is the header present?
20821 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
20822 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
20823 cat >conftest.
$ac_ext <<_ACEOF
20826 cat confdefs.h
>>conftest.
$ac_ext
20827 cat >>conftest.
$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20829 #include <iksemel.h>
20831 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20832 case "(($ac_try" in
20833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20839 grep -v '^ *+' conftest.er1 >conftest.err
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } >/dev/null; then
20844 if test -s conftest.err; then
20845 ac_cpp_err=$ac_c_preproc_warn_flag
20846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20853 if test -z "$ac_cpp_err"; then
20854 ac_header_preproc=yes
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20859 ac_header_preproc=no
20862 rm -f conftest.err conftest.$ac_ext
20863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20864 echo "${ECHO_T}$ac_header_preproc" >&6; }
20866 # So? What about this header?
20867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20869 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
20870 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20871 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
20872 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
20873 ac_header_preproc=yes
20876 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
20877 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
20878 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
20879 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
20880 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
20881 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
20882 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
20883 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
20885 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
20887 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
20889 ## ------------------------------- ##
20890 ## Report this to www.asterisk.org ##
20891 ## ------------------------------- ##
20893 ) | sed "s/^/$as_me: WARNING: /" >&2
20896 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
20897 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
20898 if test "${ac_cv_header_iksemel_h+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20901 ac_cv_header_iksemel_h=$ac_header_preproc
20903 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
20904 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
20907 if test $ac_cv_header_iksemel_h = yes; then
20908 IKSEMEL_HEADER_FOUND=1
20910 IKSEMEL_HEADER_FOUND=0
20916 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
20917 if test -n "${IKSEMEL_MANDATORY}" ;
20919 { echo "$as_me:$LINENO: ***" >&5
20920 echo "$as_me: ***" >&6;}
20921 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
20922 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
20923 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
20924 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
20925 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
20926 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
20935 cat >>confdefs.h <<_ACEOF
20936 #define HAVE_IKSEMEL 1
20940 elif test -n "${IKSEMEL_MANDATORY}";
20942 { echo "$as_me:$LINENO: ***" >&5
20943 echo "$as_me: ***" >&6;}
20944 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
20945 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
20946 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20947 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20948 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
20949 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
20955 if test "${PBX_IKSEMEL}" = 1; then
20957 if test "${USE_GNUTLS}" != "no"; then
20959 if test "x${GNUTLS_DIR}" != "x"; then
20960 if test -d ${GNUTLS_DIR}/lib; then
20961 pbxlibdir="-L${GNUTLS_DIR}/lib"
20963 pbxlibdir="-L${GNUTLS_DIR}"
20966 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
20967 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
20968 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20971 ac_check_lib_save_LIBS=$LIBS
20972 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
20973 cat >conftest.$ac_ext <<_ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h. */
20980 /* Override any GCC internal prototype to avoid an error.
20981 Use char because int might match the return type of a GCC
20982 builtin and then its argument prototype would still apply. */
20986 char gnutls_bye ();
20990 return gnutls_bye ();
20995 rm -f conftest.$ac_objext conftest$ac_exeext
20996 if { (ac_try="$ac_link"
20997 case "(($ac_try" in
20998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20999 *) ac_try_echo
=$ac_try;;
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_link") 2>conftest.er1
21004 grep -v '^ *+' conftest.er1
>conftest.err
21006 cat conftest.err
>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21010 { (case "(($ac_try" in
21011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_try") 2>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; } &&
21019 { ac_try='test -s conftest$ac_exeext'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21022 *) ac_try_echo
=$ac_try;;
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ac_cv_lib_gnutls_gnutls_bye
=yes
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.
$ac_ext >&5
21034 ac_cv_lib_gnutls_gnutls_bye
=no
21037 rm -f core conftest.err conftest.
$ac_objext \
21038 conftest
$ac_exeext conftest.
$ac_ext
21039 LIBS
=$ac_check_lib_save_LIBS
21041 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
21042 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
21043 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
21044 AST_GNUTLS_FOUND
=yes
21046 AST_GNUTLS_FOUND
=no
21050 if test "${AST_GNUTLS_FOUND}" = "yes"; then
21051 GNUTLS_LIB
="-lgnutls -lz -lgcrypt -lgpg-error"
21052 GNUTLS_HEADER_FOUND
="1"
21053 if test "x${GNUTLS_DIR}" != "x"; then
21054 GNUTLS_LIB
="${pbxlibdir} ${GNUTLS_LIB}"
21055 GNUTLS_INCLUDE
="-I${GNUTLS_DIR}/include"
21056 saved_cppflags
="${CPPFLAGS}"
21057 CPPFLAGS
="${CPPFLAGS} -I${GNUTLS_DIR}/include"
21058 if test "xgnutls/gnutls.h" != "x" ; then
21059 as_ac_Header
=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
21060 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21061 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
21062 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
21063 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21064 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 ac_res
=`eval echo '${'$as_ac_Header'}'`
21067 { echo "$as_me:$LINENO: result: $ac_res" >&5
21068 echo "${ECHO_T}$ac_res" >&6; }
21070 # Is the header compilable?
21071 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
21072 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
21073 cat >conftest.
$ac_ext <<_ACEOF
21076 cat confdefs.h
>>conftest.
$ac_ext
21077 cat >>conftest.
$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 $ac_includes_default
21080 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
21082 rm -f conftest.
$ac_objext
21083 if { (ac_try
="$ac_compile"
21084 case "(($ac_try" in
21085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_compile") 2>conftest.er1
21091 grep -v '^ *+' conftest.er1 >conftest.err
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21097 { (case "(($ac_try" in
21098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21099 *) ac_try_echo
=$ac_try;;
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_try") 2>&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try
='test -s conftest.$ac_objext'
21107 { (case "(($ac_try" in
21108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_try") 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 ac_header_compiler=yes
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_header_compiler=no
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21126 echo "${ECHO_T}$ac_header_compiler" >&6; }
21128 # Is the header present?
21129 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
21130 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
21139 if { (ac_try="$ac_cpp conftest.$ac_ext"
21140 case "(($ac_try" in
21141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21142 *) ac_try_echo
=$ac_try;;
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21147 grep -v '^ *+' conftest.er1
>conftest.err
21149 cat conftest.err
>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } >/dev
/null
; then
21152 if test -s conftest.err
; then
21153 ac_cpp_err
=$ac_c_preproc_warn_flag
21154 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21161 if test -z "$ac_cpp_err"; then
21162 ac_header_preproc
=yes
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.
$ac_ext >&5
21167 ac_header_preproc
=no
21170 rm -f conftest.err conftest.
$ac_ext
21171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21172 echo "${ECHO_T}$ac_header_preproc" >&6; }
21174 # So? What about this header?
21175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21177 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
21178 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
21180 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
21181 ac_header_preproc
=yes
21184 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
21185 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
21187 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
21189 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
21191 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
21193 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
21195 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
21197 ## ------------------------------- ##
21198 ## Report this to www.asterisk.org ##
21199 ## ------------------------------- ##
21201 ) |
sed "s/^/$as_me: WARNING: /" >&2
21204 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
21205 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
21206 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21209 eval "$as_ac_Header=\$ac_header_preproc"
21211 ac_res
=`eval echo '${'$as_ac_Header'}'`
21212 { echo "$as_me:$LINENO: result: $ac_res" >&5
21213 echo "${ECHO_T}$ac_res" >&6; }
21216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21217 GNUTLS_HEADER_FOUND
=1
21219 GNUTLS_HEADER_FOUND
=0
21224 CPPFLAGS
="${saved_cppflags}"
21226 if test "xgnutls/gnutls.h" != "x" ; then
21227 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
21228 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
21229 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
21230 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
21231 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
21234 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
21236 # Is the header compilable?
21237 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
21238 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
21239 cat >conftest.
$ac_ext <<_ACEOF
21242 cat confdefs.h
>>conftest.
$ac_ext
21243 cat >>conftest.
$ac_ext <<_ACEOF
21244 /* end confdefs.h. */
21245 $ac_includes_default
21246 #include <gnutls/gnutls.h>
21248 rm -f conftest.
$ac_objext
21249 if { (ac_try
="$ac_compile"
21250 case "(($ac_try" in
21251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_compile") 2>conftest.er1
21257 grep -v '^ *+' conftest.er1 >conftest.err
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } &&
21262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21263 { (case "(($ac_try" in
21264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21265 *) ac_try_echo
=$ac_try;;
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_try") 2>&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try
='test -s conftest.$ac_objext'
21273 { (case "(($ac_try" in
21274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_try") 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 ac_header_compiler=yes
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 ac_header_compiler=no
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21292 echo "${ECHO_T}$ac_header_compiler" >&6; }
21294 # Is the header present?
21295 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
21296 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
21297 cat >conftest.$ac_ext <<_ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 #include <gnutls/gnutls.h>
21305 if { (ac_try="$ac_cpp conftest.$ac_ext"
21306 case "(($ac_try" in
21307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21308 *) ac_try_echo
=$ac_try;;
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21313 grep -v '^ *+' conftest.er1
>conftest.err
21315 cat conftest.err
>&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } >/dev
/null
; then
21318 if test -s conftest.err
; then
21319 ac_cpp_err
=$ac_c_preproc_warn_flag
21320 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21327 if test -z "$ac_cpp_err"; then
21328 ac_header_preproc
=yes
21330 echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.
$ac_ext >&5
21333 ac_header_preproc
=no
21336 rm -f conftest.err conftest.
$ac_ext
21337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21338 echo "${ECHO_T}$ac_header_preproc" >&6; }
21340 # So? What about this header?
21341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21343 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
21344 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
21346 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
21347 ac_header_preproc
=yes
21350 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
21351 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
21353 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
21355 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
21357 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
21359 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
21360 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
21361 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
21363 ## ------------------------------- ##
21364 ## Report this to www.asterisk.org ##
21365 ## ------------------------------- ##
21367 ) |
sed "s/^/$as_me: WARNING: /" >&2
21370 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
21371 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
21372 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21375 ac_cv_header_gnutls_gnutls_h
=$ac_header_preproc
21377 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
21378 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
21381 if test $ac_cv_header_gnutls_gnutls_h = yes; then
21382 GNUTLS_HEADER_FOUND
=1
21384 GNUTLS_HEADER_FOUND
=0
21390 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
21391 if test -n "${GNUTLS_MANDATORY}" ;
21393 { echo "$as_me:$LINENO: ***" >&5
21394 echo "$as_me: ***" >&6;}
21395 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
21396 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
21397 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
21398 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
21399 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
21400 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
21409 cat >>confdefs.h
<<_ACEOF
21410 #define HAVE_GNUTLS 1
21414 elif test -n "${GNUTLS_MANDATORY}";
21416 { echo "$as_me:$LINENO: ***" >&5
21417 echo "$as_me: ***" >&6;}
21418 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
21419 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
21420 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21421 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21422 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
21423 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
21430 if test "${USE_IMAP_TK}" != "no"; then
21431 if test "${IMAP_TK_DIR}" = ""; then
21432 IMAP_TK_DIR
=`pwd`"/../imap-2004g"
21433 if test -n "${IMAP_TK_MANDATORY}"; then
21434 { echo "$as_me:$LINENO: The --with-imap option does not search your system for installed" >&5
21435 echo "$as_me: The --with-imap option does not search your system for installed" >&6;}
21436 { echo "$as_me:$LINENO: c-client library/header files. Since you did not provide a path" >&5
21437 echo "$as_me: c-client library/header files. Since you did not provide a path" >&6;}
21438 { echo "$as_me:$LINENO: the configure script will assume you have placed built the c-client" >&5
21439 echo "$as_me: the configure script will assume you have placed built the c-client" >&6;}
21440 { echo "$as_me:$LINENO: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&5
21441 echo "$as_me: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&6;}
21444 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
21445 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
21446 saved_cppflags
="${CPPFLAGS}"
21447 saved_libs
="${LIBS}"
21448 if test -f ${IMAP_TK_DIR}/c-client
/LDFLAGS
; then
21449 imap_ldflags
=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
21451 CPPFLAGS
="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
21452 LIBS
="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
21453 cat >conftest.$ac_ext <<_ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 #include "c-client.h
"
21460 void mm_searched (MAILSTREAM *stream,unsigned long number)
21463 void mm_exists (MAILSTREAM *stream,unsigned long number)
21466 void mm_expunged (MAILSTREAM *stream,unsigned long number)
21469 void mm_flags (MAILSTREAM *stream,unsigned long number)
21472 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
21475 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
21478 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
21481 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
21484 void mm_log (char *string,long errflg)
21487 void mm_dlog (char *string)
21490 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
21493 void mm_critical (MAILSTREAM *stream)
21496 void mm_nocritical (MAILSTREAM *stream)
21499 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
21502 void mm_fatal (char *string)
21509 MAILSTREAM *foo = mail_open(NULL, "", 0);
21516 rm -f conftest.$ac_objext conftest$ac_exeext
21517 if { (ac_try="$ac_link"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21523 (eval "$ac_link") 2>conftest.er1
21525 grep -v '^ *+' conftest.er1 >conftest.err
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21529 (exit $ac_status); } &&
21530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21531 { (case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_try") 2>&5
21538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try='test -s conftest$ac_exeext'
21541 { (case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_try") 2>&5
21548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21549 (exit $ac_status); }; }; then
21550 ac_cv_imap_tk="yes"
21552 echo "$as_me: failed program was
:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21559 rm -f core conftest.err conftest.$ac_objext \
21560 conftest$ac_exeext conftest.$ac_ext
21561 if test "${ac_cv_imap_tk}" = "yes"; then
21562 cat >conftest.$ac_ext <<_ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 #include "c-client.h
"
21569 void mm_searched (MAILSTREAM *stream,unsigned long number)
21572 void mm_exists (MAILSTREAM *stream,unsigned long number)
21575 void mm_expunged (MAILSTREAM *stream,unsigned long number)
21578 void mm_flags (MAILSTREAM *stream,unsigned long number)
21581 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
21584 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
21587 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
21590 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
21593 void mm_log (char *string,long errflg)
21596 void mm_dlog (char *string)
21599 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
21602 void mm_critical (MAILSTREAM *stream)
21605 void mm_nocritical (MAILSTREAM *stream)
21608 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
21611 void mm_fatal (char *string)
21618 long check = mail_expunge_full(NULL, "", 0);
21625 rm -f conftest.$ac_objext conftest$ac_exeext
21626 if { (ac_try="$ac_link"
21627 case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_link") 2>conftest.er1
21634 grep -v '^ *+' conftest.er1 >conftest.err
21636 cat conftest.err >&5
21637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21638 (exit $ac_status); } &&
21639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21640 { (case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_try") 2>&5
21647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21648 (exit $ac_status); }; } &&
21649 { ac_try='test -s conftest$ac_exeext'
21650 { (case "(($ac_try" in
21651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652 *) ac_try_echo=$ac_try;;
21654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21655 (eval "$ac_try") 2>&5
21657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21658 (exit $ac_status); }; }; then
21659 ac_cv_imap_tk2006="yes"
21661 echo "$as_me: failed program was
:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 ac_cv_imap_tk2006="no
"
21668 rm -f core conftest.err conftest.$ac_objext \
21669 conftest$ac_exeext conftest.$ac_ext
21671 CPPFLAGS="${saved_cppflags}"
21672 LIBS="${saved_libs}"
21673 if test "${ac_cv_imap_tk}" = "yes"; then
21674 { echo "$as_me:$LINENO: result
: yes" >&5
21675 echo "${ECHO_T}yes" >&6; }
21676 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client
/c-client.a
"`echo ${imap_ldflags}`
21677 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client
"
21680 cat >>confdefs.h <<\_ACEOF
21681 #define HAVE_IMAP_TK 1
21684 if test "${ac_cv_imap_tk2006}" = "yes"; then
21686 cat >>confdefs.h <<\_ACEOF
21687 #define HAVE_IMAP_TK2006 1
21691 elif test -n "${IMAP_TK_MANDATORY}"; then
21692 { echo "$as_me:$LINENO: result
: no
" >&5
21693 echo "${ECHO_T}no
" >&6; }
21694 { echo "$as_me:$LINENO: ***" >&5
21695 echo "$as_me: ***" >&6;}
21696 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken.
" >&5
21697 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken.
" >&6;}
21698 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
21699 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
21700 { echo "$as_me:$LINENO: *** including
--without-imap.
" >&5
21701 echo "$as_me: *** including
--without-imap.
" >&6;}
21704 { echo "$as_me:$LINENO: result
: no
" >&5
21705 echo "${ECHO_T}no
" >&6; }
21709 # Needed by unixodbc
21711 if test "${USE_LTDL}" != "no
"; then
21713 if test "x
${LTDL_DIR}" != "x
"; then
21714 if test -d ${LTDL_DIR}/lib; then
21715 pbxlibdir="-L${LTDL_DIR}/lib
"
21717 pbxlibdir="-L${LTDL_DIR}"
21720 { echo "$as_me:$LINENO: checking
for lt_dlinit
in -lltdl" >&5
21721 echo $ECHO_N "checking
for lt_dlinit
in -lltdl...
$ECHO_C" >&6; }
21722 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
21723 echo $ECHO_N "(cached
) $ECHO_C" >&6
21725 ac_check_lib_save_LIBS=$LIBS
21726 LIBS="-lltdl ${pbxlibdir} $LIBS"
21727 cat >conftest.$ac_ext <<_ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h. */
21734 /* Override any GCC internal prototype to avoid an error.
21735 Use char because int might match the return type of a GCC
21736 builtin and then its argument prototype would still apply. */
21744 return lt_dlinit ();
21749 rm -f conftest.$ac_objext conftest$ac_exeext
21750 if { (ac_try="$ac_link"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_link") 2>conftest.er1
21758 grep -v '^ *+' conftest.er1 >conftest.err
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21762 (exit $ac_status); } &&
21763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21764 { (case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_try") 2>&5
21771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21772 (exit $ac_status); }; } &&
21773 { ac_try='test -s conftest$ac_exeext'
21774 { (case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_try") 2>&5
21781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 ac_cv_lib_ltdl_lt_dlinit=yes
21785 echo "$as_me: failed program was
:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21788 ac_cv_lib_ltdl_lt_dlinit=no
21791 rm -f core conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
21793 LIBS=$ac_check_lib_save_LIBS
21795 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ltdl_lt_dlinit" >&5
21796 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
21797 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
21804 if test "${AST_LTDL_FOUND}" = "yes"; then
21806 LTDL_HEADER_FOUND="1"
21807 if test "x
${LTDL_DIR}" != "x
"; then
21808 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
21809 LTDL_INCLUDE="-I${LTDL_DIR}/include
"
21810 saved_cppflags="${CPPFLAGS}"
21811 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include
"
21812 if test "xltdl.h
" != "x
" ; then
21813 as_ac_Header=`echo "ac_cv_header_
${LTDL_DIR}/include
/ltdl.h
" | $as_tr_sh`
21814 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21815 { echo "$as_me:$LINENO: checking
for ${LTDL_DIR}/include
/ltdl.h
" >&5
21816 echo $ECHO_N "checking
for ${LTDL_DIR}/include
/ltdl.h...
$ECHO_C" >&6; }
21817 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21818 echo $ECHO_N "(cached
) $ECHO_C" >&6
21820 ac_res=`eval echo '${'$as_ac_Header'}'`
21821 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21822 echo "${ECHO_T}$ac_res" >&6; }
21824 # Is the header compilable?
21825 { echo "$as_me:$LINENO: checking
${LTDL_DIR}/include
/ltdl.h usability
" >&5
21826 echo $ECHO_N "checking
${LTDL_DIR}/include
/ltdl.h usability...
$ECHO_C" >&6; }
21827 cat >conftest.$ac_ext <<_ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 $ac_includes_default
21834 #include <${LTDL_DIR}/include/ltdl.h>
21836 rm -f conftest.$ac_objext
21837 if { (ac_try="$ac_compile"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_compile") 2>conftest.er1
21845 grep -v '^ *+' conftest.er1 >conftest.err
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21849 (exit $ac_status); } &&
21850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21851 { (case "(($ac_try" in
21852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21853 *) ac_try_echo=$ac_try;;
21855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21856 (eval "$ac_try") 2>&5
21858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21859 (exit $ac_status); }; } &&
21860 { ac_try='test -s conftest.$ac_objext'
21861 { (case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_try") 2>&5
21868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21869 (exit $ac_status); }; }; then
21870 ac_header_compiler=yes
21872 echo "$as_me: failed program was
:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21875 ac_header_compiler=no
21878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21879 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21880 echo "${ECHO_T}$ac_header_compiler" >&6; }
21882 # Is the header present?
21883 { echo "$as_me:$LINENO: checking
${LTDL_DIR}/include
/ltdl.h presence
" >&5
21884 echo $ECHO_N "checking
${LTDL_DIR}/include
/ltdl.h presence...
$ECHO_C" >&6; }
21885 cat >conftest.$ac_ext <<_ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h. */
21891 #include <${LTDL_DIR}/include/ltdl.h>
21893 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21894 case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21901 grep -v '^ *+' conftest.er1 >conftest.err
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21905 (exit $ac_status); } >/dev/null; then
21906 if test -s conftest.err; then
21907 ac_cpp_err=$ac_c_preproc_warn_flag
21908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21915 if test -z "$ac_cpp_err"; then
21916 ac_header_preproc=yes
21918 echo "$as_me: failed program was
:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21921 ac_header_preproc=no
21924 rm -f conftest.err conftest.$ac_ext
21925 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21926 echo "${ECHO_T}$ac_header_preproc" >&6; }
21928 # So? What about this header?
21929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21931 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21932 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21933 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: proceeding with the compiler
's result" >&5
21934 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result
" >&2;}
21935 ac_header_preproc=yes
21938 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: present but cannot be compiled
" >&5
21939 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: present but cannot be compiled
" >&2;}
21940 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: check
for missing prerequisite headers?
" >&5
21941 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: check
for missing prerequisite headers?
" >&2;}
21942 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: see the Autoconf documentation
" >&5
21943 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: see the Autoconf documentation
" >&2;}
21944 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21945 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21946 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: proceeding with the preprocessor
's result" >&5
21947 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result
" >&2;}
21948 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: in the future
, the compiler will take precedence
" >&5
21949 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: in the future
, the compiler will take precedence
" >&2;}
21951 ## ------------------------------- ##
21952 ## Report this to www.asterisk.org ##
21953 ## ------------------------------- ##
21955 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
21958 { echo "$as_me:$LINENO: checking
for ${LTDL_DIR}/include
/ltdl.h
" >&5
21959 echo $ECHO_N "checking
for ${LTDL_DIR}/include
/ltdl.h...
$ECHO_C" >&6; }
21960 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21961 echo $ECHO_N "(cached
) $ECHO_C" >&6
21963 eval "$as_ac_Header=\
$ac_header_preproc"
21965 ac_res=`eval echo '${'$as_ac_Header'}'`
21966 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21967 echo "${ECHO_T}$ac_res" >&6; }
21970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21971 LTDL_HEADER_FOUND=1
21973 LTDL_HEADER_FOUND=0
21978 CPPFLAGS="${saved_cppflags}"
21980 if test "xltdl.h
" != "x
" ; then
21981 if test "${ac_cv_header_ltdl_h+set}" = set; then
21982 { echo "$as_me:$LINENO: checking
for ltdl.h
" >&5
21983 echo $ECHO_N "checking
for ltdl.h...
$ECHO_C" >&6; }
21984 if test "${ac_cv_header_ltdl_h+set}" = set; then
21985 echo $ECHO_N "(cached
) $ECHO_C" >&6
21987 { echo "$as_me:$LINENO: result
: $ac_cv_header_ltdl_h" >&5
21988 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
21990 # Is the header compilable?
21991 { echo "$as_me:$LINENO: checking ltdl.h usability
" >&5
21992 echo $ECHO_N "checking ltdl.h usability...
$ECHO_C" >&6; }
21993 cat >conftest.$ac_ext <<_ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 $ac_includes_default
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
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_compile") 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); } &&
22016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22017 { (case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_try") 2>&5
22024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest.$ac_objext'
22027 { (case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_try") 2>&5
22034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22035 (exit $ac_status); }; }; then
22036 ac_header_compiler=yes
22038 echo "$as_me: failed program was
:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ac_header_compiler=no
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22046 echo "${ECHO_T}$ac_header_compiler" >&6; }
22048 # Is the header present?
22049 { echo "$as_me:$LINENO: checking ltdl.h presence
" >&5
22050 echo $ECHO_N "checking ltdl.h presence...
$ECHO_C" >&6; }
22051 cat >conftest.$ac_ext <<_ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22059 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22067 grep -v '^ *+' conftest.er1 >conftest.err
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22071 (exit $ac_status); } >/dev/null; then
22072 if test -s conftest.err; then
22073 ac_cpp_err=$ac_c_preproc_warn_flag
22074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22081 if test -z "$ac_cpp_err"; then
22082 ac_header_preproc=yes
22084 echo "$as_me: failed program was
:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_header_preproc=no
22090 rm -f conftest.err conftest.$ac_ext
22091 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22092 echo "${ECHO_T}$ac_header_preproc" >&6; }
22094 # So? What about this header?
22095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22097 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22098 echo "$as_me: WARNING
: ltdl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22099 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: proceeding with the compiler
's result" >&5
22100 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result
" >&2;}
22101 ac_header_preproc=yes
22104 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: present but cannot be compiled
" >&5
22105 echo "$as_me: WARNING
: ltdl.h
: present but cannot be compiled
" >&2;}
22106 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: check
for missing prerequisite headers?
" >&5
22107 echo "$as_me: WARNING
: ltdl.h
: check
for missing prerequisite headers?
" >&2;}
22108 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: see the Autoconf documentation
" >&5
22109 echo "$as_me: WARNING
: ltdl.h
: see the Autoconf documentation
" >&2;}
22110 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22111 echo "$as_me: WARNING
: ltdl.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22112 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: proceeding with the preprocessor
's result" >&5
22113 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result
" >&2;}
22114 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: in the future
, the compiler will take precedence
" >&5
22115 echo "$as_me: WARNING
: ltdl.h
: in the future
, the compiler will take precedence
" >&2;}
22117 ## ------------------------------- ##
22118 ## Report this to www.asterisk.org ##
22119 ## ------------------------------- ##
22121 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22124 { echo "$as_me:$LINENO: checking
for ltdl.h
" >&5
22125 echo $ECHO_N "checking
for ltdl.h...
$ECHO_C" >&6; }
22126 if test "${ac_cv_header_ltdl_h+set}" = set; then
22127 echo $ECHO_N "(cached
) $ECHO_C" >&6
22129 ac_cv_header_ltdl_h=$ac_header_preproc
22131 { echo "$as_me:$LINENO: result
: $ac_cv_header_ltdl_h" >&5
22132 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
22135 if test $ac_cv_header_ltdl_h = yes; then
22136 LTDL_HEADER_FOUND=1
22138 LTDL_HEADER_FOUND=0
22144 if test "x
${LTDL_HEADER_FOUND}" = "x0
" ; then
22145 if test -n "${LTDL_MANDATORY}" ;
22147 { echo "$as_me:$LINENO: ***" >&5
22148 echo "$as_me: ***" >&6;}
22149 { echo "$as_me:$LINENO: *** It appears that you
do not have the ltdl development package installed.
" >&5
22150 echo "$as_me: *** It appears that you
do not have the ltdl development package installed.
" >&6;}
22151 { echo "$as_me:$LINENO: *** Please
install it to include
${LTDL_DESCRIP} support
, or re-run configure
" >&5
22152 echo "$as_me: *** Please
install it to include
${LTDL_DESCRIP} support
, or re-run configure
" >&6;}
22153 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${LTDL_OPTION}" >&5
22154 echo "$as_me: *** without explicitly specifying
--with-${LTDL_OPTION}" >&6;}
22163 cat >>confdefs.h <<_ACEOF
22164 #define HAVE_LTDL 1
22168 elif test -n "${LTDL_MANDATORY}";
22170 { echo "$as_me:$LINENO: ***" >&5
22171 echo "$as_me: ***" >&6;}
22172 { echo "$as_me:$LINENO: *** The
${LTDL_DESCRIP} installation on this system appears to be broken.
" >&5
22173 echo "$as_me: *** The
${LTDL_DESCRIP} installation on this system appears to be broken.
" >&6;}
22174 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22175 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22176 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${LTDL_OPTION}" >&5
22177 echo "$as_me: *** without explicitly specifying
--with-${LTDL_OPTION}" >&6;}
22184 ac_cpp='$CXXCPP $CPPFLAGS'
22185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22190 if test "${USE_KDE}" != "no
"; then
22191 { echo "$as_me:$LINENO: checking
for crashHandler
in -lkdecore" >&5
22192 echo $ECHO_N "checking
for crashHandler
in -lkdecore...
$ECHO_C" >&6; }
22193 saved_libs="${LIBS}"
22194 saved_cppflags="${CPPFLAGS}"
22195 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include
"
22196 if test -d ${KDE_DIR}/lib; then
22197 kdelibdir="${KDE_DIR}/lib
"
22199 kdelibdir="${KDE_DIR}"
22201 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
22204 cat >conftest.$ac_ext <<_ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22210 #include "kcrash.h
"
22214 KCrash::defaultCrashHandler(1);
22220 rm -f conftest.$ac_objext conftest$ac_exeext
22221 if { (ac_try="$ac_link"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22227 (eval "$ac_link") 2>conftest.er1
22229 grep -v '^ *+' conftest.er1 >conftest.err
22231 cat conftest.err >&5
22232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22233 (exit $ac_status); } &&
22234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22235 { (case "(($ac_try" in
22236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22240 (eval "$ac_try") 2>&5
22242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22243 (exit $ac_status); }; } &&
22244 { ac_try='test -s conftest$ac_exeext'
22245 { (case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_try") 2>&5
22252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22253 (exit $ac_status); }; }; then
22254 ac_cv_lib_kde_crash="yes"
22256 echo "$as_me: failed program was
:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_cv_lib_kde_crash="no
"
22262 rm -f core conftest.err conftest.$ac_objext \
22263 conftest$ac_exeext conftest.$ac_ext
22265 LIBS="${saved_libs}"
22266 CPPFLAGS="${saved_cppflags}"
22268 if test "${ac_cv_lib_kde_crash}" = "yes"; then
22269 { echo "$as_me:$LINENO: result
: yes" >&5
22270 echo "${ECHO_T}yes" >&6; }
22271 KDE_LIB="-lkdecore -lkdeui"
22272 if test "${KDE_DIR}" != ""; then
22273 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
22274 KDE_INCLUDE="-I${KDE_DIR}/include
"
22278 cat >>confdefs.h <<\_ACEOF
22279 #define HAVE_LIBKDE 1
22282 elif test -n "${KDE_MANDATORY}"; then
22283 { echo "$as_me:$LINENO: result
: no
" >&5
22284 echo "${ECHO_T}no
" >&6; }
22285 { echo "$as_me:$LINENO: ***" >&5
22286 echo "$as_me: ***" >&6;}
22287 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken.
" >&5
22288 echo "$as_me: *** The KDE installation on this system appears to be broken.
" >&6;}
22289 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22290 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22291 { echo "$as_me:$LINENO: *** including
--without-kde.
" >&5
22292 echo "$as_me: *** including
--without-kde.
" >&6;}
22295 { echo "$as_me:$LINENO: result
: no
" >&5
22296 echo "${ECHO_T}no
" >&6; }
22299 if test "${PBX_KDE}" = 1; then
22300 if test -n "$ac_tool_prefix"; then
22301 # Extract the first word of "${ac_tool_prefix}kdeinit
", so it can be a program name with args.
22302 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
22303 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
22304 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
22305 if test "${ac_cv_path_KDEINIT+set}" = set; then
22306 echo $ECHO_N "(cached
) $ECHO_C" >&6
22310 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
22313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22314 for as_dir in $PATH
22317 test -z "$as_dir" && as_dir=.
22318 for ac_exec_ext in '' $ac_executable_extensions; do
22319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22320 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
22321 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
22331 KDEINIT=$ac_cv_path_KDEINIT
22332 if test -n "$KDEINIT"; then
22333 { echo "$as_me:$LINENO: result
: $KDEINIT" >&5
22334 echo "${ECHO_T}$KDEINIT" >&6; }
22336 { echo "$as_me:$LINENO: result
: no
" >&5
22337 echo "${ECHO_T}no
" >&6; }
22342 if test -z "$ac_cv_path_KDEINIT"; then
22343 ac_pt_KDEINIT=$KDEINIT
22344 # Extract the first word of "kdeinit
", so it can be a program name with args.
22345 set dummy kdeinit; ac_word=$2
22346 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
22347 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
22348 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
22349 echo $ECHO_N "(cached
) $ECHO_C" >&6
22351 case $ac_pt_KDEINIT in
22353 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
22356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22357 for as_dir in $PATH
22360 test -z "$as_dir" && as_dir=.
22361 for ac_exec_ext in '' $ac_executable_extensions; do
22362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22363 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
22364 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
22374 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
22375 if test -n "$ac_pt_KDEINIT"; then
22376 { echo "$as_me:$LINENO: result
: $ac_pt_KDEINIT" >&5
22377 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
22379 { echo "$as_me:$LINENO: result
: no
" >&5
22380 echo "${ECHO_T}no
" >&6; }
22383 if test "x
$ac_pt_KDEINIT" = x; then
22386 case $cross_compiling:$ac_tool_warned in
22388 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
22389 whose name does not start with the
host triplet. If you think this
22390 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
22391 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
22392 whose name does not start with the
host triplet. If you think this
22393 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
22394 ac_tool_warned=yes ;;
22396 KDEINIT=$ac_pt_KDEINIT
22399 KDEINIT="$ac_cv_path_KDEINIT"
22402 if test ! x"${KDEINIT}" = xNo; then
22403 KDEDIR=$(${DIRNAME} ${KDEINIT})
22404 KDEDIR=$(${DIRNAME} ${KDEDIR})
22410 ac_cpp='$CPP $CPPFLAGS'
22411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22417 if test "${USE_MISDN}" != "no
"; then
22419 if test "x
${MISDN_DIR}" != "x
"; then
22420 if test -d ${MISDN_DIR}/lib; then
22421 pbxlibdir="-L${MISDN_DIR}/lib
"
22423 pbxlibdir="-L${MISDN_DIR}"
22426 { echo "$as_me:$LINENO: checking
for mISDN_open
in -lmISDN" >&5
22427 echo $ECHO_N "checking
for mISDN_open
in -lmISDN...
$ECHO_C" >&6; }
22428 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
22429 echo $ECHO_N "(cached
) $ECHO_C" >&6
22431 ac_check_lib_save_LIBS=$LIBS
22432 LIBS="-lmISDN ${pbxlibdir} $LIBS"
22433 cat >conftest.$ac_ext <<_ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22440 /* Override any GCC internal prototype to avoid an error.
22441 Use char because int might match the return type of a GCC
22442 builtin and then its argument prototype would still apply. */
22446 char mISDN_open ();
22450 return mISDN_open ();
22455 rm -f conftest.$ac_objext conftest$ac_exeext
22456 if { (ac_try="$ac_link"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_link") 2>conftest.er1
22464 grep -v '^ *+' conftest.er1 >conftest.err
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22468 (exit $ac_status); } &&
22469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22470 { (case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_try") 2>&5
22477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest$ac_exeext'
22480 { (case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22485 (eval "$ac_try") 2>&5
22487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22488 (exit $ac_status); }; }; then
22489 ac_cv_lib_mISDN_mISDN_open=yes
22491 echo "$as_me: failed program was
:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22494 ac_cv_lib_mISDN_mISDN_open=no
22497 rm -f core conftest.err conftest.$ac_objext \
22498 conftest$ac_exeext conftest.$ac_ext
22499 LIBS=$ac_check_lib_save_LIBS
22501 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mISDN_mISDN_open" >&5
22502 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
22503 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
22504 AST_MISDN_FOUND=yes
22510 if test "${AST_MISDN_FOUND}" = "yes"; then
22511 MISDN_LIB="-lmISDN "
22512 MISDN_HEADER_FOUND="1"
22513 if test "x
${MISDN_DIR}" != "x
"; then
22514 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
22515 MISDN_INCLUDE="-I${MISDN_DIR}/include
"
22516 saved_cppflags="${CPPFLAGS}"
22517 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include
"
22518 if test "xmISDNuser
/mISDNlib.h
" != "x
" ; then
22519 as_ac_Header=`echo "ac_cv_header_
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
" | $as_tr_sh`
22520 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22521 { echo "$as_me:$LINENO: checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
" >&5
22522 echo $ECHO_N "checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
22523 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22524 echo $ECHO_N "(cached
) $ECHO_C" >&6
22526 ac_res=`eval echo '${'$as_ac_Header'}'`
22527 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22528 echo "${ECHO_T}$ac_res" >&6; }
22530 # Is the header compilable?
22531 { echo "$as_me:$LINENO: checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h usability
" >&5
22532 echo $ECHO_N "checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h usability...
$ECHO_C" >&6; }
22533 cat >conftest.$ac_ext <<_ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 $ac_includes_default
22540 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
22542 rm -f conftest.$ac_objext
22543 if { (ac_try="$ac_compile"
22544 case "(($ac_try" in
22545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546 *) ac_try_echo=$ac_try;;
22548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22549 (eval "$ac_compile") 2>conftest.er1
22551 grep -v '^ *+' conftest.er1 >conftest.err
22553 cat conftest.err >&5
22554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22555 (exit $ac_status); } &&
22556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22557 { (case "(($ac_try" in
22558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559 *) ac_try_echo=$ac_try;;
22561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22562 (eval "$ac_try") 2>&5
22564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22565 (exit $ac_status); }; } &&
22566 { ac_try='test -s conftest.$ac_objext'
22567 { (case "(($ac_try" in
22568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569 *) ac_try_echo=$ac_try;;
22571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22572 (eval "$ac_try") 2>&5
22574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 ac_header_compiler=yes
22578 echo "$as_me: failed program was
:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22581 ac_header_compiler=no
22584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22585 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22586 echo "${ECHO_T}$ac_header_compiler" >&6; }
22588 # Is the header present?
22589 { echo "$as_me:$LINENO: checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h presence
" >&5
22590 echo $ECHO_N "checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h presence...
$ECHO_C" >&6; }
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
22599 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22600 case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22605 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22607 grep -v '^ *+' conftest.er1 >conftest.err
22609 cat conftest.err >&5
22610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22611 (exit $ac_status); } >/dev/null; then
22612 if test -s conftest.err; then
22613 ac_cpp_err=$ac_c_preproc_warn_flag
22614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22621 if test -z "$ac_cpp_err"; then
22622 ac_header_preproc=yes
22624 echo "$as_me: failed program was
:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22627 ac_header_preproc=no
22630 rm -f conftest.err conftest.$ac_ext
22631 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22632 echo "${ECHO_T}$ac_header_preproc" >&6; }
22634 # So? What about this header?
22635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22637 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22638 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22639 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: proceeding with the compiler
's result" >&5
22640 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result
" >&2;}
22641 ac_header_preproc=yes
22644 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&5
22645 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&2;}
22646 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&5
22647 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&2;}
22648 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&5
22649 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&2;}
22650 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22651 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22652 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: proceeding with the preprocessor
's result" >&5
22653 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result
" >&2;}
22654 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&5
22655 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&2;}
22657 ## ------------------------------- ##
22658 ## Report this to www.asterisk.org ##
22659 ## ------------------------------- ##
22661 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22664 { echo "$as_me:$LINENO: checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
" >&5
22665 echo $ECHO_N "checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
22666 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22667 echo $ECHO_N "(cached
) $ECHO_C" >&6
22669 eval "$as_ac_Header=\
$ac_header_preproc"
22671 ac_res=`eval echo '${'$as_ac_Header'}'`
22672 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22673 echo "${ECHO_T}$ac_res" >&6; }
22676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22677 MISDN_HEADER_FOUND=1
22679 MISDN_HEADER_FOUND=0
22684 CPPFLAGS="${saved_cppflags}"
22686 if test "xmISDNuser
/mISDNlib.h
" != "x
" ; then
22687 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
22688 { echo "$as_me:$LINENO: checking
for mISDNuser
/mISDNlib.h
" >&5
22689 echo $ECHO_N "checking
for mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
22690 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
22691 echo $ECHO_N "(cached
) $ECHO_C" >&6
22693 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
22694 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
22696 # Is the header compilable?
22697 { echo "$as_me:$LINENO: checking mISDNuser
/mISDNlib.h usability
" >&5
22698 echo $ECHO_N "checking mISDNuser
/mISDNlib.h usability...
$ECHO_C" >&6; }
22699 cat >conftest.$ac_ext <<_ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22705 $ac_includes_default
22706 #include <mISDNuser/mISDNlib.h>
22708 rm -f conftest.$ac_objext
22709 if { (ac_try="$ac_compile"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_compile") 2>conftest.er1
22717 grep -v '^ *+' conftest.er1 >conftest.err
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22721 (exit $ac_status); } &&
22722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22723 { (case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22728 (eval "$ac_try") 2>&5
22730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22731 (exit $ac_status); }; } &&
22732 { ac_try='test -s conftest.$ac_objext'
22733 { (case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_try") 2>&5
22740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22741 (exit $ac_status); }; }; then
22742 ac_header_compiler=yes
22744 echo "$as_me: failed program was
:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22747 ac_header_compiler=no
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22752 echo "${ECHO_T}$ac_header_compiler" >&6; }
22754 # Is the header present?
22755 { echo "$as_me:$LINENO: checking mISDNuser
/mISDNlib.h presence
" >&5
22756 echo $ECHO_N "checking mISDNuser
/mISDNlib.h presence...
$ECHO_C" >&6; }
22757 cat >conftest.$ac_ext <<_ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 #include <mISDNuser/mISDNlib.h>
22765 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22766 case "(($ac_try" in
22767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22768 *) ac_try_echo=$ac_try;;
22770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22771 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22773 grep -v '^ *+' conftest.er1 >conftest.err
22775 cat conftest.err >&5
22776 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22777 (exit $ac_status); } >/dev/null; then
22778 if test -s conftest.err; then
22779 ac_cpp_err=$ac_c_preproc_warn_flag
22780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22787 if test -z "$ac_cpp_err"; then
22788 ac_header_preproc=yes
22790 echo "$as_me: failed program was
:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22793 ac_header_preproc=no
22796 rm -f conftest.err conftest.$ac_ext
22797 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22798 echo "${ECHO_T}$ac_header_preproc" >&6; }
22800 # So? What about this header?
22801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22803 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22804 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22805 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: proceeding with the compiler
's result" >&5
22806 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result
" >&2;}
22807 ac_header_preproc=yes
22810 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&5
22811 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&2;}
22812 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&5
22813 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&2;}
22814 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&5
22815 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&2;}
22816 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22817 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22818 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: proceeding with the preprocessor
's result" >&5
22819 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result
" >&2;}
22820 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&5
22821 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&2;}
22823 ## ------------------------------- ##
22824 ## Report this to www.asterisk.org ##
22825 ## ------------------------------- ##
22827 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22830 { echo "$as_me:$LINENO: checking
for mISDNuser
/mISDNlib.h
" >&5
22831 echo $ECHO_N "checking
for mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
22832 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
22833 echo $ECHO_N "(cached
) $ECHO_C" >&6
22835 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
22837 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
22838 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
22841 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
22842 MISDN_HEADER_FOUND=1
22844 MISDN_HEADER_FOUND=0
22850 if test "x
${MISDN_HEADER_FOUND}" = "x0
" ; then
22851 if test -n "${MISDN_MANDATORY}" ;
22853 { echo "$as_me:$LINENO: ***" >&5
22854 echo "$as_me: ***" >&6;}
22855 { echo "$as_me:$LINENO: *** It appears that you
do not have the mISDN development package installed.
" >&5
22856 echo "$as_me: *** It appears that you
do not have the mISDN development package installed.
" >&6;}
22857 { echo "$as_me:$LINENO: *** Please
install it to include
${MISDN_DESCRIP} support
, or re-run configure
" >&5
22858 echo "$as_me: *** Please
install it to include
${MISDN_DESCRIP} support
, or re-run configure
" >&6;}
22859 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${MISDN_OPTION}" >&5
22860 echo "$as_me: *** without explicitly specifying
--with-${MISDN_OPTION}" >&6;}
22869 cat >>confdefs.h <<_ACEOF
22870 #define HAVE_MISDN 1
22874 elif test -n "${MISDN_MANDATORY}";
22876 { echo "$as_me:$LINENO: ***" >&5
22877 echo "$as_me: ***" >&6;}
22878 { echo "$as_me:$LINENO: *** The
${MISDN_DESCRIP} installation on this system appears to be broken.
" >&5
22879 echo "$as_me: *** The
${MISDN_DESCRIP} installation on this system appears to be broken.
" >&6;}
22880 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22881 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22882 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${MISDN_OPTION}" >&5
22883 echo "$as_me: *** without explicitly specifying
--with-${MISDN_OPTION}" >&6;}
22889 if test "${PBX_MISDN}" = 1; then
22891 if test "${USE_ISDNNET}" != "no
"; then
22893 if test "x
${ISDNNET_DIR}" != "x
"; then
22894 if test -d ${ISDNNET_DIR}/lib; then
22895 pbxlibdir="-L${ISDNNET_DIR}/lib
"
22897 pbxlibdir="-L${ISDNNET_DIR}"
22900 { echo "$as_me:$LINENO: checking
for init_manager
in -lisdnnet" >&5
22901 echo $ECHO_N "checking
for init_manager
in -lisdnnet...
$ECHO_C" >&6; }
22902 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
22903 echo $ECHO_N "(cached
) $ECHO_C" >&6
22905 ac_check_lib_save_LIBS=$LIBS
22906 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
22907 cat >conftest.$ac_ext <<_ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22914 /* Override any GCC internal prototype to avoid an error.
22915 Use char because int might match the return type of a GCC
22916 builtin and then its argument prototype would still apply. */
22920 char init_manager ();
22924 return init_manager ();
22929 rm -f conftest.$ac_objext conftest$ac_exeext
22930 if { (ac_try="$ac_link"
22931 case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22936 (eval "$ac_link") 2>conftest.er1
22938 grep -v '^ *+' conftest.er1 >conftest.err
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22942 (exit $ac_status); } &&
22943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22944 { (case "(($ac_try" in
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22949 (eval "$ac_try") 2>&5
22951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22952 (exit $ac_status); }; } &&
22953 { ac_try='test -s conftest$ac_exeext'
22954 { (case "(($ac_try" in
22955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956 *) ac_try_echo=$ac_try;;
22958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22959 (eval "$ac_try") 2>&5
22961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22962 (exit $ac_status); }; }; then
22963 ac_cv_lib_isdnnet_init_manager=yes
22965 echo "$as_me: failed program was
:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22968 ac_cv_lib_isdnnet_init_manager=no
22971 rm -f core conftest.err conftest.$ac_objext \
22972 conftest$ac_exeext conftest.$ac_ext
22973 LIBS=$ac_check_lib_save_LIBS
22975 { echo "$as_me:$LINENO: result
: $ac_cv_lib_isdnnet_init_manager" >&5
22976 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
22977 if test $ac_cv_lib_isdnnet_init_manager = yes; then
22978 AST_ISDNNET_FOUND=yes
22980 AST_ISDNNET_FOUND=no
22984 if test "${AST_ISDNNET_FOUND}" = "yes"; then
22985 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
22986 ISDNNET_HEADER_FOUND="1"
22987 if test "x
${ISDNNET_DIR}" != "x
"; then
22988 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
22989 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include
"
22990 saved_cppflags="${CPPFLAGS}"
22991 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include
"
22992 if test "xmISDNuser
/isdn_net.h
" != "x
" ; then
22993 as_ac_Header=`echo "ac_cv_header_
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
" | $as_tr_sh`
22994 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22995 { echo "$as_me:$LINENO: checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
" >&5
22996 echo $ECHO_N "checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
22997 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22998 echo $ECHO_N "(cached
) $ECHO_C" >&6
23000 ac_res=`eval echo '${'$as_ac_Header'}'`
23001 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23002 echo "${ECHO_T}$ac_res" >&6; }
23004 # Is the header compilable?
23005 { echo "$as_me:$LINENO: checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h usability
" >&5
23006 echo $ECHO_N "checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h usability...
$ECHO_C" >&6; }
23007 cat >conftest.$ac_ext <<_ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h. */
23013 $ac_includes_default
23014 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
23016 rm -f conftest.$ac_objext
23017 if { (ac_try="$ac_compile"
23018 case "(($ac_try" in
23019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020 *) ac_try_echo=$ac_try;;
23022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23023 (eval "$ac_compile") 2>conftest.er1
23025 grep -v '^ *+' conftest.er1 >conftest.err
23027 cat conftest.err >&5
23028 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23029 (exit $ac_status); } &&
23030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23031 { (case "(($ac_try" in
23032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23033 *) ac_try_echo=$ac_try;;
23035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23036 (eval "$ac_try") 2>&5
23038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23039 (exit $ac_status); }; } &&
23040 { ac_try='test -s conftest.$ac_objext'
23041 { (case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23046 (eval "$ac_try") 2>&5
23048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23049 (exit $ac_status); }; }; then
23050 ac_header_compiler=yes
23052 echo "$as_me: failed program was
:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23055 ac_header_compiler=no
23058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23060 echo "${ECHO_T}$ac_header_compiler" >&6; }
23062 # Is the header present?
23063 { echo "$as_me:$LINENO: checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h presence
" >&5
23064 echo $ECHO_N "checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h presence...
$ECHO_C" >&6; }
23065 cat >conftest.$ac_ext <<_ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
23073 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23074 case "(($ac_try" in
23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23085 (exit $ac_status); } >/dev/null; then
23086 if test -s conftest.err; then
23087 ac_cpp_err=$ac_c_preproc_warn_flag
23088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23095 if test -z "$ac_cpp_err"; then
23096 ac_header_preproc=yes
23098 echo "$as_me: failed program was
:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23101 ac_header_preproc=no
23104 rm -f conftest.err conftest.$ac_ext
23105 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23106 echo "${ECHO_T}$ac_header_preproc" >&6; }
23108 # So? What about this header?
23109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23111 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23112 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23113 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: proceeding with the compiler
's result" >&5
23114 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result
" >&2;}
23115 ac_header_preproc=yes
23118 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&5
23119 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&2;}
23120 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&5
23121 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&2;}
23122 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&5
23123 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&2;}
23124 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23125 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23126 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: proceeding with the preprocessor
's result" >&5
23127 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result
" >&2;}
23128 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&5
23129 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&2;}
23131 ## ------------------------------- ##
23132 ## Report this to www.asterisk.org ##
23133 ## ------------------------------- ##
23135 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23138 { echo "$as_me:$LINENO: checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
" >&5
23139 echo $ECHO_N "checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
23140 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23141 echo $ECHO_N "(cached
) $ECHO_C" >&6
23143 eval "$as_ac_Header=\
$ac_header_preproc"
23145 ac_res=`eval echo '${'$as_ac_Header'}'`
23146 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23147 echo "${ECHO_T}$ac_res" >&6; }
23150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23151 ISDNNET_HEADER_FOUND=1
23153 ISDNNET_HEADER_FOUND=0
23158 CPPFLAGS="${saved_cppflags}"
23160 if test "xmISDNuser
/isdn_net.h
" != "x
" ; then
23161 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
23162 { echo "$as_me:$LINENO: checking
for mISDNuser
/isdn_net.h
" >&5
23163 echo $ECHO_N "checking
for mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
23164 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
23165 echo $ECHO_N "(cached
) $ECHO_C" >&6
23167 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_isdn_net_h" >&5
23168 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
23170 # Is the header compilable?
23171 { echo "$as_me:$LINENO: checking mISDNuser
/isdn_net.h usability
" >&5
23172 echo $ECHO_N "checking mISDNuser
/isdn_net.h usability...
$ECHO_C" >&6; }
23173 cat >conftest.$ac_ext <<_ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h. */
23179 $ac_includes_default
23180 #include <mISDNuser/isdn_net.h>
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23191 grep -v '^ *+' conftest.er1 >conftest.err
23193 cat conftest.err >&5
23194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23195 (exit $ac_status); } &&
23196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23197 { (case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23202 (eval "$ac_try") 2>&5
23204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23205 (exit $ac_status); }; } &&
23206 { ac_try='test -s conftest.$ac_objext'
23207 { (case "(($ac_try" in
23208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209 *) ac_try_echo=$ac_try;;
23211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23212 (eval "$ac_try") 2>&5
23214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23215 (exit $ac_status); }; }; then
23216 ac_header_compiler=yes
23218 echo "$as_me: failed program was
:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23221 ac_header_compiler=no
23224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23225 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23226 echo "${ECHO_T}$ac_header_compiler" >&6; }
23228 # Is the header present?
23229 { echo "$as_me:$LINENO: checking mISDNuser
/isdn_net.h presence
" >&5
23230 echo $ECHO_N "checking mISDNuser
/isdn_net.h presence...
$ECHO_C" >&6; }
23231 cat >conftest.$ac_ext <<_ACEOF
23234 cat confdefs.h >>conftest.$ac_ext
23235 cat >>conftest.$ac_ext <<_ACEOF
23236 /* end confdefs.h. */
23237 #include <mISDNuser/isdn_net.h>
23239 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23240 case "(($ac_try" in
23241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242 *) ac_try_echo=$ac_try;;
23244 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23245 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23247 grep -v '^ *+' conftest.er1 >conftest.err
23249 cat conftest.err >&5
23250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23251 (exit $ac_status); } >/dev/null; then
23252 if test -s conftest.err; then
23253 ac_cpp_err=$ac_c_preproc_warn_flag
23254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23261 if test -z "$ac_cpp_err"; then
23262 ac_header_preproc=yes
23264 echo "$as_me: failed program was
:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23267 ac_header_preproc=no
23270 rm -f conftest.err conftest.$ac_ext
23271 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23272 echo "${ECHO_T}$ac_header_preproc" >&6; }
23274 # So? What about this header?
23275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23277 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23278 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23279 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: proceeding with the compiler
's result" >&5
23280 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result
" >&2;}
23281 ac_header_preproc=yes
23284 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&5
23285 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&2;}
23286 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&5
23287 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&2;}
23288 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&5
23289 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&2;}
23290 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23291 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23292 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: proceeding with the preprocessor
's result" >&5
23293 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result
" >&2;}
23294 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&5
23295 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&2;}
23297 ## ------------------------------- ##
23298 ## Report this to www.asterisk.org ##
23299 ## ------------------------------- ##
23301 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23304 { echo "$as_me:$LINENO: checking
for mISDNuser
/isdn_net.h
" >&5
23305 echo $ECHO_N "checking
for mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
23306 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
23307 echo $ECHO_N "(cached
) $ECHO_C" >&6
23309 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
23311 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_isdn_net_h" >&5
23312 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
23315 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
23316 ISDNNET_HEADER_FOUND=1
23318 ISDNNET_HEADER_FOUND=0
23324 if test "x
${ISDNNET_HEADER_FOUND}" = "x0
" ; then
23325 if test -n "${ISDNNET_MANDATORY}" ;
23327 { echo "$as_me:$LINENO: ***" >&5
23328 echo "$as_me: ***" >&6;}
23329 { echo "$as_me:$LINENO: *** It appears that you
do not have the isdnnet development package installed.
" >&5
23330 echo "$as_me: *** It appears that you
do not have the isdnnet development package installed.
" >&6;}
23331 { echo "$as_me:$LINENO: *** Please
install it to include
${ISDNNET_DESCRIP} support
, or re-run configure
" >&5
23332 echo "$as_me: *** Please
install it to include
${ISDNNET_DESCRIP} support
, or re-run configure
" >&6;}
23333 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&5
23334 echo "$as_me: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&6;}
23343 cat >>confdefs.h <<_ACEOF
23344 #define HAVE_ISDNNET 1
23348 elif test -n "${ISDNNET_MANDATORY}";
23350 { echo "$as_me:$LINENO: ***" >&5
23351 echo "$as_me: ***" >&6;}
23352 { echo "$as_me:$LINENO: *** The
${ISDNNET_DESCRIP} installation on this system appears to be broken.
" >&5
23353 echo "$as_me: *** The
${ISDNNET_DESCRIP} installation on this system appears to be broken.
" >&6;}
23354 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
23355 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
23356 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&5
23357 echo "$as_me: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&6;}
23363 if test "${USE_SUPPSERV}" != "no
"; then
23365 if test "x
${SUPPSERV_DIR}" != "x
"; then
23366 if test -d ${SUPPSERV_DIR}/lib; then
23367 pbxlibdir="-L${SUPPSERV_DIR}/lib
"
23369 pbxlibdir="-L${SUPPSERV_DIR}"
23372 { echo "$as_me:$LINENO: checking
for encodeFac
in -lsuppserv" >&5
23373 echo $ECHO_N "checking
for encodeFac
in -lsuppserv...
$ECHO_C" >&6; }
23374 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
23375 echo $ECHO_N "(cached
) $ECHO_C" >&6
23377 ac_check_lib_save_LIBS=$LIBS
23378 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
23379 cat >conftest.$ac_ext <<_ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23386 /* Override any GCC internal prototype to avoid an error.
23387 Use char because int might match the return type of a GCC
23388 builtin and then its argument prototype would still apply. */
23396 return encodeFac ();
23401 rm -f conftest.$ac_objext conftest$ac_exeext
23402 if { (ac_try="$ac_link"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_link") 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23414 (exit $ac_status); } &&
23415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23416 { (case "(($ac_try" in
23417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418 *) ac_try_echo=$ac_try;;
23420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23421 (eval "$ac_try") 2>&5
23423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23424 (exit $ac_status); }; } &&
23425 { ac_try='test -s conftest$ac_exeext'
23426 { (case "(($ac_try" in
23427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428 *) ac_try_echo=$ac_try;;
23430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23431 (eval "$ac_try") 2>&5
23433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23434 (exit $ac_status); }; }; then
23435 ac_cv_lib_suppserv_encodeFac=yes
23437 echo "$as_me: failed program was
:" >&5
23438 sed 's/^/| /' conftest.$ac_ext >&5
23440 ac_cv_lib_suppserv_encodeFac=no
23443 rm -f core conftest.err conftest.$ac_objext \
23444 conftest$ac_exeext conftest.$ac_ext
23445 LIBS=$ac_check_lib_save_LIBS
23447 { echo "$as_me:$LINENO: result
: $ac_cv_lib_suppserv_encodeFac" >&5
23448 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
23449 if test $ac_cv_lib_suppserv_encodeFac = yes; then
23450 AST_SUPPSERV_FOUND=yes
23452 AST_SUPPSERV_FOUND=no
23456 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
23457 SUPPSERV_LIB="-lsuppserv "
23458 SUPPSERV_HEADER_FOUND="1"
23459 if test "x
${SUPPSERV_DIR}" != "x
"; then
23460 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
23461 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include
"
23462 saved_cppflags="${CPPFLAGS}"
23463 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include
"
23464 if test "xmISDNuser
/suppserv.h
" != "x
" ; then
23465 as_ac_Header=`echo "ac_cv_header_
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
" | $as_tr_sh`
23466 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23467 { echo "$as_me:$LINENO: checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
" >&5
23468 echo $ECHO_N "checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
23469 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23470 echo $ECHO_N "(cached
) $ECHO_C" >&6
23472 ac_res=`eval echo '${'$as_ac_Header'}'`
23473 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23474 echo "${ECHO_T}$ac_res" >&6; }
23476 # Is the header compilable?
23477 { echo "$as_me:$LINENO: checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h usability
" >&5
23478 echo $ECHO_N "checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h usability...
$ECHO_C" >&6; }
23479 cat >conftest.$ac_ext <<_ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h. */
23485 $ac_includes_default
23486 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
23488 rm -f conftest.$ac_objext
23489 if { (ac_try="$ac_compile"
23490 case "(($ac_try" in
23491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23495 (eval "$ac_compile") 2>conftest.er1
23497 grep -v '^ *+' conftest.er1 >conftest.err
23499 cat conftest.err >&5
23500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23501 (exit $ac_status); } &&
23502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23503 { (case "(($ac_try" in
23504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505 *) ac_try_echo=$ac_try;;
23507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23508 (eval "$ac_try") 2>&5
23510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23511 (exit $ac_status); }; } &&
23512 { ac_try='test -s conftest.$ac_objext'
23513 { (case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_try") 2>&5
23520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23521 (exit $ac_status); }; }; then
23522 ac_header_compiler=yes
23524 echo "$as_me: failed program was
:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23527 ac_header_compiler=no
23530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23531 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23532 echo "${ECHO_T}$ac_header_compiler" >&6; }
23534 # Is the header present?
23535 { echo "$as_me:$LINENO: checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h presence
" >&5
23536 echo $ECHO_N "checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h presence...
$ECHO_C" >&6; }
23537 cat >conftest.$ac_ext <<_ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23543 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
23545 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23546 case "(($ac_try" in
23547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548 *) ac_try_echo=$ac_try;;
23550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23551 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23553 grep -v '^ *+' conftest.er1 >conftest.err
23555 cat conftest.err >&5
23556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23557 (exit $ac_status); } >/dev/null; then
23558 if test -s conftest.err; then
23559 ac_cpp_err=$ac_c_preproc_warn_flag
23560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23567 if test -z "$ac_cpp_err"; then
23568 ac_header_preproc=yes
23570 echo "$as_me: failed program was
:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23573 ac_header_preproc=no
23576 rm -f conftest.err conftest.$ac_ext
23577 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23578 echo "${ECHO_T}$ac_header_preproc" >&6; }
23580 # So? What about this header?
23581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23583 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23584 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23585 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: proceeding with the compiler
's result" >&5
23586 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result
" >&2;}
23587 ac_header_preproc=yes
23590 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: present but cannot be compiled
" >&5
23591 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: present but cannot be compiled
" >&2;}
23592 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&5
23593 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&2;}
23594 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&5
23595 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&2;}
23596 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23597 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23598 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: proceeding with the preprocessor
's result" >&5
23599 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result
" >&2;}
23600 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&5
23601 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&2;}
23603 ## ------------------------------- ##
23604 ## Report this to www.asterisk.org ##
23605 ## ------------------------------- ##
23607 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23610 { echo "$as_me:$LINENO: checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
" >&5
23611 echo $ECHO_N "checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
23612 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23613 echo $ECHO_N "(cached
) $ECHO_C" >&6
23615 eval "$as_ac_Header=\
$ac_header_preproc"
23617 ac_res=`eval echo '${'$as_ac_Header'}'`
23618 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23619 echo "${ECHO_T}$ac_res" >&6; }
23622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23623 SUPPSERV_HEADER_FOUND=1
23625 SUPPSERV_HEADER_FOUND=0
23630 CPPFLAGS="${saved_cppflags}"
23632 if test "xmISDNuser
/suppserv.h
" != "x
" ; then
23633 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
23634 { echo "$as_me:$LINENO: checking
for mISDNuser
/suppserv.h
" >&5
23635 echo $ECHO_N "checking
for mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
23636 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
23637 echo $ECHO_N "(cached
) $ECHO_C" >&6
23639 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_suppserv_h" >&5
23640 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
23642 # Is the header compilable?
23643 { echo "$as_me:$LINENO: checking mISDNuser
/suppserv.h usability
" >&5
23644 echo $ECHO_N "checking mISDNuser
/suppserv.h usability...
$ECHO_C" >&6; }
23645 cat >conftest.$ac_ext <<_ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h. */
23651 $ac_includes_default
23652 #include <mISDNuser/suppserv.h>
23654 rm -f conftest.$ac_objext
23655 if { (ac_try="$ac_compile"
23656 case "(($ac_try" in
23657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23658 *) ac_try_echo=$ac_try;;
23660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23661 (eval "$ac_compile") 2>conftest.er1
23663 grep -v '^ *+' conftest.er1 >conftest.err
23665 cat conftest.err >&5
23666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23667 (exit $ac_status); } &&
23668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23669 { (case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23674 (eval "$ac_try") 2>&5
23676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23677 (exit $ac_status); }; } &&
23678 { ac_try='test -s conftest.$ac_objext'
23679 { (case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23683 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23684 (eval "$ac_try") 2>&5
23686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23687 (exit $ac_status); }; }; then
23688 ac_header_compiler=yes
23690 echo "$as_me: failed program was
:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23693 ac_header_compiler=no
23696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23697 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23698 echo "${ECHO_T}$ac_header_compiler" >&6; }
23700 # Is the header present?
23701 { echo "$as_me:$LINENO: checking mISDNuser
/suppserv.h presence
" >&5
23702 echo $ECHO_N "checking mISDNuser
/suppserv.h presence...
$ECHO_C" >&6; }
23703 cat >conftest.$ac_ext <<_ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 #include <mISDNuser/suppserv.h>
23711 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23712 case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23717 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23719 grep -v '^ *+' conftest.er1 >conftest.err
23721 cat conftest.err >&5
23722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23723 (exit $ac_status); } >/dev/null; then
23724 if test -s conftest.err; then
23725 ac_cpp_err=$ac_c_preproc_warn_flag
23726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23733 if test -z "$ac_cpp_err"; then
23734 ac_header_preproc=yes
23736 echo "$as_me: failed program was
:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23739 ac_header_preproc=no
23742 rm -f conftest.err conftest.$ac_ext
23743 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23744 echo "${ECHO_T}$ac_header_preproc" >&6; }
23746 # So? What about this header?
23747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23749 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23750 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23751 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: proceeding with the compiler
's result" >&5
23752 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result
" >&2;}
23753 ac_header_preproc=yes
23756 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: present but cannot be compiled
" >&5
23757 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: present but cannot be compiled
" >&2;}
23758 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&5
23759 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&2;}
23760 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&5
23761 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&2;}
23762 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23763 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23764 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: proceeding with the preprocessor
's result" >&5
23765 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result
" >&2;}
23766 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&5
23767 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&2;}
23769 ## ------------------------------- ##
23770 ## Report this to www.asterisk.org ##
23771 ## ------------------------------- ##
23773 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23776 { echo "$as_me:$LINENO: checking
for mISDNuser
/suppserv.h
" >&5
23777 echo $ECHO_N "checking
for mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
23778 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
23779 echo $ECHO_N "(cached
) $ECHO_C" >&6
23781 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
23783 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_suppserv_h" >&5
23784 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
23787 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
23788 SUPPSERV_HEADER_FOUND=1
23790 SUPPSERV_HEADER_FOUND=0
23796 if test "x
${SUPPSERV_HEADER_FOUND}" = "x0
" ; then
23797 if test -n "${SUPPSERV_MANDATORY}" ;
23799 { echo "$as_me:$LINENO: ***" >&5
23800 echo "$as_me: ***" >&6;}
23801 { echo "$as_me:$LINENO: *** It appears that you
do not have the suppserv development package installed.
" >&5
23802 echo "$as_me: *** It appears that you
do not have the suppserv development package installed.
" >&6;}
23803 { echo "$as_me:$LINENO: *** Please
install it to include
${SUPPSERV_DESCRIP} support
, or re-run configure
" >&5
23804 echo "$as_me: *** Please
install it to include
${SUPPSERV_DESCRIP} support
, or re-run configure
" >&6;}
23805 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&5
23806 echo "$as_me: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&6;}
23810 SUPPSERV_INCLUDE=""
23815 cat >>confdefs.h <<_ACEOF
23816 #define HAVE_SUPPSERV 1
23820 elif test -n "${SUPPSERV_MANDATORY}";
23822 { echo "$as_me:$LINENO: ***" >&5
23823 echo "$as_me: ***" >&6;}
23824 { echo "$as_me:$LINENO: *** The
${SUPPSERV_DESCRIP} installation on this system appears to be broken.
" >&5
23825 echo "$as_me: *** The
${SUPPSERV_DESCRIP} installation on this system appears to be broken.
" >&6;}
23826 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
23827 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
23828 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&5
23829 echo "$as_me: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&6;}
23834 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
23835 { echo "$as_me:$LINENO: checking
for linux
/mISDNdsp.h
" >&5
23836 echo $ECHO_N "checking
for linux
/mISDNdsp.h...
$ECHO_C" >&6; }
23837 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
23838 echo $ECHO_N "(cached
) $ECHO_C" >&6
23840 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_mISDNdsp_h" >&5
23841 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
23843 # Is the header compilable?
23844 { echo "$as_me:$LINENO: checking linux
/mISDNdsp.h usability
" >&5
23845 echo $ECHO_N "checking linux
/mISDNdsp.h usability...
$ECHO_C" >&6; }
23846 cat >conftest.$ac_ext <<_ACEOF
23849 cat confdefs.h >>conftest.$ac_ext
23850 cat >>conftest.$ac_ext <<_ACEOF
23851 /* end confdefs.h. */
23852 $ac_includes_default
23853 #include <linux/mISDNdsp.h>
23855 rm -f conftest.$ac_objext
23856 if { (ac_try="$ac_compile"
23857 case "(($ac_try" in
23858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23859 *) ac_try_echo=$ac_try;;
23861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23862 (eval "$ac_compile") 2>conftest.er1
23864 grep -v '^ *+' conftest.er1 >conftest.err
23866 cat conftest.err >&5
23867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23868 (exit $ac_status); } &&
23869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23870 { (case "(($ac_try" in
23871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23872 *) ac_try_echo=$ac_try;;
23874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23875 (eval "$ac_try") 2>&5
23877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23878 (exit $ac_status); }; } &&
23879 { ac_try='test -s conftest.$ac_objext'
23880 { (case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23885 (eval "$ac_try") 2>&5
23887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23888 (exit $ac_status); }; }; then
23889 ac_header_compiler=yes
23891 echo "$as_me: failed program was
:" >&5
23892 sed 's/^/| /' conftest.$ac_ext >&5
23894 ac_header_compiler=no
23897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23898 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23899 echo "${ECHO_T}$ac_header_compiler" >&6; }
23901 # Is the header present?
23902 { echo "$as_me:$LINENO: checking linux
/mISDNdsp.h presence
" >&5
23903 echo $ECHO_N "checking linux
/mISDNdsp.h presence...
$ECHO_C" >&6; }
23904 cat >conftest.$ac_ext <<_ACEOF
23907 cat confdefs.h >>conftest.$ac_ext
23908 cat >>conftest.$ac_ext <<_ACEOF
23909 /* end confdefs.h. */
23910 #include <linux/mISDNdsp.h>
23912 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23913 case "(($ac_try" in
23914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23915 *) ac_try_echo=$ac_try;;
23917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23918 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23920 grep -v '^ *+' conftest.er1 >conftest.err
23922 cat conftest.err >&5
23923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23924 (exit $ac_status); } >/dev/null; then
23925 if test -s conftest.err; then
23926 ac_cpp_err=$ac_c_preproc_warn_flag
23927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23934 if test -z "$ac_cpp_err"; then
23935 ac_header_preproc=yes
23937 echo "$as_me: failed program was
:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23940 ac_header_preproc=no
23943 rm -f conftest.err conftest.$ac_ext
23944 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23945 echo "${ECHO_T}$ac_header_preproc" >&6; }
23947 # So? What about this header?
23948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23950 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23951 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23952 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: proceeding with the compiler
's result" >&5
23953 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result
" >&2;}
23954 ac_header_preproc=yes
23957 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: present but cannot be compiled
" >&5
23958 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: present but cannot be compiled
" >&2;}
23959 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: check
for missing prerequisite headers?
" >&5
23960 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: check
for missing prerequisite headers?
" >&2;}
23961 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: see the Autoconf documentation
" >&5
23962 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: see the Autoconf documentation
" >&2;}
23963 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23964 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23965 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: proceeding with the preprocessor
's result" >&5
23966 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result
" >&2;}
23967 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: in the future
, the compiler will take precedence
" >&5
23968 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: in the future
, the compiler will take precedence
" >&2;}
23970 ## ------------------------------- ##
23971 ## Report this to www.asterisk.org ##
23972 ## ------------------------------- ##
23974 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23977 { echo "$as_me:$LINENO: checking
for linux
/mISDNdsp.h
" >&5
23978 echo $ECHO_N "checking
for linux
/mISDNdsp.h...
$ECHO_C" >&6; }
23979 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
23980 echo $ECHO_N "(cached
) $ECHO_C" >&6
23982 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
23984 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_mISDNdsp_h" >&5
23985 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
23988 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
23990 cat >>confdefs.h <<_ACEOF
23991 #define MISDN_1_2 1
24000 if test "${USE_NBS}" != "no
"; then
24002 if test "x
${NBS_DIR}" != "x
"; then
24003 if test -d ${NBS_DIR}/lib; then
24004 pbxlibdir="-L${NBS_DIR}/lib
"
24006 pbxlibdir="-L${NBS_DIR}"
24009 { echo "$as_me:$LINENO: checking
for nbs_connect
in -lnbs" >&5
24010 echo $ECHO_N "checking
for nbs_connect
in -lnbs...
$ECHO_C" >&6; }
24011 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
24012 echo $ECHO_N "(cached
) $ECHO_C" >&6
24014 ac_check_lib_save_LIBS=$LIBS
24015 LIBS="-lnbs ${pbxlibdir} $LIBS"
24016 cat >conftest.$ac_ext <<_ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24023 /* Override any GCC internal prototype to avoid an error.
24024 Use char because int might match the return type of a GCC
24025 builtin and then its argument prototype would still apply. */
24029 char nbs_connect ();
24033 return nbs_connect ();
24038 rm -f conftest.$ac_objext conftest$ac_exeext
24039 if { (ac_try="$ac_link"
24040 case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_link") 2>conftest.er1
24047 grep -v '^ *+' conftest.er1 >conftest.err
24049 cat conftest.err >&5
24050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24051 (exit $ac_status); } &&
24052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24053 { (case "(($ac_try" in
24054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055 *) ac_try_echo=$ac_try;;
24057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24058 (eval "$ac_try") 2>&5
24060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24061 (exit $ac_status); }; } &&
24062 { ac_try='test -s conftest$ac_exeext'
24063 { (case "(($ac_try" in
24064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065 *) ac_try_echo=$ac_try;;
24067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24068 (eval "$ac_try") 2>&5
24070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24071 (exit $ac_status); }; }; then
24072 ac_cv_lib_nbs_nbs_connect=yes
24074 echo "$as_me: failed program was
:" >&5
24075 sed 's/^/| /' conftest.$ac_ext >&5
24077 ac_cv_lib_nbs_nbs_connect=no
24080 rm -f core conftest.err conftest.$ac_objext \
24081 conftest$ac_exeext conftest.$ac_ext
24082 LIBS=$ac_check_lib_save_LIBS
24084 { echo "$as_me:$LINENO: result
: $ac_cv_lib_nbs_nbs_connect" >&5
24085 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
24086 if test $ac_cv_lib_nbs_nbs_connect = yes; then
24093 if test "${AST_NBS_FOUND}" = "yes"; then
24095 NBS_HEADER_FOUND="1"
24096 if test "x
${NBS_DIR}" != "x
"; then
24097 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
24098 NBS_INCLUDE="-I${NBS_DIR}/include
"
24099 saved_cppflags="${CPPFLAGS}"
24100 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include
"
24101 if test "xnbs.h
" != "x
" ; then
24102 as_ac_Header=`echo "ac_cv_header_
${NBS_DIR}/include
/nbs.h
" | $as_tr_sh`
24103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24104 { echo "$as_me:$LINENO: checking
for ${NBS_DIR}/include
/nbs.h
" >&5
24105 echo $ECHO_N "checking
for ${NBS_DIR}/include
/nbs.h...
$ECHO_C" >&6; }
24106 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24107 echo $ECHO_N "(cached
) $ECHO_C" >&6
24109 ac_res=`eval echo '${'$as_ac_Header'}'`
24110 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24111 echo "${ECHO_T}$ac_res" >&6; }
24113 # Is the header compilable?
24114 { echo "$as_me:$LINENO: checking
${NBS_DIR}/include
/nbs.h usability
" >&5
24115 echo $ECHO_N "checking
${NBS_DIR}/include
/nbs.h usability...
$ECHO_C" >&6; }
24116 cat >conftest.$ac_ext <<_ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h. */
24122 $ac_includes_default
24123 #include <${NBS_DIR}/include/nbs.h>
24125 rm -f conftest.$ac_objext
24126 if { (ac_try="$ac_compile"
24127 case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24132 (eval "$ac_compile") 2>conftest.er1
24134 grep -v '^ *+' conftest.er1 >conftest.err
24136 cat conftest.err >&5
24137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24138 (exit $ac_status); } &&
24139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24140 { (case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_try") 2>&5
24147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24148 (exit $ac_status); }; } &&
24149 { ac_try='test -s conftest.$ac_objext'
24150 { (case "(($ac_try" in
24151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152 *) ac_try_echo=$ac_try;;
24154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_try") 2>&5
24157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24158 (exit $ac_status); }; }; then
24159 ac_header_compiler=yes
24161 echo "$as_me: failed program was
:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24164 ac_header_compiler=no
24167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24168 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24169 echo "${ECHO_T}$ac_header_compiler" >&6; }
24171 # Is the header present?
24172 { echo "$as_me:$LINENO: checking
${NBS_DIR}/include
/nbs.h presence
" >&5
24173 echo $ECHO_N "checking
${NBS_DIR}/include
/nbs.h presence...
$ECHO_C" >&6; }
24174 cat >conftest.$ac_ext <<_ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h. */
24180 #include <${NBS_DIR}/include/nbs.h>
24182 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24183 case "(($ac_try" in
24184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24190 grep -v '^ *+' conftest.er1 >conftest.err
24192 cat conftest.err >&5
24193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24194 (exit $ac_status); } >/dev/null; then
24195 if test -s conftest.err; then
24196 ac_cpp_err=$ac_c_preproc_warn_flag
24197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24204 if test -z "$ac_cpp_err"; then
24205 ac_header_preproc=yes
24207 echo "$as_me: failed program was
:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24210 ac_header_preproc=no
24213 rm -f conftest.err conftest.$ac_ext
24214 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24215 echo "${ECHO_T}$ac_header_preproc" >&6; }
24217 # So? What about this header?
24218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24220 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24221 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24222 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: proceeding with the compiler
's result" >&5
24223 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result
" >&2;}
24224 ac_header_preproc=yes
24227 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: present but cannot be compiled
" >&5
24228 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: present but cannot be compiled
" >&2;}
24229 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: check
for missing prerequisite headers?
" >&5
24230 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: check
for missing prerequisite headers?
" >&2;}
24231 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: see the Autoconf documentation
" >&5
24232 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: see the Autoconf documentation
" >&2;}
24233 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24234 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24235 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: proceeding with the preprocessor
's result" >&5
24236 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result
" >&2;}
24237 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: in the future
, the compiler will take precedence
" >&5
24238 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: in the future
, the compiler will take precedence
" >&2;}
24240 ## ------------------------------- ##
24241 ## Report this to www.asterisk.org ##
24242 ## ------------------------------- ##
24244 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
24247 { echo "$as_me:$LINENO: checking
for ${NBS_DIR}/include
/nbs.h
" >&5
24248 echo $ECHO_N "checking
for ${NBS_DIR}/include
/nbs.h...
$ECHO_C" >&6; }
24249 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24250 echo $ECHO_N "(cached
) $ECHO_C" >&6
24252 eval "$as_ac_Header=\
$ac_header_preproc"
24254 ac_res=`eval echo '${'$as_ac_Header'}'`
24255 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24256 echo "${ECHO_T}$ac_res" >&6; }
24259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24267 CPPFLAGS="${saved_cppflags}"
24269 if test "xnbs.h
" != "x
" ; then
24270 if test "${ac_cv_header_nbs_h+set}" = set; then
24271 { echo "$as_me:$LINENO: checking
for nbs.h
" >&5
24272 echo $ECHO_N "checking
for nbs.h...
$ECHO_C" >&6; }
24273 if test "${ac_cv_header_nbs_h+set}" = set; then
24274 echo $ECHO_N "(cached
) $ECHO_C" >&6
24276 { echo "$as_me:$LINENO: result
: $ac_cv_header_nbs_h" >&5
24277 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
24279 # Is the header compilable?
24280 { echo "$as_me:$LINENO: checking nbs.h usability
" >&5
24281 echo $ECHO_N "checking nbs.h usability...
$ECHO_C" >&6; }
24282 cat >conftest.$ac_ext <<_ACEOF
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24288 $ac_includes_default
24291 rm -f conftest.$ac_objext
24292 if { (ac_try="$ac_compile"
24293 case "(($ac_try" in
24294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295 *) ac_try_echo=$ac_try;;
24297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24298 (eval "$ac_compile") 2>conftest.er1
24300 grep -v '^ *+' conftest.er1 >conftest.err
24302 cat conftest.err >&5
24303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24304 (exit $ac_status); } &&
24305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24306 { (case "(($ac_try" in
24307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308 *) ac_try_echo=$ac_try;;
24310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24311 (eval "$ac_try") 2>&5
24313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24314 (exit $ac_status); }; } &&
24315 { ac_try='test -s conftest.$ac_objext'
24316 { (case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_try") 2>&5
24323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24324 (exit $ac_status); }; }; then
24325 ac_header_compiler=yes
24327 echo "$as_me: failed program was
:" >&5
24328 sed 's/^/| /' conftest.$ac_ext >&5
24330 ac_header_compiler=no
24333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24334 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24335 echo "${ECHO_T}$ac_header_compiler" >&6; }
24337 # Is the header present?
24338 { echo "$as_me:$LINENO: checking nbs.h presence
" >&5
24339 echo $ECHO_N "checking nbs.h presence...
$ECHO_C" >&6; }
24340 cat >conftest.$ac_ext <<_ACEOF
24343 cat confdefs.h >>conftest.$ac_ext
24344 cat >>conftest.$ac_ext <<_ACEOF
24345 /* end confdefs.h. */
24348 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24349 case "(($ac_try" in
24350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24351 *) ac_try_echo=$ac_try;;
24353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24354 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24356 grep -v '^ *+' conftest.er1 >conftest.err
24358 cat conftest.err >&5
24359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24360 (exit $ac_status); } >/dev/null; then
24361 if test -s conftest.err; then
24362 ac_cpp_err=$ac_c_preproc_warn_flag
24363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24370 if test -z "$ac_cpp_err"; then
24371 ac_header_preproc=yes
24373 echo "$as_me: failed program was
:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24376 ac_header_preproc=no
24379 rm -f conftest.err conftest.$ac_ext
24380 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24381 echo "${ECHO_T}$ac_header_preproc" >&6; }
24383 # So? What about this header?
24384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24386 { echo "$as_me:$LINENO: WARNING
: nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24387 echo "$as_me: WARNING
: nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24388 { echo "$as_me:$LINENO: WARNING
: nbs.h
: proceeding with the compiler
's result" >&5
24389 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result
" >&2;}
24390 ac_header_preproc=yes
24393 { echo "$as_me:$LINENO: WARNING
: nbs.h
: present but cannot be compiled
" >&5
24394 echo "$as_me: WARNING
: nbs.h
: present but cannot be compiled
" >&2;}
24395 { echo "$as_me:$LINENO: WARNING
: nbs.h
: check
for missing prerequisite headers?
" >&5
24396 echo "$as_me: WARNING
: nbs.h
: check
for missing prerequisite headers?
" >&2;}
24397 { echo "$as_me:$LINENO: WARNING
: nbs.h
: see the Autoconf documentation
" >&5
24398 echo "$as_me: WARNING
: nbs.h
: see the Autoconf documentation
" >&2;}
24399 { echo "$as_me:$LINENO: WARNING
: nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24400 echo "$as_me: WARNING
: nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24401 { echo "$as_me:$LINENO: WARNING
: nbs.h
: proceeding with the preprocessor
's result" >&5
24402 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result
" >&2;}
24403 { echo "$as_me:$LINENO: WARNING
: nbs.h
: in the future
, the compiler will take precedence
" >&5
24404 echo "$as_me: WARNING
: nbs.h
: in the future
, the compiler will take precedence
" >&2;}
24406 ## ------------------------------- ##
24407 ## Report this to www.asterisk.org ##
24408 ## ------------------------------- ##
24410 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
24413 { echo "$as_me:$LINENO: checking
for nbs.h
" >&5
24414 echo $ECHO_N "checking
for nbs.h...
$ECHO_C" >&6; }
24415 if test "${ac_cv_header_nbs_h+set}" = set; then
24416 echo $ECHO_N "(cached
) $ECHO_C" >&6
24418 ac_cv_header_nbs_h=$ac_header_preproc
24420 { echo "$as_me:$LINENO: result
: $ac_cv_header_nbs_h" >&5
24421 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
24424 if test $ac_cv_header_nbs_h = yes; then
24433 if test "x
${NBS_HEADER_FOUND}" = "x0
" ; then
24434 if test -n "${NBS_MANDATORY}" ;
24436 { echo "$as_me:$LINENO: ***" >&5
24437 echo "$as_me: ***" >&6;}
24438 { echo "$as_me:$LINENO: *** It appears that you
do not have the nbs development package installed.
" >&5
24439 echo "$as_me: *** It appears that you
do not have the nbs development package installed.
" >&6;}
24440 { echo "$as_me:$LINENO: *** Please
install it to include
${NBS_DESCRIP} support
, or re-run configure
" >&5
24441 echo "$as_me: *** Please
install it to include
${NBS_DESCRIP} support
, or re-run configure
" >&6;}
24442 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NBS_OPTION}" >&5
24443 echo "$as_me: *** without explicitly specifying
--with-${NBS_OPTION}" >&6;}
24452 cat >>confdefs.h <<_ACEOF
24457 elif test -n "${NBS_MANDATORY}";
24459 { echo "$as_me:$LINENO: ***" >&5
24460 echo "$as_me: ***" >&6;}
24461 { echo "$as_me:$LINENO: *** The
${NBS_DESCRIP} installation on this system appears to be broken.
" >&5
24462 echo "$as_me: *** The
${NBS_DESCRIP} installation on this system appears to be broken.
" >&6;}
24463 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
24464 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
24465 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NBS_OPTION}" >&5
24466 echo "$as_me: *** without explicitly specifying
--with-${NBS_OPTION}" >&6;}
24473 if test "${USE_NCURSES}" != "no
"; then
24475 if test "x
${NCURSES_DIR}" != "x
"; then
24476 if test -d ${NCURSES_DIR}/lib; then
24477 pbxlibdir="-L${NCURSES_DIR}/lib
"
24479 pbxlibdir="-L${NCURSES_DIR}"
24482 { echo "$as_me:$LINENO: checking
for initscr
in -lncurses" >&5
24483 echo $ECHO_N "checking
for initscr
in -lncurses...
$ECHO_C" >&6; }
24484 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
24485 echo $ECHO_N "(cached
) $ECHO_C" >&6
24487 ac_check_lib_save_LIBS=$LIBS
24488 LIBS="-lncurses ${pbxlibdir} $LIBS"
24489 cat >conftest.$ac_ext <<_ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h. */
24496 /* Override any GCC internal prototype to avoid an error.
24497 Use char because int might match the return type of a GCC
24498 builtin and then its argument prototype would still apply. */
24511 rm -f conftest.$ac_objext conftest$ac_exeext
24512 if { (ac_try="$ac_link"
24513 case "(($ac_try" in
24514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515 *) ac_try_echo=$ac_try;;
24517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24518 (eval "$ac_link") 2>conftest.er1
24520 grep -v '^ *+' conftest.er1 >conftest.err
24522 cat conftest.err >&5
24523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24524 (exit $ac_status); } &&
24525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24526 { (case "(($ac_try" in
24527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24531 (eval "$ac_try") 2>&5
24533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24534 (exit $ac_status); }; } &&
24535 { ac_try='test -s conftest$ac_exeext'
24536 { (case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24541 (eval "$ac_try") 2>&5
24543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24544 (exit $ac_status); }; }; then
24545 ac_cv_lib_ncurses_initscr=yes
24547 echo "$as_me: failed program was
:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24550 ac_cv_lib_ncurses_initscr=no
24553 rm -f core conftest.err conftest.$ac_objext \
24554 conftest$ac_exeext conftest.$ac_ext
24555 LIBS=$ac_check_lib_save_LIBS
24557 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_initscr" >&5
24558 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
24559 if test $ac_cv_lib_ncurses_initscr = yes; then
24560 AST_NCURSES_FOUND=yes
24562 AST_NCURSES_FOUND=no
24566 if test "${AST_NCURSES_FOUND}" = "yes"; then
24567 NCURSES_LIB="-lncurses "
24568 NCURSES_HEADER_FOUND="1"
24569 if test "x
${NCURSES_DIR}" != "x
"; then
24570 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
24571 NCURSES_INCLUDE="-I${NCURSES_DIR}/include
"
24572 saved_cppflags="${CPPFLAGS}"
24573 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include
"
24574 if test "xcurses.h
" != "x
" ; then
24575 as_ac_Header=`echo "ac_cv_header_
${NCURSES_DIR}/include
/curses.h
" | $as_tr_sh`
24576 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24577 { echo "$as_me:$LINENO: checking
for ${NCURSES_DIR}/include
/curses.h
" >&5
24578 echo $ECHO_N "checking
for ${NCURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
24579 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24580 echo $ECHO_N "(cached
) $ECHO_C" >&6
24582 ac_res=`eval echo '${'$as_ac_Header'}'`
24583 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24584 echo "${ECHO_T}$ac_res" >&6; }
24586 # Is the header compilable?
24587 { echo "$as_me:$LINENO: checking
${NCURSES_DIR}/include
/curses.h usability
" >&5
24588 echo $ECHO_N "checking
${NCURSES_DIR}/include
/curses.h usability...
$ECHO_C" >&6; }
24589 cat >conftest.$ac_ext <<_ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h. */
24595 $ac_includes_default
24596 #include <${NCURSES_DIR}/include/curses.h>
24598 rm -f conftest.$ac_objext
24599 if { (ac_try="$ac_compile"
24600 case "(($ac_try" in
24601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602 *) ac_try_echo=$ac_try;;
24604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24605 (eval "$ac_compile") 2>conftest.er1
24607 grep -v '^ *+' conftest.er1 >conftest.err
24609 cat conftest.err >&5
24610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24611 (exit $ac_status); } &&
24612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24613 { (case "(($ac_try" in
24614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24615 *) ac_try_echo=$ac_try;;
24617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24618 (eval "$ac_try") 2>&5
24620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24621 (exit $ac_status); }; } &&
24622 { ac_try='test -s conftest.$ac_objext'
24623 { (case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_try") 2>&5
24630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24631 (exit $ac_status); }; }; then
24632 ac_header_compiler=yes
24634 echo "$as_me: failed program was
:" >&5
24635 sed 's/^/| /' conftest.$ac_ext >&5
24637 ac_header_compiler=no
24640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24641 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24642 echo "${ECHO_T}$ac_header_compiler" >&6; }
24644 # Is the header present?
24645 { echo "$as_me:$LINENO: checking
${NCURSES_DIR}/include
/curses.h presence
" >&5
24646 echo $ECHO_N "checking
${NCURSES_DIR}/include
/curses.h presence...
$ECHO_C" >&6; }
24647 cat >conftest.$ac_ext <<_ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h. */
24653 #include <${NCURSES_DIR}/include/curses.h>
24655 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24656 case "(($ac_try" in
24657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658 *) ac_try_echo=$ac_try;;
24660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24661 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24663 grep -v '^ *+' conftest.er1 >conftest.err
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24667 (exit $ac_status); } >/dev/null; then
24668 if test -s conftest.err; then
24669 ac_cpp_err=$ac_c_preproc_warn_flag
24670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24677 if test -z "$ac_cpp_err"; then
24678 ac_header_preproc=yes
24680 echo "$as_me: failed program was
:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24683 ac_header_preproc=no
24686 rm -f conftest.err conftest.$ac_ext
24687 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24688 echo "${ECHO_T}$ac_header_preproc" >&6; }
24690 # So? What about this header?
24691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24693 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24694 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24695 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: proceeding with the compiler
's result" >&5
24696 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result
" >&2;}
24697 ac_header_preproc=yes
24700 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&5
24701 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&2;}
24702 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&5
24703 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&2;}
24704 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&5
24705 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&2;}
24706 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24707 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24708 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: proceeding with the preprocessor
's result" >&5
24709 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result
" >&2;}
24710 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&5
24711 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&2;}
24713 ## ------------------------------- ##
24714 ## Report this to www.asterisk.org ##
24715 ## ------------------------------- ##
24717 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
24720 { echo "$as_me:$LINENO: checking
for ${NCURSES_DIR}/include
/curses.h
" >&5
24721 echo $ECHO_N "checking
for ${NCURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
24722 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24723 echo $ECHO_N "(cached
) $ECHO_C" >&6
24725 eval "$as_ac_Header=\
$ac_header_preproc"
24727 ac_res=`eval echo '${'$as_ac_Header'}'`
24728 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24729 echo "${ECHO_T}$ac_res" >&6; }
24732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24733 NCURSES_HEADER_FOUND=1
24735 NCURSES_HEADER_FOUND=0
24740 CPPFLAGS="${saved_cppflags}"
24742 if test "xcurses.h
" != "x
" ; then
24743 if test "${ac_cv_header_curses_h+set}" = set; then
24744 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
24745 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
24746 if test "${ac_cv_header_curses_h+set}" = set; then
24747 echo $ECHO_N "(cached
) $ECHO_C" >&6
24749 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
24750 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24752 # Is the header compilable?
24753 { echo "$as_me:$LINENO: checking curses.h usability
" >&5
24754 echo $ECHO_N "checking curses.h usability...
$ECHO_C" >&6; }
24755 cat >conftest.$ac_ext <<_ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h. */
24761 $ac_includes_default
24762 #include <curses.h>
24764 rm -f conftest.$ac_objext
24765 if { (ac_try="$ac_compile"
24766 case "(($ac_try" in
24767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24768 *) ac_try_echo=$ac_try;;
24770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24771 (eval "$ac_compile") 2>conftest.er1
24773 grep -v '^ *+' conftest.er1 >conftest.err
24775 cat conftest.err >&5
24776 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24777 (exit $ac_status); } &&
24778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24779 { (case "(($ac_try" in
24780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24781 *) ac_try_echo=$ac_try;;
24783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24784 (eval "$ac_try") 2>&5
24786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24787 (exit $ac_status); }; } &&
24788 { ac_try='test -s conftest.$ac_objext'
24789 { (case "(($ac_try" in
24790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24794 (eval "$ac_try") 2>&5
24796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24797 (exit $ac_status); }; }; then
24798 ac_header_compiler=yes
24800 echo "$as_me: failed program was
:" >&5
24801 sed 's/^/| /' conftest.$ac_ext >&5
24803 ac_header_compiler=no
24806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24807 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24808 echo "${ECHO_T}$ac_header_compiler" >&6; }
24810 # Is the header present?
24811 { echo "$as_me:$LINENO: checking curses.h presence
" >&5
24812 echo $ECHO_N "checking curses.h presence...
$ECHO_C" >&6; }
24813 cat >conftest.$ac_ext <<_ACEOF
24816 cat confdefs.h >>conftest.$ac_ext
24817 cat >>conftest.$ac_ext <<_ACEOF
24818 /* end confdefs.h. */
24819 #include <curses.h>
24821 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24822 case "(($ac_try" in
24823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824 *) ac_try_echo=$ac_try;;
24826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24827 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24829 grep -v '^ *+' conftest.er1 >conftest.err
24831 cat conftest.err >&5
24832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24833 (exit $ac_status); } >/dev/null; then
24834 if test -s conftest.err; then
24835 ac_cpp_err=$ac_c_preproc_warn_flag
24836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24843 if test -z "$ac_cpp_err"; then
24844 ac_header_preproc=yes
24846 echo "$as_me: failed program was
:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24849 ac_header_preproc=no
24852 rm -f conftest.err conftest.$ac_ext
24853 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24854 echo "${ECHO_T}$ac_header_preproc" >&6; }
24856 # So? What about this header?
24857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24859 { echo "$as_me:$LINENO: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24860 echo "$as_me: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24861 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the compiler
's result" >&5
24862 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result
" >&2;}
24863 ac_header_preproc=yes
24866 { echo "$as_me:$LINENO: WARNING
: curses.h
: present but cannot be compiled
" >&5
24867 echo "$as_me: WARNING
: curses.h
: present but cannot be compiled
" >&2;}
24868 { echo "$as_me:$LINENO: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&5
24869 echo "$as_me: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&2;}
24870 { echo "$as_me:$LINENO: WARNING
: curses.h
: see the Autoconf documentation
" >&5
24871 echo "$as_me: WARNING
: curses.h
: see the Autoconf documentation
" >&2;}
24872 { echo "$as_me:$LINENO: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24873 echo "$as_me: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24874 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&5
24875 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result
" >&2;}
24876 { echo "$as_me:$LINENO: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&5
24877 echo "$as_me: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&2;}
24879 ## ------------------------------- ##
24880 ## Report this to www.asterisk.org ##
24881 ## ------------------------------- ##
24883 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
24886 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
24887 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
24888 if test "${ac_cv_header_curses_h+set}" = set; then
24889 echo $ECHO_N "(cached
) $ECHO_C" >&6
24891 ac_cv_header_curses_h=$ac_header_preproc
24893 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
24894 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24897 if test $ac_cv_header_curses_h = yes; then
24898 NCURSES_HEADER_FOUND=1
24900 NCURSES_HEADER_FOUND=0
24906 if test "x
${NCURSES_HEADER_FOUND}" = "x0
" ; then
24907 if test -n "${NCURSES_MANDATORY}" ;
24909 { echo "$as_me:$LINENO: ***" >&5
24910 echo "$as_me: ***" >&6;}
24911 { echo "$as_me:$LINENO: *** It appears that you
do not have the ncurses development package installed.
" >&5
24912 echo "$as_me: *** It appears that you
do not have the ncurses development package installed.
" >&6;}
24913 { echo "$as_me:$LINENO: *** Please
install it to include
${NCURSES_DESCRIP} support
, or re-run configure
" >&5
24914 echo "$as_me: *** Please
install it to include
${NCURSES_DESCRIP} support
, or re-run configure
" >&6;}
24915 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&5
24916 echo "$as_me: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&6;}
24925 cat >>confdefs.h <<_ACEOF
24926 #define HAVE_NCURSES 1
24930 elif test -n "${NCURSES_MANDATORY}";
24932 { echo "$as_me:$LINENO: ***" >&5
24933 echo "$as_me: ***" >&6;}
24934 { echo "$as_me:$LINENO: *** The
${NCURSES_DESCRIP} installation on this system appears to be broken.
" >&5
24935 echo "$as_me: *** The
${NCURSES_DESCRIP} installation on this system appears to be broken.
" >&6;}
24936 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
24937 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
24938 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&5
24939 echo "$as_me: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&6;}
24946 if test "${USE_NETSNMP}" != "no
"; then
24947 if test "x
${NETSNMP_DIR}" != "x
"; then
24948 if test -n "$ac_tool_prefix"; then
24949 # Extract the first word of "${ac_tool_prefix}net-snmp-config
", so it can be a program name with args.
24950 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
24951 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
24952 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
24953 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
24954 echo $ECHO_N "(cached
) $ECHO_C" >&6
24956 case $NETSNMP_CONFIG in
24958 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
24961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24962 for as_dir in ${NETSNMP_DIR}/bin
24965 test -z "$as_dir" && as_dir=.
24966 for ac_exec_ext in '' $ac_executable_extensions; do
24967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24968 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24969 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
24979 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
24980 if test -n "$NETSNMP_CONFIG"; then
24981 { echo "$as_me:$LINENO: result
: $NETSNMP_CONFIG" >&5
24982 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
24984 { echo "$as_me:$LINENO: result
: no
" >&5
24985 echo "${ECHO_T}no
" >&6; }
24990 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
24991 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
24992 # Extract the first word of "net-snmp-config
", so it can be a program name with args.
24993 set dummy net-snmp-config; ac_word=$2
24994 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
24995 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
24996 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
24997 echo $ECHO_N "(cached
) $ECHO_C" >&6
24999 case $ac_pt_NETSNMP_CONFIG in
25001 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
25004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25005 for as_dir in ${NETSNMP_DIR}/bin
25008 test -z "$as_dir" && as_dir=.
25009 for ac_exec_ext in '' $ac_executable_extensions; do
25010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25011 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25012 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
25022 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
25023 if test -n "$ac_pt_NETSNMP_CONFIG"; then
25024 { echo "$as_me:$LINENO: result
: $ac_pt_NETSNMP_CONFIG" >&5
25025 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
25027 { echo "$as_me:$LINENO: result
: no
" >&5
25028 echo "${ECHO_T}no
" >&6; }
25031 if test "x
$ac_pt_NETSNMP_CONFIG" = x; then
25032 NETSNMP_CONFIG="No
"
25034 case $cross_compiling:$ac_tool_warned in
25036 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
25037 whose name does not start with the
host triplet. If you think this
25038 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
25039 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
25040 whose name does not start with the
host triplet. If you think this
25041 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
25042 ac_tool_warned=yes ;;
25044 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
25047 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
25050 if test x"${NETSNMP_CONFIG}" = xNo; then
25051 { echo "$as_me:$LINENO: ***" >&5
25052 echo "$as_me: ***" >&6;}
25053 { echo "$as_me:$LINENO: *** net-snmp-config was not found
in the path you specified
:" >&5
25054 echo "$as_me: *** net-snmp-config was not found
in the path you specified
:" >&6;}
25055 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin
" >&5
25056 echo "$as_me: *** ${NETSNMP_DIR}/bin
" >&6;}
25057 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
25058 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
25059 { echo "$as_me:$LINENO: *** including
--without-netsnmp" >&5
25060 echo "$as_me: *** including
--without-netsnmp" >&6;}
25064 if test -n "$ac_tool_prefix"; then
25065 # Extract the first word of "${ac_tool_prefix}net-snmp-config
", so it can be a program name with args.
25066 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
25067 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
25068 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
25069 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
25070 echo $ECHO_N "(cached
) $ECHO_C" >&6
25072 case $NETSNMP_CONFIG in
25074 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
25077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25078 for as_dir in $PATH
25081 test -z "$as_dir" && as_dir=.
25082 for ac_exec_ext in '' $ac_executable_extensions; do
25083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25084 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25085 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
25095 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
25096 if test -n "$NETSNMP_CONFIG"; then
25097 { echo "$as_me:$LINENO: result
: $NETSNMP_CONFIG" >&5
25098 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
25100 { echo "$as_me:$LINENO: result
: no
" >&5
25101 echo "${ECHO_T}no
" >&6; }
25106 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
25107 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
25108 # Extract the first word of "net-snmp-config
", so it can be a program name with args.
25109 set dummy net-snmp-config; ac_word=$2
25110 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
25111 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
25112 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
25113 echo $ECHO_N "(cached
) $ECHO_C" >&6
25115 case $ac_pt_NETSNMP_CONFIG in
25117 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
25120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25121 for as_dir in $PATH
25124 test -z "$as_dir" && as_dir=.
25125 for ac_exec_ext in '' $ac_executable_extensions; do
25126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25127 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25128 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
25138 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
25139 if test -n "$ac_pt_NETSNMP_CONFIG"; then
25140 { echo "$as_me:$LINENO: result
: $ac_pt_NETSNMP_CONFIG" >&5
25141 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
25143 { echo "$as_me:$LINENO: result
: no
" >&5
25144 echo "${ECHO_T}no
" >&6; }
25147 if test "x
$ac_pt_NETSNMP_CONFIG" = x; then
25148 NETSNMP_CONFIG="No
"
25150 case $cross_compiling:$ac_tool_warned in
25152 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
25153 whose name does not start with the
host triplet. If you think this
25154 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
25155 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
25156 whose name does not start with the
host triplet. If you think this
25157 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
25158 ac_tool_warned=yes ;;
25160 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
25163 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
25168 if test x"${NETSNMP_CONFIG}" != xNo; then
25169 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
25171 { echo "$as_me:$LINENO: checking
for snmp_register_callback
in -lnetsnmp" >&5
25172 echo $ECHO_N "checking
for snmp_register_callback
in -lnetsnmp...
$ECHO_C" >&6; }
25173 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
25174 echo $ECHO_N "(cached
) $ECHO_C" >&6
25176 ac_check_lib_save_LIBS=$LIBS
25177 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
25178 cat >conftest.$ac_ext <<_ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25185 /* Override any GCC internal prototype to avoid an error.
25186 Use char because int might match the return type of a GCC
25187 builtin and then its argument prototype would still apply. */
25191 char snmp_register_callback ();
25195 return snmp_register_callback ();
25200 rm -f conftest.$ac_objext conftest$ac_exeext
25201 if { (ac_try="$ac_link"
25202 case "(($ac_try" in
25203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25204 *) ac_try_echo=$ac_try;;
25206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25207 (eval "$ac_link") 2>conftest.er1
25209 grep -v '^ *+' conftest.er1 >conftest.err
25211 cat conftest.err >&5
25212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25213 (exit $ac_status); } &&
25214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25215 { (case "(($ac_try" in
25216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217 *) ac_try_echo=$ac_try;;
25219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25220 (eval "$ac_try") 2>&5
25222 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25223 (exit $ac_status); }; } &&
25224 { ac_try='test -s conftest$ac_exeext'
25225 { (case "(($ac_try" in
25226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227 *) ac_try_echo=$ac_try;;
25229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25230 (eval "$ac_try") 2>&5
25232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25233 (exit $ac_status); }; }; then
25234 ac_cv_lib_netsnmp_snmp_register_callback=yes
25236 echo "$as_me: failed program was
:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25239 ac_cv_lib_netsnmp_snmp_register_callback=no
25242 rm -f core conftest.err conftest.$ac_objext \
25243 conftest$ac_exeext conftest.$ac_ext
25244 LIBS=$ac_check_lib_save_LIBS
25246 { echo "$as_me:$LINENO: result
: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
25247 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
25248 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
25250 cat >>confdefs.h <<_ACEOF
25251 #define HAVE_NETSNMP 1
25257 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
25258 NETSNMP_LIB="${NETSNMP_libs}"
25260 elif test -n "${NETSNMP_MANDATORY}";
25262 { echo "$as_me:$LINENO: ***" >&5
25263 echo "$as_me: ***" >&6;}
25264 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken.
" >&5
25265 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken.
" >&6;}
25266 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
25267 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
25268 { echo "$as_me:$LINENO: *** including
--without-netsnmp" >&5
25269 echo "$as_me: *** including
--without-netsnmp" >&6;}
25272 elif test -n "${NETSNMP_MANDATORY}";
25274 { echo "$as_me:$LINENO: ***" >&5
25275 echo "$as_me: ***" >&6;}
25276 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken.
" >&5
25277 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken.
" >&6;}
25278 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
25279 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
25280 { echo "$as_me:$LINENO: *** including
--without-netsnmp" >&5
25281 echo "$as_me: *** including
--without-netsnmp" >&6;}
25286 if test "${USE_NEWT}" != "no
"; then
25288 if test "x
${NEWT_DIR}" != "x
"; then
25289 if test -d ${NEWT_DIR}/lib; then
25290 pbxlibdir="-L${NEWT_DIR}/lib
"
25292 pbxlibdir="-L${NEWT_DIR}"
25295 { echo "$as_me:$LINENO: checking
for newtBell
in -lnewt" >&5
25296 echo $ECHO_N "checking
for newtBell
in -lnewt...
$ECHO_C" >&6; }
25297 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
25298 echo $ECHO_N "(cached
) $ECHO_C" >&6
25300 ac_check_lib_save_LIBS=$LIBS
25301 LIBS="-lnewt ${pbxlibdir} $LIBS"
25302 cat >conftest.$ac_ext <<_ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h. */
25309 /* Override any GCC internal prototype to avoid an error.
25310 Use char because int might match the return type of a GCC
25311 builtin and then its argument prototype would still apply. */
25319 return newtBell ();
25324 rm -f conftest.$ac_objext conftest$ac_exeext
25325 if { (ac_try="$ac_link"
25326 case "(($ac_try" in
25327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25328 *) ac_try_echo=$ac_try;;
25330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25331 (eval "$ac_link") 2>conftest.er1
25333 grep -v '^ *+' conftest.er1 >conftest.err
25335 cat conftest.err >&5
25336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25337 (exit $ac_status); } &&
25338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25339 { (case "(($ac_try" in
25340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25341 *) ac_try_echo=$ac_try;;
25343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25344 (eval "$ac_try") 2>&5
25346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25347 (exit $ac_status); }; } &&
25348 { ac_try='test -s conftest$ac_exeext'
25349 { (case "(($ac_try" in
25350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25351 *) ac_try_echo=$ac_try;;
25353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25354 (eval "$ac_try") 2>&5
25356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25357 (exit $ac_status); }; }; then
25358 ac_cv_lib_newt_newtBell=yes
25360 echo "$as_me: failed program was
:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25363 ac_cv_lib_newt_newtBell=no
25366 rm -f core conftest.err conftest.$ac_objext \
25367 conftest$ac_exeext conftest.$ac_ext
25368 LIBS=$ac_check_lib_save_LIBS
25370 { echo "$as_me:$LINENO: result
: $ac_cv_lib_newt_newtBell" >&5
25371 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
25372 if test $ac_cv_lib_newt_newtBell = yes; then
25379 if test "${AST_NEWT_FOUND}" = "yes"; then
25381 NEWT_HEADER_FOUND="1"
25382 if test "x
${NEWT_DIR}" != "x
"; then
25383 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
25384 NEWT_INCLUDE="-I${NEWT_DIR}/include
"
25385 saved_cppflags="${CPPFLAGS}"
25386 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include
"
25387 if test "xnewt.h
" != "x
" ; then
25388 as_ac_Header=`echo "ac_cv_header_
${NEWT_DIR}/include
/newt.h
" | $as_tr_sh`
25389 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25390 { echo "$as_me:$LINENO: checking
for ${NEWT_DIR}/include
/newt.h
" >&5
25391 echo $ECHO_N "checking
for ${NEWT_DIR}/include
/newt.h...
$ECHO_C" >&6; }
25392 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25393 echo $ECHO_N "(cached
) $ECHO_C" >&6
25395 ac_res=`eval echo '${'$as_ac_Header'}'`
25396 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25397 echo "${ECHO_T}$ac_res" >&6; }
25399 # Is the header compilable?
25400 { echo "$as_me:$LINENO: checking
${NEWT_DIR}/include
/newt.h usability
" >&5
25401 echo $ECHO_N "checking
${NEWT_DIR}/include
/newt.h usability...
$ECHO_C" >&6; }
25402 cat >conftest.$ac_ext <<_ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25408 $ac_includes_default
25409 #include <${NEWT_DIR}/include/newt.h>
25411 rm -f conftest.$ac_objext
25412 if { (ac_try="$ac_compile"
25413 case "(($ac_try" in
25414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25415 *) ac_try_echo=$ac_try;;
25417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25418 (eval "$ac_compile") 2>conftest.er1
25420 grep -v '^ *+' conftest.er1 >conftest.err
25422 cat conftest.err >&5
25423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25424 (exit $ac_status); } &&
25425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25426 { (case "(($ac_try" in
25427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25428 *) ac_try_echo=$ac_try;;
25430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25431 (eval "$ac_try") 2>&5
25433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25434 (exit $ac_status); }; } &&
25435 { ac_try='test -s conftest.$ac_objext'
25436 { (case "(($ac_try" in
25437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25438 *) ac_try_echo=$ac_try;;
25440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25441 (eval "$ac_try") 2>&5
25443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25444 (exit $ac_status); }; }; then
25445 ac_header_compiler=yes
25447 echo "$as_me: failed program was
:" >&5
25448 sed 's/^/| /' conftest.$ac_ext >&5
25450 ac_header_compiler=no
25453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25454 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25455 echo "${ECHO_T}$ac_header_compiler" >&6; }
25457 # Is the header present?
25458 { echo "$as_me:$LINENO: checking
${NEWT_DIR}/include
/newt.h presence
" >&5
25459 echo $ECHO_N "checking
${NEWT_DIR}/include
/newt.h presence...
$ECHO_C" >&6; }
25460 cat >conftest.$ac_ext <<_ACEOF
25463 cat confdefs.h >>conftest.$ac_ext
25464 cat >>conftest.$ac_ext <<_ACEOF
25465 /* end confdefs.h. */
25466 #include <${NEWT_DIR}/include/newt.h>
25468 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25469 case "(($ac_try" in
25470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25471 *) ac_try_echo=$ac_try;;
25473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25474 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25476 grep -v '^ *+' conftest.er1 >conftest.err
25478 cat conftest.err >&5
25479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25480 (exit $ac_status); } >/dev/null; then
25481 if test -s conftest.err; then
25482 ac_cpp_err=$ac_c_preproc_warn_flag
25483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25490 if test -z "$ac_cpp_err"; then
25491 ac_header_preproc=yes
25493 echo "$as_me: failed program was
:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25496 ac_header_preproc=no
25499 rm -f conftest.err conftest.$ac_ext
25500 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25501 echo "${ECHO_T}$ac_header_preproc" >&6; }
25503 # So? What about this header?
25504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25506 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25507 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25508 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: proceeding with the compiler
's result" >&5
25509 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result
" >&2;}
25510 ac_header_preproc=yes
25513 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: present but cannot be compiled
" >&5
25514 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: present but cannot be compiled
" >&2;}
25515 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: check
for missing prerequisite headers?
" >&5
25516 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: check
for missing prerequisite headers?
" >&2;}
25517 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: see the Autoconf documentation
" >&5
25518 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: see the Autoconf documentation
" >&2;}
25519 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25520 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25521 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: proceeding with the preprocessor
's result" >&5
25522 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result
" >&2;}
25523 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: in the future
, the compiler will take precedence
" >&5
25524 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: in the future
, the compiler will take precedence
" >&2;}
25526 ## ------------------------------- ##
25527 ## Report this to www.asterisk.org ##
25528 ## ------------------------------- ##
25530 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
25533 { echo "$as_me:$LINENO: checking
for ${NEWT_DIR}/include
/newt.h
" >&5
25534 echo $ECHO_N "checking
for ${NEWT_DIR}/include
/newt.h...
$ECHO_C" >&6; }
25535 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25536 echo $ECHO_N "(cached
) $ECHO_C" >&6
25538 eval "$as_ac_Header=\
$ac_header_preproc"
25540 ac_res=`eval echo '${'$as_ac_Header'}'`
25541 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25542 echo "${ECHO_T}$ac_res" >&6; }
25545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25546 NEWT_HEADER_FOUND=1
25548 NEWT_HEADER_FOUND=0
25553 CPPFLAGS="${saved_cppflags}"
25555 if test "xnewt.h
" != "x
" ; then
25556 if test "${ac_cv_header_newt_h+set}" = set; then
25557 { echo "$as_me:$LINENO: checking
for newt.h
" >&5
25558 echo $ECHO_N "checking
for newt.h...
$ECHO_C" >&6; }
25559 if test "${ac_cv_header_newt_h+set}" = set; then
25560 echo $ECHO_N "(cached
) $ECHO_C" >&6
25562 { echo "$as_me:$LINENO: result
: $ac_cv_header_newt_h" >&5
25563 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
25565 # Is the header compilable?
25566 { echo "$as_me:$LINENO: checking newt.h usability
" >&5
25567 echo $ECHO_N "checking newt.h usability...
$ECHO_C" >&6; }
25568 cat >conftest.$ac_ext <<_ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25574 $ac_includes_default
25577 rm -f conftest.$ac_objext
25578 if { (ac_try="$ac_compile"
25579 case "(($ac_try" in
25580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25581 *) ac_try_echo=$ac_try;;
25583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25584 (eval "$ac_compile") 2>conftest.er1
25586 grep -v '^ *+' conftest.er1 >conftest.err
25588 cat conftest.err >&5
25589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25590 (exit $ac_status); } &&
25591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25592 { (case "(($ac_try" in
25593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25594 *) ac_try_echo=$ac_try;;
25596 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25597 (eval "$ac_try") 2>&5
25599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25600 (exit $ac_status); }; } &&
25601 { ac_try='test -s conftest.$ac_objext'
25602 { (case "(($ac_try" in
25603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604 *) ac_try_echo=$ac_try;;
25606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25607 (eval "$ac_try") 2>&5
25609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25610 (exit $ac_status); }; }; then
25611 ac_header_compiler=yes
25613 echo "$as_me: failed program was
:" >&5
25614 sed 's/^/| /' conftest.$ac_ext >&5
25616 ac_header_compiler=no
25619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25620 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25621 echo "${ECHO_T}$ac_header_compiler" >&6; }
25623 # Is the header present?
25624 { echo "$as_me:$LINENO: checking newt.h presence
" >&5
25625 echo $ECHO_N "checking newt.h presence...
$ECHO_C" >&6; }
25626 cat >conftest.$ac_ext <<_ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h. */
25634 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25635 case "(($ac_try" in
25636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25640 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25642 grep -v '^ *+' conftest.er1 >conftest.err
25644 cat conftest.err >&5
25645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25646 (exit $ac_status); } >/dev/null; then
25647 if test -s conftest.err; then
25648 ac_cpp_err=$ac_c_preproc_warn_flag
25649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25656 if test -z "$ac_cpp_err"; then
25657 ac_header_preproc=yes
25659 echo "$as_me: failed program was
:" >&5
25660 sed 's/^/| /' conftest.$ac_ext >&5
25662 ac_header_preproc=no
25665 rm -f conftest.err conftest.$ac_ext
25666 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25667 echo "${ECHO_T}$ac_header_preproc" >&6; }
25669 # So? What about this header?
25670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25672 { echo "$as_me:$LINENO: WARNING
: newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25673 echo "$as_me: WARNING
: newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25674 { echo "$as_me:$LINENO: WARNING
: newt.h
: proceeding with the compiler
's result" >&5
25675 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result
" >&2;}
25676 ac_header_preproc=yes
25679 { echo "$as_me:$LINENO: WARNING
: newt.h
: present but cannot be compiled
" >&5
25680 echo "$as_me: WARNING
: newt.h
: present but cannot be compiled
" >&2;}
25681 { echo "$as_me:$LINENO: WARNING
: newt.h
: check
for missing prerequisite headers?
" >&5
25682 echo "$as_me: WARNING
: newt.h
: check
for missing prerequisite headers?
" >&2;}
25683 { echo "$as_me:$LINENO: WARNING
: newt.h
: see the Autoconf documentation
" >&5
25684 echo "$as_me: WARNING
: newt.h
: see the Autoconf documentation
" >&2;}
25685 { echo "$as_me:$LINENO: WARNING
: newt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25686 echo "$as_me: WARNING
: newt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25687 { echo "$as_me:$LINENO: WARNING
: newt.h
: proceeding with the preprocessor
's result" >&5
25688 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result
" >&2;}
25689 { echo "$as_me:$LINENO: WARNING
: newt.h
: in the future
, the compiler will take precedence
" >&5
25690 echo "$as_me: WARNING
: newt.h
: in the future
, the compiler will take precedence
" >&2;}
25692 ## ------------------------------- ##
25693 ## Report this to www.asterisk.org ##
25694 ## ------------------------------- ##
25696 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
25699 { echo "$as_me:$LINENO: checking
for newt.h
" >&5
25700 echo $ECHO_N "checking
for newt.h...
$ECHO_C" >&6; }
25701 if test "${ac_cv_header_newt_h+set}" = set; then
25702 echo $ECHO_N "(cached
) $ECHO_C" >&6
25704 ac_cv_header_newt_h=$ac_header_preproc
25706 { echo "$as_me:$LINENO: result
: $ac_cv_header_newt_h" >&5
25707 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
25710 if test $ac_cv_header_newt_h = yes; then
25711 NEWT_HEADER_FOUND=1
25713 NEWT_HEADER_FOUND=0
25719 if test "x
${NEWT_HEADER_FOUND}" = "x0
" ; then
25720 if test -n "${NEWT_MANDATORY}" ;
25722 { echo "$as_me:$LINENO: ***" >&5
25723 echo "$as_me: ***" >&6;}
25724 { echo "$as_me:$LINENO: *** It appears that you
do not have the newt development package installed.
" >&5
25725 echo "$as_me: *** It appears that you
do not have the newt development package installed.
" >&6;}
25726 { echo "$as_me:$LINENO: *** Please
install it to include
${NEWT_DESCRIP} support
, or re-run configure
" >&5
25727 echo "$as_me: *** Please
install it to include
${NEWT_DESCRIP} support
, or re-run configure
" >&6;}
25728 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NEWT_OPTION}" >&5
25729 echo "$as_me: *** without explicitly specifying
--with-${NEWT_OPTION}" >&6;}
25738 cat >>confdefs.h <<_ACEOF
25739 #define HAVE_NEWT 1
25743 elif test -n "${NEWT_MANDATORY}";
25745 { echo "$as_me:$LINENO: ***" >&5
25746 echo "$as_me: ***" >&6;}
25747 { echo "$as_me:$LINENO: *** The
${NEWT_DESCRIP} installation on this system appears to be broken.
" >&5
25748 echo "$as_me: *** The
${NEWT_DESCRIP} installation on this system appears to be broken.
" >&6;}
25749 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
25750 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
25751 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NEWT_OPTION}" >&5
25752 echo "$as_me: *** without explicitly specifying
--with-${NEWT_OPTION}" >&6;}
25759 if test "${USE_UNIXODBC}" != "no
"; then
25761 if test "x
${UNIXODBC_DIR}" != "x
"; then
25762 if test -d ${UNIXODBC_DIR}/lib; then
25763 pbxlibdir="-L${UNIXODBC_DIR}/lib
"
25765 pbxlibdir="-L${UNIXODBC_DIR}"
25768 { echo "$as_me:$LINENO: checking
for SQLConnect
in -lodbc" >&5
25769 echo $ECHO_N "checking
for SQLConnect
in -lodbc...
$ECHO_C" >&6; }
25770 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
25771 echo $ECHO_N "(cached
) $ECHO_C" >&6
25773 ac_check_lib_save_LIBS=$LIBS
25774 LIBS="-lodbc ${pbxlibdir} $LIBS"
25775 cat >conftest.$ac_ext <<_ACEOF
25778 cat confdefs.h >>conftest.$ac_ext
25779 cat >>conftest.$ac_ext <<_ACEOF
25780 /* end confdefs.h. */
25782 /* Override any GCC internal prototype to avoid an error.
25783 Use char because int might match the return type of a GCC
25784 builtin and then its argument prototype would still apply. */
25788 char SQLConnect ();
25792 return SQLConnect ();
25797 rm -f conftest.$ac_objext conftest$ac_exeext
25798 if { (ac_try="$ac_link"
25799 case "(($ac_try" in
25800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25801 *) ac_try_echo=$ac_try;;
25803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25804 (eval "$ac_link") 2>conftest.er1
25806 grep -v '^ *+' conftest.er1 >conftest.err
25808 cat conftest.err >&5
25809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25810 (exit $ac_status); } &&
25811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25812 { (case "(($ac_try" in
25813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25814 *) ac_try_echo=$ac_try;;
25816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25817 (eval "$ac_try") 2>&5
25819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25820 (exit $ac_status); }; } &&
25821 { ac_try='test -s conftest$ac_exeext'
25822 { (case "(($ac_try" in
25823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824 *) ac_try_echo=$ac_try;;
25826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25827 (eval "$ac_try") 2>&5
25829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25830 (exit $ac_status); }; }; then
25831 ac_cv_lib_odbc_SQLConnect=yes
25833 echo "$as_me: failed program was
:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25836 ac_cv_lib_odbc_SQLConnect=no
25839 rm -f core conftest.err conftest.$ac_objext \
25840 conftest$ac_exeext conftest.$ac_ext
25841 LIBS=$ac_check_lib_save_LIBS
25843 { echo "$as_me:$LINENO: result
: $ac_cv_lib_odbc_SQLConnect" >&5
25844 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
25845 if test $ac_cv_lib_odbc_SQLConnect = yes; then
25846 AST_UNIXODBC_FOUND=yes
25848 AST_UNIXODBC_FOUND=no
25852 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
25853 UNIXODBC_LIB="-lodbc "
25854 UNIXODBC_HEADER_FOUND="1"
25855 if test "x
${UNIXODBC_DIR}" != "x
"; then
25856 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
25857 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include
"
25858 saved_cppflags="${CPPFLAGS}"
25859 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include
"
25860 if test "xsql.h
" != "x
" ; then
25861 as_ac_Header=`echo "ac_cv_header_
${UNIXODBC_DIR}/include
/sql.h
" | $as_tr_sh`
25862 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25863 { echo "$as_me:$LINENO: checking
for ${UNIXODBC_DIR}/include
/sql.h
" >&5
25864 echo $ECHO_N "checking
for ${UNIXODBC_DIR}/include
/sql.h...
$ECHO_C" >&6; }
25865 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25866 echo $ECHO_N "(cached
) $ECHO_C" >&6
25868 ac_res=`eval echo '${'$as_ac_Header'}'`
25869 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25870 echo "${ECHO_T}$ac_res" >&6; }
25872 # Is the header compilable?
25873 { echo "$as_me:$LINENO: checking
${UNIXODBC_DIR}/include
/sql.h usability
" >&5
25874 echo $ECHO_N "checking
${UNIXODBC_DIR}/include
/sql.h usability...
$ECHO_C" >&6; }
25875 cat >conftest.$ac_ext <<_ACEOF
25878 cat confdefs.h >>conftest.$ac_ext
25879 cat >>conftest.$ac_ext <<_ACEOF
25880 /* end confdefs.h. */
25881 $ac_includes_default
25882 #include <${UNIXODBC_DIR}/include/sql.h>
25884 rm -f conftest.$ac_objext
25885 if { (ac_try="$ac_compile"
25886 case "(($ac_try" in
25887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25888 *) ac_try_echo=$ac_try;;
25890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25891 (eval "$ac_compile") 2>conftest.er1
25893 grep -v '^ *+' conftest.er1 >conftest.err
25895 cat conftest.err >&5
25896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25897 (exit $ac_status); } &&
25898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25899 { (case "(($ac_try" in
25900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25901 *) ac_try_echo=$ac_try;;
25903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25904 (eval "$ac_try") 2>&5
25906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25907 (exit $ac_status); }; } &&
25908 { ac_try='test -s conftest.$ac_objext'
25909 { (case "(($ac_try" in
25910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25911 *) ac_try_echo=$ac_try;;
25913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25914 (eval "$ac_try") 2>&5
25916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25917 (exit $ac_status); }; }; then
25918 ac_header_compiler=yes
25920 echo "$as_me: failed program was
:" >&5
25921 sed 's/^/| /' conftest.$ac_ext >&5
25923 ac_header_compiler=no
25926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25927 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25928 echo "${ECHO_T}$ac_header_compiler" >&6; }
25930 # Is the header present?
25931 { echo "$as_me:$LINENO: checking
${UNIXODBC_DIR}/include
/sql.h presence
" >&5
25932 echo $ECHO_N "checking
${UNIXODBC_DIR}/include
/sql.h presence...
$ECHO_C" >&6; }
25933 cat >conftest.$ac_ext <<_ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h. */
25939 #include <${UNIXODBC_DIR}/include/sql.h>
25941 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25942 case "(($ac_try" in
25943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944 *) ac_try_echo=$ac_try;;
25946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25947 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25949 grep -v '^ *+' conftest.er1 >conftest.err
25951 cat conftest.err >&5
25952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25953 (exit $ac_status); } >/dev/null; then
25954 if test -s conftest.err; then
25955 ac_cpp_err=$ac_c_preproc_warn_flag
25956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25963 if test -z "$ac_cpp_err"; then
25964 ac_header_preproc=yes
25966 echo "$as_me: failed program was
:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25969 ac_header_preproc=no
25972 rm -f conftest.err conftest.$ac_ext
25973 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25974 echo "${ECHO_T}$ac_header_preproc" >&6; }
25976 # So? What about this header?
25977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25979 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25980 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25981 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: proceeding with the compiler
's result" >&5
25982 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result
" >&2;}
25983 ac_header_preproc=yes
25986 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: present but cannot be compiled
" >&5
25987 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: present but cannot be compiled
" >&2;}
25988 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: check
for missing prerequisite headers?
" >&5
25989 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: check
for missing prerequisite headers?
" >&2;}
25990 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: see the Autoconf documentation
" >&5
25991 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: see the Autoconf documentation
" >&2;}
25992 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25993 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25994 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: proceeding with the preprocessor
's result" >&5
25995 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result
" >&2;}
25996 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: in the future
, the compiler will take precedence
" >&5
25997 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: in the future
, the compiler will take precedence
" >&2;}
25999 ## ------------------------------- ##
26000 ## Report this to www.asterisk.org ##
26001 ## ------------------------------- ##
26003 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
26006 { echo "$as_me:$LINENO: checking
for ${UNIXODBC_DIR}/include
/sql.h
" >&5
26007 echo $ECHO_N "checking
for ${UNIXODBC_DIR}/include
/sql.h...
$ECHO_C" >&6; }
26008 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
26009 echo $ECHO_N "(cached
) $ECHO_C" >&6
26011 eval "$as_ac_Header=\
$ac_header_preproc"
26013 ac_res=`eval echo '${'$as_ac_Header'}'`
26014 { echo "$as_me:$LINENO: result
: $ac_res" >&5
26015 echo "${ECHO_T}$ac_res" >&6; }
26018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26019 UNIXODBC_HEADER_FOUND=1
26021 UNIXODBC_HEADER_FOUND=0
26026 CPPFLAGS="${saved_cppflags}"
26028 if test "xsql.h
" != "x
" ; then
26029 if test "${ac_cv_header_sql_h+set}" = set; then
26030 { echo "$as_me:$LINENO: checking
for sql.h
" >&5
26031 echo $ECHO_N "checking
for sql.h...
$ECHO_C" >&6; }
26032 if test "${ac_cv_header_sql_h+set}" = set; then
26033 echo $ECHO_N "(cached
) $ECHO_C" >&6
26035 { echo "$as_me:$LINENO: result
: $ac_cv_header_sql_h" >&5
26036 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
26038 # Is the header compilable?
26039 { echo "$as_me:$LINENO: checking sql.h usability
" >&5
26040 echo $ECHO_N "checking sql.h usability...
$ECHO_C" >&6; }
26041 cat >conftest.$ac_ext <<_ACEOF
26044 cat confdefs.h >>conftest.$ac_ext
26045 cat >>conftest.$ac_ext <<_ACEOF
26046 /* end confdefs.h. */
26047 $ac_includes_default
26050 rm -f conftest.$ac_objext
26051 if { (ac_try="$ac_compile"
26052 case "(($ac_try" in
26053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054 *) ac_try_echo=$ac_try;;
26056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26057 (eval "$ac_compile") 2>conftest.er1
26059 grep -v '^ *+' conftest.er1 >conftest.err
26061 cat conftest.err >&5
26062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26063 (exit $ac_status); } &&
26064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26065 { (case "(($ac_try" in
26066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067 *) ac_try_echo=$ac_try;;
26069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26070 (eval "$ac_try") 2>&5
26072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26073 (exit $ac_status); }; } &&
26074 { ac_try='test -s conftest.$ac_objext'
26075 { (case "(($ac_try" in
26076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26077 *) ac_try_echo=$ac_try;;
26079 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26080 (eval "$ac_try") 2>&5
26082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26083 (exit $ac_status); }; }; then
26084 ac_header_compiler=yes
26086 echo "$as_me: failed program was
:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26089 ac_header_compiler=no
26092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26093 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
26094 echo "${ECHO_T}$ac_header_compiler" >&6; }
26096 # Is the header present?
26097 { echo "$as_me:$LINENO: checking sql.h presence
" >&5
26098 echo $ECHO_N "checking sql.h presence...
$ECHO_C" >&6; }
26099 cat >conftest.$ac_ext <<_ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26107 if { (ac_try="$ac_cpp conftest.
$ac_ext"
26108 case "(($ac_try" in
26109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26110 *) ac_try_echo=$ac_try;;
26112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26113 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
26115 grep -v '^ *+' conftest.er1 >conftest.err
26117 cat conftest.err >&5
26118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26119 (exit $ac_status); } >/dev/null; then
26120 if test -s conftest.err; then
26121 ac_cpp_err=$ac_c_preproc_warn_flag
26122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26129 if test -z "$ac_cpp_err"; then
26130 ac_header_preproc=yes
26132 echo "$as_me: failed program was
:" >&5
26133 sed 's/^/| /' conftest.$ac_ext >&5
26135 ac_header_preproc=no
26138 rm -f conftest.err conftest.$ac_ext
26139 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
26140 echo "${ECHO_T}$ac_header_preproc" >&6; }
26142 # So? What about this header?
26143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26145 { echo "$as_me:$LINENO: WARNING
: sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
26146 echo "$as_me: WARNING
: sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
26147 { echo "$as_me:$LINENO: WARNING
: sql.h
: proceeding with the compiler
's result" >&5
26148 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result
" >&2;}
26149 ac_header_preproc=yes
26152 { echo "$as_me:$LINENO: WARNING
: sql.h
: present but cannot be compiled
" >&5
26153 echo "$as_me: WARNING
: sql.h
: present but cannot be compiled
" >&2;}
26154 { echo "$as_me:$LINENO: WARNING
: sql.h
: check
for missing prerequisite headers?
" >&5
26155 echo "$as_me: WARNING
: sql.h
: check
for missing prerequisite headers?
" >&2;}
26156 { echo "$as_me:$LINENO: WARNING
: sql.h
: see the Autoconf documentation
" >&5
26157 echo "$as_me: WARNING
: sql.h
: see the Autoconf documentation
" >&2;}
26158 { echo "$as_me:$LINENO: WARNING
: sql.h
: section
\"Present But Cannot Be Compiled
\"" >&5
26159 echo "$as_me: WARNING
: sql.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
26160 { echo "$as_me:$LINENO: WARNING
: sql.h
: proceeding with the preprocessor
's result" >&5
26161 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result
" >&2;}
26162 { echo "$as_me:$LINENO: WARNING
: sql.h
: in the future
, the compiler will take precedence
" >&5
26163 echo "$as_me: WARNING
: sql.h
: in the future
, the compiler will take precedence
" >&2;}
26165 ## ------------------------------- ##
26166 ## Report this to www.asterisk.org ##
26167 ## ------------------------------- ##
26169 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
26172 { echo "$as_me:$LINENO: checking
for sql.h
" >&5
26173 echo $ECHO_N "checking
for sql.h...
$ECHO_C" >&6; }
26174 if test "${ac_cv_header_sql_h+set}" = set; then
26175 echo $ECHO_N "(cached
) $ECHO_C" >&6
26177 ac_cv_header_sql_h=$ac_header_preproc
26179 { echo "$as_me:$LINENO: result
: $ac_cv_header_sql_h" >&5
26180 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
26183 if test $ac_cv_header_sql_h = yes; then
26184 UNIXODBC_HEADER_FOUND=1
26186 UNIXODBC_HEADER_FOUND=0
26192 if test "x
${UNIXODBC_HEADER_FOUND}" = "x0
" ; then
26193 if test -n "${UNIXODBC_MANDATORY}" ;
26195 { echo "$as_me:$LINENO: ***" >&5
26196 echo "$as_me: ***" >&6;}
26197 { echo "$as_me:$LINENO: *** It appears that you
do not have the odbc development package installed.
" >&5
26198 echo "$as_me: *** It appears that you
do not have the odbc development package installed.
" >&6;}
26199 { echo "$as_me:$LINENO: *** Please
install it to include
${UNIXODBC_DESCRIP} support
, or re-run configure
" >&5
26200 echo "$as_me: *** Please
install it to include
${UNIXODBC_DESCRIP} support
, or re-run configure
" >&6;}
26201 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&5
26202 echo "$as_me: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&6;}
26206 UNIXODBC_INCLUDE=""
26211 cat >>confdefs.h <<_ACEOF
26212 #define HAVE_UNIXODBC 1
26216 elif test -n "${UNIXODBC_MANDATORY}";
26218 { echo "$as_me:$LINENO: ***" >&5
26219 echo "$as_me: ***" >&6;}
26220 { echo "$as_me:$LINENO: *** The
${UNIXODBC_DESCRIP} installation on this system appears to be broken.
" >&5
26221 echo "$as_me: *** The
${UNIXODBC_DESCRIP} installation on this system appears to be broken.
" >&6;}
26222 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
26223 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
26224 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&5
26225 echo "$as_me: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&6;}
26232 if test "${USE_OGG}" != "no
"; then
26234 if test "x
${OGG_DIR}" != "x
"; then
26235 if test -d ${OGG_DIR}/lib; then
26236 pbxlibdir="-L${OGG_DIR}/lib
"
26238 pbxlibdir="-L${OGG_DIR}"
26241 { echo "$as_me:$LINENO: checking
for ogg_sync_init
in -logg" >&5
26242 echo $ECHO_N "checking
for ogg_sync_init
in -logg...
$ECHO_C" >&6; }
26243 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
26244 echo $ECHO_N "(cached
) $ECHO_C" >&6
26246 ac_check_lib_save_LIBS=$LIBS
26247 LIBS="-logg ${pbxlibdir} $LIBS"
26248 cat >conftest.$ac_ext <<_ACEOF
26251 cat confdefs.h >>conftest.$ac_ext
26252 cat >>conftest.$ac_ext <<_ACEOF
26253 /* end confdefs.h. */
26255 /* Override any GCC internal prototype to avoid an error.
26256 Use char because int might match the return type of a GCC
26257 builtin and then its argument prototype would still apply. */
26261 char ogg_sync_init ();
26265 return ogg_sync_init ();
26270 rm -f conftest.$ac_objext conftest$ac_exeext
26271 if { (ac_try="$ac_link"
26272 case "(($ac_try" in
26273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26274 *) ac_try_echo=$ac_try;;
26276 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26277 (eval "$ac_link") 2>conftest.er1
26279 grep -v '^ *+' conftest.er1 >conftest.err
26281 cat conftest.err >&5
26282 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26283 (exit $ac_status); } &&
26284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26285 { (case "(($ac_try" in
26286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26287 *) ac_try_echo=$ac_try;;
26289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26290 (eval "$ac_try") 2>&5
26292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26293 (exit $ac_status); }; } &&
26294 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
26302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26303 (exit $ac_status); }; }; then
26304 ac_cv_lib_ogg_ogg_sync_init=yes
26306 echo "$as_me: failed program was
:" >&5
26307 sed 's/^/| /' conftest.$ac_ext >&5
26309 ac_cv_lib_ogg_ogg_sync_init=no
26312 rm -f core conftest.err conftest.$ac_objext \
26313 conftest$ac_exeext conftest.$ac_ext
26314 LIBS=$ac_check_lib_save_LIBS
26316 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ogg_ogg_sync_init" >&5
26317 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
26318 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
26325 if test "${AST_OGG_FOUND}" = "yes"; then
26327 OGG_HEADER_FOUND="1"
26328 if test "x
${OGG_DIR}" != "x
"; then
26329 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
26330 OGG_INCLUDE="-I${OGG_DIR}/include
"
26331 saved_cppflags="${CPPFLAGS}"
26332 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include
"
26333 if test "x
" != "x
" ; then
26334 as_ac_Header=`echo "ac_cv_header_
${OGG_DIR}/include
/" | $as_tr_sh`
26335 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
26336 { echo "$as_me:$LINENO: checking
for ${OGG_DIR}/include
/" >&5
26337 echo $ECHO_N "checking
for ${OGG_DIR}/include
/...
$ECHO_C" >&6; }
26338 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
26339 echo $ECHO_N "(cached
) $ECHO_C" >&6
26341 ac_res=`eval echo '${'$as_ac_Header'}'`
26342 { echo "$as_me:$LINENO: result
: $ac_res" >&5
26343 echo "${ECHO_T}$ac_res" >&6; }
26345 # Is the header compilable?
26346 { echo "$as_me:$LINENO: checking
${OGG_DIR}/include
/ usability
" >&5
26347 echo $ECHO_N "checking
${OGG_DIR}/include
/ usability...
$ECHO_C" >&6; }
26348 cat >conftest.$ac_ext <<_ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h. */
26354 $ac_includes_default
26355 #include <${OGG_DIR}/include/>
26357 rm -f conftest.$ac_objext
26358 if { (ac_try="$ac_compile"
26359 case "(($ac_try" in
26360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26361 *) ac_try_echo=$ac_try;;
26363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26364 (eval "$ac_compile") 2>conftest.er1
26366 grep -v '^ *+' conftest.er1 >conftest.err
26368 cat conftest.err >&5
26369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26370 (exit $ac_status); } &&
26371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26372 { (case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_try") 2>&5
26379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26380 (exit $ac_status); }; } &&
26381 { ac_try='test -s conftest.$ac_objext'
26382 { (case "(($ac_try" in
26383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26384 *) ac_try_echo=$ac_try;;
26386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26387 (eval "$ac_try") 2>&5
26389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26390 (exit $ac_status); }; }; then
26391 ac_header_compiler=yes
26393 echo "$as_me: failed program was
:" >&5
26394 sed 's/^/| /' conftest.$ac_ext >&5
26396 ac_header_compiler=no
26399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26400 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
26401 echo "${ECHO_T}$ac_header_compiler" >&6; }
26403 # Is the header present?
26404 { echo "$as_me:$LINENO: checking
${OGG_DIR}/include
/ presence
" >&5
26405 echo $ECHO_N "checking
${OGG_DIR}/include
/ presence...
$ECHO_C" >&6; }
26406 cat >conftest.$ac_ext <<_ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h. */
26412 #include <${OGG_DIR}/include/>
26414 if { (ac_try="$ac_cpp conftest.
$ac_ext"
26415 case "(($ac_try" in
26416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26417 *) ac_try_echo=$ac_try;;
26419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26420 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
26422 grep -v '^ *+' conftest.er1 >conftest.err
26424 cat conftest.err >&5
26425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26426 (exit $ac_status); } >/dev/null; then
26427 if test -s conftest.err; then
26428 ac_cpp_err=$ac_c_preproc_warn_flag
26429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26436 if test -z "$ac_cpp_err"; then
26437 ac_header_preproc=yes
26439 echo "$as_me: failed program was
:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 ac_header_preproc=no
26445 rm -f conftest.err conftest.$ac_ext
26446 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
26447 echo "${ECHO_T}$ac_header_preproc" >&6; }
26449 # So? What about this header?
26450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26452 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&5
26453 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
26454 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: proceeding with the compiler
's result" >&5
26455 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result
" >&2;}
26456 ac_header_preproc=yes
26459 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: present but cannot be compiled
" >&5
26460 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: present but cannot be compiled
" >&2;}
26461 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: check
for missing prerequisite headers?
" >&5
26462 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: check
for missing prerequisite headers?
" >&2;}
26463 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: see the Autoconf documentation
" >&5
26464 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: see the Autoconf documentation
" >&2;}
26465 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&5
26466 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&2;}
26467 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: proceeding with the preprocessor
's result" >&5
26468 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result
" >&2;}
26469 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: in the future
, the compiler will take precedence
" >&5
26470 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: in the future
, the compiler will take precedence
" >&2;}
26472 ## ------------------------------- ##
26473 ## Report this to www.asterisk.org ##
26474 ## ------------------------------- ##
26476 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
26479 { echo "$as_me:$LINENO: checking
for ${OGG_DIR}/include
/" >&5
26480 echo $ECHO_N "checking
for ${OGG_DIR}/include
/...
$ECHO_C" >&6; }
26481 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
26482 echo $ECHO_N "(cached
) $ECHO_C" >&6
26484 eval "$as_ac_Header=\
$ac_header_preproc"
26486 ac_res=`eval echo '${'$as_ac_Header'}'`
26487 { echo "$as_me:$LINENO: result
: $ac_res" >&5
26488 echo "${ECHO_T}$ac_res" >&6; }
26491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26499 CPPFLAGS="${saved_cppflags}"
26501 if test "x
" != "x
" ; then
26502 if test "${ac_cv_header_+set}" = set; then
26503 { echo "$as_me:$LINENO: checking
for " >&5
26504 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
26505 if test "${ac_cv_header_+set}" = set; then
26506 echo $ECHO_N "(cached
) $ECHO_C" >&6
26508 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
26509 echo "${ECHO_T}$ac_cv_header_" >&6; }
26511 # Is the header compilable?
26512 { echo "$as_me:$LINENO: checking usability
" >&5
26513 echo $ECHO_N "checking usability...
$ECHO_C" >&6; }
26514 cat >conftest.$ac_ext <<_ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h. */
26520 $ac_includes_default
26523 rm -f conftest.$ac_objext
26524 if { (ac_try="$ac_compile"
26525 case "(($ac_try" in
26526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26527 *) ac_try_echo=$ac_try;;
26529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26530 (eval "$ac_compile") 2>conftest.er1
26532 grep -v '^ *+' conftest.er1 >conftest.err
26534 cat conftest.err >&5
26535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26536 (exit $ac_status); } &&
26537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26538 { (case "(($ac_try" in
26539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26540 *) ac_try_echo=$ac_try;;
26542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26543 (eval "$ac_try") 2>&5
26545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26546 (exit $ac_status); }; } &&
26547 { ac_try='test -s conftest.$ac_objext'
26548 { (case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26553 (eval "$ac_try") 2>&5
26555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26556 (exit $ac_status); }; }; then
26557 ac_header_compiler=yes
26559 echo "$as_me: failed program was
:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26562 ac_header_compiler=no
26565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26566 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
26567 echo "${ECHO_T}$ac_header_compiler" >&6; }
26569 # Is the header present?
26570 { echo "$as_me:$LINENO: checking presence
" >&5
26571 echo $ECHO_N "checking presence...
$ECHO_C" >&6; }
26572 cat >conftest.$ac_ext <<_ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h. */
26580 if { (ac_try="$ac_cpp conftest.
$ac_ext"
26581 case "(($ac_try" in
26582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583 *) ac_try_echo=$ac_try;;
26585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26586 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
26588 grep -v '^ *+' conftest.er1 >conftest.err
26590 cat conftest.err >&5
26591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26592 (exit $ac_status); } >/dev/null; then
26593 if test -s conftest.err; then
26594 ac_cpp_err=$ac_c_preproc_warn_flag
26595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26602 if test -z "$ac_cpp_err"; then
26603 ac_header_preproc=yes
26605 echo "$as_me: failed program was
:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26608 ac_header_preproc=no
26611 rm -f conftest.err conftest.$ac_ext
26612 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
26613 echo "${ECHO_T}$ac_header_preproc" >&6; }
26615 # So? What about this header?
26616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26618 { echo "$as_me:$LINENO: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&5
26619 echo "$as_me: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&2;}
26620 { echo "$as_me:$LINENO: WARNING
: : proceeding with the compiler
's result" >&5
26621 echo "$as_me: WARNING: : proceeding with the compiler's result
" >&2;}
26622 ac_header_preproc=yes
26625 { echo "$as_me:$LINENO: WARNING
: : present but cannot be compiled
" >&5
26626 echo "$as_me: WARNING
: : present but cannot be compiled
" >&2;}
26627 { echo "$as_me:$LINENO: WARNING
: : check
for missing prerequisite headers?
" >&5
26628 echo "$as_me: WARNING
: : check
for missing prerequisite headers?
" >&2;}
26629 { echo "$as_me:$LINENO: WARNING
: : see the Autoconf documentation
" >&5
26630 echo "$as_me: WARNING
: : see the Autoconf documentation
" >&2;}
26631 { echo "$as_me:$LINENO: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&5
26632 echo "$as_me: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&2;}
26633 { echo "$as_me:$LINENO: WARNING
: : proceeding with the preprocessor
's result" >&5
26634 echo "$as_me: WARNING: : proceeding with the preprocessor's result
" >&2;}
26635 { echo "$as_me:$LINENO: WARNING
: : in the future
, the compiler will take precedence
" >&5
26636 echo "$as_me: WARNING
: : in the future
, the compiler will take precedence
" >&2;}
26638 ## ------------------------------- ##
26639 ## Report this to www.asterisk.org ##
26640 ## ------------------------------- ##
26642 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
26645 { echo "$as_me:$LINENO: checking
for " >&5
26646 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
26647 if test "${ac_cv_header_+set}" = set; then
26648 echo $ECHO_N "(cached
) $ECHO_C" >&6
26650 ac_cv_header_=$ac_header_preproc
26652 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
26653 echo "${ECHO_T}$ac_cv_header_" >&6; }
26656 if test $ac_cv_header_ = yes; then
26665 if test "x
${OGG_HEADER_FOUND}" = "x0
" ; then
26666 if test -n "${OGG_MANDATORY}" ;
26668 { echo "$as_me:$LINENO: ***" >&5
26669 echo "$as_me: ***" >&6;}
26670 { echo "$as_me:$LINENO: *** It appears that you
do not have the ogg development package installed.
" >&5
26671 echo "$as_me: *** It appears that you
do not have the ogg development package installed.
" >&6;}
26672 { echo "$as_me:$LINENO: *** Please
install it to include
${OGG_DESCRIP} support
, or re-run configure
" >&5
26673 echo "$as_me: *** Please
install it to include
${OGG_DESCRIP} support
, or re-run configure
" >&6;}
26674 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OGG_OPTION}" >&5
26675 echo "$as_me: *** without explicitly specifying
--with-${OGG_OPTION}" >&6;}
26684 cat >>confdefs.h <<_ACEOF
26689 elif test -n "${OGG_MANDATORY}";
26691 { echo "$as_me:$LINENO: ***" >&5
26692 echo "$as_me: ***" >&6;}
26693 { echo "$as_me:$LINENO: *** The
${OGG_DESCRIP} installation on this system appears to be broken.
" >&5
26694 echo "$as_me: *** The
${OGG_DESCRIP} installation on this system appears to be broken.
" >&6;}
26695 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
26696 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
26697 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OGG_OPTION}" >&5
26698 echo "$as_me: *** without explicitly specifying
--with-${OGG_OPTION}" >&6;}
26704 if test "${USE_OSS}" != "no
"; then
26706 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
26707 { echo "$as_me:$LINENO: checking
for linux
/soundcard.h
" >&5
26708 echo $ECHO_N "checking
for linux
/soundcard.h...
$ECHO_C" >&6; }
26709 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
26710 echo $ECHO_N "(cached
) $ECHO_C" >&6
26712 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_soundcard_h" >&5
26713 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
26715 # Is the header compilable?
26716 { echo "$as_me:$LINENO: checking linux
/soundcard.h usability
" >&5
26717 echo $ECHO_N "checking linux
/soundcard.h usability...
$ECHO_C" >&6; }
26718 cat >conftest.$ac_ext <<_ACEOF
26721 cat confdefs.h >>conftest.$ac_ext
26722 cat >>conftest.$ac_ext <<_ACEOF
26723 /* end confdefs.h. */
26724 $ac_includes_default
26725 #include <linux/soundcard.h>
26727 rm -f conftest.$ac_objext
26728 if { (ac_try="$ac_compile"
26729 case "(($ac_try" in
26730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26731 *) ac_try_echo=$ac_try;;
26733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26734 (eval "$ac_compile") 2>conftest.er1
26736 grep -v '^ *+' conftest.er1 >conftest.err
26738 cat conftest.err >&5
26739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26740 (exit $ac_status); } &&
26741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26742 { (case "(($ac_try" in
26743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26744 *) ac_try_echo=$ac_try;;
26746 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26747 (eval "$ac_try") 2>&5
26749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26750 (exit $ac_status); }; } &&
26751 { ac_try='test -s conftest.$ac_objext'
26752 { (case "(($ac_try" in
26753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26754 *) ac_try_echo=$ac_try;;
26756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26757 (eval "$ac_try") 2>&5
26759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26760 (exit $ac_status); }; }; then
26761 ac_header_compiler=yes
26763 echo "$as_me: failed program was
:" >&5
26764 sed 's/^/| /' conftest.$ac_ext >&5
26766 ac_header_compiler=no
26769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26770 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
26771 echo "${ECHO_T}$ac_header_compiler" >&6; }
26773 # Is the header present?
26774 { echo "$as_me:$LINENO: checking linux
/soundcard.h presence
" >&5
26775 echo $ECHO_N "checking linux
/soundcard.h presence...
$ECHO_C" >&6; }
26776 cat >conftest.$ac_ext <<_ACEOF
26779 cat confdefs.h >>conftest.$ac_ext
26780 cat >>conftest.$ac_ext <<_ACEOF
26781 /* end confdefs.h. */
26782 #include <linux/soundcard.h>
26784 if { (ac_try="$ac_cpp conftest.
$ac_ext"
26785 case "(($ac_try" in
26786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26790 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
26792 grep -v '^ *+' conftest.er1 >conftest.err
26794 cat conftest.err >&5
26795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26796 (exit $ac_status); } >/dev/null; then
26797 if test -s conftest.err; then
26798 ac_cpp_err=$ac_c_preproc_warn_flag
26799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26806 if test -z "$ac_cpp_err"; then
26807 ac_header_preproc=yes
26809 echo "$as_me: failed program was
:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26812 ac_header_preproc=no
26815 rm -f conftest.err conftest.$ac_ext
26816 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
26817 echo "${ECHO_T}$ac_header_preproc" >&6; }
26819 # So? What about this header?
26820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26822 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
26823 echo "$as_me: WARNING
: linux
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
26824 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: proceeding with the compiler
's result" >&5
26825 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result
" >&2;}
26826 ac_header_preproc=yes
26829 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: present but cannot be compiled
" >&5
26830 echo "$as_me: WARNING
: linux
/soundcard.h
: present but cannot be compiled
" >&2;}
26831 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: check
for missing prerequisite headers?
" >&5
26832 echo "$as_me: WARNING
: linux
/soundcard.h
: check
for missing prerequisite headers?
" >&2;}
26833 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: see the Autoconf documentation
" >&5
26834 echo "$as_me: WARNING
: linux
/soundcard.h
: see the Autoconf documentation
" >&2;}
26835 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
26836 echo "$as_me: WARNING
: linux
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
26837 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: proceeding with the preprocessor
's result" >&5
26838 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result
" >&2;}
26839 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: in the future
, the compiler will take precedence
" >&5
26840 echo "$as_me: WARNING
: linux
/soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
26842 ## ------------------------------- ##
26843 ## Report this to www.asterisk.org ##
26844 ## ------------------------------- ##
26846 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
26849 { echo "$as_me:$LINENO: checking
for linux
/soundcard.h
" >&5
26850 echo $ECHO_N "checking
for linux
/soundcard.h...
$ECHO_C" >&6; }
26851 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
26852 echo $ECHO_N "(cached
) $ECHO_C" >&6
26854 ac_cv_header_linux_soundcard_h=$ac_header_preproc
26856 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_soundcard_h" >&5
26857 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
26860 if test $ac_cv_header_linux_soundcard_h = yes; then
26864 cat >>confdefs.h <<_ACEOF
26872 if test "$PBX_OSS" = "0"; then
26873 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
26874 { echo "$as_me:$LINENO: checking
for sys
/soundcard.h
" >&5
26875 echo $ECHO_N "checking
for sys
/soundcard.h...
$ECHO_C" >&6; }
26876 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
26877 echo $ECHO_N "(cached
) $ECHO_C" >&6
26879 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_soundcard_h" >&5
26880 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
26882 # Is the header compilable?
26883 { echo "$as_me:$LINENO: checking sys
/soundcard.h usability
" >&5
26884 echo $ECHO_N "checking sys
/soundcard.h usability...
$ECHO_C" >&6; }
26885 cat >conftest.$ac_ext <<_ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h. */
26891 $ac_includes_default
26892 #include <sys/soundcard.h>
26894 rm -f conftest.$ac_objext
26895 if { (ac_try="$ac_compile"
26896 case "(($ac_try" in
26897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26898 *) ac_try_echo=$ac_try;;
26900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26901 (eval "$ac_compile") 2>conftest.er1
26903 grep -v '^ *+' conftest.er1 >conftest.err
26905 cat conftest.err >&5
26906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26907 (exit $ac_status); } &&
26908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26909 { (case "(($ac_try" in
26910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26911 *) ac_try_echo=$ac_try;;
26913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26914 (eval "$ac_try") 2>&5
26916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26917 (exit $ac_status); }; } &&
26918 { ac_try='test -s conftest.$ac_objext'
26919 { (case "(($ac_try" in
26920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921 *) ac_try_echo=$ac_try;;
26923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26924 (eval "$ac_try") 2>&5
26926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26927 (exit $ac_status); }; }; then
26928 ac_header_compiler=yes
26930 echo "$as_me: failed program was
:" >&5
26931 sed 's/^/| /' conftest.$ac_ext >&5
26933 ac_header_compiler=no
26936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26937 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
26938 echo "${ECHO_T}$ac_header_compiler" >&6; }
26940 # Is the header present?
26941 { echo "$as_me:$LINENO: checking sys
/soundcard.h presence
" >&5
26942 echo $ECHO_N "checking sys
/soundcard.h presence...
$ECHO_C" >&6; }
26943 cat >conftest.$ac_ext <<_ACEOF
26946 cat confdefs.h >>conftest.$ac_ext
26947 cat >>conftest.$ac_ext <<_ACEOF
26948 /* end confdefs.h. */
26949 #include <sys/soundcard.h>
26951 if { (ac_try="$ac_cpp conftest.
$ac_ext"
26952 case "(($ac_try" in
26953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954 *) ac_try_echo=$ac_try;;
26956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26957 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
26959 grep -v '^ *+' conftest.er1 >conftest.err
26961 cat conftest.err >&5
26962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26963 (exit $ac_status); } >/dev/null; then
26964 if test -s conftest.err; then
26965 ac_cpp_err=$ac_c_preproc_warn_flag
26966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26973 if test -z "$ac_cpp_err"; then
26974 ac_header_preproc=yes
26976 echo "$as_me: failed program was
:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26979 ac_header_preproc=no
26982 rm -f conftest.err conftest.$ac_ext
26983 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
26984 echo "${ECHO_T}$ac_header_preproc" >&6; }
26986 # So? What about this header?
26987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26989 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
26990 echo "$as_me: WARNING
: sys
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
26991 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: proceeding with the compiler
's result" >&5
26992 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result
" >&2;}
26993 ac_header_preproc=yes
26996 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: present but cannot be compiled
" >&5
26997 echo "$as_me: WARNING
: sys
/soundcard.h
: present but cannot be compiled
" >&2;}
26998 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: check
for missing prerequisite headers?
" >&5
26999 echo "$as_me: WARNING
: sys
/soundcard.h
: check
for missing prerequisite headers?
" >&2;}
27000 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: see the Autoconf documentation
" >&5
27001 echo "$as_me: WARNING
: sys
/soundcard.h
: see the Autoconf documentation
" >&2;}
27002 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
27003 echo "$as_me: WARNING
: sys
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
27004 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: proceeding with the preprocessor
's result" >&5
27005 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result
" >&2;}
27006 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: in the future
, the compiler will take precedence
" >&5
27007 echo "$as_me: WARNING
: sys
/soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
27009 ## ------------------------------- ##
27010 ## Report this to www.asterisk.org ##
27011 ## ------------------------------- ##
27013 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
27016 { echo "$as_me:$LINENO: checking
for sys
/soundcard.h
" >&5
27017 echo $ECHO_N "checking
for sys
/soundcard.h...
$ECHO_C" >&6; }
27018 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
27019 echo $ECHO_N "(cached
) $ECHO_C" >&6
27021 ac_cv_header_sys_soundcard_h=$ac_header_preproc
27023 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_soundcard_h" >&5
27024 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
27027 if test $ac_cv_header_sys_soundcard_h = yes; then
27031 cat >>confdefs.h <<_ACEOF
27040 if test "$PBX_OSS" = "0"; then
27042 if test "${USE_OSS}" != "no
"; then
27044 if test "x
${OSS_DIR}" != "x
"; then
27045 if test -d ${OSS_DIR}/lib; then
27046 pbxlibdir="-L${OSS_DIR}/lib
"
27048 pbxlibdir="-L${OSS_DIR}"
27051 { echo "$as_me:$LINENO: checking
for oss_ioctl_mixer
in -lossaudio" >&5
27052 echo $ECHO_N "checking
for oss_ioctl_mixer
in -lossaudio...
$ECHO_C" >&6; }
27053 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
27054 echo $ECHO_N "(cached
) $ECHO_C" >&6
27056 ac_check_lib_save_LIBS=$LIBS
27057 LIBS="-lossaudio ${pbxlibdir} $LIBS"
27058 cat >conftest.$ac_ext <<_ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h. */
27065 /* Override any GCC internal prototype to avoid an error.
27066 Use char because int might match the return type of a GCC
27067 builtin and then its argument prototype would still apply. */
27071 char oss_ioctl_mixer ();
27075 return oss_ioctl_mixer ();
27080 rm -f conftest.$ac_objext conftest$ac_exeext
27081 if { (ac_try="$ac_link"
27082 case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27087 (eval "$ac_link") 2>conftest.er1
27089 grep -v '^ *+' conftest.er1 >conftest.err
27091 cat conftest.err >&5
27092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27093 (exit $ac_status); } &&
27094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27095 { (case "(($ac_try" in
27096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097 *) ac_try_echo=$ac_try;;
27099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27100 (eval "$ac_try") 2>&5
27102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27103 (exit $ac_status); }; } &&
27104 { ac_try='test -s conftest$ac_exeext'
27105 { (case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_try") 2>&5
27112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27113 (exit $ac_status); }; }; then
27114 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
27116 echo "$as_me: failed program was
:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27119 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
27122 rm -f core conftest.err conftest.$ac_objext \
27123 conftest$ac_exeext conftest.$ac_ext
27124 LIBS=$ac_check_lib_save_LIBS
27126 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
27127 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
27128 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
27135 if test "${AST_OSS_FOUND}" = "yes"; then
27136 OSS_LIB="-lossaudio "
27137 OSS_HEADER_FOUND="1"
27138 if test "x
${OSS_DIR}" != "x
"; then
27139 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
27140 OSS_INCLUDE="-I${OSS_DIR}/include
"
27141 saved_cppflags="${CPPFLAGS}"
27142 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include
"
27143 if test "xsoundcard.h
" != "x
" ; then
27144 as_ac_Header=`echo "ac_cv_header_
${OSS_DIR}/include
/soundcard.h
" | $as_tr_sh`
27145 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
27146 { echo "$as_me:$LINENO: checking
for ${OSS_DIR}/include
/soundcard.h
" >&5
27147 echo $ECHO_N "checking
for ${OSS_DIR}/include
/soundcard.h...
$ECHO_C" >&6; }
27148 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
27149 echo $ECHO_N "(cached
) $ECHO_C" >&6
27151 ac_res=`eval echo '${'$as_ac_Header'}'`
27152 { echo "$as_me:$LINENO: result
: $ac_res" >&5
27153 echo "${ECHO_T}$ac_res" >&6; }
27155 # Is the header compilable?
27156 { echo "$as_me:$LINENO: checking
${OSS_DIR}/include
/soundcard.h usability
" >&5
27157 echo $ECHO_N "checking
${OSS_DIR}/include
/soundcard.h usability...
$ECHO_C" >&6; }
27158 cat >conftest.$ac_ext <<_ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h. */
27164 $ac_includes_default
27165 #include <${OSS_DIR}/include/soundcard.h>
27167 rm -f conftest.$ac_objext
27168 if { (ac_try="$ac_compile"
27169 case "(($ac_try" in
27170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27171 *) ac_try_echo=$ac_try;;
27173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27174 (eval "$ac_compile") 2>conftest.er1
27176 grep -v '^ *+' conftest.er1 >conftest.err
27178 cat conftest.err >&5
27179 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27180 (exit $ac_status); } &&
27181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27182 { (case "(($ac_try" in
27183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27184 *) ac_try_echo=$ac_try;;
27186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27187 (eval "$ac_try") 2>&5
27189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27190 (exit $ac_status); }; } &&
27191 { ac_try='test -s conftest.$ac_objext'
27192 { (case "(($ac_try" in
27193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194 *) ac_try_echo=$ac_try;;
27196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27197 (eval "$ac_try") 2>&5
27199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27200 (exit $ac_status); }; }; then
27201 ac_header_compiler=yes
27203 echo "$as_me: failed program was
:" >&5
27204 sed 's/^/| /' conftest.$ac_ext >&5
27206 ac_header_compiler=no
27209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27210 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
27211 echo "${ECHO_T}$ac_header_compiler" >&6; }
27213 # Is the header present?
27214 { echo "$as_me:$LINENO: checking
${OSS_DIR}/include
/soundcard.h presence
" >&5
27215 echo $ECHO_N "checking
${OSS_DIR}/include
/soundcard.h presence...
$ECHO_C" >&6; }
27216 cat >conftest.$ac_ext <<_ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h. */
27222 #include <${OSS_DIR}/include/soundcard.h>
27224 if { (ac_try="$ac_cpp conftest.
$ac_ext"
27225 case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
27232 grep -v '^ *+' conftest.er1 >conftest.err
27234 cat conftest.err >&5
27235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27236 (exit $ac_status); } >/dev/null; then
27237 if test -s conftest.err; then
27238 ac_cpp_err=$ac_c_preproc_warn_flag
27239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27246 if test -z "$ac_cpp_err"; then
27247 ac_header_preproc=yes
27249 echo "$as_me: failed program was
:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 ac_header_preproc=no
27255 rm -f conftest.err conftest.$ac_ext
27256 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
27257 echo "${ECHO_T}$ac_header_preproc" >&6; }
27259 # So? What about this header?
27260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27262 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
27263 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
27264 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: proceeding with the compiler
's result" >&5
27265 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result
" >&2;}
27266 ac_header_preproc=yes
27269 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: present but cannot be compiled
" >&5
27270 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: present but cannot be compiled
" >&2;}
27271 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: check
for missing prerequisite headers?
" >&5
27272 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: check
for missing prerequisite headers?
" >&2;}
27273 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: see the Autoconf documentation
" >&5
27274 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: see the Autoconf documentation
" >&2;}
27275 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
27276 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
27277 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: proceeding with the preprocessor
's result" >&5
27278 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result
" >&2;}
27279 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: in the future
, the compiler will take precedence
" >&5
27280 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
27282 ## ------------------------------- ##
27283 ## Report this to www.asterisk.org ##
27284 ## ------------------------------- ##
27286 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
27289 { echo "$as_me:$LINENO: checking
for ${OSS_DIR}/include
/soundcard.h
" >&5
27290 echo $ECHO_N "checking
for ${OSS_DIR}/include
/soundcard.h...
$ECHO_C" >&6; }
27291 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
27292 echo $ECHO_N "(cached
) $ECHO_C" >&6
27294 eval "$as_ac_Header=\
$ac_header_preproc"
27296 ac_res=`eval echo '${'$as_ac_Header'}'`
27297 { echo "$as_me:$LINENO: result
: $ac_res" >&5
27298 echo "${ECHO_T}$ac_res" >&6; }
27301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27309 CPPFLAGS="${saved_cppflags}"
27311 if test "xsoundcard.h
" != "x
" ; then
27312 if test "${ac_cv_header_soundcard_h+set}" = set; then
27313 { echo "$as_me:$LINENO: checking
for soundcard.h
" >&5
27314 echo $ECHO_N "checking
for soundcard.h...
$ECHO_C" >&6; }
27315 if test "${ac_cv_header_soundcard_h+set}" = set; then
27316 echo $ECHO_N "(cached
) $ECHO_C" >&6
27318 { echo "$as_me:$LINENO: result
: $ac_cv_header_soundcard_h" >&5
27319 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
27321 # Is the header compilable?
27322 { echo "$as_me:$LINENO: checking soundcard.h usability
" >&5
27323 echo $ECHO_N "checking soundcard.h usability...
$ECHO_C" >&6; }
27324 cat >conftest.$ac_ext <<_ACEOF
27327 cat confdefs.h >>conftest.$ac_ext
27328 cat >>conftest.$ac_ext <<_ACEOF
27329 /* end confdefs.h. */
27330 $ac_includes_default
27331 #include <soundcard.h>
27333 rm -f conftest.$ac_objext
27334 if { (ac_try="$ac_compile"
27335 case "(($ac_try" in
27336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27337 *) ac_try_echo=$ac_try;;
27339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_compile") 2>conftest.er1
27342 grep -v '^ *+' conftest.er1 >conftest.err
27344 cat conftest.err >&5
27345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27346 (exit $ac_status); } &&
27347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27348 { (case "(($ac_try" in
27349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27350 *) ac_try_echo=$ac_try;;
27352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27353 (eval "$ac_try") 2>&5
27355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27356 (exit $ac_status); }; } &&
27357 { ac_try='test -s conftest.$ac_objext'
27358 { (case "(($ac_try" in
27359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27360 *) ac_try_echo=$ac_try;;
27362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27363 (eval "$ac_try") 2>&5
27365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27366 (exit $ac_status); }; }; then
27367 ac_header_compiler=yes
27369 echo "$as_me: failed program was
:" >&5
27370 sed 's/^/| /' conftest.$ac_ext >&5
27372 ac_header_compiler=no
27375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27376 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
27377 echo "${ECHO_T}$ac_header_compiler" >&6; }
27379 # Is the header present?
27380 { echo "$as_me:$LINENO: checking soundcard.h presence
" >&5
27381 echo $ECHO_N "checking soundcard.h presence...
$ECHO_C" >&6; }
27382 cat >conftest.$ac_ext <<_ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h. */
27388 #include <soundcard.h>
27390 if { (ac_try="$ac_cpp conftest.
$ac_ext"
27391 case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
27398 grep -v '^ *+' conftest.er1 >conftest.err
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27402 (exit $ac_status); } >/dev/null; then
27403 if test -s conftest.err; then
27404 ac_cpp_err=$ac_c_preproc_warn_flag
27405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27412 if test -z "$ac_cpp_err"; then
27413 ac_header_preproc=yes
27415 echo "$as_me: failed program was
:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27418 ac_header_preproc=no
27421 rm -f conftest.err conftest.$ac_ext
27422 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
27423 echo "${ECHO_T}$ac_header_preproc" >&6; }
27425 # So? What about this header?
27426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27428 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
27429 echo "$as_me: WARNING
: soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
27430 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: proceeding with the compiler
's result" >&5
27431 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result
" >&2;}
27432 ac_header_preproc=yes
27435 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: present but cannot be compiled
" >&5
27436 echo "$as_me: WARNING
: soundcard.h
: present but cannot be compiled
" >&2;}
27437 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: check
for missing prerequisite headers?
" >&5
27438 echo "$as_me: WARNING
: soundcard.h
: check
for missing prerequisite headers?
" >&2;}
27439 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: see the Autoconf documentation
" >&5
27440 echo "$as_me: WARNING
: soundcard.h
: see the Autoconf documentation
" >&2;}
27441 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
27442 echo "$as_me: WARNING
: soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
27443 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: proceeding with the preprocessor
's result" >&5
27444 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result
" >&2;}
27445 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: in the future
, the compiler will take precedence
" >&5
27446 echo "$as_me: WARNING
: soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
27448 ## ------------------------------- ##
27449 ## Report this to www.asterisk.org ##
27450 ## ------------------------------- ##
27452 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
27455 { echo "$as_me:$LINENO: checking
for soundcard.h
" >&5
27456 echo $ECHO_N "checking
for soundcard.h...
$ECHO_C" >&6; }
27457 if test "${ac_cv_header_soundcard_h+set}" = set; then
27458 echo $ECHO_N "(cached
) $ECHO_C" >&6
27460 ac_cv_header_soundcard_h=$ac_header_preproc
27462 { echo "$as_me:$LINENO: result
: $ac_cv_header_soundcard_h" >&5
27463 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
27466 if test $ac_cv_header_soundcard_h = yes; then
27475 if test "x
${OSS_HEADER_FOUND}" = "x0
" ; then
27476 if test -n "${OSS_MANDATORY}" ;
27478 { echo "$as_me:$LINENO: ***" >&5
27479 echo "$as_me: ***" >&6;}
27480 { echo "$as_me:$LINENO: *** It appears that you
do not have the ossaudio development package installed.
" >&5
27481 echo "$as_me: *** It appears that you
do not have the ossaudio development package installed.
" >&6;}
27482 { echo "$as_me:$LINENO: *** Please
install it to include
${OSS_DESCRIP} support
, or re-run configure
" >&5
27483 echo "$as_me: *** Please
install it to include
${OSS_DESCRIP} support
, or re-run configure
" >&6;}
27484 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSS_OPTION}" >&5
27485 echo "$as_me: *** without explicitly specifying
--with-${OSS_OPTION}" >&6;}
27494 cat >>confdefs.h <<_ACEOF
27499 elif test -n "${OSS_MANDATORY}";
27501 { echo "$as_me:$LINENO: ***" >&5
27502 echo "$as_me: ***" >&6;}
27503 { echo "$as_me:$LINENO: *** The
${OSS_DESCRIP} installation on this system appears to be broken.
" >&5
27504 echo "$as_me: *** The
${OSS_DESCRIP} installation on this system appears to be broken.
" >&6;}
27505 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
27506 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
27507 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSS_OPTION}" >&5
27508 echo "$as_me: *** without explicitly specifying
--with-${OSS_OPTION}" >&6;}
27517 if test "${USE_PGSQL}" != "no
"; then
27518 if test "x
${PGSQL_DIR}" != "x
"; then
27519 if test -n "$ac_tool_prefix"; then
27520 # Extract the first word of "${ac_tool_prefix}pg_config
", so it can be a program name with args.
27521 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
27522 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
27523 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
27524 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
27525 echo $ECHO_N "(cached
) $ECHO_C" >&6
27529 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
27532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27533 for as_dir in ${PGSQL_DIR}/bin
27536 test -z "$as_dir" && as_dir=.
27537 for ac_exec_ext in '' $ac_executable_extensions; do
27538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27539 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27540 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
27550 PG_CONFIG=$ac_cv_path_PG_CONFIG
27551 if test -n "$PG_CONFIG"; then
27552 { echo "$as_me:$LINENO: result
: $PG_CONFIG" >&5
27553 echo "${ECHO_T}$PG_CONFIG" >&6; }
27555 { echo "$as_me:$LINENO: result
: no
" >&5
27556 echo "${ECHO_T}no
" >&6; }
27561 if test -z "$ac_cv_path_PG_CONFIG"; then
27562 ac_pt_PG_CONFIG=$PG_CONFIG
27563 # Extract the first word of "pg_config
", so it can be a program name with args.
27564 set dummy pg_config; ac_word=$2
27565 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
27566 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
27567 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
27568 echo $ECHO_N "(cached
) $ECHO_C" >&6
27570 case $ac_pt_PG_CONFIG in
27572 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
27575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27576 for as_dir in ${PGSQL_DIR}/bin
27579 test -z "$as_dir" && as_dir=.
27580 for ac_exec_ext in '' $ac_executable_extensions; do
27581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27582 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27583 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
27593 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
27594 if test -n "$ac_pt_PG_CONFIG"; then
27595 { echo "$as_me:$LINENO: result
: $ac_pt_PG_CONFIG" >&5
27596 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
27598 { echo "$as_me:$LINENO: result
: no
" >&5
27599 echo "${ECHO_T}no
" >&6; }
27602 if test "x
$ac_pt_PG_CONFIG" = x; then
27605 case $cross_compiling:$ac_tool_warned in
27607 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
27608 whose name does not start with the
host triplet. If you think this
27609 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
27610 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
27611 whose name does not start with the
host triplet. If you think this
27612 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
27613 ac_tool_warned=yes ;;
27615 PG_CONFIG=$ac_pt_PG_CONFIG
27618 PG_CONFIG="$ac_cv_path_PG_CONFIG"
27621 if test x"${PG_CONFIG}" = xNo; then
27622 { echo "$as_me:$LINENO: ***" >&5
27623 echo "$as_me: ***" >&6;}
27624 { echo "$as_me:$LINENO: *** pg_config was not found
in the path you specified
:" >&5
27625 echo "$as_me: *** pg_config was not found
in the path you specified
:" >&6;}
27626 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin
" >&5
27627 echo "$as_me: *** ${PGSQL_DIR}/bin
" >&6;}
27628 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
27629 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
27630 { echo "$as_me:$LINENO: *** including
--without-postgres" >&5
27631 echo "$as_me: *** including
--without-postgres" >&6;}
27635 if test -n "$ac_tool_prefix"; then
27636 # Extract the first word of "${ac_tool_prefix}pg_config
", so it can be a program name with args.
27637 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
27638 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
27639 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
27640 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
27641 echo $ECHO_N "(cached
) $ECHO_C" >&6
27645 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
27648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27649 for as_dir in $PATH
27652 test -z "$as_dir" && as_dir=.
27653 for ac_exec_ext in '' $ac_executable_extensions; do
27654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27655 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27656 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
27666 PG_CONFIG=$ac_cv_path_PG_CONFIG
27667 if test -n "$PG_CONFIG"; then
27668 { echo "$as_me:$LINENO: result
: $PG_CONFIG" >&5
27669 echo "${ECHO_T}$PG_CONFIG" >&6; }
27671 { echo "$as_me:$LINENO: result
: no
" >&5
27672 echo "${ECHO_T}no
" >&6; }
27677 if test -z "$ac_cv_path_PG_CONFIG"; then
27678 ac_pt_PG_CONFIG=$PG_CONFIG
27679 # Extract the first word of "pg_config
", so it can be a program name with args.
27680 set dummy pg_config; ac_word=$2
27681 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
27682 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
27683 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
27684 echo $ECHO_N "(cached
) $ECHO_C" >&6
27686 case $ac_pt_PG_CONFIG in
27688 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
27691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27692 for as_dir in $PATH
27695 test -z "$as_dir" && as_dir=.
27696 for ac_exec_ext in '' $ac_executable_extensions; do
27697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27698 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27699 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
27709 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
27710 if test -n "$ac_pt_PG_CONFIG"; then
27711 { echo "$as_me:$LINENO: result
: $ac_pt_PG_CONFIG" >&5
27712 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
27714 { echo "$as_me:$LINENO: result
: no
" >&5
27715 echo "${ECHO_T}no
" >&6; }
27718 if test "x
$ac_pt_PG_CONFIG" = x; then
27721 case $cross_compiling:$ac_tool_warned in
27723 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
27724 whose name does not start with the
host triplet. If you think this
27725 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
27726 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
27727 whose name does not start with the
host triplet. If you think this
27728 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
27729 ac_tool_warned=yes ;;
27731 PG_CONFIG=$ac_pt_PG_CONFIG
27734 PG_CONFIG="$ac_cv_path_PG_CONFIG"
27739 if test "${PG_CONFIG}" != No; then
27740 PGSQL_libdir=`${PG_CONFIG} --libdir`
27741 PGSQL_includedir=`${PG_CONFIG} --includedir`
27743 if test "x$?
" != "x0
" ; then
27744 if test -n "${PGSQL_MANDATORY}" ; then
27745 { echo "$as_me:$LINENO: ***" >&5
27746 echo "$as_me: ***" >&6;}
27747 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken.
" >&5
27748 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken.
" >&6;}
27749 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
27750 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
27751 { echo "$as_me:$LINENO: *** including
--without-postgres" >&5
27752 echo "$as_me: *** including
--without-postgres" >&6;}
27756 { echo "$as_me:$LINENO: checking
for PQescapeStringConn
in -lpq" >&5
27757 echo $ECHO_N "checking
for PQescapeStringConn
in -lpq...
$ECHO_C" >&6; }
27758 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
27759 echo $ECHO_N "(cached
) $ECHO_C" >&6
27761 ac_check_lib_save_LIBS=$LIBS
27762 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
27763 cat >conftest.$ac_ext <<_ACEOF
27766 cat confdefs.h >>conftest.$ac_ext
27767 cat >>conftest.$ac_ext <<_ACEOF
27768 /* end confdefs.h. */
27770 /* Override any GCC internal prototype to avoid an error.
27771 Use char because int might match the return type of a GCC
27772 builtin and then its argument prototype would still apply. */
27776 char PQescapeStringConn ();
27780 return PQescapeStringConn ();
27785 rm -f conftest.$ac_objext conftest$ac_exeext
27786 if { (ac_try="$ac_link"
27787 case "(($ac_try" in
27788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27789 *) ac_try_echo=$ac_try;;
27791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27792 (eval "$ac_link") 2>conftest.er1
27794 grep -v '^ *+' conftest.er1 >conftest.err
27796 cat conftest.err >&5
27797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27798 (exit $ac_status); } &&
27799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27800 { (case "(($ac_try" in
27801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27802 *) ac_try_echo=$ac_try;;
27804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27805 (eval "$ac_try") 2>&5
27807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27808 (exit $ac_status); }; } &&
27809 { ac_try='test -s conftest$ac_exeext'
27810 { (case "(($ac_try" in
27811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812 *) ac_try_echo=$ac_try;;
27814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27815 (eval "$ac_try") 2>&5
27817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27818 (exit $ac_status); }; }; then
27819 ac_cv_lib_pq_PQescapeStringConn=yes
27821 echo "$as_me: failed program was
:" >&5
27822 sed 's/^/| /' conftest.$ac_ext >&5
27824 ac_cv_lib_pq_PQescapeStringConn=no
27827 rm -f core conftest.err conftest.$ac_objext \
27828 conftest$ac_exeext conftest.$ac_ext
27829 LIBS=$ac_check_lib_save_LIBS
27831 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pq_PQescapeStringConn" >&5
27832 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
27833 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
27835 cat >>confdefs.h <<_ACEOF
27836 #define HAVE_PGSQL 1
27842 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
27843 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
27844 PGSQL_INCLUDE="-I${PGSQL_includedir}"
27846 elif test -n "${PGSQL_MANDATORY}";
27848 { echo "$as_me:$LINENO: ***" >&5
27849 echo "$as_me: ***" >&6;}
27850 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken.
" >&5
27851 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken.
" >&6;}
27852 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
27853 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
27854 { echo "$as_me:$LINENO: *** including
--without-postgres" >&5
27855 echo "$as_me: *** including
--without-postgres" >&6;}
27859 elif test -n "${PGSQL_MANDATORY}";
27861 { echo "$as_me:$LINENO: ***" >&5
27862 echo "$as_me: ***" >&6;}
27863 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken.
" >&5
27864 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken.
" >&6;}
27865 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
27866 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
27867 { echo "$as_me:$LINENO: *** including
--without-postgres" >&5
27868 echo "$as_me: *** including
--without-postgres" >&6;}
27873 if test "${USE_POPT}" != "no
"; then
27875 if test "x
${POPT_DIR}" != "x
"; then
27876 if test -d ${POPT_DIR}/lib; then
27877 pbxlibdir="-L${POPT_DIR}/lib
"
27879 pbxlibdir="-L${POPT_DIR}"
27882 { echo "$as_me:$LINENO: checking
for poptStrerror
in -lpopt" >&5
27883 echo $ECHO_N "checking
for poptStrerror
in -lpopt...
$ECHO_C" >&6; }
27884 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
27885 echo $ECHO_N "(cached
) $ECHO_C" >&6
27887 ac_check_lib_save_LIBS=$LIBS
27888 LIBS="-lpopt ${pbxlibdir} $LIBS"
27889 cat >conftest.$ac_ext <<_ACEOF
27892 cat confdefs.h >>conftest.$ac_ext
27893 cat >>conftest.$ac_ext <<_ACEOF
27894 /* end confdefs.h. */
27896 /* Override any GCC internal prototype to avoid an error.
27897 Use char because int might match the return type of a GCC
27898 builtin and then its argument prototype would still apply. */
27902 char poptStrerror ();
27906 return poptStrerror ();
27911 rm -f conftest.$ac_objext conftest$ac_exeext
27912 if { (ac_try="$ac_link"
27913 case "(($ac_try" in
27914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915 *) ac_try_echo=$ac_try;;
27917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27918 (eval "$ac_link") 2>conftest.er1
27920 grep -v '^ *+' conftest.er1 >conftest.err
27922 cat conftest.err >&5
27923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27924 (exit $ac_status); } &&
27925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27926 { (case "(($ac_try" in
27927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928 *) ac_try_echo=$ac_try;;
27930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27931 (eval "$ac_try") 2>&5
27933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27934 (exit $ac_status); }; } &&
27935 { ac_try='test -s conftest$ac_exeext'
27936 { (case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_try") 2>&5
27943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27944 (exit $ac_status); }; }; then
27945 ac_cv_lib_popt_poptStrerror=yes
27947 echo "$as_me: failed program was
:" >&5
27948 sed 's/^/| /' conftest.$ac_ext >&5
27950 ac_cv_lib_popt_poptStrerror=no
27953 rm -f core conftest.err conftest.$ac_objext \
27954 conftest$ac_exeext conftest.$ac_ext
27955 LIBS=$ac_check_lib_save_LIBS
27957 { echo "$as_me:$LINENO: result
: $ac_cv_lib_popt_poptStrerror" >&5
27958 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
27959 if test $ac_cv_lib_popt_poptStrerror = yes; then
27966 if test "${AST_POPT_FOUND}" = "yes"; then
27968 POPT_HEADER_FOUND="1"
27969 if test "x
${POPT_DIR}" != "x
"; then
27970 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
27971 POPT_INCLUDE="-I${POPT_DIR}/include
"
27972 saved_cppflags="${CPPFLAGS}"
27973 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include
"
27974 if test "xpopt.h
" != "x
" ; then
27975 as_ac_Header=`echo "ac_cv_header_
${POPT_DIR}/include
/popt.h
" | $as_tr_sh`
27976 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
27977 { echo "$as_me:$LINENO: checking
for ${POPT_DIR}/include
/popt.h
" >&5
27978 echo $ECHO_N "checking
for ${POPT_DIR}/include
/popt.h...
$ECHO_C" >&6; }
27979 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
27980 echo $ECHO_N "(cached
) $ECHO_C" >&6
27982 ac_res=`eval echo '${'$as_ac_Header'}'`
27983 { echo "$as_me:$LINENO: result
: $ac_res" >&5
27984 echo "${ECHO_T}$ac_res" >&6; }
27986 # Is the header compilable?
27987 { echo "$as_me:$LINENO: checking
${POPT_DIR}/include
/popt.h usability
" >&5
27988 echo $ECHO_N "checking
${POPT_DIR}/include
/popt.h usability...
$ECHO_C" >&6; }
27989 cat >conftest.$ac_ext <<_ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h. */
27995 $ac_includes_default
27996 #include <${POPT_DIR}/include/popt.h>
27998 rm -f conftest.$ac_objext
27999 if { (ac_try="$ac_compile"
28000 case "(($ac_try" in
28001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002 *) ac_try_echo=$ac_try;;
28004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28005 (eval "$ac_compile") 2>conftest.er1
28007 grep -v '^ *+' conftest.er1 >conftest.err
28009 cat conftest.err >&5
28010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28011 (exit $ac_status); } &&
28012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28013 { (case "(($ac_try" in
28014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015 *) ac_try_echo=$ac_try;;
28017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28018 (eval "$ac_try") 2>&5
28020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28021 (exit $ac_status); }; } &&
28022 { ac_try='test -s conftest.$ac_objext'
28023 { (case "(($ac_try" in
28024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025 *) ac_try_echo=$ac_try;;
28027 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28028 (eval "$ac_try") 2>&5
28030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28031 (exit $ac_status); }; }; then
28032 ac_header_compiler=yes
28034 echo "$as_me: failed program was
:" >&5
28035 sed 's/^/| /' conftest.$ac_ext >&5
28037 ac_header_compiler=no
28040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28041 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28042 echo "${ECHO_T}$ac_header_compiler" >&6; }
28044 # Is the header present?
28045 { echo "$as_me:$LINENO: checking
${POPT_DIR}/include
/popt.h presence
" >&5
28046 echo $ECHO_N "checking
${POPT_DIR}/include
/popt.h presence...
$ECHO_C" >&6; }
28047 cat >conftest.$ac_ext <<_ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h. */
28053 #include <${POPT_DIR}/include/popt.h>
28055 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28056 case "(($ac_try" in
28057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058 *) ac_try_echo=$ac_try;;
28060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28061 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28063 grep -v '^ *+' conftest.er1 >conftest.err
28065 cat conftest.err >&5
28066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28067 (exit $ac_status); } >/dev/null; then
28068 if test -s conftest.err; then
28069 ac_cpp_err=$ac_c_preproc_warn_flag
28070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28077 if test -z "$ac_cpp_err"; then
28078 ac_header_preproc=yes
28080 echo "$as_me: failed program was
:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28083 ac_header_preproc=no
28086 rm -f conftest.err conftest.$ac_ext
28087 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28088 echo "${ECHO_T}$ac_header_preproc" >&6; }
28090 # So? What about this header?
28091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28093 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28094 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28095 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: proceeding with the compiler
's result" >&5
28096 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result
" >&2;}
28097 ac_header_preproc=yes
28100 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: present but cannot be compiled
" >&5
28101 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: present but cannot be compiled
" >&2;}
28102 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: check
for missing prerequisite headers?
" >&5
28103 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: check
for missing prerequisite headers?
" >&2;}
28104 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: see the Autoconf documentation
" >&5
28105 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: see the Autoconf documentation
" >&2;}
28106 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28107 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28108 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: proceeding with the preprocessor
's result" >&5
28109 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result
" >&2;}
28110 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: in the future
, the compiler will take precedence
" >&5
28111 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: in the future
, the compiler will take precedence
" >&2;}
28113 ## ------------------------------- ##
28114 ## Report this to www.asterisk.org ##
28115 ## ------------------------------- ##
28117 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28120 { echo "$as_me:$LINENO: checking
for ${POPT_DIR}/include
/popt.h
" >&5
28121 echo $ECHO_N "checking
for ${POPT_DIR}/include
/popt.h...
$ECHO_C" >&6; }
28122 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28123 echo $ECHO_N "(cached
) $ECHO_C" >&6
28125 eval "$as_ac_Header=\
$ac_header_preproc"
28127 ac_res=`eval echo '${'$as_ac_Header'}'`
28128 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28129 echo "${ECHO_T}$ac_res" >&6; }
28132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28133 POPT_HEADER_FOUND=1
28135 POPT_HEADER_FOUND=0
28140 CPPFLAGS="${saved_cppflags}"
28142 if test "xpopt.h
" != "x
" ; then
28143 if test "${ac_cv_header_popt_h+set}" = set; then
28144 { echo "$as_me:$LINENO: checking
for popt.h
" >&5
28145 echo $ECHO_N "checking
for popt.h...
$ECHO_C" >&6; }
28146 if test "${ac_cv_header_popt_h+set}" = set; then
28147 echo $ECHO_N "(cached
) $ECHO_C" >&6
28149 { echo "$as_me:$LINENO: result
: $ac_cv_header_popt_h" >&5
28150 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
28152 # Is the header compilable?
28153 { echo "$as_me:$LINENO: checking popt.h usability
" >&5
28154 echo $ECHO_N "checking popt.h usability...
$ECHO_C" >&6; }
28155 cat >conftest.$ac_ext <<_ACEOF
28158 cat confdefs.h >>conftest.$ac_ext
28159 cat >>conftest.$ac_ext <<_ACEOF
28160 /* end confdefs.h. */
28161 $ac_includes_default
28164 rm -f conftest.$ac_objext
28165 if { (ac_try="$ac_compile"
28166 case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_compile") 2>conftest.er1
28173 grep -v '^ *+' conftest.er1 >conftest.err
28175 cat conftest.err >&5
28176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28177 (exit $ac_status); } &&
28178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28179 { (case "(($ac_try" in
28180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 *) ac_try_echo=$ac_try;;
28183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28184 (eval "$ac_try") 2>&5
28186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28187 (exit $ac_status); }; } &&
28188 { ac_try='test -s conftest.$ac_objext'
28189 { (case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_try") 2>&5
28196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28197 (exit $ac_status); }; }; then
28198 ac_header_compiler=yes
28200 echo "$as_me: failed program was
:" >&5
28201 sed 's/^/| /' conftest.$ac_ext >&5
28203 ac_header_compiler=no
28206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28207 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28208 echo "${ECHO_T}$ac_header_compiler" >&6; }
28210 # Is the header present?
28211 { echo "$as_me:$LINENO: checking popt.h presence
" >&5
28212 echo $ECHO_N "checking popt.h presence...
$ECHO_C" >&6; }
28213 cat >conftest.$ac_ext <<_ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h. */
28221 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28222 case "(($ac_try" in
28223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28224 *) ac_try_echo=$ac_try;;
28226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28227 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28229 grep -v '^ *+' conftest.er1 >conftest.err
28231 cat conftest.err >&5
28232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28233 (exit $ac_status); } >/dev/null; then
28234 if test -s conftest.err; then
28235 ac_cpp_err=$ac_c_preproc_warn_flag
28236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28243 if test -z "$ac_cpp_err"; then
28244 ac_header_preproc=yes
28246 echo "$as_me: failed program was
:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28249 ac_header_preproc=no
28252 rm -f conftest.err conftest.$ac_ext
28253 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28254 echo "${ECHO_T}$ac_header_preproc" >&6; }
28256 # So? What about this header?
28257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28259 { echo "$as_me:$LINENO: WARNING
: popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28260 echo "$as_me: WARNING
: popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28261 { echo "$as_me:$LINENO: WARNING
: popt.h
: proceeding with the compiler
's result" >&5
28262 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result
" >&2;}
28263 ac_header_preproc=yes
28266 { echo "$as_me:$LINENO: WARNING
: popt.h
: present but cannot be compiled
" >&5
28267 echo "$as_me: WARNING
: popt.h
: present but cannot be compiled
" >&2;}
28268 { echo "$as_me:$LINENO: WARNING
: popt.h
: check
for missing prerequisite headers?
" >&5
28269 echo "$as_me: WARNING
: popt.h
: check
for missing prerequisite headers?
" >&2;}
28270 { echo "$as_me:$LINENO: WARNING
: popt.h
: see the Autoconf documentation
" >&5
28271 echo "$as_me: WARNING
: popt.h
: see the Autoconf documentation
" >&2;}
28272 { echo "$as_me:$LINENO: WARNING
: popt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28273 echo "$as_me: WARNING
: popt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28274 { echo "$as_me:$LINENO: WARNING
: popt.h
: proceeding with the preprocessor
's result" >&5
28275 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result
" >&2;}
28276 { echo "$as_me:$LINENO: WARNING
: popt.h
: in the future
, the compiler will take precedence
" >&5
28277 echo "$as_me: WARNING
: popt.h
: in the future
, the compiler will take precedence
" >&2;}
28279 ## ------------------------------- ##
28280 ## Report this to www.asterisk.org ##
28281 ## ------------------------------- ##
28283 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28286 { echo "$as_me:$LINENO: checking
for popt.h
" >&5
28287 echo $ECHO_N "checking
for popt.h...
$ECHO_C" >&6; }
28288 if test "${ac_cv_header_popt_h+set}" = set; then
28289 echo $ECHO_N "(cached
) $ECHO_C" >&6
28291 ac_cv_header_popt_h=$ac_header_preproc
28293 { echo "$as_me:$LINENO: result
: $ac_cv_header_popt_h" >&5
28294 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
28297 if test $ac_cv_header_popt_h = yes; then
28298 POPT_HEADER_FOUND=1
28300 POPT_HEADER_FOUND=0
28306 if test "x
${POPT_HEADER_FOUND}" = "x0
" ; then
28307 if test -n "${POPT_MANDATORY}" ;
28309 { echo "$as_me:$LINENO: ***" >&5
28310 echo "$as_me: ***" >&6;}
28311 { echo "$as_me:$LINENO: *** It appears that you
do not have the popt development package installed.
" >&5
28312 echo "$as_me: *** It appears that you
do not have the popt development package installed.
" >&6;}
28313 { echo "$as_me:$LINENO: *** Please
install it to include
${POPT_DESCRIP} support
, or re-run configure
" >&5
28314 echo "$as_me: *** Please
install it to include
${POPT_DESCRIP} support
, or re-run configure
" >&6;}
28315 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${POPT_OPTION}" >&5
28316 echo "$as_me: *** without explicitly specifying
--with-${POPT_OPTION}" >&6;}
28325 cat >>confdefs.h <<_ACEOF
28326 #define HAVE_POPT 1
28330 elif test -n "${POPT_MANDATORY}";
28332 { echo "$as_me:$LINENO: ***" >&5
28333 echo "$as_me: ***" >&6;}
28334 { echo "$as_me:$LINENO: *** The
${POPT_DESCRIP} installation on this system appears to be broken.
" >&5
28335 echo "$as_me: *** The
${POPT_DESCRIP} installation on this system appears to be broken.
" >&6;}
28336 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
28337 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
28338 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${POPT_OPTION}" >&5
28339 echo "$as_me: *** without explicitly specifying
--with-${POPT_OPTION}" >&6;}
28346 if test "${USE_PRI}" != "no
"; then
28348 if test "x
${PRI_DIR}" != "x
"; then
28349 if test -d ${PRI_DIR}/lib; then
28350 pbxlibdir="-L${PRI_DIR}/lib
"
28352 pbxlibdir="-L${PRI_DIR}"
28355 { echo "$as_me:$LINENO: checking
for pri_keypad_facility
in -lpri" >&5
28356 echo $ECHO_N "checking
for pri_keypad_facility
in -lpri...
$ECHO_C" >&6; }
28357 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
28358 echo $ECHO_N "(cached
) $ECHO_C" >&6
28360 ac_check_lib_save_LIBS=$LIBS
28361 LIBS="-lpri ${pbxlibdir} $LIBS"
28362 cat >conftest.$ac_ext <<_ACEOF
28365 cat confdefs.h >>conftest.$ac_ext
28366 cat >>conftest.$ac_ext <<_ACEOF
28367 /* end confdefs.h. */
28369 /* Override any GCC internal prototype to avoid an error.
28370 Use char because int might match the return type of a GCC
28371 builtin and then its argument prototype would still apply. */
28375 char pri_keypad_facility ();
28379 return pri_keypad_facility ();
28384 rm -f conftest.$ac_objext conftest$ac_exeext
28385 if { (ac_try="$ac_link"
28386 case "(($ac_try" in
28387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28388 *) ac_try_echo=$ac_try;;
28390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28391 (eval "$ac_link") 2>conftest.er1
28393 grep -v '^ *+' conftest.er1 >conftest.err
28395 cat conftest.err >&5
28396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28397 (exit $ac_status); } &&
28398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28399 { (case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_try") 2>&5
28406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28407 (exit $ac_status); }; } &&
28408 { ac_try='test -s conftest$ac_exeext'
28409 { (case "(($ac_try" in
28410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28411 *) ac_try_echo=$ac_try;;
28413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28414 (eval "$ac_try") 2>&5
28416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28417 (exit $ac_status); }; }; then
28418 ac_cv_lib_pri_pri_keypad_facility=yes
28420 echo "$as_me: failed program was
:" >&5
28421 sed 's/^/| /' conftest.$ac_ext >&5
28423 ac_cv_lib_pri_pri_keypad_facility=no
28426 rm -f core conftest.err conftest.$ac_objext \
28427 conftest$ac_exeext conftest.$ac_ext
28428 LIBS=$ac_check_lib_save_LIBS
28430 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pri_pri_keypad_facility" >&5
28431 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
28432 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
28439 if test "${AST_PRI_FOUND}" = "yes"; then
28441 PRI_HEADER_FOUND="1"
28442 if test "x
${PRI_DIR}" != "x
"; then
28443 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
28444 PRI_INCLUDE="-I${PRI_DIR}/include
"
28445 saved_cppflags="${CPPFLAGS}"
28446 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include
"
28447 if test "xlibpri.h
" != "x
" ; then
28448 as_ac_Header=`echo "ac_cv_header_
${PRI_DIR}/include
/libpri.h
" | $as_tr_sh`
28449 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28450 { echo "$as_me:$LINENO: checking
for ${PRI_DIR}/include
/libpri.h
" >&5
28451 echo $ECHO_N "checking
for ${PRI_DIR}/include
/libpri.h...
$ECHO_C" >&6; }
28452 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28453 echo $ECHO_N "(cached
) $ECHO_C" >&6
28455 ac_res=`eval echo '${'$as_ac_Header'}'`
28456 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28457 echo "${ECHO_T}$ac_res" >&6; }
28459 # Is the header compilable?
28460 { echo "$as_me:$LINENO: checking
${PRI_DIR}/include
/libpri.h usability
" >&5
28461 echo $ECHO_N "checking
${PRI_DIR}/include
/libpri.h usability...
$ECHO_C" >&6; }
28462 cat >conftest.$ac_ext <<_ACEOF
28465 cat confdefs.h >>conftest.$ac_ext
28466 cat >>conftest.$ac_ext <<_ACEOF
28467 /* end confdefs.h. */
28468 $ac_includes_default
28469 #include <${PRI_DIR}/include/libpri.h>
28471 rm -f conftest.$ac_objext
28472 if { (ac_try="$ac_compile"
28473 case "(($ac_try" in
28474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475 *) ac_try_echo=$ac_try;;
28477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28478 (eval "$ac_compile") 2>conftest.er1
28480 grep -v '^ *+' conftest.er1 >conftest.err
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28484 (exit $ac_status); } &&
28485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28486 { (case "(($ac_try" in
28487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488 *) ac_try_echo=$ac_try;;
28490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28491 (eval "$ac_try") 2>&5
28493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28494 (exit $ac_status); }; } &&
28495 { ac_try='test -s conftest.$ac_objext'
28496 { (case "(($ac_try" in
28497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498 *) ac_try_echo=$ac_try;;
28500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28501 (eval "$ac_try") 2>&5
28503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28504 (exit $ac_status); }; }; then
28505 ac_header_compiler=yes
28507 echo "$as_me: failed program was
:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28510 ac_header_compiler=no
28513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28514 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28515 echo "${ECHO_T}$ac_header_compiler" >&6; }
28517 # Is the header present?
28518 { echo "$as_me:$LINENO: checking
${PRI_DIR}/include
/libpri.h presence
" >&5
28519 echo $ECHO_N "checking
${PRI_DIR}/include
/libpri.h presence...
$ECHO_C" >&6; }
28520 cat >conftest.$ac_ext <<_ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 #include <${PRI_DIR}/include/libpri.h>
28528 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28529 case "(($ac_try" in
28530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28531 *) ac_try_echo=$ac_try;;
28533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28534 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28536 grep -v '^ *+' conftest.er1 >conftest.err
28538 cat conftest.err >&5
28539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28540 (exit $ac_status); } >/dev/null; then
28541 if test -s conftest.err; then
28542 ac_cpp_err=$ac_c_preproc_warn_flag
28543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28550 if test -z "$ac_cpp_err"; then
28551 ac_header_preproc=yes
28553 echo "$as_me: failed program was
:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28556 ac_header_preproc=no
28559 rm -f conftest.err conftest.$ac_ext
28560 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28561 echo "${ECHO_T}$ac_header_preproc" >&6; }
28563 # So? What about this header?
28564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28566 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28567 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28568 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: proceeding with the compiler
's result" >&5
28569 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result
" >&2;}
28570 ac_header_preproc=yes
28573 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: present but cannot be compiled
" >&5
28574 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: present but cannot be compiled
" >&2;}
28575 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: check
for missing prerequisite headers?
" >&5
28576 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: check
for missing prerequisite headers?
" >&2;}
28577 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: see the Autoconf documentation
" >&5
28578 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: see the Autoconf documentation
" >&2;}
28579 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28580 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28581 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: proceeding with the preprocessor
's result" >&5
28582 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result
" >&2;}
28583 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: in the future
, the compiler will take precedence
" >&5
28584 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: in the future
, the compiler will take precedence
" >&2;}
28586 ## ------------------------------- ##
28587 ## Report this to www.asterisk.org ##
28588 ## ------------------------------- ##
28590 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28593 { echo "$as_me:$LINENO: checking
for ${PRI_DIR}/include
/libpri.h
" >&5
28594 echo $ECHO_N "checking
for ${PRI_DIR}/include
/libpri.h...
$ECHO_C" >&6; }
28595 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28596 echo $ECHO_N "(cached
) $ECHO_C" >&6
28598 eval "$as_ac_Header=\
$ac_header_preproc"
28600 ac_res=`eval echo '${'$as_ac_Header'}'`
28601 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28602 echo "${ECHO_T}$ac_res" >&6; }
28605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28613 CPPFLAGS="${saved_cppflags}"
28615 if test "xlibpri.h
" != "x
" ; then
28616 if test "${ac_cv_header_libpri_h+set}" = set; then
28617 { echo "$as_me:$LINENO: checking
for libpri.h
" >&5
28618 echo $ECHO_N "checking
for libpri.h...
$ECHO_C" >&6; }
28619 if test "${ac_cv_header_libpri_h+set}" = set; then
28620 echo $ECHO_N "(cached
) $ECHO_C" >&6
28622 { echo "$as_me:$LINENO: result
: $ac_cv_header_libpri_h" >&5
28623 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
28625 # Is the header compilable?
28626 { echo "$as_me:$LINENO: checking libpri.h usability
" >&5
28627 echo $ECHO_N "checking libpri.h usability...
$ECHO_C" >&6; }
28628 cat >conftest.$ac_ext <<_ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634 $ac_includes_default
28635 #include <libpri.h>
28637 rm -f conftest.$ac_objext
28638 if { (ac_try="$ac_compile"
28639 case "(($ac_try" in
28640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641 *) ac_try_echo=$ac_try;;
28643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28644 (eval "$ac_compile") 2>conftest.er1
28646 grep -v '^ *+' conftest.er1 >conftest.err
28648 cat conftest.err >&5
28649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28650 (exit $ac_status); } &&
28651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28652 { (case "(($ac_try" in
28653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28654 *) ac_try_echo=$ac_try;;
28656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28657 (eval "$ac_try") 2>&5
28659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28660 (exit $ac_status); }; } &&
28661 { ac_try='test -s conftest.$ac_objext'
28662 { (case "(($ac_try" in
28663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664 *) ac_try_echo=$ac_try;;
28666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28667 (eval "$ac_try") 2>&5
28669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28670 (exit $ac_status); }; }; then
28671 ac_header_compiler=yes
28673 echo "$as_me: failed program was
:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28676 ac_header_compiler=no
28679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28680 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28681 echo "${ECHO_T}$ac_header_compiler" >&6; }
28683 # Is the header present?
28684 { echo "$as_me:$LINENO: checking libpri.h presence
" >&5
28685 echo $ECHO_N "checking libpri.h presence...
$ECHO_C" >&6; }
28686 cat >conftest.$ac_ext <<_ACEOF
28689 cat confdefs.h >>conftest.$ac_ext
28690 cat >>conftest.$ac_ext <<_ACEOF
28691 /* end confdefs.h. */
28692 #include <libpri.h>
28694 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28695 case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28702 grep -v '^ *+' conftest.er1 >conftest.err
28704 cat conftest.err >&5
28705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28706 (exit $ac_status); } >/dev/null; then
28707 if test -s conftest.err; then
28708 ac_cpp_err=$ac_c_preproc_warn_flag
28709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28716 if test -z "$ac_cpp_err"; then
28717 ac_header_preproc=yes
28719 echo "$as_me: failed program was
:" >&5
28720 sed 's/^/| /' conftest.$ac_ext >&5
28722 ac_header_preproc=no
28725 rm -f conftest.err conftest.$ac_ext
28726 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28727 echo "${ECHO_T}$ac_header_preproc" >&6; }
28729 # So? What about this header?
28730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28732 { echo "$as_me:$LINENO: WARNING
: libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28733 echo "$as_me: WARNING
: libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28734 { echo "$as_me:$LINENO: WARNING
: libpri.h
: proceeding with the compiler
's result" >&5
28735 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result
" >&2;}
28736 ac_header_preproc=yes
28739 { echo "$as_me:$LINENO: WARNING
: libpri.h
: present but cannot be compiled
" >&5
28740 echo "$as_me: WARNING
: libpri.h
: present but cannot be compiled
" >&2;}
28741 { echo "$as_me:$LINENO: WARNING
: libpri.h
: check
for missing prerequisite headers?
" >&5
28742 echo "$as_me: WARNING
: libpri.h
: check
for missing prerequisite headers?
" >&2;}
28743 { echo "$as_me:$LINENO: WARNING
: libpri.h
: see the Autoconf documentation
" >&5
28744 echo "$as_me: WARNING
: libpri.h
: see the Autoconf documentation
" >&2;}
28745 { echo "$as_me:$LINENO: WARNING
: libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28746 echo "$as_me: WARNING
: libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28747 { echo "$as_me:$LINENO: WARNING
: libpri.h
: proceeding with the preprocessor
's result" >&5
28748 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result
" >&2;}
28749 { echo "$as_me:$LINENO: WARNING
: libpri.h
: in the future
, the compiler will take precedence
" >&5
28750 echo "$as_me: WARNING
: libpri.h
: in the future
, the compiler will take precedence
" >&2;}
28752 ## ------------------------------- ##
28753 ## Report this to www.asterisk.org ##
28754 ## ------------------------------- ##
28756 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28759 { echo "$as_me:$LINENO: checking
for libpri.h
" >&5
28760 echo $ECHO_N "checking
for libpri.h...
$ECHO_C" >&6; }
28761 if test "${ac_cv_header_libpri_h+set}" = set; then
28762 echo $ECHO_N "(cached
) $ECHO_C" >&6
28764 ac_cv_header_libpri_h=$ac_header_preproc
28766 { echo "$as_me:$LINENO: result
: $ac_cv_header_libpri_h" >&5
28767 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
28770 if test $ac_cv_header_libpri_h = yes; then
28779 if test "x
${PRI_HEADER_FOUND}" = "x0
" ; then
28780 if test -n "${PRI_MANDATORY}" ;
28782 { echo "$as_me:$LINENO: ***" >&5
28783 echo "$as_me: ***" >&6;}
28784 { echo "$as_me:$LINENO: *** It appears that you
do not have the pri development package installed.
" >&5
28785 echo "$as_me: *** It appears that you
do not have the pri development package installed.
" >&6;}
28786 { echo "$as_me:$LINENO: *** Please
install it to include
${PRI_DESCRIP} support
, or re-run configure
" >&5
28787 echo "$as_me: *** Please
install it to include
${PRI_DESCRIP} support
, or re-run configure
" >&6;}
28788 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${PRI_OPTION}" >&5
28789 echo "$as_me: *** without explicitly specifying
--with-${PRI_OPTION}" >&6;}
28798 cat >>confdefs.h <<_ACEOF
28803 elif test -n "${PRI_MANDATORY}";
28805 { echo "$as_me:$LINENO: ***" >&5
28806 echo "$as_me: ***" >&6;}
28807 { echo "$as_me:$LINENO: *** The
${PRI_DESCRIP} installation on this system appears to be broken.
" >&5
28808 echo "$as_me: *** The
${PRI_DESCRIP} installation on this system appears to be broken.
" >&6;}
28809 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
28810 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
28811 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${PRI_OPTION}" >&5
28812 echo "$as_me: *** without explicitly specifying
--with-${PRI_OPTION}" >&6;}
28818 if test "${USE_PWLIB}" != "no
"; then
28819 if test -n "${PWLIB_DIR}"; then
28820 PWLIBDIR="${PWLIB_DIR}"
28827 ac_cpp='$CXXCPP $CPPFLAGS'
28828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28832 if test "${PWLIBDIR:-unset}" != "unset" ; then
28833 as_ac_Header=`echo "ac_cv_header_
${PWLIBDIR}/version.h
" | $as_tr_sh`
28834 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28835 { echo "$as_me:$LINENO: checking
for ${PWLIBDIR}/version.h
" >&5
28836 echo $ECHO_N "checking
for ${PWLIBDIR}/version.h...
$ECHO_C" >&6; }
28837 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28838 echo $ECHO_N "(cached
) $ECHO_C" >&6
28840 ac_res=`eval echo '${'$as_ac_Header'}'`
28841 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28842 echo "${ECHO_T}$ac_res" >&6; }
28844 # Is the header compilable?
28845 { echo "$as_me:$LINENO: checking
${PWLIBDIR}/version.h usability
" >&5
28846 echo $ECHO_N "checking
${PWLIBDIR}/version.h usability...
$ECHO_C" >&6; }
28847 cat >conftest.$ac_ext <<_ACEOF
28850 cat confdefs.h >>conftest.$ac_ext
28851 cat >>conftest.$ac_ext <<_ACEOF
28852 /* end confdefs.h. */
28853 $ac_includes_default
28854 #include <${PWLIBDIR}/version.h>
28856 rm -f conftest.$ac_objext
28857 if { (ac_try="$ac_compile"
28858 case "(($ac_try" in
28859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28860 *) ac_try_echo=$ac_try;;
28862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28863 (eval "$ac_compile") 2>conftest.er1
28865 grep -v '^ *+' conftest.er1 >conftest.err
28867 cat conftest.err >&5
28868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28869 (exit $ac_status); } &&
28870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28871 { (case "(($ac_try" in
28872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28873 *) ac_try_echo=$ac_try;;
28875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28876 (eval "$ac_try") 2>&5
28878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28879 (exit $ac_status); }; } &&
28880 { ac_try='test -s conftest.$ac_objext'
28881 { (case "(($ac_try" in
28882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28883 *) ac_try_echo=$ac_try;;
28885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28886 (eval "$ac_try") 2>&5
28888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28889 (exit $ac_status); }; }; then
28890 ac_header_compiler=yes
28892 echo "$as_me: failed program was
:" >&5
28893 sed 's/^/| /' conftest.$ac_ext >&5
28895 ac_header_compiler=no
28898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28899 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28900 echo "${ECHO_T}$ac_header_compiler" >&6; }
28902 # Is the header present?
28903 { echo "$as_me:$LINENO: checking
${PWLIBDIR}/version.h presence
" >&5
28904 echo $ECHO_N "checking
${PWLIBDIR}/version.h presence...
$ECHO_C" >&6; }
28905 cat >conftest.$ac_ext <<_ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h. */
28911 #include <${PWLIBDIR}/version.h>
28913 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28914 case "(($ac_try" in
28915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28916 *) ac_try_echo=$ac_try;;
28918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28919 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28921 grep -v '^ *+' conftest.er1 >conftest.err
28923 cat conftest.err >&5
28924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28925 (exit $ac_status); } >/dev/null; then
28926 if test -s conftest.err; then
28927 ac_cpp_err=$ac_cxx_preproc_warn_flag
28928 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28935 if test -z "$ac_cpp_err"; then
28936 ac_header_preproc=yes
28938 echo "$as_me: failed program was
:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28941 ac_header_preproc=no
28944 rm -f conftest.err conftest.$ac_ext
28945 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28946 echo "${ECHO_T}$ac_header_preproc" >&6; }
28948 # So? What about this header?
28949 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28951 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28952 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28953 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: proceeding with the compiler
's result" >&5
28954 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result
" >&2;}
28955 ac_header_preproc=yes
28958 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: present but cannot be compiled
" >&5
28959 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: present but cannot be compiled
" >&2;}
28960 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: check
for missing prerequisite headers?
" >&5
28961 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: check
for missing prerequisite headers?
" >&2;}
28962 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: see the Autoconf documentation
" >&5
28963 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: see the Autoconf documentation
" >&2;}
28964 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28965 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28966 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: proceeding with the preprocessor
's result" >&5
28967 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result
" >&2;}
28968 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: in the future
, the compiler will take precedence
" >&5
28969 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: in the future
, the compiler will take precedence
" >&2;}
28971 ## ------------------------------- ##
28972 ## Report this to www.asterisk.org ##
28973 ## ------------------------------- ##
28975 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28978 { echo "$as_me:$LINENO: checking
for ${PWLIBDIR}/version.h
" >&5
28979 echo $ECHO_N "checking
for ${PWLIBDIR}/version.h...
$ECHO_C" >&6; }
28980 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28981 echo $ECHO_N "(cached
) $ECHO_C" >&6
28983 eval "$as_ac_Header=\
$ac_header_preproc"
28985 ac_res=`eval echo '${'$as_ac_Header'}'`
28986 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28987 echo "${ECHO_T}$ac_res" >&6; }
28990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28996 if test "${HAS_PWLIB:-unset}" = "unset" ; then
28997 if test "${OPENH323DIR:-unset}" != "unset"; then
28998 as_ac_Header=`echo "ac_cv_header_
${OPENH323DIR}/..
/pwlib
/version.h
" | $as_tr_sh`
28999 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29000 { echo "$as_me:$LINENO: checking
for ${OPENH323DIR}/..
/pwlib
/version.h
" >&5
29001 echo $ECHO_N "checking
for ${OPENH323DIR}/..
/pwlib
/version.h...
$ECHO_C" >&6; }
29002 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29003 echo $ECHO_N "(cached
) $ECHO_C" >&6
29005 ac_res=`eval echo '${'$as_ac_Header'}'`
29006 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29007 echo "${ECHO_T}$ac_res" >&6; }
29009 # Is the header compilable?
29010 { echo "$as_me:$LINENO: checking
${OPENH323DIR}/..
/pwlib
/version.h usability
" >&5
29011 echo $ECHO_N "checking
${OPENH323DIR}/..
/pwlib
/version.h usability...
$ECHO_C" >&6; }
29012 cat >conftest.$ac_ext <<_ACEOF
29015 cat confdefs.h >>conftest.$ac_ext
29016 cat >>conftest.$ac_ext <<_ACEOF
29017 /* end confdefs.h. */
29018 $ac_includes_default
29019 #include <${OPENH323DIR}/../pwlib/version.h>
29021 rm -f conftest.$ac_objext
29022 if { (ac_try="$ac_compile"
29023 case "(($ac_try" in
29024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29025 *) ac_try_echo=$ac_try;;
29027 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29028 (eval "$ac_compile") 2>conftest.er1
29030 grep -v '^ *+' conftest.er1 >conftest.err
29032 cat conftest.err >&5
29033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29034 (exit $ac_status); } &&
29035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29036 { (case "(($ac_try" in
29037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29038 *) ac_try_echo=$ac_try;;
29040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29041 (eval "$ac_try") 2>&5
29043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29044 (exit $ac_status); }; } &&
29045 { ac_try='test -s conftest.$ac_objext'
29046 { (case "(($ac_try" in
29047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048 *) ac_try_echo=$ac_try;;
29050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29051 (eval "$ac_try") 2>&5
29053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29054 (exit $ac_status); }; }; then
29055 ac_header_compiler=yes
29057 echo "$as_me: failed program was
:" >&5
29058 sed 's/^/| /' conftest.$ac_ext >&5
29060 ac_header_compiler=no
29063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29064 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29065 echo "${ECHO_T}$ac_header_compiler" >&6; }
29067 # Is the header present?
29068 { echo "$as_me:$LINENO: checking
${OPENH323DIR}/..
/pwlib
/version.h presence
" >&5
29069 echo $ECHO_N "checking
${OPENH323DIR}/..
/pwlib
/version.h presence...
$ECHO_C" >&6; }
29070 cat >conftest.$ac_ext <<_ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h. */
29076 #include <${OPENH323DIR}/../pwlib/version.h>
29078 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29079 case "(($ac_try" in
29080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29081 *) ac_try_echo=$ac_try;;
29083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29084 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29086 grep -v '^ *+' conftest.er1 >conftest.err
29088 cat conftest.err >&5
29089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29090 (exit $ac_status); } >/dev/null; then
29091 if test -s conftest.err; then
29092 ac_cpp_err=$ac_cxx_preproc_warn_flag
29093 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29100 if test -z "$ac_cpp_err"; then
29101 ac_header_preproc=yes
29103 echo "$as_me: failed program was
:" >&5
29104 sed 's/^/| /' conftest.$ac_ext >&5
29106 ac_header_preproc=no
29109 rm -f conftest.err conftest.$ac_ext
29110 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29111 echo "${ECHO_T}$ac_header_preproc" >&6; }
29113 # So? What about this header?
29114 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29116 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29117 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29118 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: proceeding with the compiler
's result" >&5
29119 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result
" >&2;}
29120 ac_header_preproc=yes
29123 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: present but cannot be compiled
" >&5
29124 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: present but cannot be compiled
" >&2;}
29125 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: check
for missing prerequisite headers?
" >&5
29126 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: check
for missing prerequisite headers?
" >&2;}
29127 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: see the Autoconf documentation
" >&5
29128 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: see the Autoconf documentation
" >&2;}
29129 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29130 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29131 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: proceeding with the preprocessor
's result" >&5
29132 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result
" >&2;}
29133 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: in the future
, the compiler will take precedence
" >&5
29134 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: in the future
, the compiler will take precedence
" >&2;}
29136 ## ------------------------------- ##
29137 ## Report this to www.asterisk.org ##
29138 ## ------------------------------- ##
29140 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29143 { echo "$as_me:$LINENO: checking
for ${OPENH323DIR}/..
/pwlib
/version.h
" >&5
29144 echo $ECHO_N "checking
for ${OPENH323DIR}/..
/pwlib
/version.h...
$ECHO_C" >&6; }
29145 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29146 echo $ECHO_N "(cached
) $ECHO_C" >&6
29148 eval "$as_ac_Header=\
$ac_header_preproc"
29150 ac_res=`eval echo '${'$as_ac_Header'}'`
29151 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29152 echo "${ECHO_T}$ac_res" >&6; }
29155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29161 if test "${HAS_PWLIB:-unset}" != "unset" ; then
29162 PWLIBDIR="${OPENH323DIR}/..
/pwlib
"
29164 as_ac_Header=`echo "ac_cv_header_
${HOME}/pwlib
/include
/ptlib.h
" | $as_tr_sh`
29165 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29166 { echo "$as_me:$LINENO: checking
for ${HOME}/pwlib
/include
/ptlib.h
" >&5
29167 echo $ECHO_N "checking
for ${HOME}/pwlib
/include
/ptlib.h...
$ECHO_C" >&6; }
29168 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29169 echo $ECHO_N "(cached
) $ECHO_C" >&6
29171 ac_res=`eval echo '${'$as_ac_Header'}'`
29172 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29173 echo "${ECHO_T}$ac_res" >&6; }
29175 # Is the header compilable?
29176 { echo "$as_me:$LINENO: checking
${HOME}/pwlib
/include
/ptlib.h usability
" >&5
29177 echo $ECHO_N "checking
${HOME}/pwlib
/include
/ptlib.h usability...
$ECHO_C" >&6; }
29178 cat >conftest.$ac_ext <<_ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h. */
29184 $ac_includes_default
29185 #include <${HOME}/pwlib/include/ptlib.h>
29187 rm -f conftest.$ac_objext
29188 if { (ac_try="$ac_compile"
29189 case "(($ac_try" in
29190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29191 *) ac_try_echo=$ac_try;;
29193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29194 (eval "$ac_compile") 2>conftest.er1
29196 grep -v '^ *+' conftest.er1 >conftest.err
29198 cat conftest.err >&5
29199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29200 (exit $ac_status); } &&
29201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29202 { (case "(($ac_try" in
29203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204 *) ac_try_echo=$ac_try;;
29206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29207 (eval "$ac_try") 2>&5
29209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29210 (exit $ac_status); }; } &&
29211 { ac_try='test -s conftest.$ac_objext'
29212 { (case "(($ac_try" in
29213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29214 *) ac_try_echo=$ac_try;;
29216 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29217 (eval "$ac_try") 2>&5
29219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29220 (exit $ac_status); }; }; then
29221 ac_header_compiler=yes
29223 echo "$as_me: failed program was
:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29226 ac_header_compiler=no
29229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29230 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29231 echo "${ECHO_T}$ac_header_compiler" >&6; }
29233 # Is the header present?
29234 { echo "$as_me:$LINENO: checking
${HOME}/pwlib
/include
/ptlib.h presence
" >&5
29235 echo $ECHO_N "checking
${HOME}/pwlib
/include
/ptlib.h presence...
$ECHO_C" >&6; }
29236 cat >conftest.$ac_ext <<_ACEOF
29239 cat confdefs.h >>conftest.$ac_ext
29240 cat >>conftest.$ac_ext <<_ACEOF
29241 /* end confdefs.h. */
29242 #include <${HOME}/pwlib/include/ptlib.h>
29244 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29245 case "(($ac_try" in
29246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29247 *) ac_try_echo=$ac_try;;
29249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29250 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29252 grep -v '^ *+' conftest.er1 >conftest.err
29254 cat conftest.err >&5
29255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29256 (exit $ac_status); } >/dev/null; then
29257 if test -s conftest.err; then
29258 ac_cpp_err=$ac_cxx_preproc_warn_flag
29259 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29266 if test -z "$ac_cpp_err"; then
29267 ac_header_preproc=yes
29269 echo "$as_me: failed program was
:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29272 ac_header_preproc=no
29275 rm -f conftest.err conftest.$ac_ext
29276 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29277 echo "${ECHO_T}$ac_header_preproc" >&6; }
29279 # So? What about this header?
29280 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29282 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29283 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29284 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: proceeding with the compiler
's result" >&5
29285 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result
" >&2;}
29286 ac_header_preproc=yes
29289 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: present but cannot be compiled
" >&5
29290 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: present but cannot be compiled
" >&2;}
29291 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&5
29292 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&2;}
29293 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: see the Autoconf documentation
" >&5
29294 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: see the Autoconf documentation
" >&2;}
29295 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29296 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29297 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: proceeding with the preprocessor
's result" >&5
29298 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result
" >&2;}
29299 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&5
29300 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&2;}
29302 ## ------------------------------- ##
29303 ## Report this to www.asterisk.org ##
29304 ## ------------------------------- ##
29306 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29309 { echo "$as_me:$LINENO: checking
for ${HOME}/pwlib
/include
/ptlib.h
" >&5
29310 echo $ECHO_N "checking
for ${HOME}/pwlib
/include
/ptlib.h...
$ECHO_C" >&6; }
29311 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29312 echo $ECHO_N "(cached
) $ECHO_C" >&6
29314 eval "$as_ac_Header=\
$ac_header_preproc"
29316 ac_res=`eval echo '${'$as_ac_Header'}'`
29317 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29318 echo "${ECHO_T}$ac_res" >&6; }
29321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29326 if test "${HAS_PWLIB:-unset}" != "unset" ; then
29327 PWLIBDIR="${HOME}/pwlib
"
29329 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
29330 { echo "$as_me:$LINENO: checking
for /usr
/local
/include
/ptlib.h
" >&5
29331 echo $ECHO_N "checking
for /usr
/local
/include
/ptlib.h...
$ECHO_C" >&6; }
29332 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
29333 echo $ECHO_N "(cached
) $ECHO_C" >&6
29335 { echo "$as_me:$LINENO: result
: $ac_cv_header__usr_local_include_ptlib_h" >&5
29336 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
29338 # Is the header compilable?
29339 { echo "$as_me:$LINENO: checking
/usr
/local
/include
/ptlib.h usability
" >&5
29340 echo $ECHO_N "checking
/usr
/local
/include
/ptlib.h usability...
$ECHO_C" >&6; }
29341 cat >conftest.$ac_ext <<_ACEOF
29344 cat confdefs.h >>conftest.$ac_ext
29345 cat >>conftest.$ac_ext <<_ACEOF
29346 /* end confdefs.h. */
29347 $ac_includes_default
29348 #include </usr/local/include/ptlib.h>
29350 rm -f conftest.$ac_objext
29351 if { (ac_try="$ac_compile"
29352 case "(($ac_try" in
29353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354 *) ac_try_echo=$ac_try;;
29356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29357 (eval "$ac_compile") 2>conftest.er1
29359 grep -v '^ *+' conftest.er1 >conftest.err
29361 cat conftest.err >&5
29362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29363 (exit $ac_status); } &&
29364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29365 { (case "(($ac_try" in
29366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29367 *) ac_try_echo=$ac_try;;
29369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29370 (eval "$ac_try") 2>&5
29372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29373 (exit $ac_status); }; } &&
29374 { ac_try='test -s conftest.$ac_objext'
29375 { (case "(($ac_try" in
29376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377 *) ac_try_echo=$ac_try;;
29379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29380 (eval "$ac_try") 2>&5
29382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29383 (exit $ac_status); }; }; then
29384 ac_header_compiler=yes
29386 echo "$as_me: failed program was
:" >&5
29387 sed 's/^/| /' conftest.$ac_ext >&5
29389 ac_header_compiler=no
29392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29393 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29394 echo "${ECHO_T}$ac_header_compiler" >&6; }
29396 # Is the header present?
29397 { echo "$as_me:$LINENO: checking
/usr
/local
/include
/ptlib.h presence
" >&5
29398 echo $ECHO_N "checking
/usr
/local
/include
/ptlib.h presence...
$ECHO_C" >&6; }
29399 cat >conftest.$ac_ext <<_ACEOF
29402 cat confdefs.h >>conftest.$ac_ext
29403 cat >>conftest.$ac_ext <<_ACEOF
29404 /* end confdefs.h. */
29405 #include </usr/local/include/ptlib.h>
29407 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29408 case "(($ac_try" in
29409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410 *) ac_try_echo=$ac_try;;
29412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29413 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29415 grep -v '^ *+' conftest.er1 >conftest.err
29417 cat conftest.err >&5
29418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29419 (exit $ac_status); } >/dev/null; then
29420 if test -s conftest.err; then
29421 ac_cpp_err=$ac_cxx_preproc_warn_flag
29422 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29429 if test -z "$ac_cpp_err"; then
29430 ac_header_preproc=yes
29432 echo "$as_me: failed program was
:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29435 ac_header_preproc=no
29438 rm -f conftest.err conftest.$ac_ext
29439 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29440 echo "${ECHO_T}$ac_header_preproc" >&6; }
29442 # So? What about this header?
29443 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29445 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29446 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29447 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: proceeding with the compiler
's result" >&5
29448 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result
" >&2;}
29449 ac_header_preproc=yes
29452 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: present but cannot be compiled
" >&5
29453 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: present but cannot be compiled
" >&2;}
29454 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&5
29455 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&2;}
29456 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: see the Autoconf documentation
" >&5
29457 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: see the Autoconf documentation
" >&2;}
29458 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29459 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29460 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: proceeding with the preprocessor
's result" >&5
29461 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result
" >&2;}
29462 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&5
29463 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&2;}
29465 ## ------------------------------- ##
29466 ## Report this to www.asterisk.org ##
29467 ## ------------------------------- ##
29469 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29472 { echo "$as_me:$LINENO: checking
for /usr
/local
/include
/ptlib.h
" >&5
29473 echo $ECHO_N "checking
for /usr
/local
/include
/ptlib.h...
$ECHO_C" >&6; }
29474 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
29475 echo $ECHO_N "(cached
) $ECHO_C" >&6
29477 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
29479 { echo "$as_me:$LINENO: result
: $ac_cv_header__usr_local_include_ptlib_h" >&5
29480 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
29483 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
29488 if test "${HAS_PWLIB:-unset}" != "unset" ; then
29489 # Extract the first word of "ptlib-config
", so it can be a program name with args.
29490 set dummy ptlib-config; ac_word=$2
29491 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
29492 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
29493 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
29494 echo $ECHO_N "(cached
) $ECHO_C" >&6
29496 case $PTLIB_CONFIG in
29498 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
29501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29502 for as_dir in /usr/local/bin
29505 test -z "$as_dir" && as_dir=.
29506 for ac_exec_ext in '' $ac_executable_extensions; do
29507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
29508 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29509 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
29519 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
29520 if test -n "$PTLIB_CONFIG"; then
29521 { echo "$as_me:$LINENO: result
: $PTLIB_CONFIG" >&5
29522 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
29524 { echo "$as_me:$LINENO: result
: no
" >&5
29525 echo "${ECHO_T}no
" >&6; }
29529 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
29530 # Extract the first word of "ptlib-config
", so it can be a program name with args.
29531 set dummy ptlib-config; ac_word=$2
29532 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
29533 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
29534 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
29535 echo $ECHO_N "(cached
) $ECHO_C" >&6
29537 case $PTLIB_CONFIG in
29539 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
29542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29543 for as_dir in /usr/local/share/pwlib/make
29546 test -z "$as_dir" && as_dir=.
29547 for ac_exec_ext in '' $ac_executable_extensions; do
29548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
29549 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29550 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
29560 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
29561 if test -n "$PTLIB_CONFIG"; then
29562 { echo "$as_me:$LINENO: result
: $PTLIB_CONFIG" >&5
29563 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
29565 { echo "$as_me:$LINENO: result
: no
" >&5
29566 echo "${ECHO_T}no
" >&6; }
29571 PWLIB_INCDIR="/usr
/local
/include
"
29572 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
29573 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
29574 if test "x
$LIB64" != "x
"; then
29575 PWLIB_LIBDIR="/usr
/local
/lib64
"
29577 PWLIB_LIBDIR="/usr
/local
/lib
"
29580 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
29581 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
29583 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
29584 { echo "$as_me:$LINENO: checking
for /usr
/include
/ptlib.h
" >&5
29585 echo $ECHO_N "checking
for /usr
/include
/ptlib.h...
$ECHO_C" >&6; }
29586 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
29587 echo $ECHO_N "(cached
) $ECHO_C" >&6
29589 { echo "$as_me:$LINENO: result
: $ac_cv_header__usr_include_ptlib_h" >&5
29590 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
29592 # Is the header compilable?
29593 { echo "$as_me:$LINENO: checking
/usr
/include
/ptlib.h usability
" >&5
29594 echo $ECHO_N "checking
/usr
/include
/ptlib.h usability...
$ECHO_C" >&6; }
29595 cat >conftest.$ac_ext <<_ACEOF
29598 cat confdefs.h >>conftest.$ac_ext
29599 cat >>conftest.$ac_ext <<_ACEOF
29600 /* end confdefs.h. */
29601 $ac_includes_default
29602 #include </usr/include/ptlib.h>
29604 rm -f conftest.$ac_objext
29605 if { (ac_try="$ac_compile"
29606 case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_compile") 2>conftest.er1
29613 grep -v '^ *+' conftest.er1 >conftest.err
29615 cat conftest.err >&5
29616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29617 (exit $ac_status); } &&
29618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29619 { (case "(($ac_try" in
29620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621 *) ac_try_echo=$ac_try;;
29623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29624 (eval "$ac_try") 2>&5
29626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29627 (exit $ac_status); }; } &&
29628 { ac_try='test -s conftest.$ac_objext'
29629 { (case "(($ac_try" in
29630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631 *) ac_try_echo=$ac_try;;
29633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29634 (eval "$ac_try") 2>&5
29636 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29637 (exit $ac_status); }; }; then
29638 ac_header_compiler=yes
29640 echo "$as_me: failed program was
:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29643 ac_header_compiler=no
29646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29647 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29648 echo "${ECHO_T}$ac_header_compiler" >&6; }
29650 # Is the header present?
29651 { echo "$as_me:$LINENO: checking
/usr
/include
/ptlib.h presence
" >&5
29652 echo $ECHO_N "checking
/usr
/include
/ptlib.h presence...
$ECHO_C" >&6; }
29653 cat >conftest.$ac_ext <<_ACEOF
29656 cat confdefs.h >>conftest.$ac_ext
29657 cat >>conftest.$ac_ext <<_ACEOF
29658 /* end confdefs.h. */
29659 #include </usr/include/ptlib.h>
29661 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29662 case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29669 grep -v '^ *+' conftest.er1 >conftest.err
29671 cat conftest.err >&5
29672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29673 (exit $ac_status); } >/dev/null; then
29674 if test -s conftest.err; then
29675 ac_cpp_err=$ac_cxx_preproc_warn_flag
29676 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29683 if test -z "$ac_cpp_err"; then
29684 ac_header_preproc=yes
29686 echo "$as_me: failed program was
:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29689 ac_header_preproc=no
29692 rm -f conftest.err conftest.$ac_ext
29693 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29694 echo "${ECHO_T}$ac_header_preproc" >&6; }
29696 # So? What about this header?
29697 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29699 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29700 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29701 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: proceeding with the compiler
's result" >&5
29702 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result
" >&2;}
29703 ac_header_preproc=yes
29706 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: present but cannot be compiled
" >&5
29707 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: present but cannot be compiled
" >&2;}
29708 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&5
29709 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&2;}
29710 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: see the Autoconf documentation
" >&5
29711 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: see the Autoconf documentation
" >&2;}
29712 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29713 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29714 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: proceeding with the preprocessor
's result" >&5
29715 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result
" >&2;}
29716 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&5
29717 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&2;}
29719 ## ------------------------------- ##
29720 ## Report this to www.asterisk.org ##
29721 ## ------------------------------- ##
29723 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29726 { echo "$as_me:$LINENO: checking
for /usr
/include
/ptlib.h
" >&5
29727 echo $ECHO_N "checking
for /usr
/include
/ptlib.h...
$ECHO_C" >&6; }
29728 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
29729 echo $ECHO_N "(cached
) $ECHO_C" >&6
29731 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
29733 { echo "$as_me:$LINENO: result
: $ac_cv_header__usr_include_ptlib_h" >&5
29734 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
29737 if test $ac_cv_header__usr_include_ptlib_h = yes; then
29742 if test "${HAS_PWLIB:-unset}" != "unset" ; then
29743 # Extract the first word of "ptlib-config
", so it can be a program name with args.
29744 set dummy ptlib-config; ac_word=$2
29745 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
29746 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
29747 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
29748 echo $ECHO_N "(cached
) $ECHO_C" >&6
29750 case $PTLIB_CONFIG in
29752 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
29755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29756 for as_dir in /usr/share/pwlib/make
29759 test -z "$as_dir" && as_dir=.
29760 for ac_exec_ext in '' $ac_executable_extensions; do
29761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
29762 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29763 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
29773 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
29774 if test -n "$PTLIB_CONFIG"; then
29775 { echo "$as_me:$LINENO: result
: $PTLIB_CONFIG" >&5
29776 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
29778 { echo "$as_me:$LINENO: result
: no
" >&5
29779 echo "${ECHO_T}no
" >&6; }
29783 PWLIB_INCDIR="/usr
/include
"
29784 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
29785 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
29786 if test "x
$LIB64" != "x
"; then
29787 PWLIB_LIBDIR="/usr
/lib64
"
29789 PWLIB_LIBDIR="/usr
/lib
"
29792 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
29793 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
29800 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
29801 # echo "Cannot
find pwlib
- please
install or
set PWLIBDIR and try again
"
29805 if test "${HAS_PWLIB:-unset}" != "unset" ; then
29806 if test "${PWLIBDIR:-unset}" = "unset" ; then
29807 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
29808 PWLIBDIR=`$PTLIB_CONFIG --prefix`
29810 echo "Cannot
find ptlib-config
- please
install and try again
"
29815 if test "x
$PWLIBDIR" = "x
/usr
" -o "x
$PWLIBDIR" = "x
/usr
/"; then
29816 PWLIBDIR="/usr
/share
/pwlib
"
29817 PWLIB_INCDIR="/usr
/include
"
29818 if test "x
$LIB64" != "x
"; then
29819 PWLIB_LIBDIR="/usr
/lib64
"
29821 PWLIB_LIBDIR="/usr
/lib
"
29824 if test "x
$PWLIBDIR" = "x
/usr
/local" -o "x
$PWLIBDIR" = "x
/usr
/"; then
29825 PWLIBDIR="/usr
/local
/share
/pwlib
"
29826 PWLIB_INCDIR="/usr
/local
/include
"
29827 if test "x
$LIB64" != "x
"; then
29828 PWLIB_LIBDIR="/usr
/local
/lib64
"
29830 PWLIB_LIBDIR="/usr
/local
/lib
"
29834 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
29835 PWLIB_INCDIR="${PWLIBDIR}/include
"
29837 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
29838 PWLIB_LIBDIR="${PWLIBDIR}/lib
"
29846 ac_cpp='$CPP $CPPFLAGS'
29847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29853 if test "${HAS_PWLIB:-unset}" != "unset"; then
29854 PWLIB_VERSION=`grep "PWLIB_VERSION
" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g
'`
29855 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
29856 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
29857 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
29858 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
29859 let PWLIB_REQ=1*10000+9*100+2
29861 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
29862 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
29863 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
29864 { echo "$as_me:$LINENO: result: no" >&5
29865 echo "${ECHO_T}no" >&6; }
29868 { echo "$as_me:$LINENO: result: yes" >&5
29869 echo "${ECHO_T}yes" >&6; }
29874 if test "${HAS_PWLIB:-unset}" != "unset"; then
29878 linux*) PWLIB_OSTYPE=linux ;
29880 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
29882 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
29883 ENDLDLIBS="-lossaudio" ;
29885 netbsd* ) PWLIB_OSTYPE=NetBSD ;
29886 ENDLDLIBS="-lossaudio" ;
29888 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
29890 darwin* ) PWLIB_OSTYPE=Darwin ;
29892 beos*) PWLIB_OSTYPE=beos ;
29893 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
29895 cygwin*) PWLIB_OSTYPE=cygwin ;
29897 mingw*) PWLIB_OSTYPE=mingw ;
29898 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
29899 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
29901 * ) PWLIB_OSTYPE="$host_os" ;
29902 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
29903 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
29908 case "$host_cpu" in
29909 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
29912 x86_64) PWLIB_MACHTYPE=x86_64 ;
29917 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
29921 sparc ) PWLIB_MACHTYPE=sparc ;
29924 powerpc ) PWLIB_MACHTYPE=ppc ;
29927 ppc ) PWLIB_MACHTYPE=ppc ;
29930 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
29935 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
29940 ia64) PWLIB_MACHTYPE=ia64 ;
29944 s390x) PWLIB_MACHTYPE=s390x ;
29949 s390) PWLIB_MACHTYPE=s390 ;
29952 * ) PWLIB_MACHTYPE="$host_cpu";
29953 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
29954 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
29957 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
29962 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
29965 if test "${HAS_PWLIB:-unset}" != "unset"; then
29966 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
29967 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
29969 saved_cppflags="${CPPFLAGS}"
29970 saved_libs="${LIBS}"
29971 if test "${PWLIB_LIB:-unset}" != "unset"; then
29972 LIBS="${LIBS} ${PWLIB_LIB} "
29974 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
29976 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
29979 ac_cpp='$CXXCPP $CPPFLAGS'
29980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
29981 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
29982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29985 cat >conftest.$ac_ext <<_ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h. */
29995 BOOL q = PTime::IsDaylightSavings();
30000 rm -f conftest.$ac_objext conftest$ac_exeext
30001 if { (ac_try="$ac_link"
30002 case "(($ac_try" in
30003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30004 *) ac_try_echo=$ac_try;;
30006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30007 (eval "$ac_link") 2>conftest.er1
30009 grep -v '^
*+' conftest.er1 >conftest.err
30011 cat conftest.err >&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); } &&
30014 { ac_try='test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
'
30015 { (case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_try") 2>&5
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); }; } &&
30024 { ac_try='test -s conftest
$ac_exeext'
30025 { (case "(($ac_try" in
30026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30027 *) ac_try_echo=$ac_try;;
30029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30030 (eval "$ac_try") 2>&5
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033 (exit $ac_status); }; }; then
30034 { echo "$as_me:$LINENO: result: yes" >&5
30035 echo "${ECHO_T}yes" >&6; }
30036 ac_cv_lib_PWLIB="yes"
30039 echo "$as_me: failed program was:" >&5
30040 sed 's
/^
/|
/' conftest.$ac_ext >&5
30042 { echo "$as_me:$LINENO: result: no" >&5
30043 echo "${ECHO_T}no" >&6; }
30044 ac_cv_lib_PWLIB="no"
30049 rm -f core conftest.err conftest.$ac_objext \
30050 conftest$ac_exeext conftest.$ac_ext
30053 ac_cpp='$CPP $CPPFLAGS'
30054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
30055 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
30056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30059 LIBS="${saved_libs}"
30060 CPPFLAGS="${saved_cppflags}"
30062 if test "${ac_cv_lib_PWLIB}" = "yes"; then
30063 if test "${PWLIB_LIB:-undef}" = "undef"; then
30064 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
30065 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
30067 PWLIB_LIB="-l${PLATFORM_PWLIB}"
30070 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
30071 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
30075 cat >>confdefs.h <<\_ACEOF
30076 #define HAVE_PWLIB 1
30085 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
30086 { echo "$as_me:$LINENO: ***" >&5
30087 echo "$as_me: ***" >&6;}
30088 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
30089 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
30090 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30091 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30092 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
30093 echo "$as_me: *** including --without-pwlib" >&6;}
30097 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
30098 if test -n "${OPENH323_DIR}"; then
30099 OPENH323DIR="${OPENH323_DIR}"
30105 ac_cpp='$CXXCPP $CPPFLAGS'
30106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
30107 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
30108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30110 if test "${OPENH323DIR:-unset}" != "unset" ; then
30111 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
30112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30113 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
30114 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
30115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30116 echo $ECHO_N "(cached) $ECHO_C" >&6
30118 ac_res=`eval echo '${'$as_ac_Header'}'`
30119 { echo "$as_me:$LINENO: result: $ac_res" >&5
30120 echo "${ECHO_T}$ac_res" >&6; }
30122 # Is the header compilable?
30123 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
30124 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
30125 cat >conftest.$ac_ext <<_ACEOF
30128 cat confdefs.h >>conftest.$ac_ext
30129 cat >>conftest.$ac_ext <<_ACEOF
30130 /* end confdefs.h. */
30131 $ac_includes_default
30132 #include <${OPENH323DIR}/version.h>
30134 rm -f conftest.$ac_objext
30135 if { (ac_try="$ac_compile"
30136 case "(($ac_try" in
30137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30138 *) ac_try_echo=$ac_try;;
30140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30141 (eval "$ac_compile") 2>conftest.er1
30143 grep -v '^
*+' conftest.er1 >conftest.err
30145 cat conftest.err >&5
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); } &&
30148 { ac_try='test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
'
30149 { (case "(($ac_try" in
30150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151 *) ac_try_echo=$ac_try;;
30153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154 (eval "$ac_try") 2>&5
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; } &&
30158 { ac_try='test -s conftest.
$ac_objext'
30159 { (case "(($ac_try" in
30160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30161 *) ac_try_echo=$ac_try;;
30163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30164 (eval "$ac_try") 2>&5
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); }; }; then
30168 ac_header_compiler=yes
30170 echo "$as_me: failed program was:" >&5
30171 sed 's
/^
/|
/' conftest.$ac_ext >&5
30173 ac_header_compiler=no
30176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30178 echo "${ECHO_T}$ac_header_compiler" >&6; }
30180 # Is the header present?
30181 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
30182 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
30183 cat >conftest.$ac_ext <<_ACEOF
30186 cat confdefs.h >>conftest.$ac_ext
30187 cat >>conftest.$ac_ext <<_ACEOF
30188 /* end confdefs.h. */
30189 #include <${OPENH323DIR}/version.h>
30191 if { (ac_try="$ac_cpp conftest.$ac_ext"
30192 case "(($ac_try" in
30193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30194 *) ac_try_echo=$ac_try;;
30196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30199 grep -v '^
*+' conftest.er1 >conftest.err
30201 cat conftest.err >&5
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); } >/dev/null; then
30204 if test -s conftest.err; then
30205 ac_cpp_err=$ac_cxx_preproc_warn_flag
30206 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
30213 if test -z "$ac_cpp_err"; then
30214 ac_header_preproc=yes
30216 echo "$as_me: failed program was:" >&5
30217 sed 's
/^
/|
/' conftest.$ac_ext >&5
30219 ac_header_preproc=no
30222 rm -f conftest.err conftest.$ac_ext
30223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30224 echo "${ECHO_T}$ac_header_preproc" >&6; }
30226 # So? What about this header?
30227 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
30229 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
30230 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30231 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result
" >&5
30232 echo "$as_me: WARNING
: ${OPENH323DIR}/version.h
: proceeding with the compiler
's result" >&2;}
30233 ac_header_preproc=yes
30236 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
30237 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
30238 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
30239 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
30240 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
30241 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
30242 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
30243 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
30244 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result
" >&5
30245 echo "$as_me: WARNING
: ${OPENH323DIR}/version.h
: proceeding with the preprocessor
's result" >&2;}
30246 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
30247 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
30249 ## ------------------------------- ##
30250 ## Report this to www.asterisk.org ##
30251 ## ------------------------------- ##
30253 ) | sed "s/^/$as_me: WARNING: /" >&2
30256 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
30257 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
30258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30259 echo $ECHO_N "(cached) $ECHO_C" >&6
30261 eval "$as_ac_Header=\$ac_header_preproc"
30263 ac_res=`eval echo '${'$as_ac_Header'}'`
30264 { echo "$as_me:$LINENO: result: $ac_res" >&5
30265 echo "${ECHO_T}$ac_res" >&6; }
30268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30274 if test "${HAS_OPENH323:-unset}" = "unset" ; then
30275 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
30276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30277 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
30278 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
30279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30280 echo $ECHO_N "(cached) $ECHO_C" >&6
30282 ac_res=`eval echo '${'$as_ac_Header'}'`
30283 { echo "$as_me:$LINENO: result: $ac_res" >&5
30284 echo "${ECHO_T}$ac_res" >&6; }
30286 # Is the header compilable?
30287 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
30288 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
30289 cat >conftest.$ac_ext <<_ACEOF
30292 cat confdefs.h >>conftest.$ac_ext
30293 cat >>conftest.$ac_ext <<_ACEOF
30294 /* end confdefs.h. */
30295 $ac_includes_default
30296 #include <${PWLIBDIR}/../openh323/version.h>
30298 rm -f conftest.$ac_objext
30299 if { (ac_try="$ac_compile"
30300 case "(($ac_try" in
30301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302 *) ac_try_echo=$ac_try;;
30304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305 (eval "$ac_compile") 2>conftest.er1
30307 grep -v '^
*+' conftest.er1 >conftest.err
30309 cat conftest.err >&5
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); } &&
30312 { ac_try='test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
'
30313 { (case "(($ac_try" in
30314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30315 *) ac_try_echo=$ac_try;;
30317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30318 (eval "$ac_try") 2>&5
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; } &&
30322 { ac_try='test -s conftest.
$ac_objext'
30323 { (case "(($ac_try" in
30324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30325 *) ac_try_echo=$ac_try;;
30327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30328 (eval "$ac_try") 2>&5
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); }; }; then
30332 ac_header_compiler=yes
30334 echo "$as_me: failed program was:" >&5
30335 sed 's
/^
/|
/' conftest.$ac_ext >&5
30337 ac_header_compiler=no
30340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30342 echo "${ECHO_T}$ac_header_compiler" >&6; }
30344 # Is the header present?
30345 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
30346 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
30347 cat >conftest.$ac_ext <<_ACEOF
30350 cat confdefs.h >>conftest.$ac_ext
30351 cat >>conftest.$ac_ext <<_ACEOF
30352 /* end confdefs.h. */
30353 #include <${PWLIBDIR}/../openh323/version.h>
30355 if { (ac_try="$ac_cpp conftest.$ac_ext"
30356 case "(($ac_try" in
30357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358 *) ac_try_echo=$ac_try;;
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30363 grep -v '^
*+' conftest.er1 >conftest.err
30365 cat conftest.err >&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); } >/dev/null; then
30368 if test -s conftest.err; then
30369 ac_cpp_err=$ac_cxx_preproc_warn_flag
30370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
30377 if test -z "$ac_cpp_err"; then
30378 ac_header_preproc=yes
30380 echo "$as_me: failed program was:" >&5
30381 sed 's
/^
/|
/' conftest.$ac_ext >&5
30383 ac_header_preproc=no
30386 rm -f conftest.err conftest.$ac_ext
30387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30388 echo "${ECHO_T}$ac_header_preproc" >&6; }
30390 # So? What about this header?
30391 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
30393 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
30394 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30395 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result
" >&5
30396 echo "$as_me: WARNING
: ${PWLIBDIR}/..
/openh323
/version.h
: proceeding with the compiler
's result" >&2;}
30397 ac_header_preproc=yes
30400 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
30401 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
30402 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
30403 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
30404 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
30405 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
30406 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
30407 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
30408 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result
" >&5
30409 echo "$as_me: WARNING
: ${PWLIBDIR}/..
/openh323
/version.h
: proceeding with the preprocessor
's result" >&2;}
30410 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
30411 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
30413 ## ------------------------------- ##
30414 ## Report this to www.asterisk.org ##
30415 ## ------------------------------- ##
30417 ) | sed "s/^/$as_me: WARNING: /" >&2
30420 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
30421 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
30422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30423 echo $ECHO_N "(cached) $ECHO_C" >&6
30425 eval "$as_ac_Header=\$ac_header_preproc"
30427 ac_res=`eval echo '${'$as_ac_Header'}'`
30428 { echo "$as_me:$LINENO: result: $ac_res" >&5
30429 echo "${ECHO_T}$ac_res" >&6; }
30432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30433 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
30437 if test "${HAS_OPENH323:-unset}" != "unset" ; then
30438 OPENH323DIR="${PWLIBDIR}/../openh323"
30439 saved_cppflags="${CPPFLAGS}"
30440 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
30441 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
30442 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
30443 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
30444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30445 echo $ECHO_N "(cached) $ECHO_C" >&6
30447 cat >conftest.$ac_ext <<_ACEOF
30450 cat confdefs.h >>conftest.$ac_ext
30451 cat >>conftest.$ac_ext <<_ACEOF
30452 /* end confdefs.h. */
30455 #include <${OPENH323DIR}/include/h323.h>
30457 rm -f conftest.$ac_objext
30458 if { (ac_try="$ac_compile"
30459 case "(($ac_try" in
30460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30461 *) ac_try_echo=$ac_try;;
30463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30464 (eval "$ac_compile") 2>conftest.er1
30466 grep -v '^
*+' conftest.er1 >conftest.err
30468 cat conftest.err >&5
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); } &&
30471 { ac_try='test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
'
30472 { (case "(($ac_try" in
30473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30474 *) ac_try_echo=$ac_try;;
30476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30477 (eval "$ac_try") 2>&5
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; } &&
30481 { ac_try='test -s conftest.
$ac_objext'
30482 { (case "(($ac_try" in
30483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30484 *) ac_try_echo=$ac_try;;
30486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30487 (eval "$ac_try") 2>&5
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); }; }; then
30491 eval "$as_ac_Header=yes"
30493 echo "$as_me: failed program was:" >&5
30494 sed 's
/^
/|
/' conftest.$ac_ext >&5
30496 eval "$as_ac_Header=no"
30499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30501 ac_res=`eval echo '${'$as_ac_Header'}'`
30502 { echo "$as_me:$LINENO: result: $ac_res" >&5
30503 echo "${ECHO_T}$ac_res" >&6; }
30504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30507 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
30511 CPPFLAGS="${saved_cppflags}"
30513 saved_cppflags="${CPPFLAGS}"
30514 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
30515 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
30516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30517 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
30518 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
30519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30520 echo $ECHO_N "(cached) $ECHO_C" >&6
30522 ac_res=`eval echo '${'$as_ac_Header'}'`
30523 { echo "$as_me:$LINENO: result: $ac_res" >&5
30524 echo "${ECHO_T}$ac_res" >&6; }
30526 # Is the header compilable?
30527 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
30528 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
30529 cat >conftest.$ac_ext <<_ACEOF
30532 cat confdefs.h >>conftest.$ac_ext
30533 cat >>conftest.$ac_ext <<_ACEOF
30534 /* end confdefs.h. */
30535 $ac_includes_default
30536 #include <${HOME}/openh323/include/h323.h>
30538 rm -f conftest.$ac_objext
30539 if { (ac_try="$ac_compile"
30540 case "(($ac_try" in
30541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542 *) ac_try_echo=$ac_try;;
30544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545 (eval "$ac_compile") 2>conftest.er1
30547 grep -v '^
*+' conftest.er1 >conftest.err
30549 cat conftest.err >&5
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); } &&
30552 { ac_try='test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
'
30553 { (case "(($ac_try" in
30554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30555 *) ac_try_echo=$ac_try;;
30557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30558 (eval "$ac_try") 2>&5
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; } &&
30562 { ac_try='test -s conftest.
$ac_objext'
30563 { (case "(($ac_try" in
30564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565 *) ac_try_echo=$ac_try;;
30567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30568 (eval "$ac_try") 2>&5
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); }; }; then
30572 ac_header_compiler=yes
30574 echo "$as_me: failed program was:" >&5
30575 sed 's
/^
/|
/' conftest.$ac_ext >&5
30577 ac_header_compiler=no
30580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30582 echo "${ECHO_T}$ac_header_compiler" >&6; }
30584 # Is the header present?
30585 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
30586 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
30587 cat >conftest.$ac_ext <<_ACEOF
30590 cat confdefs.h >>conftest.$ac_ext
30591 cat >>conftest.$ac_ext <<_ACEOF
30592 /* end confdefs.h. */
30593 #include <${HOME}/openh323/include/h323.h>
30595 if { (ac_try="$ac_cpp conftest.$ac_ext"
30596 case "(($ac_try" in
30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598 *) ac_try_echo=$ac_try;;
30600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30603 grep -v '^
*+' conftest.er1 >conftest.err
30605 cat conftest.err >&5
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); } >/dev/null; then
30608 if test -s conftest.err; then
30609 ac_cpp_err=$ac_cxx_preproc_warn_flag
30610 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
30617 if test -z "$ac_cpp_err"; then
30618 ac_header_preproc=yes
30620 echo "$as_me: failed program was:" >&5
30621 sed 's
/^
/|
/' conftest.$ac_ext >&5
30623 ac_header_preproc=no
30626 rm -f conftest.err conftest.$ac_ext
30627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30628 echo "${ECHO_T}$ac_header_preproc" >&6; }
30630 # So? What about this header?
30631 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
30633 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30634 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30635 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result
" >&5
30636 echo "$as_me: WARNING
: ${HOME}/openh323
/include
/h323.h
: proceeding with the compiler
's result" >&2;}
30637 ac_header_preproc=yes
30640 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
30641 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
30642 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
30643 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
30644 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
30645 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
30646 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
30647 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30648 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result
" >&5
30649 echo "$as_me: WARNING
: ${HOME}/openh323
/include
/h323.h
: proceeding with the preprocessor
's result" >&2;}
30650 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
30651 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
30653 ## ------------------------------- ##
30654 ## Report this to www.asterisk.org ##
30655 ## ------------------------------- ##
30657 ) | sed "s/^/$as_me: WARNING: /" >&2
30660 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
30661 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
30662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30663 echo $ECHO_N "(cached) $ECHO_C" >&6
30665 eval "$as_ac_Header=\$ac_header_preproc"
30667 ac_res=`eval echo '${'$as_ac_Header'}'`
30668 { echo "$as_me:$LINENO: result: $ac_res" >&5
30669 echo "${ECHO_T}$ac_res" >&6; }
30672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30677 CPPFLAGS="${saved_cppflags}"
30678 if test "${HAS_OPENH323:-unset}" != "unset" ; then
30679 OPENH323DIR="${HOME}/openh323"
30681 saved_cppflags="${CPPFLAGS}"
30682 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
30683 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
30684 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
30685 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
30686 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
30687 echo $ECHO_N "(cached) $ECHO_C" >&6
30689 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
30690 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
30692 # Is the header compilable?
30693 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
30694 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
30695 cat >conftest.$ac_ext <<_ACEOF
30698 cat confdefs.h >>conftest.$ac_ext
30699 cat >>conftest.$ac_ext <<_ACEOF
30700 /* end confdefs.h. */
30701 $ac_includes_default
30702 #include </usr/local/include/openh323/h323.h>
30704 rm -f conftest.$ac_objext
30705 if { (ac_try="$ac_compile"
30706 case "(($ac_try" in
30707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30708 *) ac_try_echo=$ac_try;;
30710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30711 (eval "$ac_compile") 2>conftest.er1
30713 grep -v '^
*+' conftest.er1 >conftest.err
30715 cat conftest.err >&5
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); } &&
30718 { ac_try='test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
'
30719 { (case "(($ac_try" in
30720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721 *) ac_try_echo=$ac_try;;
30723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724 (eval "$ac_try") 2>&5
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; } &&
30728 { ac_try='test -s conftest.
$ac_objext'
30729 { (case "(($ac_try" in
30730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30731 *) ac_try_echo=$ac_try;;
30733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30734 (eval "$ac_try") 2>&5
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); }; }; then
30738 ac_header_compiler=yes
30740 echo "$as_me: failed program was:" >&5
30741 sed 's
/^
/|
/' conftest.$ac_ext >&5
30743 ac_header_compiler=no
30746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30748 echo "${ECHO_T}$ac_header_compiler" >&6; }
30750 # Is the header present?
30751 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
30752 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
30753 cat >conftest.$ac_ext <<_ACEOF
30756 cat confdefs.h >>conftest.$ac_ext
30757 cat >>conftest.$ac_ext <<_ACEOF
30758 /* end confdefs.h. */
30759 #include </usr/local/include/openh323/h323.h>
30761 if { (ac_try="$ac_cpp conftest.$ac_ext"
30762 case "(($ac_try" in
30763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764 *) ac_try_echo=$ac_try;;
30766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30769 grep -v '^
*+' conftest.er1 >conftest.err
30771 cat conftest.err >&5
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); } >/dev/null; then
30774 if test -s conftest.err; then
30775 ac_cpp_err=$ac_cxx_preproc_warn_flag
30776 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
30783 if test -z "$ac_cpp_err"; then
30784 ac_header_preproc=yes
30786 echo "$as_me: failed program was:" >&5
30787 sed 's
/^
/|
/' conftest.$ac_ext >&5
30789 ac_header_preproc=no
30792 rm -f conftest.err conftest.$ac_ext
30793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30794 echo "${ECHO_T}$ac_header_preproc" >&6; }
30796 # So? What about this header?
30797 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
30799 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30800 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30801 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result
" >&5
30802 echo "$as_me: WARNING
: /usr
/local
/include
/openh323
/h323.h
: proceeding with the compiler
's result" >&2;}
30803 ac_header_preproc=yes
30806 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
30807 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
30808 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
30809 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
30810 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
30811 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
30812 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
30813 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30814 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result
" >&5
30815 echo "$as_me: WARNING
: /usr
/local
/include
/openh323
/h323.h
: proceeding with the preprocessor
's result" >&2;}
30816 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
30817 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
30819 ## ------------------------------- ##
30820 ## Report this to www.asterisk.org ##
30821 ## ------------------------------- ##
30823 ) | sed "s/^/$as_me: WARNING: /" >&2
30826 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
30827 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
30828 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
30829 echo $ECHO_N "(cached) $ECHO_C" >&6
30831 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
30833 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
30834 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
30837 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
30842 CPPFLAGS="${saved_cppflags}"
30843 if test "${HAS_OPENH323:-unset}" != "unset" ; then
30844 OPENH323DIR="/usr/local/share/openh323"
30845 OPENH323_INCDIR="/usr/local/include/openh323"
30846 if test "x$LIB64" != "x"; then
30847 OPENH323_LIBDIR="/usr/local/lib64"
30849 OPENH323_LIBDIR="/usr/local/lib"
30852 saved_cppflags="${CPPFLAGS}"
30853 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
30854 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
30855 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
30856 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30859 cat >conftest.$ac_ext <<_ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h. */
30867 #include </usr/include/openh323/h323.h>
30869 rm -f conftest.$ac_objext
30870 if { (ac_try="$ac_compile"
30871 case "(($ac_try" in
30872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30873 *) ac_try_echo=$ac_try;;
30875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30876 (eval "$ac_compile") 2>conftest.er1
30878 grep -v '^
*+' conftest.er1 >conftest.err
30880 cat conftest.err >&5
30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882 (exit $ac_status); } &&
30883 { ac_try='test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
'
30884 { (case "(($ac_try" in
30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886 *) ac_try_echo=$ac_try;;
30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889 (eval "$ac_try") 2>&5
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; } &&
30893 { ac_try='test -s conftest.
$ac_objext'
30894 { (case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_try") 2>&5
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); }; }; then
30903 ac_cv_header__usr_include_openh323_h323_h=yes
30905 echo "$as_me: failed program was:" >&5
30906 sed 's
/^
/|
/' conftest.$ac_ext >&5
30908 ac_cv_header__usr_include_openh323_h323_h=no
30911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30913 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
30914 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
30915 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
30920 CPPFLAGS="${saved_cppflags}"
30921 if test "${HAS_OPENH323:-unset}" != "unset" ; then
30922 OPENH323DIR="/usr/share/openh323"
30923 OPENH323_INCDIR="/usr/include/openh323"
30924 if test "x$LIB64" != "x"; then
30925 OPENH323_LIBDIR="/usr/lib64"
30927 OPENH323_LIBDIR="/usr/lib"
30935 if test "${HAS_OPENH323:-unset}" != "unset" ; then
30936 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
30937 OPENH323_INCDIR="${OPENH323DIR}/include"
30939 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
30940 OPENH323_LIBDIR="${OPENH323DIR}/lib"
30943 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
30944 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
30945 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
30952 ac_cpp='$CPP $CPPFLAGS'
30953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
30954 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
30955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30959 if test "${HAS_OPENH323:-unset}" != "unset"; then
30960 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's
/"//g'`
30961 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
30962 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
30963 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
30964 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
30965 let OPENH323_REQ=1*10000+17*100+3
30967 { echo "$as_me:$LINENO: checking
if OpenH323 version
${OPENH323_VERSION} is compatible with chan_h323
" >&5
30968 echo $ECHO_N "checking
if OpenH323 version
${OPENH323_VERSION} is compatible with chan_h323...
$ECHO_C" >&6; }
30969 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
30970 { echo "$as_me:$LINENO: result
: no
" >&5
30971 echo "${ECHO_T}no
" >&6; }
30974 { echo "$as_me:$LINENO: result
: yes" >&5
30975 echo "${ECHO_T}yes" >&6; }
30980 if test "${HAS_OPENH323:-unset}" != "unset"; then
30981 { echo "$as_me:$LINENO: checking OpenH323 build option
" >&5
30982 echo $ECHO_N "checking OpenH323 build option...
$ECHO_C" >&6; }
30984 prefixes="h323_
${PWLIB_PLATFORM}_ h323_ openh323
"
30985 for pfx in $prefixes; do
30986 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
30988 if test -n "$files"; then
30989 for f in $files; do
30990 if test -f $f -a ! -L $f; then
30991 libfile=`basename $f`
30996 if test -n "$libfile"; then
30997 OPENH323_PREFIX=$pfx
31001 if test "${libfile:-unset}" != "unset"; then
31002 OPENH323_SUFFIX=`eval "echo ${libfile} |
sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
31004 case "${OPENH323_SUFFIX}" in
31006 OPENH323_BUILD="notrace
";;
31008 OPENH323_BUILD="opt
";;
31010 OPENH323_BUILD="debug
";;
31012 if test "${OPENH323_PREFIX:-undef}" = "openh323
"; then
31013 notrace=`eval "grep NOTRACE
${OPENH323DIR}/openh323u.mak |
grep = |
sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
31014 if test "x
$notrace" = "x
"; then
31017 if test "$notrace" -ne 0; then
31018 OPENH323_BUILD="notrace
"
31020 OPENH323_BUILD="opt
"
31022 OPENH323_LIB="-l${OPENH323_PREFIX}"
31024 OPENH323_BUILD="notrace
"
31028 { echo "$as_me:$LINENO: result
: ${OPENH323_BUILD}" >&5
31029 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
31035 PLATFORM_OPENH323
="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
31037 if test "${HAS_OPENH323:-unset}" != "unset"; then
31038 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
31039 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
31041 saved_cppflags
="${CPPFLAGS}"
31042 saved_libs
="${LIBS}"
31043 if test "${OPENH323_LIB:-unset}" != "unset"; then
31044 LIBS
="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
31046 LIBS
="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
31048 CPPFLAGS
="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
31051 ac_cpp
='$CXXCPP $CPPFLAGS'
31052 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31053 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31054 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31057 cat >conftest.
$ac_ext <<_ACEOF
31060 cat confdefs.h
>>conftest.
$ac_ext
31061 cat >>conftest.
$ac_ext <<_ACEOF
31062 /* end confdefs.h. */
31065 #include "h323ep.h"
31069 H323EndPoint ep = H323EndPoint();
31074 rm -f conftest.
$ac_objext conftest
$ac_exeext
31075 if { (ac_try
="$ac_link"
31076 case "(($ac_try" in
31077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31078 *) ac_try_echo=$ac_try;;
31080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31081 (eval "$ac_link") 2>conftest.er1
31083 grep -v '^ *+' conftest.er1 >conftest.err
31085 cat conftest.err >&5
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); } &&
31088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31089 { (case "(($ac_try" in
31090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31091 *) ac_try_echo
=$ac_try;;
31093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31094 (eval "$ac_try") 2>&5
31096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097 (exit $ac_status); }; } &&
31098 { ac_try
='test -s conftest$ac_exeext'
31099 { (case "(($ac_try" in
31100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31101 *) ac_try_echo=$ac_try;;
31103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31104 (eval "$ac_try") 2>&5
31106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107 (exit $ac_status); }; }; then
31108 { echo "$as_me:$LINENO: result: yes" >&5
31109 echo "${ECHO_T}yes" >&6; }
31110 ac_cv_lib_OPENH323="yes"
31113 echo "$as_me: failed program was:" >&5
31114 sed 's/^/| /' conftest.$ac_ext >&5
31116 { echo "$as_me:$LINENO: result: no" >&5
31117 echo "${ECHO_T}no" >&6; }
31118 ac_cv_lib_OPENH323="no"
31123 rm -f core conftest.err conftest.$ac_objext \
31124 conftest$ac_exeext conftest.$ac_ext
31127 ac_cpp='$CPP $CPPFLAGS'
31128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31133 LIBS="${saved_libs}"
31134 CPPFLAGS="${saved_cppflags}"
31136 if test "${ac_cv_lib_OPENH323}" = "yes"; then
31137 if test "${OPENH323_LIB:-undef}" = "undef"; then
31138 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
31139 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
31141 OPENH323_LIB="-l${PLATFORM_OPENH323}"
31144 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
31145 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
31149 cat >>confdefs.h <<\_ACEOF
31150 #define HAVE_OPENH323 1
31157 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
31158 { echo "$as_me:$LINENO: ***" >&5
31159 echo "$as_me: ***" >&6;}
31160 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
31161 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
31162 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31163 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31164 { echo "$as_me:$LINENO: *** including --without-h323" >&5
31165 echo "$as_me: *** including --without-h323" >&6;}
31170 if test "${USE_RADIUS}" != "no"; then
31172 if test "x${RADIUS_DIR}" != "x"; then
31173 if test -d ${RADIUS_DIR}/lib; then
31174 pbxlibdir="-L${RADIUS_DIR}/lib"
31176 pbxlibdir="-L${RADIUS_DIR}"
31179 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
31180 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
31181 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
31182 echo $ECHO_N "(cached) $ECHO_C" >&6
31184 ac_check_lib_save_LIBS=$LIBS
31185 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
31186 cat >conftest.$ac_ext <<_ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h. */
31193 /* Override any GCC internal prototype to avoid an error.
31194 Use char because int might match the return type of a GCC
31195 builtin and then its argument prototype would still apply. */
31199 char rc_read_config ();
31203 return rc_read_config ();
31208 rm -f conftest.$ac_objext conftest$ac_exeext
31209 if { (ac_try="$ac_link"
31210 case "(($ac_try" in
31211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31212 *) ac_try_echo
=$ac_try;;
31214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31215 (eval "$ac_link") 2>conftest.er1
31217 grep -v '^ *+' conftest.er1
>conftest.err
31219 cat conftest.err
>&5
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); } &&
31222 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31223 { (case "(($ac_try" in
31224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_try") 2>&5
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; } &&
31232 { ac_try='test -s conftest$ac_exeext'
31233 { (case "(($ac_try" in
31234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31235 *) ac_try_echo
=$ac_try;;
31237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238 (eval "$ac_try") 2>&5
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); }; }; then
31242 ac_cv_lib_radiusclient_ng_rc_read_config
=yes
31244 echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.
$ac_ext >&5
31247 ac_cv_lib_radiusclient_ng_rc_read_config
=no
31250 rm -f core conftest.err conftest.
$ac_objext \
31251 conftest
$ac_exeext conftest.
$ac_ext
31252 LIBS
=$ac_check_lib_save_LIBS
31254 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
31255 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
31256 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
31257 AST_RADIUS_FOUND
=yes
31259 AST_RADIUS_FOUND
=no
31263 if test "${AST_RADIUS_FOUND}" = "yes"; then
31264 RADIUS_LIB
="-lradiusclient-ng "
31265 RADIUS_HEADER_FOUND
="1"
31266 if test "x${RADIUS_DIR}" != "x"; then
31267 RADIUS_LIB
="${pbxlibdir} ${RADIUS_LIB}"
31268 RADIUS_INCLUDE
="-I${RADIUS_DIR}/include"
31269 saved_cppflags
="${CPPFLAGS}"
31270 CPPFLAGS
="${CPPFLAGS} -I${RADIUS_DIR}/include"
31271 if test "xradiusclient-ng.h" != "x" ; then
31272 as_ac_Header
=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
31273 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31274 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
31275 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
31276 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31277 echo $ECHO_N "(cached) $ECHO_C" >&6
31279 ac_res
=`eval echo '${'$as_ac_Header'}'`
31280 { echo "$as_me:$LINENO: result: $ac_res" >&5
31281 echo "${ECHO_T}$ac_res" >&6; }
31283 # Is the header compilable?
31284 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
31285 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
31286 cat >conftest.
$ac_ext <<_ACEOF
31289 cat confdefs.h
>>conftest.
$ac_ext
31290 cat >>conftest.
$ac_ext <<_ACEOF
31291 /* end confdefs.h. */
31292 $ac_includes_default
31293 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
31295 rm -f conftest.
$ac_objext
31296 if { (ac_try
="$ac_compile"
31297 case "(($ac_try" in
31298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31299 *) ac_try_echo=$ac_try;;
31301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31302 (eval "$ac_compile") 2>conftest.er1
31304 grep -v '^ *+' conftest.er1 >conftest.err
31306 cat conftest.err >&5
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); } &&
31309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31310 { (case "(($ac_try" in
31311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31312 *) ac_try_echo
=$ac_try;;
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315 (eval "$ac_try") 2>&5
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; } &&
31319 { ac_try
='test -s conftest.$ac_objext'
31320 { (case "(($ac_try" in
31321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31322 *) ac_try_echo=$ac_try;;
31324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325 (eval "$ac_try") 2>&5
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; }; then
31329 ac_header_compiler=yes
31331 echo "$as_me: failed program was:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31334 ac_header_compiler=no
31337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31339 echo "${ECHO_T}$ac_header_compiler" >&6; }
31341 # Is the header present?
31342 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
31343 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
31344 cat >conftest.$ac_ext <<_ACEOF
31347 cat confdefs.h >>conftest.$ac_ext
31348 cat >>conftest.$ac_ext <<_ACEOF
31349 /* end confdefs.h. */
31350 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
31352 if { (ac_try="$ac_cpp conftest.$ac_ext"
31353 case "(($ac_try" in
31354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31355 *) ac_try_echo
=$ac_try;;
31357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31360 grep -v '^ *+' conftest.er1
>conftest.err
31362 cat conftest.err
>&5
31363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364 (exit $ac_status); } >/dev
/null
; then
31365 if test -s conftest.err
; then
31366 ac_cpp_err
=$ac_c_preproc_warn_flag
31367 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
31374 if test -z "$ac_cpp_err"; then
31375 ac_header_preproc
=yes
31377 echo "$as_me: failed program was:" >&5
31378 sed 's/^/| /' conftest.
$ac_ext >&5
31380 ac_header_preproc
=no
31383 rm -f conftest.err conftest.
$ac_ext
31384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31385 echo "${ECHO_T}$ac_header_preproc" >&6; }
31387 # So? What about this header?
31388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31390 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
31391 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31392 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
31393 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
31394 ac_header_preproc
=yes
31397 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
31398 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
31399 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
31400 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
31401 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
31402 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
31403 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
31404 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
31405 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
31406 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
31407 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
31408 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
31410 ## ------------------------------- ##
31411 ## Report this to www.asterisk.org ##
31412 ## ------------------------------- ##
31414 ) |
sed "s/^/$as_me: WARNING: /" >&2
31417 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
31418 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
31419 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31420 echo $ECHO_N "(cached) $ECHO_C" >&6
31422 eval "$as_ac_Header=\$ac_header_preproc"
31424 ac_res
=`eval echo '${'$as_ac_Header'}'`
31425 { echo "$as_me:$LINENO: result: $ac_res" >&5
31426 echo "${ECHO_T}$ac_res" >&6; }
31429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31430 RADIUS_HEADER_FOUND
=1
31432 RADIUS_HEADER_FOUND
=0
31437 CPPFLAGS
="${saved_cppflags}"
31439 if test "xradiusclient-ng.h" != "x" ; then
31440 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
31441 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
31442 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
31443 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
31444 echo $ECHO_N "(cached) $ECHO_C" >&6
31446 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
31447 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
31449 # Is the header compilable?
31450 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
31451 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
31452 cat >conftest.
$ac_ext <<_ACEOF
31455 cat confdefs.h
>>conftest.
$ac_ext
31456 cat >>conftest.
$ac_ext <<_ACEOF
31457 /* end confdefs.h. */
31458 $ac_includes_default
31459 #include <radiusclient-ng.h>
31461 rm -f conftest.
$ac_objext
31462 if { (ac_try
="$ac_compile"
31463 case "(($ac_try" in
31464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31465 *) ac_try_echo=$ac_try;;
31467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468 (eval "$ac_compile") 2>conftest.er1
31470 grep -v '^ *+' conftest.er1 >conftest.err
31472 cat conftest.err >&5
31473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); } &&
31475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31476 { (case "(($ac_try" in
31477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31478 *) ac_try_echo
=$ac_try;;
31480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31481 (eval "$ac_try") 2>&5
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); }; } &&
31485 { ac_try
='test -s conftest.$ac_objext'
31486 { (case "(($ac_try" in
31487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31488 *) ac_try_echo=$ac_try;;
31490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31491 (eval "$ac_try") 2>&5
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); }; }; then
31495 ac_header_compiler=yes
31497 echo "$as_me: failed program was:" >&5
31498 sed 's/^/| /' conftest.$ac_ext >&5
31500 ac_header_compiler=no
31503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31505 echo "${ECHO_T}$ac_header_compiler" >&6; }
31507 # Is the header present?
31508 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
31509 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
31510 cat >conftest.$ac_ext <<_ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h. */
31516 #include <radiusclient-ng.h>
31518 if { (ac_try="$ac_cpp conftest.$ac_ext"
31519 case "(($ac_try" in
31520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31521 *) ac_try_echo
=$ac_try;;
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31526 grep -v '^ *+' conftest.er1
>conftest.err
31528 cat conftest.err
>&5
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); } >/dev
/null
; then
31531 if test -s conftest.err
; then
31532 ac_cpp_err
=$ac_c_preproc_warn_flag
31533 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
31540 if test -z "$ac_cpp_err"; then
31541 ac_header_preproc
=yes
31543 echo "$as_me: failed program was:" >&5
31544 sed 's/^/| /' conftest.
$ac_ext >&5
31546 ac_header_preproc
=no
31549 rm -f conftest.err conftest.
$ac_ext
31550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31551 echo "${ECHO_T}$ac_header_preproc" >&6; }
31553 # So? What about this header?
31554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31556 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
31557 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31558 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
31559 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
31560 ac_header_preproc
=yes
31563 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
31564 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
31565 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
31566 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
31567 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
31568 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
31569 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
31570 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
31571 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
31572 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
31573 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
31574 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
31576 ## ------------------------------- ##
31577 ## Report this to www.asterisk.org ##
31578 ## ------------------------------- ##
31580 ) |
sed "s/^/$as_me: WARNING: /" >&2
31583 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
31584 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
31585 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
31586 echo $ECHO_N "(cached) $ECHO_C" >&6
31588 ac_cv_header_radiusclient_ng_h
=$ac_header_preproc
31590 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
31591 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
31594 if test $ac_cv_header_radiusclient_ng_h = yes; then
31595 RADIUS_HEADER_FOUND
=1
31597 RADIUS_HEADER_FOUND
=0
31603 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
31604 if test -n "${RADIUS_MANDATORY}" ;
31606 { echo "$as_me:$LINENO: ***" >&5
31607 echo "$as_me: ***" >&6;}
31608 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
31609 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
31610 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
31611 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
31612 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
31613 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
31622 cat >>confdefs.h
<<_ACEOF
31623 #define HAVE_RADIUS 1
31627 elif test -n "${RADIUS_MANDATORY}";
31629 { echo "$as_me:$LINENO: ***" >&5
31630 echo "$as_me: ***" >&6;}
31631 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
31632 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
31633 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31634 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31635 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
31636 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
31643 if test "${USE_SPEEX}" != "no"; then
31645 if test "x${SPEEX_DIR}" != "x"; then
31646 if test -d ${SPEEX_DIR}/lib
; then
31647 pbxlibdir
="-L${SPEEX_DIR}/lib"
31649 pbxlibdir
="-L${SPEEX_DIR}"
31652 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
31653 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
31654 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
31655 echo $ECHO_N "(cached) $ECHO_C" >&6
31657 ac_check_lib_save_LIBS
=$LIBS
31658 LIBS
="-lspeex ${pbxlibdir} -lm $LIBS"
31659 cat >conftest.
$ac_ext <<_ACEOF
31662 cat confdefs.h
>>conftest.
$ac_ext
31663 cat >>conftest.
$ac_ext <<_ACEOF
31664 /* end confdefs.h. */
31666 /* Override any GCC internal prototype to avoid an error.
31667 Use char because int might match the return type of a GCC
31668 builtin and then its argument prototype would still apply. */
31672 char speex_encode ();
31676 return speex_encode ();
31681 rm -f conftest.
$ac_objext conftest
$ac_exeext
31682 if { (ac_try
="$ac_link"
31683 case "(($ac_try" in
31684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31685 *) ac_try_echo=$ac_try;;
31687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31688 (eval "$ac_link") 2>conftest.er1
31690 grep -v '^ *+' conftest.er1 >conftest.err
31692 cat conftest.err >&5
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); } &&
31695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31696 { (case "(($ac_try" in
31697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31698 *) ac_try_echo
=$ac_try;;
31700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31701 (eval "$ac_try") 2>&5
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); }; } &&
31705 { ac_try
='test -s conftest$ac_exeext'
31706 { (case "(($ac_try" in
31707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31708 *) ac_try_echo=$ac_try;;
31710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31711 (eval "$ac_try") 2>&5
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); }; }; then
31715 ac_cv_lib_speex_speex_encode=yes
31717 echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31720 ac_cv_lib_speex_speex_encode=no
31723 rm -f core conftest.err conftest.$ac_objext \
31724 conftest$ac_exeext conftest.$ac_ext
31725 LIBS=$ac_check_lib_save_LIBS
31727 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
31728 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
31729 if test $ac_cv_lib_speex_speex_encode = yes; then
31730 AST_SPEEX_FOUND=yes
31736 if test "${AST_SPEEX_FOUND}" = "yes"; then
31737 SPEEX_LIB="-lspeex -lm"
31738 SPEEX_HEADER_FOUND="1"
31739 if test "x${SPEEX_DIR}" != "x"; then
31740 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
31741 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
31742 saved_cppflags="${CPPFLAGS}"
31743 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
31744 if test "xspeex/speex.h" != "x" ; then
31745 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" |
$as_tr_sh`
31746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31747 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
31748 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
31749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31750 echo $ECHO_N "(cached) $ECHO_C" >&6
31752 ac_res=`eval echo '${'$as_ac_Header'}'`
31753 { echo "$as_me:$LINENO: result: $ac_res" >&5
31754 echo "${ECHO_T}$ac_res" >&6; }
31756 # Is the header compilable?
31757 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
31758 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
31759 cat >conftest.$ac_ext <<_ACEOF
31762 cat confdefs.h >>conftest.$ac_ext
31763 cat >>conftest.$ac_ext <<_ACEOF
31764 /* end confdefs.h. */
31765 $ac_includes_default
31766 #include <${SPEEX_DIR}/include/speex/speex.h>
31768 rm -f conftest.$ac_objext
31769 if { (ac_try="$ac_compile"
31770 case "(($ac_try" in
31771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31772 *) ac_try_echo
=$ac_try;;
31774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31775 (eval "$ac_compile") 2>conftest.er1
31777 grep -v '^ *+' conftest.er1
>conftest.err
31779 cat conftest.err
>&5
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); } &&
31782 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31783 { (case "(($ac_try" in
31784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31785 *) ac_try_echo=$ac_try;;
31787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31788 (eval "$ac_try") 2>&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); }; } &&
31792 { ac_try='test -s conftest.$ac_objext'
31793 { (case "(($ac_try" in
31794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31795 *) ac_try_echo
=$ac_try;;
31797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798 (eval "$ac_try") 2>&5
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); }; }; then
31802 ac_header_compiler
=yes
31804 echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.
$ac_ext >&5
31807 ac_header_compiler
=no
31810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31812 echo "${ECHO_T}$ac_header_compiler" >&6; }
31814 # Is the header present?
31815 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
31816 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
31817 cat >conftest.
$ac_ext <<_ACEOF
31820 cat confdefs.h
>>conftest.
$ac_ext
31821 cat >>conftest.
$ac_ext <<_ACEOF
31822 /* end confdefs.h. */
31823 #include <${SPEEX_DIR}/include/speex/speex.h>
31825 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31826 case "(($ac_try" in
31827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31828 *) ac_try_echo=$ac_try;;
31830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31833 grep -v '^ *+' conftest.er1 >conftest.err
31835 cat conftest.err >&5
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } >/dev/null; then
31838 if test -s conftest.err; then
31839 ac_cpp_err=$ac_c_preproc_warn_flag
31840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31847 if test -z "$ac_cpp_err"; then
31848 ac_header_preproc=yes
31850 echo "$as_me: failed program was:" >&5
31851 sed 's/^/| /' conftest.$ac_ext >&5
31853 ac_header_preproc=no
31856 rm -f conftest.err conftest.$ac_ext
31857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31858 echo "${ECHO_T}$ac_header_preproc" >&6; }
31860 # So? What about this header?
31861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31863 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
31864 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31865 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
31866 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
31867 ac_header_preproc=yes
31870 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
31871 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
31872 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
31873 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
31874 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
31875 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
31876 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
31877 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
31878 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
31879 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
31880 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
31881 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
31883 ## ------------------------------- ##
31884 ## Report this to www.asterisk.org ##
31885 ## ------------------------------- ##
31887 ) | sed "s/^/$as_me: WARNING: /" >&2
31890 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
31891 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
31892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31893 echo $ECHO_N "(cached) $ECHO_C" >&6
31895 eval "$as_ac_Header=\$ac_header_preproc"
31897 ac_res=`eval echo '${'$as_ac_Header'}'`
31898 { echo "$as_me:$LINENO: result: $ac_res" >&5
31899 echo "${ECHO_T}$ac_res" >&6; }
31902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31903 SPEEX_HEADER_FOUND=1
31905 SPEEX_HEADER_FOUND=0
31910 CPPFLAGS="${saved_cppflags}"
31912 if test "xspeex/speex.h" != "x" ; then
31913 if test "${ac_cv_header_speex_speex_h+set}" = set; then
31914 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
31915 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
31916 if test "${ac_cv_header_speex_speex_h+set}" = set; then
31917 echo $ECHO_N "(cached) $ECHO_C" >&6
31919 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
31920 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
31922 # Is the header compilable?
31923 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
31924 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
31925 cat >conftest.$ac_ext <<_ACEOF
31928 cat confdefs.h >>conftest.$ac_ext
31929 cat >>conftest.$ac_ext <<_ACEOF
31930 /* end confdefs.h. */
31931 $ac_includes_default
31932 #include <speex/speex.h>
31934 rm -f conftest.$ac_objext
31935 if { (ac_try="$ac_compile"
31936 case "(($ac_try" in
31937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31938 *) ac_try_echo
=$ac_try;;
31940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941 (eval "$ac_compile") 2>conftest.er1
31943 grep -v '^ *+' conftest.er1
>conftest.err
31945 cat conftest.err
>&5
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); } &&
31948 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31949 { (case "(($ac_try" in
31950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31951 *) ac_try_echo=$ac_try;;
31953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31954 (eval "$ac_try") 2>&5
31956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31957 (exit $ac_status); }; } &&
31958 { ac_try='test -s conftest.$ac_objext'
31959 { (case "(($ac_try" in
31960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31961 *) ac_try_echo
=$ac_try;;
31963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31964 (eval "$ac_try") 2>&5
31966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967 (exit $ac_status); }; }; then
31968 ac_header_compiler
=yes
31970 echo "$as_me: failed program was:" >&5
31971 sed 's/^/| /' conftest.
$ac_ext >&5
31973 ac_header_compiler
=no
31976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31978 echo "${ECHO_T}$ac_header_compiler" >&6; }
31980 # Is the header present?
31981 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
31982 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
31983 cat >conftest.
$ac_ext <<_ACEOF
31986 cat confdefs.h
>>conftest.
$ac_ext
31987 cat >>conftest.
$ac_ext <<_ACEOF
31988 /* end confdefs.h. */
31989 #include <speex/speex.h>
31991 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31992 case "(($ac_try" in
31993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31994 *) ac_try_echo=$ac_try;;
31996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31999 grep -v '^ *+' conftest.er1 >conftest.err
32001 cat conftest.err >&5
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); } >/dev/null; then
32004 if test -s conftest.err; then
32005 ac_cpp_err=$ac_c_preproc_warn_flag
32006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32013 if test -z "$ac_cpp_err"; then
32014 ac_header_preproc=yes
32016 echo "$as_me: failed program was:" >&5
32017 sed 's/^/| /' conftest.$ac_ext >&5
32019 ac_header_preproc=no
32022 rm -f conftest.err conftest.$ac_ext
32023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32024 echo "${ECHO_T}$ac_header_preproc" >&6; }
32026 # So? What about this header?
32027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32029 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
32030 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32031 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
32032 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
32033 ac_header_preproc=yes
32036 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
32037 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
32038 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
32039 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
32040 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
32041 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
32042 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
32043 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
32044 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
32045 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
32046 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
32047 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
32049 ## ------------------------------- ##
32050 ## Report this to www.asterisk.org ##
32051 ## ------------------------------- ##
32053 ) | sed "s/^/$as_me: WARNING: /" >&2
32056 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
32057 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
32058 if test "${ac_cv_header_speex_speex_h+set}" = set; then
32059 echo $ECHO_N "(cached) $ECHO_C" >&6
32061 ac_cv_header_speex_speex_h=$ac_header_preproc
32063 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
32064 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
32067 if test $ac_cv_header_speex_speex_h = yes; then
32068 SPEEX_HEADER_FOUND=1
32070 SPEEX_HEADER_FOUND=0
32076 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
32077 if test -n "${SPEEX_MANDATORY}" ;
32079 { echo "$as_me:$LINENO: ***" >&5
32080 echo "$as_me: ***" >&6;}
32081 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
32082 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
32083 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
32084 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
32085 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
32086 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
32095 cat >>confdefs.h <<_ACEOF
32096 #define HAVE_SPEEX 1
32100 elif test -n "${SPEEX_MANDATORY}";
32102 { echo "$as_me:$LINENO: ***" >&5
32103 echo "$as_me: ***" >&6;}
32104 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
32105 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
32106 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32107 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32108 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
32109 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
32116 if test "${USE_SPEEXDSP}" != "no"; then
32118 if test "x${SPEEXDSP_DIR}" != "x"; then
32119 if test -d ${SPEEXDSP_DIR}/lib; then
32120 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
32122 pbxlibdir="-L${SPEEXDSP_DIR}"
32125 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
32126 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
32127 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
32128 echo $ECHO_N "(cached) $ECHO_C" >&6
32130 ac_check_lib_save_LIBS=$LIBS
32131 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
32132 cat >conftest.$ac_ext <<_ACEOF
32135 cat confdefs.h >>conftest.$ac_ext
32136 cat >>conftest.$ac_ext <<_ACEOF
32137 /* end confdefs.h. */
32139 /* Override any GCC internal prototype to avoid an error.
32140 Use char because int might match the return type of a GCC
32141 builtin and then its argument prototype would still apply. */
32145 char speex_preprocess_ctl ();
32149 return speex_preprocess_ctl ();
32154 rm -f conftest.$ac_objext conftest$ac_exeext
32155 if { (ac_try="$ac_link"
32156 case "(($ac_try" in
32157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32158 *) ac_try_echo
=$ac_try;;
32160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32161 (eval "$ac_link") 2>conftest.er1
32163 grep -v '^ *+' conftest.er1
>conftest.err
32165 cat conftest.err
>&5
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); } &&
32168 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32169 { (case "(($ac_try" in
32170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32171 *) ac_try_echo=$ac_try;;
32173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32174 (eval "$ac_try") 2>&5
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }; } &&
32178 { ac_try='test -s conftest$ac_exeext'
32179 { (case "(($ac_try" in
32180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32181 *) ac_try_echo
=$ac_try;;
32183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32184 (eval "$ac_try") 2>&5
32186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187 (exit $ac_status); }; }; then
32188 ac_cv_lib_speexdsp_speex_preprocess_ctl
=yes
32190 echo "$as_me: failed program was:" >&5
32191 sed 's/^/| /' conftest.
$ac_ext >&5
32193 ac_cv_lib_speexdsp_speex_preprocess_ctl
=no
32196 rm -f core conftest.err conftest.
$ac_objext \
32197 conftest
$ac_exeext conftest.
$ac_ext
32198 LIBS
=$ac_check_lib_save_LIBS
32200 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
32201 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
32202 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
32203 AST_SPEEXDSP_FOUND
=yes
32205 AST_SPEEXDSP_FOUND
=no
32209 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
32210 SPEEXDSP_LIB
="-lspeexdsp -lm"
32211 SPEEXDSP_HEADER_FOUND
="1"
32212 if test "x${SPEEXDSP_DIR}" != "x"; then
32213 SPEEXDSP_LIB
="${pbxlibdir} ${SPEEXDSP_LIB}"
32214 SPEEXDSP_INCLUDE
="-I${SPEEXDSP_DIR}/include"
32215 saved_cppflags
="${CPPFLAGS}"
32216 CPPFLAGS
="${CPPFLAGS} -I${SPEEXDSP_DIR}/include"
32217 if test "xspeex/speex.h" != "x" ; then
32218 as_ac_Header
=`echo "ac_cv_header_${SPEEXDSP_DIR}/include/speex/speex.h" | $as_tr_sh`
32219 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32220 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
32221 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
32222 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32223 echo $ECHO_N "(cached) $ECHO_C" >&6
32225 ac_res
=`eval echo '${'$as_ac_Header'}'`
32226 { echo "$as_me:$LINENO: result: $ac_res" >&5
32227 echo "${ECHO_T}$ac_res" >&6; }
32229 # Is the header compilable?
32230 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h usability" >&5
32231 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
32232 cat >conftest.
$ac_ext <<_ACEOF
32235 cat confdefs.h
>>conftest.
$ac_ext
32236 cat >>conftest.
$ac_ext <<_ACEOF
32237 /* end confdefs.h. */
32238 $ac_includes_default
32239 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
32241 rm -f conftest.
$ac_objext
32242 if { (ac_try
="$ac_compile"
32243 case "(($ac_try" in
32244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32245 *) ac_try_echo=$ac_try;;
32247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248 (eval "$ac_compile") 2>conftest.er1
32250 grep -v '^ *+' conftest.er1 >conftest.err
32252 cat conftest.err >&5
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); } &&
32255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32256 { (case "(($ac_try" in
32257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32258 *) ac_try_echo
=$ac_try;;
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_try") 2>&5
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; } &&
32265 { ac_try
='test -s conftest.$ac_objext'
32266 { (case "(($ac_try" in
32267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32268 *) ac_try_echo=$ac_try;;
32270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32271 (eval "$ac_try") 2>&5
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); }; }; then
32275 ac_header_compiler=yes
32277 echo "$as_me: failed program was:" >&5
32278 sed 's/^/| /' conftest.$ac_ext >&5
32280 ac_header_compiler=no
32283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32285 echo "${ECHO_T}$ac_header_compiler" >&6; }
32287 # Is the header present?
32288 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h presence" >&5
32289 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
32290 cat >conftest.$ac_ext <<_ACEOF
32293 cat confdefs.h >>conftest.$ac_ext
32294 cat >>conftest.$ac_ext <<_ACEOF
32295 /* end confdefs.h. */
32296 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
32298 if { (ac_try="$ac_cpp conftest.$ac_ext"
32299 case "(($ac_try" in
32300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32301 *) ac_try_echo
=$ac_try;;
32303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32306 grep -v '^ *+' conftest.er1
>conftest.err
32308 cat conftest.err
>&5
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); } >/dev
/null
; then
32311 if test -s conftest.err
; then
32312 ac_cpp_err
=$ac_c_preproc_warn_flag
32313 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
32320 if test -z "$ac_cpp_err"; then
32321 ac_header_preproc
=yes
32323 echo "$as_me: failed program was:" >&5
32324 sed 's/^/| /' conftest.
$ac_ext >&5
32326 ac_header_preproc
=no
32329 rm -f conftest.err conftest.
$ac_ext
32330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32331 echo "${ECHO_T}$ac_header_preproc" >&6; }
32333 # So? What about this header?
32334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32336 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
32337 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32338 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
32339 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
32340 ac_header_preproc
=yes
32343 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
32344 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
32345 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
32346 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
32347 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
32348 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
32349 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
32350 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
32351 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
32352 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
32353 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
32354 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
32356 ## ------------------------------- ##
32357 ## Report this to www.asterisk.org ##
32358 ## ------------------------------- ##
32360 ) |
sed "s/^/$as_me: WARNING: /" >&2
32363 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
32364 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
32365 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32366 echo $ECHO_N "(cached) $ECHO_C" >&6
32368 eval "$as_ac_Header=\$ac_header_preproc"
32370 ac_res
=`eval echo '${'$as_ac_Header'}'`
32371 { echo "$as_me:$LINENO: result: $ac_res" >&5
32372 echo "${ECHO_T}$ac_res" >&6; }
32375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32376 SPEEXDSP_HEADER_FOUND
=1
32378 SPEEXDSP_HEADER_FOUND
=0
32383 CPPFLAGS
="${saved_cppflags}"
32385 if test "xspeex/speex.h" != "x" ; then
32386 if test "${ac_cv_header_speex_speex_h+set}" = set; then
32387 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
32388 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
32389 if test "${ac_cv_header_speex_speex_h+set}" = set; then
32390 echo $ECHO_N "(cached) $ECHO_C" >&6
32392 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
32393 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
32395 # Is the header compilable?
32396 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
32397 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
32398 cat >conftest.
$ac_ext <<_ACEOF
32401 cat confdefs.h
>>conftest.
$ac_ext
32402 cat >>conftest.
$ac_ext <<_ACEOF
32403 /* end confdefs.h. */
32404 $ac_includes_default
32405 #include <speex/speex.h>
32407 rm -f conftest.
$ac_objext
32408 if { (ac_try
="$ac_compile"
32409 case "(($ac_try" in
32410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32411 *) ac_try_echo=$ac_try;;
32413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414 (eval "$ac_compile") 2>conftest.er1
32416 grep -v '^ *+' conftest.er1 >conftest.err
32418 cat conftest.err >&5
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); } &&
32421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32422 { (case "(($ac_try" in
32423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32424 *) ac_try_echo
=$ac_try;;
32426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32427 (eval "$ac_try") 2>&5
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; } &&
32431 { ac_try
='test -s conftest.$ac_objext'
32432 { (case "(($ac_try" in
32433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32434 *) ac_try_echo=$ac_try;;
32436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437 (eval "$ac_try") 2>&5
32439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440 (exit $ac_status); }; }; then
32441 ac_header_compiler=yes
32443 echo "$as_me: failed program was:" >&5
32444 sed 's/^/| /' conftest.$ac_ext >&5
32446 ac_header_compiler=no
32449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32451 echo "${ECHO_T}$ac_header_compiler" >&6; }
32453 # Is the header present?
32454 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
32455 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
32456 cat >conftest.$ac_ext <<_ACEOF
32459 cat confdefs.h >>conftest.$ac_ext
32460 cat >>conftest.$ac_ext <<_ACEOF
32461 /* end confdefs.h. */
32462 #include <speex/speex.h>
32464 if { (ac_try="$ac_cpp conftest.$ac_ext"
32465 case "(($ac_try" in
32466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32467 *) ac_try_echo
=$ac_try;;
32469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32472 grep -v '^ *+' conftest.er1
>conftest.err
32474 cat conftest.err
>&5
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); } >/dev
/null
; then
32477 if test -s conftest.err
; then
32478 ac_cpp_err
=$ac_c_preproc_warn_flag
32479 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
32486 if test -z "$ac_cpp_err"; then
32487 ac_header_preproc
=yes
32489 echo "$as_me: failed program was:" >&5
32490 sed 's/^/| /' conftest.
$ac_ext >&5
32492 ac_header_preproc
=no
32495 rm -f conftest.err conftest.
$ac_ext
32496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32497 echo "${ECHO_T}$ac_header_preproc" >&6; }
32499 # So? What about this header?
32500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32502 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
32503 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32504 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
32505 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
32506 ac_header_preproc
=yes
32509 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
32510 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
32511 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
32512 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
32513 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
32514 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
32515 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
32516 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
32517 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
32518 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
32519 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
32520 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
32522 ## ------------------------------- ##
32523 ## Report this to www.asterisk.org ##
32524 ## ------------------------------- ##
32526 ) |
sed "s/^/$as_me: WARNING: /" >&2
32529 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
32530 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
32531 if test "${ac_cv_header_speex_speex_h+set}" = set; then
32532 echo $ECHO_N "(cached) $ECHO_C" >&6
32534 ac_cv_header_speex_speex_h
=$ac_header_preproc
32536 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
32537 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
32540 if test $ac_cv_header_speex_speex_h = yes; then
32541 SPEEXDSP_HEADER_FOUND
=1
32543 SPEEXDSP_HEADER_FOUND
=0
32549 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
32550 if test -n "${SPEEXDSP_MANDATORY}" ;
32552 { echo "$as_me:$LINENO: ***" >&5
32553 echo "$as_me: ***" >&6;}
32554 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
32555 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
32556 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
32557 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
32558 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
32559 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
32563 SPEEXDSP_INCLUDE
=""
32568 cat >>confdefs.h
<<_ACEOF
32569 #define HAVE_SPEEXDSP 1
32573 elif test -n "${SPEEXDSP_MANDATORY}";
32575 { echo "$as_me:$LINENO: ***" >&5
32576 echo "$as_me: ***" >&6;}
32577 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
32578 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
32579 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32580 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32581 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
32582 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
32589 if test "${USE_SQLITE}" != "no"; then
32591 if test "x${SQLITE_DIR}" != "x"; then
32592 if test -d ${SQLITE_DIR}/lib
; then
32593 pbxlibdir
="-L${SQLITE_DIR}/lib"
32595 pbxlibdir
="-L${SQLITE_DIR}"
32598 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
32599 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
32600 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
32601 echo $ECHO_N "(cached) $ECHO_C" >&6
32603 ac_check_lib_save_LIBS
=$LIBS
32604 LIBS
="-lsqlite ${pbxlibdir} $LIBS"
32605 cat >conftest.
$ac_ext <<_ACEOF
32608 cat confdefs.h
>>conftest.
$ac_ext
32609 cat >>conftest.
$ac_ext <<_ACEOF
32610 /* end confdefs.h. */
32612 /* Override any GCC internal prototype to avoid an error.
32613 Use char because int might match the return type of a GCC
32614 builtin and then its argument prototype would still apply. */
32618 char sqlite_exec ();
32622 return sqlite_exec ();
32627 rm -f conftest.
$ac_objext conftest
$ac_exeext
32628 if { (ac_try
="$ac_link"
32629 case "(($ac_try" in
32630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32631 *) ac_try_echo=$ac_try;;
32633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634 (eval "$ac_link") 2>conftest.er1
32636 grep -v '^ *+' conftest.er1 >conftest.err
32638 cat conftest.err >&5
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); } &&
32641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32642 { (case "(($ac_try" in
32643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32644 *) ac_try_echo
=$ac_try;;
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647 (eval "$ac_try") 2>&5
32649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650 (exit $ac_status); }; } &&
32651 { ac_try
='test -s conftest$ac_exeext'
32652 { (case "(($ac_try" in
32653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32654 *) ac_try_echo=$ac_try;;
32656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32657 (eval "$ac_try") 2>&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); }; }; then
32661 ac_cv_lib_sqlite_sqlite_exec=yes
32663 echo "$as_me: failed program was:" >&5
32664 sed 's/^/| /' conftest.$ac_ext >&5
32666 ac_cv_lib_sqlite_sqlite_exec=no
32669 rm -f core conftest.err conftest.$ac_objext \
32670 conftest$ac_exeext conftest.$ac_ext
32671 LIBS=$ac_check_lib_save_LIBS
32673 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
32674 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
32675 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
32676 AST_SQLITE_FOUND=yes
32678 AST_SQLITE_FOUND=no
32682 if test "${AST_SQLITE_FOUND}" = "yes"; then
32683 SQLITE_LIB="-lsqlite "
32684 SQLITE_HEADER_FOUND="1"
32685 if test "x${SQLITE_DIR}" != "x"; then
32686 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
32687 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
32688 saved_cppflags="${CPPFLAGS}"
32689 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
32690 if test "xsqlite.h" != "x" ; then
32691 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" |
$as_tr_sh`
32692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32693 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
32694 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
32695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32696 echo $ECHO_N "(cached) $ECHO_C" >&6
32698 ac_res=`eval echo '${'$as_ac_Header'}'`
32699 { echo "$as_me:$LINENO: result: $ac_res" >&5
32700 echo "${ECHO_T}$ac_res" >&6; }
32702 # Is the header compilable?
32703 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
32704 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
32705 cat >conftest.$ac_ext <<_ACEOF
32708 cat confdefs.h >>conftest.$ac_ext
32709 cat >>conftest.$ac_ext <<_ACEOF
32710 /* end confdefs.h. */
32711 $ac_includes_default
32712 #include <${SQLITE_DIR}/include/sqlite.h>
32714 rm -f conftest.$ac_objext
32715 if { (ac_try="$ac_compile"
32716 case "(($ac_try" in
32717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32718 *) ac_try_echo
=$ac_try;;
32720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32721 (eval "$ac_compile") 2>conftest.er1
32723 grep -v '^ *+' conftest.er1
>conftest.err
32725 cat conftest.err
>&5
32726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); } &&
32728 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32729 { (case "(($ac_try" in
32730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32731 *) ac_try_echo=$ac_try;;
32733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32734 (eval "$ac_try") 2>&5
32736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737 (exit $ac_status); }; } &&
32738 { ac_try='test -s conftest.$ac_objext'
32739 { (case "(($ac_try" in
32740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32741 *) ac_try_echo
=$ac_try;;
32743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32744 (eval "$ac_try") 2>&5
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); }; }; then
32748 ac_header_compiler
=yes
32750 echo "$as_me: failed program was:" >&5
32751 sed 's/^/| /' conftest.
$ac_ext >&5
32753 ac_header_compiler
=no
32756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32758 echo "${ECHO_T}$ac_header_compiler" >&6; }
32760 # Is the header present?
32761 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
32762 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
32763 cat >conftest.
$ac_ext <<_ACEOF
32766 cat confdefs.h
>>conftest.
$ac_ext
32767 cat >>conftest.
$ac_ext <<_ACEOF
32768 /* end confdefs.h. */
32769 #include <${SQLITE_DIR}/include/sqlite.h>
32771 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32772 case "(($ac_try" in
32773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32774 *) ac_try_echo=$ac_try;;
32776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32779 grep -v '^ *+' conftest.er1 >conftest.err
32781 cat conftest.err >&5
32782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783 (exit $ac_status); } >/dev/null; then
32784 if test -s conftest.err; then
32785 ac_cpp_err=$ac_c_preproc_warn_flag
32786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32793 if test -z "$ac_cpp_err"; then
32794 ac_header_preproc=yes
32796 echo "$as_me: failed program was:" >&5
32797 sed 's/^/| /' conftest.$ac_ext >&5
32799 ac_header_preproc=no
32802 rm -f conftest.err conftest.$ac_ext
32803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32804 echo "${ECHO_T}$ac_header_preproc" >&6; }
32806 # So? What about this header?
32807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32809 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
32810 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32811 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
32812 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
32813 ac_header_preproc=yes
32816 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
32817 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
32818 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
32819 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
32820 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
32821 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
32822 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
32823 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
32824 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
32825 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
32826 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
32827 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
32829 ## ------------------------------- ##
32830 ## Report this to www.asterisk.org ##
32831 ## ------------------------------- ##
32833 ) | sed "s/^/$as_me: WARNING: /" >&2
32836 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
32837 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
32838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32839 echo $ECHO_N "(cached) $ECHO_C" >&6
32841 eval "$as_ac_Header=\$ac_header_preproc"
32843 ac_res=`eval echo '${'$as_ac_Header'}'`
32844 { echo "$as_me:$LINENO: result: $ac_res" >&5
32845 echo "${ECHO_T}$ac_res" >&6; }
32848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32849 SQLITE_HEADER_FOUND=1
32851 SQLITE_HEADER_FOUND=0
32856 CPPFLAGS="${saved_cppflags}"
32858 if test "xsqlite.h" != "x" ; then
32859 if test "${ac_cv_header_sqlite_h+set}" = set; then
32860 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
32861 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
32862 if test "${ac_cv_header_sqlite_h+set}" = set; then
32863 echo $ECHO_N "(cached) $ECHO_C" >&6
32865 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
32866 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
32868 # Is the header compilable?
32869 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
32870 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
32871 cat >conftest.$ac_ext <<_ACEOF
32874 cat confdefs.h >>conftest.$ac_ext
32875 cat >>conftest.$ac_ext <<_ACEOF
32876 /* end confdefs.h. */
32877 $ac_includes_default
32878 #include <sqlite.h>
32880 rm -f conftest.$ac_objext
32881 if { (ac_try="$ac_compile"
32882 case "(($ac_try" in
32883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32884 *) ac_try_echo
=$ac_try;;
32886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32887 (eval "$ac_compile") 2>conftest.er1
32889 grep -v '^ *+' conftest.er1
>conftest.err
32891 cat conftest.err
>&5
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); } &&
32894 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32895 { (case "(($ac_try" in
32896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32897 *) ac_try_echo=$ac_try;;
32899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900 (eval "$ac_try") 2>&5
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; } &&
32904 { ac_try='test -s conftest.$ac_objext'
32905 { (case "(($ac_try" in
32906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32907 *) ac_try_echo
=$ac_try;;
32909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32910 (eval "$ac_try") 2>&5
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); }; }; then
32914 ac_header_compiler
=yes
32916 echo "$as_me: failed program was:" >&5
32917 sed 's/^/| /' conftest.
$ac_ext >&5
32919 ac_header_compiler
=no
32922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32924 echo "${ECHO_T}$ac_header_compiler" >&6; }
32926 # Is the header present?
32927 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
32928 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
32929 cat >conftest.
$ac_ext <<_ACEOF
32932 cat confdefs.h
>>conftest.
$ac_ext
32933 cat >>conftest.
$ac_ext <<_ACEOF
32934 /* end confdefs.h. */
32935 #include <sqlite.h>
32937 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32938 case "(($ac_try" in
32939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32940 *) ac_try_echo=$ac_try;;
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32945 grep -v '^ *+' conftest.er1 >conftest.err
32947 cat conftest.err >&5
32948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 (exit $ac_status); } >/dev/null; then
32950 if test -s conftest.err; then
32951 ac_cpp_err=$ac_c_preproc_warn_flag
32952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32959 if test -z "$ac_cpp_err"; then
32960 ac_header_preproc=yes
32962 echo "$as_me: failed program was:" >&5
32963 sed 's/^/| /' conftest.$ac_ext >&5
32965 ac_header_preproc=no
32968 rm -f conftest.err conftest.$ac_ext
32969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32970 echo "${ECHO_T}$ac_header_preproc" >&6; }
32972 # So? What about this header?
32973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32975 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
32976 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32977 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
32978 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
32979 ac_header_preproc=yes
32982 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
32983 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
32984 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
32985 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
32986 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
32987 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
32988 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
32989 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
32990 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
32991 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
32992 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
32993 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
32995 ## ------------------------------- ##
32996 ## Report this to www.asterisk.org ##
32997 ## ------------------------------- ##
32999 ) | sed "s/^/$as_me: WARNING: /" >&2
33002 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
33003 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
33004 if test "${ac_cv_header_sqlite_h+set}" = set; then
33005 echo $ECHO_N "(cached) $ECHO_C" >&6
33007 ac_cv_header_sqlite_h=$ac_header_preproc
33009 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
33010 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
33013 if test $ac_cv_header_sqlite_h = yes; then
33014 SQLITE_HEADER_FOUND=1
33016 SQLITE_HEADER_FOUND=0
33022 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
33023 if test -n "${SQLITE_MANDATORY}" ;
33025 { echo "$as_me:$LINENO: ***" >&5
33026 echo "$as_me: ***" >&6;}
33027 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
33028 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
33029 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
33030 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
33031 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
33032 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
33041 cat >>confdefs.h <<_ACEOF
33042 #define HAVE_SQLITE 1
33046 elif test -n "${SQLITE_MANDATORY}";
33048 { echo "$as_me:$LINENO: ***" >&5
33049 echo "$as_me: ***" >&6;}
33050 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
33051 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
33052 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33053 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33054 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
33055 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
33062 if test "${USE_OPENSSL}" != "no"; then
33064 if test "x${OPENSSL_DIR}" != "x"; then
33065 if test -d ${OPENSSL_DIR}/lib; then
33066 pbxlibdir="-L${OPENSSL_DIR}/lib"
33068 pbxlibdir="-L${OPENSSL_DIR}"
33071 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
33072 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
33073 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
33074 echo $ECHO_N "(cached) $ECHO_C" >&6
33076 ac_check_lib_save_LIBS=$LIBS
33077 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
33078 cat >conftest.$ac_ext <<_ACEOF
33081 cat confdefs.h >>conftest.$ac_ext
33082 cat >>conftest.$ac_ext <<_ACEOF
33083 /* end confdefs.h. */
33085 /* Override any GCC internal prototype to avoid an error.
33086 Use char because int might match the return type of a GCC
33087 builtin and then its argument prototype would still apply. */
33091 char ssl2_connect ();
33095 return ssl2_connect ();
33100 rm -f conftest.$ac_objext conftest$ac_exeext
33101 if { (ac_try="$ac_link"
33102 case "(($ac_try" in
33103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33104 *) ac_try_echo
=$ac_try;;
33106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33107 (eval "$ac_link") 2>conftest.er1
33109 grep -v '^ *+' conftest.er1
>conftest.err
33111 cat conftest.err
>&5
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); } &&
33114 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33115 { (case "(($ac_try" in
33116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33117 *) ac_try_echo=$ac_try;;
33119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33120 (eval "$ac_try") 2>&5
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); }; } &&
33124 { ac_try='test -s conftest$ac_exeext'
33125 { (case "(($ac_try" in
33126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33127 *) ac_try_echo
=$ac_try;;
33129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130 (eval "$ac_try") 2>&5
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); }; }; then
33134 ac_cv_lib_ssl_ssl2_connect
=yes
33136 echo "$as_me: failed program was:" >&5
33137 sed 's/^/| /' conftest.
$ac_ext >&5
33139 ac_cv_lib_ssl_ssl2_connect
=no
33142 rm -f core conftest.err conftest.
$ac_objext \
33143 conftest
$ac_exeext conftest.
$ac_ext
33144 LIBS
=$ac_check_lib_save_LIBS
33146 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
33147 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
33148 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
33149 AST_OPENSSL_FOUND
=yes
33151 AST_OPENSSL_FOUND
=no
33155 if test "${AST_OPENSSL_FOUND}" = "yes"; then
33156 OPENSSL_LIB
="-lssl -lcrypto"
33157 OPENSSL_HEADER_FOUND
="1"
33158 if test "x${OPENSSL_DIR}" != "x"; then
33159 OPENSSL_LIB
="${pbxlibdir} ${OPENSSL_LIB}"
33160 OPENSSL_INCLUDE
="-I${OPENSSL_DIR}/include"
33161 saved_cppflags
="${CPPFLAGS}"
33162 CPPFLAGS
="${CPPFLAGS} -I${OPENSSL_DIR}/include"
33163 if test "xopenssl/ssl.h" != "x" ; then
33164 as_ac_Header
=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
33165 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33166 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
33167 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
33168 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33169 echo $ECHO_N "(cached) $ECHO_C" >&6
33171 ac_res
=`eval echo '${'$as_ac_Header'}'`
33172 { echo "$as_me:$LINENO: result: $ac_res" >&5
33173 echo "${ECHO_T}$ac_res" >&6; }
33175 # Is the header compilable?
33176 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
33177 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
33178 cat >conftest.
$ac_ext <<_ACEOF
33181 cat confdefs.h
>>conftest.
$ac_ext
33182 cat >>conftest.
$ac_ext <<_ACEOF
33183 /* end confdefs.h. */
33184 $ac_includes_default
33185 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
33187 rm -f conftest.
$ac_objext
33188 if { (ac_try
="$ac_compile"
33189 case "(($ac_try" in
33190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33191 *) ac_try_echo=$ac_try;;
33193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33194 (eval "$ac_compile") 2>conftest.er1
33196 grep -v '^ *+' conftest.er1 >conftest.err
33198 cat conftest.err >&5
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); } &&
33201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33202 { (case "(($ac_try" in
33203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33204 *) ac_try_echo
=$ac_try;;
33206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33207 (eval "$ac_try") 2>&5
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); }; } &&
33211 { ac_try
='test -s conftest.$ac_objext'
33212 { (case "(($ac_try" in
33213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33214 *) ac_try_echo=$ac_try;;
33216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33217 (eval "$ac_try") 2>&5
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); }; }; then
33221 ac_header_compiler=yes
33223 echo "$as_me: failed program was:" >&5
33224 sed 's/^/| /' conftest.$ac_ext >&5
33226 ac_header_compiler=no
33229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33231 echo "${ECHO_T}$ac_header_compiler" >&6; }
33233 # Is the header present?
33234 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
33235 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
33236 cat >conftest.$ac_ext <<_ACEOF
33239 cat confdefs.h >>conftest.$ac_ext
33240 cat >>conftest.$ac_ext <<_ACEOF
33241 /* end confdefs.h. */
33242 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
33244 if { (ac_try="$ac_cpp conftest.$ac_ext"
33245 case "(($ac_try" in
33246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33247 *) ac_try_echo
=$ac_try;;
33249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33252 grep -v '^ *+' conftest.er1
>conftest.err
33254 cat conftest.err
>&5
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); } >/dev
/null
; then
33257 if test -s conftest.err
; then
33258 ac_cpp_err
=$ac_c_preproc_warn_flag
33259 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
33266 if test -z "$ac_cpp_err"; then
33267 ac_header_preproc
=yes
33269 echo "$as_me: failed program was:" >&5
33270 sed 's/^/| /' conftest.
$ac_ext >&5
33272 ac_header_preproc
=no
33275 rm -f conftest.err conftest.
$ac_ext
33276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33277 echo "${ECHO_T}$ac_header_preproc" >&6; }
33279 # So? What about this header?
33280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33282 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33283 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33284 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
33285 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
33286 ac_header_preproc
=yes
33289 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
33290 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
33291 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
33292 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
33293 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
33294 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
33295 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
33296 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33297 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
33298 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
33299 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
33300 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
33302 ## ------------------------------- ##
33303 ## Report this to www.asterisk.org ##
33304 ## ------------------------------- ##
33306 ) |
sed "s/^/$as_me: WARNING: /" >&2
33309 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
33310 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
33311 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33312 echo $ECHO_N "(cached) $ECHO_C" >&6
33314 eval "$as_ac_Header=\$ac_header_preproc"
33316 ac_res
=`eval echo '${'$as_ac_Header'}'`
33317 { echo "$as_me:$LINENO: result: $ac_res" >&5
33318 echo "${ECHO_T}$ac_res" >&6; }
33321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33322 OPENSSL_HEADER_FOUND
=1
33324 OPENSSL_HEADER_FOUND
=0
33329 CPPFLAGS
="${saved_cppflags}"
33331 if test "xopenssl/ssl.h" != "x" ; then
33332 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
33333 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
33334 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
33335 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
33336 echo $ECHO_N "(cached) $ECHO_C" >&6
33338 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
33339 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
33341 # Is the header compilable?
33342 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
33343 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
33344 cat >conftest.
$ac_ext <<_ACEOF
33347 cat confdefs.h
>>conftest.
$ac_ext
33348 cat >>conftest.
$ac_ext <<_ACEOF
33349 /* end confdefs.h. */
33350 $ac_includes_default
33351 #include <openssl/ssl.h>
33353 rm -f conftest.
$ac_objext
33354 if { (ac_try
="$ac_compile"
33355 case "(($ac_try" in
33356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33357 *) ac_try_echo=$ac_try;;
33359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360 (eval "$ac_compile") 2>conftest.er1
33362 grep -v '^ *+' conftest.er1 >conftest.err
33364 cat conftest.err >&5
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); } &&
33367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33368 { (case "(($ac_try" in
33369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33370 *) ac_try_echo
=$ac_try;;
33372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373 (eval "$ac_try") 2>&5
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); }; } &&
33377 { ac_try
='test -s conftest.$ac_objext'
33378 { (case "(($ac_try" in
33379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33380 *) ac_try_echo=$ac_try;;
33382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383 (eval "$ac_try") 2>&5
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); }; }; then
33387 ac_header_compiler=yes
33389 echo "$as_me: failed program was:" >&5
33390 sed 's/^/| /' conftest.$ac_ext >&5
33392 ac_header_compiler=no
33395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33397 echo "${ECHO_T}$ac_header_compiler" >&6; }
33399 # Is the header present?
33400 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
33401 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
33402 cat >conftest.$ac_ext <<_ACEOF
33405 cat confdefs.h >>conftest.$ac_ext
33406 cat >>conftest.$ac_ext <<_ACEOF
33407 /* end confdefs.h. */
33408 #include <openssl/ssl.h>
33410 if { (ac_try="$ac_cpp conftest.$ac_ext"
33411 case "(($ac_try" in
33412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33413 *) ac_try_echo
=$ac_try;;
33415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33418 grep -v '^ *+' conftest.er1
>conftest.err
33420 cat conftest.err
>&5
33421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422 (exit $ac_status); } >/dev
/null
; then
33423 if test -s conftest.err
; then
33424 ac_cpp_err
=$ac_c_preproc_warn_flag
33425 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
33432 if test -z "$ac_cpp_err"; then
33433 ac_header_preproc
=yes
33435 echo "$as_me: failed program was:" >&5
33436 sed 's/^/| /' conftest.
$ac_ext >&5
33438 ac_header_preproc
=no
33441 rm -f conftest.err conftest.
$ac_ext
33442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33443 echo "${ECHO_T}$ac_header_preproc" >&6; }
33445 # So? What about this header?
33446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33448 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33449 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33450 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
33451 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
33452 ac_header_preproc
=yes
33455 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
33456 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
33457 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
33458 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
33459 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
33460 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
33461 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
33462 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33463 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
33464 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
33465 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
33466 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
33468 ## ------------------------------- ##
33469 ## Report this to www.asterisk.org ##
33470 ## ------------------------------- ##
33472 ) |
sed "s/^/$as_me: WARNING: /" >&2
33475 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
33476 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
33477 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
33478 echo $ECHO_N "(cached) $ECHO_C" >&6
33480 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
33482 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
33483 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
33486 if test $ac_cv_header_openssl_ssl_h = yes; then
33487 OPENSSL_HEADER_FOUND
=1
33489 OPENSSL_HEADER_FOUND
=0
33495 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
33496 if test -n "${OPENSSL_MANDATORY}" ;
33498 { echo "$as_me:$LINENO: ***" >&5
33499 echo "$as_me: ***" >&6;}
33500 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
33501 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
33502 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
33503 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
33504 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
33505 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
33514 cat >>confdefs.h
<<_ACEOF
33515 #define HAVE_OPENSSL 1
33519 elif test -n "${OPENSSL_MANDATORY}";
33521 { echo "$as_me:$LINENO: ***" >&5
33522 echo "$as_me: ***" >&6;}
33523 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
33524 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
33525 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33526 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33527 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
33528 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
33533 if test "$PBX_OPENSSL" = "1";
33536 if test "${USE_OSPTK}" != "no"; then
33538 if test "x${OSPTK_DIR}" != "x"; then
33539 if test -d ${OSPTK_DIR}/lib
; then
33540 pbxlibdir
="-L${OSPTK_DIR}/lib"
33542 pbxlibdir
="-L${OSPTK_DIR}"
33545 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
33546 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
33547 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
33548 echo $ECHO_N "(cached) $ECHO_C" >&6
33550 ac_check_lib_save_LIBS
=$LIBS
33551 LIBS
="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
33552 cat >conftest.
$ac_ext <<_ACEOF
33555 cat confdefs.h
>>conftest.
$ac_ext
33556 cat >>conftest.
$ac_ext <<_ACEOF
33557 /* end confdefs.h. */
33559 /* Override any GCC internal prototype to avoid an error.
33560 Use char because int might match the return type of a GCC
33561 builtin and then its argument prototype would still apply. */
33565 char OSPPCryptoDecrypt ();
33569 return OSPPCryptoDecrypt ();
33574 rm -f conftest.
$ac_objext conftest
$ac_exeext
33575 if { (ac_try
="$ac_link"
33576 case "(($ac_try" in
33577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33578 *) ac_try_echo=$ac_try;;
33580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581 (eval "$ac_link") 2>conftest.er1
33583 grep -v '^ *+' conftest.er1 >conftest.err
33585 cat conftest.err >&5
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); } &&
33588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33589 { (case "(($ac_try" in
33590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33591 *) ac_try_echo
=$ac_try;;
33593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594 (eval "$ac_try") 2>&5
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); }; } &&
33598 { ac_try
='test -s conftest$ac_exeext'
33599 { (case "(($ac_try" in
33600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33601 *) ac_try_echo=$ac_try;;
33603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33604 (eval "$ac_try") 2>&5
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; }; then
33608 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
33610 echo "$as_me: failed program was:" >&5
33611 sed 's/^/| /' conftest.$ac_ext >&5
33613 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
33616 rm -f core conftest.err conftest.$ac_objext \
33617 conftest$ac_exeext conftest.$ac_ext
33618 LIBS=$ac_check_lib_save_LIBS
33620 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
33621 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
33622 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
33623 AST_OSPTK_FOUND=yes
33629 if test "${AST_OSPTK_FOUND}" = "yes"; then
33630 OSPTK_LIB="-losptk -lcrypto -lssl"
33631 OSPTK_HEADER_FOUND="1"
33632 if test "x${OSPTK_DIR}" != "x"; then
33633 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
33634 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
33635 saved_cppflags="${CPPFLAGS}"
33636 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
33637 if test "xosp/osp.h" != "x" ; then
33638 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" |
$as_tr_sh`
33639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33640 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
33641 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
33642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33643 echo $ECHO_N "(cached) $ECHO_C" >&6
33645 ac_res=`eval echo '${'$as_ac_Header'}'`
33646 { echo "$as_me:$LINENO: result: $ac_res" >&5
33647 echo "${ECHO_T}$ac_res" >&6; }
33649 # Is the header compilable?
33650 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
33651 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
33652 cat >conftest.$ac_ext <<_ACEOF
33655 cat confdefs.h >>conftest.$ac_ext
33656 cat >>conftest.$ac_ext <<_ACEOF
33657 /* end confdefs.h. */
33658 $ac_includes_default
33659 #include <${OSPTK_DIR}/include/osp/osp.h>
33661 rm -f conftest.$ac_objext
33662 if { (ac_try="$ac_compile"
33663 case "(($ac_try" in
33664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33665 *) ac_try_echo
=$ac_try;;
33667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33668 (eval "$ac_compile") 2>conftest.er1
33670 grep -v '^ *+' conftest.er1
>conftest.err
33672 cat conftest.err
>&5
33673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674 (exit $ac_status); } &&
33675 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33676 { (case "(($ac_try" in
33677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33678 *) ac_try_echo=$ac_try;;
33680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33681 (eval "$ac_try") 2>&5
33683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684 (exit $ac_status); }; } &&
33685 { ac_try='test -s conftest.$ac_objext'
33686 { (case "(($ac_try" in
33687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33688 *) ac_try_echo
=$ac_try;;
33690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33691 (eval "$ac_try") 2>&5
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); }; }; then
33695 ac_header_compiler
=yes
33697 echo "$as_me: failed program was:" >&5
33698 sed 's/^/| /' conftest.
$ac_ext >&5
33700 ac_header_compiler
=no
33703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33705 echo "${ECHO_T}$ac_header_compiler" >&6; }
33707 # Is the header present?
33708 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
33709 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
33710 cat >conftest.
$ac_ext <<_ACEOF
33713 cat confdefs.h
>>conftest.
$ac_ext
33714 cat >>conftest.
$ac_ext <<_ACEOF
33715 /* end confdefs.h. */
33716 #include <${OSPTK_DIR}/include/osp/osp.h>
33718 if { (ac_try
="$ac_cpp conftest.$ac_ext"
33719 case "(($ac_try" in
33720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33726 grep -v '^ *+' conftest.er1 >conftest.err
33728 cat conftest.err >&5
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); } >/dev/null; then
33731 if test -s conftest.err; then
33732 ac_cpp_err=$ac_c_preproc_warn_flag
33733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33740 if test -z "$ac_cpp_err"; then
33741 ac_header_preproc=yes
33743 echo "$as_me: failed program was:" >&5
33744 sed 's/^/| /' conftest.$ac_ext >&5
33746 ac_header_preproc=no
33749 rm -f conftest.err conftest.$ac_ext
33750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33751 echo "${ECHO_T}$ac_header_preproc" >&6; }
33753 # So? What about this header?
33754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33756 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
33757 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33758 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
33759 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
33760 ac_header_preproc=yes
33763 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
33764 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
33765 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
33766 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
33767 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
33768 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
33769 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
33770 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
33771 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
33772 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
33773 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
33774 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
33776 ## ------------------------------- ##
33777 ## Report this to www.asterisk.org ##
33778 ## ------------------------------- ##
33780 ) | sed "s/^/$as_me: WARNING: /" >&2
33783 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
33784 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
33785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33786 echo $ECHO_N "(cached) $ECHO_C" >&6
33788 eval "$as_ac_Header=\$ac_header_preproc"
33790 ac_res=`eval echo '${'$as_ac_Header'}'`
33791 { echo "$as_me:$LINENO: result: $ac_res" >&5
33792 echo "${ECHO_T}$ac_res" >&6; }
33795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33796 OSPTK_HEADER_FOUND=1
33798 OSPTK_HEADER_FOUND=0
33803 CPPFLAGS="${saved_cppflags}"
33805 if test "xosp/osp.h" != "x" ; then
33806 if test "${ac_cv_header_osp_osp_h+set}" = set; then
33807 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
33808 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
33809 if test "${ac_cv_header_osp_osp_h+set}" = set; then
33810 echo $ECHO_N "(cached) $ECHO_C" >&6
33812 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
33813 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
33815 # Is the header compilable?
33816 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
33817 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
33818 cat >conftest.$ac_ext <<_ACEOF
33821 cat confdefs.h >>conftest.$ac_ext
33822 cat >>conftest.$ac_ext <<_ACEOF
33823 /* end confdefs.h. */
33824 $ac_includes_default
33825 #include <osp/osp.h>
33827 rm -f conftest.$ac_objext
33828 if { (ac_try="$ac_compile"
33829 case "(($ac_try" in
33830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33831 *) ac_try_echo
=$ac_try;;
33833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834 (eval "$ac_compile") 2>conftest.er1
33836 grep -v '^ *+' conftest.er1
>conftest.err
33838 cat conftest.err
>&5
33839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 (exit $ac_status); } &&
33841 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33842 { (case "(($ac_try" in
33843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33844 *) ac_try_echo=$ac_try;;
33846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33847 (eval "$ac_try") 2>&5
33849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 (exit $ac_status); }; } &&
33851 { ac_try='test -s conftest.$ac_objext'
33852 { (case "(($ac_try" in
33853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33854 *) ac_try_echo
=$ac_try;;
33856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33857 (eval "$ac_try") 2>&5
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); }; }; then
33861 ac_header_compiler
=yes
33863 echo "$as_me: failed program was:" >&5
33864 sed 's/^/| /' conftest.
$ac_ext >&5
33866 ac_header_compiler
=no
33869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33871 echo "${ECHO_T}$ac_header_compiler" >&6; }
33873 # Is the header present?
33874 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
33875 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
33876 cat >conftest.
$ac_ext <<_ACEOF
33879 cat confdefs.h
>>conftest.
$ac_ext
33880 cat >>conftest.
$ac_ext <<_ACEOF
33881 /* end confdefs.h. */
33882 #include <osp/osp.h>
33884 if { (ac_try
="$ac_cpp conftest.$ac_ext"
33885 case "(($ac_try" in
33886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33887 *) ac_try_echo=$ac_try;;
33889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33892 grep -v '^ *+' conftest.er1 >conftest.err
33894 cat conftest.err >&5
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); } >/dev/null; then
33897 if test -s conftest.err; then
33898 ac_cpp_err=$ac_c_preproc_warn_flag
33899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33906 if test -z "$ac_cpp_err"; then
33907 ac_header_preproc=yes
33909 echo "$as_me: failed program was:" >&5
33910 sed 's/^/| /' conftest.$ac_ext >&5
33912 ac_header_preproc=no
33915 rm -f conftest.err conftest.$ac_ext
33916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33917 echo "${ECHO_T}$ac_header_preproc" >&6; }
33919 # So? What about this header?
33920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33922 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
33923 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33924 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
33925 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
33926 ac_header_preproc=yes
33929 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
33930 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
33931 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
33932 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
33933 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
33934 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
33935 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
33936 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
33937 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
33938 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
33939 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
33940 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
33942 ## ------------------------------- ##
33943 ## Report this to www.asterisk.org ##
33944 ## ------------------------------- ##
33946 ) | sed "s/^/$as_me: WARNING: /" >&2
33949 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
33950 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
33951 if test "${ac_cv_header_osp_osp_h+set}" = set; then
33952 echo $ECHO_N "(cached) $ECHO_C" >&6
33954 ac_cv_header_osp_osp_h=$ac_header_preproc
33956 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
33957 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
33960 if test $ac_cv_header_osp_osp_h = yes; then
33961 OSPTK_HEADER_FOUND=1
33963 OSPTK_HEADER_FOUND=0
33969 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
33970 if test -n "${OSPTK_MANDATORY}" ;
33972 { echo "$as_me:$LINENO: ***" >&5
33973 echo "$as_me: ***" >&6;}
33974 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
33975 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
33976 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
33977 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
33978 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
33979 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
33988 cat >>confdefs.h <<_ACEOF
33989 #define HAVE_OSPTK 1
33993 elif test -n "${OSPTK_MANDATORY}";
33995 { echo "$as_me:$LINENO: ***" >&5
33996 echo "$as_me: ***" >&6;}
33997 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
33998 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
33999 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34000 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34001 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
34002 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
34010 if test "${USE_FREETDS}" != "no"; then
34012 if test "x${FREETDS_DIR}" != "x"; then
34013 if test -d ${FREETDS_DIR}/lib; then
34014 pbxlibdir="-L${FREETDS_DIR}/lib"
34016 pbxlibdir="-L${FREETDS_DIR}"
34019 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
34020 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
34021 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
34022 echo $ECHO_N "(cached) $ECHO_C" >&6
34024 ac_check_lib_save_LIBS=$LIBS
34025 LIBS="-ltds ${pbxlibdir} $LIBS"
34026 cat >conftest.$ac_ext <<_ACEOF
34029 cat confdefs.h >>conftest.$ac_ext
34030 cat >>conftest.$ac_ext <<_ACEOF
34031 /* end confdefs.h. */
34033 /* Override any GCC internal prototype to avoid an error.
34034 Use char because int might match the return type of a GCC
34035 builtin and then its argument prototype would still apply. */
34039 char tds_version ();
34043 return tds_version ();
34048 rm -f conftest.$ac_objext conftest$ac_exeext
34049 if { (ac_try="$ac_link"
34050 case "(($ac_try" in
34051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34052 *) ac_try_echo
=$ac_try;;
34054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34055 (eval "$ac_link") 2>conftest.er1
34057 grep -v '^ *+' conftest.er1
>conftest.err
34059 cat conftest.err
>&5
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); } &&
34062 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34063 { (case "(($ac_try" in
34064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34065 *) ac_try_echo=$ac_try;;
34067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34068 (eval "$ac_try") 2>&5
34070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 (exit $ac_status); }; } &&
34072 { ac_try='test -s conftest$ac_exeext'
34073 { (case "(($ac_try" in
34074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34075 *) ac_try_echo
=$ac_try;;
34077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34078 (eval "$ac_try") 2>&5
34080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081 (exit $ac_status); }; }; then
34082 ac_cv_lib_tds_tds_version
=yes
34084 echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.
$ac_ext >&5
34087 ac_cv_lib_tds_tds_version
=no
34090 rm -f core conftest.err conftest.
$ac_objext \
34091 conftest
$ac_exeext conftest.
$ac_ext
34092 LIBS
=$ac_check_lib_save_LIBS
34094 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
34095 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
34096 if test $ac_cv_lib_tds_tds_version = yes; then
34097 AST_FREETDS_FOUND
=yes
34099 AST_FREETDS_FOUND
=no
34103 if test "${AST_FREETDS_FOUND}" = "yes"; then
34104 FREETDS_LIB
="-ltds "
34105 FREETDS_HEADER_FOUND
="1"
34106 if test "x${FREETDS_DIR}" != "x"; then
34107 FREETDS_LIB
="${pbxlibdir} ${FREETDS_LIB}"
34108 FREETDS_INCLUDE
="-I${FREETDS_DIR}/include"
34109 saved_cppflags
="${CPPFLAGS}"
34110 CPPFLAGS
="${CPPFLAGS} -I${FREETDS_DIR}/include"
34111 if test "xtds.h" != "x" ; then
34112 as_ac_Header
=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
34113 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34114 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
34115 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
34116 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34117 echo $ECHO_N "(cached) $ECHO_C" >&6
34119 ac_res
=`eval echo '${'$as_ac_Header'}'`
34120 { echo "$as_me:$LINENO: result: $ac_res" >&5
34121 echo "${ECHO_T}$ac_res" >&6; }
34123 # Is the header compilable?
34124 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
34125 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
34126 cat >conftest.
$ac_ext <<_ACEOF
34129 cat confdefs.h
>>conftest.
$ac_ext
34130 cat >>conftest.
$ac_ext <<_ACEOF
34131 /* end confdefs.h. */
34132 $ac_includes_default
34133 #include <${FREETDS_DIR}/include/tds.h>
34135 rm -f conftest.
$ac_objext
34136 if { (ac_try
="$ac_compile"
34137 case "(($ac_try" in
34138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34139 *) ac_try_echo=$ac_try;;
34141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34142 (eval "$ac_compile") 2>conftest.er1
34144 grep -v '^ *+' conftest.er1 >conftest.err
34146 cat conftest.err >&5
34147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148 (exit $ac_status); } &&
34149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34150 { (case "(($ac_try" in
34151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34152 *) ac_try_echo
=$ac_try;;
34154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34155 (eval "$ac_try") 2>&5
34157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34158 (exit $ac_status); }; } &&
34159 { ac_try
='test -s conftest.$ac_objext'
34160 { (case "(($ac_try" in
34161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34162 *) ac_try_echo=$ac_try;;
34164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34165 (eval "$ac_try") 2>&5
34167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34168 (exit $ac_status); }; }; then
34169 ac_header_compiler=yes
34171 echo "$as_me: failed program was:" >&5
34172 sed 's/^/| /' conftest.$ac_ext >&5
34174 ac_header_compiler=no
34177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34179 echo "${ECHO_T}$ac_header_compiler" >&6; }
34181 # Is the header present?
34182 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
34183 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
34184 cat >conftest.$ac_ext <<_ACEOF
34187 cat confdefs.h >>conftest.$ac_ext
34188 cat >>conftest.$ac_ext <<_ACEOF
34189 /* end confdefs.h. */
34190 #include <${FREETDS_DIR}/include/tds.h>
34192 if { (ac_try="$ac_cpp conftest.$ac_ext"
34193 case "(($ac_try" in
34194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34195 *) ac_try_echo
=$ac_try;;
34197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34200 grep -v '^ *+' conftest.er1
>conftest.err
34202 cat conftest.err
>&5
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); } >/dev
/null
; then
34205 if test -s conftest.err
; then
34206 ac_cpp_err
=$ac_c_preproc_warn_flag
34207 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
34214 if test -z "$ac_cpp_err"; then
34215 ac_header_preproc
=yes
34217 echo "$as_me: failed program was:" >&5
34218 sed 's/^/| /' conftest.
$ac_ext >&5
34220 ac_header_preproc
=no
34223 rm -f conftest.err conftest.
$ac_ext
34224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34225 echo "${ECHO_T}$ac_header_preproc" >&6; }
34227 # So? What about this header?
34228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34230 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
34231 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34232 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
34233 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
34234 ac_header_preproc
=yes
34237 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
34238 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
34239 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
34240 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
34241 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
34242 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
34243 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
34244 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
34245 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
34246 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
34247 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
34248 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
34250 ## ------------------------------- ##
34251 ## Report this to www.asterisk.org ##
34252 ## ------------------------------- ##
34254 ) |
sed "s/^/$as_me: WARNING: /" >&2
34257 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
34258 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
34259 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34260 echo $ECHO_N "(cached) $ECHO_C" >&6
34262 eval "$as_ac_Header=\$ac_header_preproc"
34264 ac_res
=`eval echo '${'$as_ac_Header'}'`
34265 { echo "$as_me:$LINENO: result: $ac_res" >&5
34266 echo "${ECHO_T}$ac_res" >&6; }
34269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34270 FREETDS_HEADER_FOUND
=1
34272 FREETDS_HEADER_FOUND
=0
34277 CPPFLAGS
="${saved_cppflags}"
34279 if test "xtds.h" != "x" ; then
34280 if test "${ac_cv_header_tds_h+set}" = set; then
34281 { echo "$as_me:$LINENO: checking for tds.h" >&5
34282 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
34283 if test "${ac_cv_header_tds_h+set}" = set; then
34284 echo $ECHO_N "(cached) $ECHO_C" >&6
34286 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
34287 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
34289 # Is the header compilable?
34290 { echo "$as_me:$LINENO: checking tds.h usability" >&5
34291 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
34292 cat >conftest.
$ac_ext <<_ACEOF
34295 cat confdefs.h
>>conftest.
$ac_ext
34296 cat >>conftest.
$ac_ext <<_ACEOF
34297 /* end confdefs.h. */
34298 $ac_includes_default
34301 rm -f conftest.
$ac_objext
34302 if { (ac_try
="$ac_compile"
34303 case "(($ac_try" in
34304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34305 *) ac_try_echo=$ac_try;;
34307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34308 (eval "$ac_compile") 2>conftest.er1
34310 grep -v '^ *+' conftest.er1 >conftest.err
34312 cat conftest.err >&5
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); } &&
34315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34316 { (case "(($ac_try" in
34317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34318 *) ac_try_echo
=$ac_try;;
34320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34321 (eval "$ac_try") 2>&5
34323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324 (exit $ac_status); }; } &&
34325 { ac_try
='test -s conftest.$ac_objext'
34326 { (case "(($ac_try" in
34327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34328 *) ac_try_echo=$ac_try;;
34330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34331 (eval "$ac_try") 2>&5
34333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334 (exit $ac_status); }; }; then
34335 ac_header_compiler=yes
34337 echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34340 ac_header_compiler=no
34343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34345 echo "${ECHO_T}$ac_header_compiler" >&6; }
34347 # Is the header present?
34348 { echo "$as_me:$LINENO: checking tds.h presence" >&5
34349 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
34350 cat >conftest.$ac_ext <<_ACEOF
34353 cat confdefs.h >>conftest.$ac_ext
34354 cat >>conftest.$ac_ext <<_ACEOF
34355 /* end confdefs.h. */
34358 if { (ac_try="$ac_cpp conftest.$ac_ext"
34359 case "(($ac_try" in
34360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34361 *) ac_try_echo
=$ac_try;;
34363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34366 grep -v '^ *+' conftest.er1
>conftest.err
34368 cat conftest.err
>&5
34369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370 (exit $ac_status); } >/dev
/null
; then
34371 if test -s conftest.err
; then
34372 ac_cpp_err
=$ac_c_preproc_warn_flag
34373 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
34380 if test -z "$ac_cpp_err"; then
34381 ac_header_preproc
=yes
34383 echo "$as_me: failed program was:" >&5
34384 sed 's/^/| /' conftest.
$ac_ext >&5
34386 ac_header_preproc
=no
34389 rm -f conftest.err conftest.
$ac_ext
34390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34391 echo "${ECHO_T}$ac_header_preproc" >&6; }
34393 # So? What about this header?
34394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34396 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
34397 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34398 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
34399 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
34400 ac_header_preproc
=yes
34403 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
34404 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
34405 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
34406 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
34407 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
34408 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
34409 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
34410 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
34411 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
34412 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
34413 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
34414 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
34416 ## ------------------------------- ##
34417 ## Report this to www.asterisk.org ##
34418 ## ------------------------------- ##
34420 ) |
sed "s/^/$as_me: WARNING: /" >&2
34423 { echo "$as_me:$LINENO: checking for tds.h" >&5
34424 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
34425 if test "${ac_cv_header_tds_h+set}" = set; then
34426 echo $ECHO_N "(cached) $ECHO_C" >&6
34428 ac_cv_header_tds_h
=$ac_header_preproc
34430 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
34431 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
34434 if test $ac_cv_header_tds_h = yes; then
34435 FREETDS_HEADER_FOUND
=1
34437 FREETDS_HEADER_FOUND
=0
34443 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
34444 if test -n "${FREETDS_MANDATORY}" ;
34446 { echo "$as_me:$LINENO: ***" >&5
34447 echo "$as_me: ***" >&6;}
34448 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
34449 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
34450 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
34451 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
34452 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
34453 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
34462 cat >>confdefs.h
<<_ACEOF
34463 #define HAVE_FREETDS 1
34467 elif test -n "${FREETDS_MANDATORY}";
34469 { echo "$as_me:$LINENO: ***" >&5
34470 echo "$as_me: ***" >&6;}
34471 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
34472 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
34473 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34474 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34475 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
34476 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
34481 if test "${PBX_FREETDS}" != "0";
34483 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
34485 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_64"
34488 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_63"
34491 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_62"
34494 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
34500 if test "${USE_TERMCAP}" != "no"; then
34502 if test "x${TERMCAP_DIR}" != "x"; then
34503 if test -d ${TERMCAP_DIR}/lib
; then
34504 pbxlibdir
="-L${TERMCAP_DIR}/lib"
34506 pbxlibdir
="-L${TERMCAP_DIR}"
34509 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
34510 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
34511 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
34512 echo $ECHO_N "(cached) $ECHO_C" >&6
34514 ac_check_lib_save_LIBS
=$LIBS
34515 LIBS
="-ltermcap ${pbxlibdir} $LIBS"
34516 cat >conftest.
$ac_ext <<_ACEOF
34519 cat confdefs.h
>>conftest.
$ac_ext
34520 cat >>conftest.
$ac_ext <<_ACEOF
34521 /* end confdefs.h. */
34523 /* Override any GCC internal prototype to avoid an error.
34524 Use char because int might match the return type of a GCC
34525 builtin and then its argument prototype would still apply. */
34538 rm -f conftest.
$ac_objext conftest
$ac_exeext
34539 if { (ac_try
="$ac_link"
34540 case "(($ac_try" in
34541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34542 *) ac_try_echo=$ac_try;;
34544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34545 (eval "$ac_link") 2>conftest.er1
34547 grep -v '^ *+' conftest.er1 >conftest.err
34549 cat conftest.err >&5
34550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551 (exit $ac_status); } &&
34552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34553 { (case "(($ac_try" in
34554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34555 *) ac_try_echo
=$ac_try;;
34557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34558 (eval "$ac_try") 2>&5
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); }; } &&
34562 { ac_try
='test -s conftest$ac_exeext'
34563 { (case "(($ac_try" in
34564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34565 *) ac_try_echo=$ac_try;;
34567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34568 (eval "$ac_try") 2>&5
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); }; }; then
34572 ac_cv_lib_termcap_tgetent=yes
34574 echo "$as_me: failed program was:" >&5
34575 sed 's/^/| /' conftest.$ac_ext >&5
34577 ac_cv_lib_termcap_tgetent=no
34580 rm -f core conftest.err conftest.$ac_objext \
34581 conftest$ac_exeext conftest.$ac_ext
34582 LIBS=$ac_check_lib_save_LIBS
34584 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
34585 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
34586 if test $ac_cv_lib_termcap_tgetent = yes; then
34587 AST_TERMCAP_FOUND=yes
34589 AST_TERMCAP_FOUND=no
34593 if test "${AST_TERMCAP_FOUND}" = "yes"; then
34594 TERMCAP_LIB="-ltermcap "
34595 TERMCAP_HEADER_FOUND="1"
34596 if test "x${TERMCAP_DIR}" != "x"; then
34597 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
34598 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
34599 saved_cppflags="${CPPFLAGS}"
34600 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
34601 if test "x" != "x" ; then
34602 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" |
$as_tr_sh`
34603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34604 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
34605 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
34606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34607 echo $ECHO_N "(cached) $ECHO_C" >&6
34609 ac_res=`eval echo '${'$as_ac_Header'}'`
34610 { echo "$as_me:$LINENO: result: $ac_res" >&5
34611 echo "${ECHO_T}$ac_res" >&6; }
34613 # Is the header compilable?
34614 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
34615 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
34616 cat >conftest.$ac_ext <<_ACEOF
34619 cat confdefs.h >>conftest.$ac_ext
34620 cat >>conftest.$ac_ext <<_ACEOF
34621 /* end confdefs.h. */
34622 $ac_includes_default
34623 #include <${TERMCAP_DIR}/include/>
34625 rm -f conftest.$ac_objext
34626 if { (ac_try="$ac_compile"
34627 case "(($ac_try" in
34628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34629 *) ac_try_echo
=$ac_try;;
34631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632 (eval "$ac_compile") 2>conftest.er1
34634 grep -v '^ *+' conftest.er1
>conftest.err
34636 cat conftest.err
>&5
34637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638 (exit $ac_status); } &&
34639 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34640 { (case "(($ac_try" in
34641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34642 *) ac_try_echo=$ac_try;;
34644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34645 (eval "$ac_try") 2>&5
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); }; } &&
34649 { ac_try='test -s conftest.$ac_objext'
34650 { (case "(($ac_try" in
34651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34652 *) ac_try_echo
=$ac_try;;
34654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34655 (eval "$ac_try") 2>&5
34657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658 (exit $ac_status); }; }; then
34659 ac_header_compiler
=yes
34661 echo "$as_me: failed program was:" >&5
34662 sed 's/^/| /' conftest.
$ac_ext >&5
34664 ac_header_compiler
=no
34667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34669 echo "${ECHO_T}$ac_header_compiler" >&6; }
34671 # Is the header present?
34672 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
34673 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
34674 cat >conftest.
$ac_ext <<_ACEOF
34677 cat confdefs.h
>>conftest.
$ac_ext
34678 cat >>conftest.
$ac_ext <<_ACEOF
34679 /* end confdefs.h. */
34680 #include <${TERMCAP_DIR}/include/>
34682 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34683 case "(($ac_try" in
34684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34685 *) ac_try_echo=$ac_try;;
34687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34690 grep -v '^ *+' conftest.er1 >conftest.err
34692 cat conftest.err >&5
34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); } >/dev/null; then
34695 if test -s conftest.err; then
34696 ac_cpp_err=$ac_c_preproc_warn_flag
34697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34704 if test -z "$ac_cpp_err"; then
34705 ac_header_preproc=yes
34707 echo "$as_me: failed program was:" >&5
34708 sed 's/^/| /' conftest.$ac_ext >&5
34710 ac_header_preproc=no
34713 rm -f conftest.err conftest.$ac_ext
34714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34715 echo "${ECHO_T}$ac_header_preproc" >&6; }
34717 # So? What about this header?
34718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34720 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
34721 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
34722 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
34723 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
34724 ac_header_preproc=yes
34727 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
34728 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
34729 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
34730 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
34731 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
34732 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
34733 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
34734 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
34735 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
34736 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
34737 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
34738 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
34740 ## ------------------------------- ##
34741 ## Report this to www.asterisk.org ##
34742 ## ------------------------------- ##
34744 ) | sed "s/^/$as_me: WARNING: /" >&2
34747 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
34748 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
34749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34750 echo $ECHO_N "(cached) $ECHO_C" >&6
34752 eval "$as_ac_Header=\$ac_header_preproc"
34754 ac_res=`eval echo '${'$as_ac_Header'}'`
34755 { echo "$as_me:$LINENO: result: $ac_res" >&5
34756 echo "${ECHO_T}$ac_res" >&6; }
34759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34760 TERMCAP_HEADER_FOUND=1
34762 TERMCAP_HEADER_FOUND=0
34767 CPPFLAGS="${saved_cppflags}"
34769 if test "x" != "x" ; then
34770 if test "${ac_cv_header_+set}" = set; then
34771 { echo "$as_me:$LINENO: checking for " >&5
34772 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
34773 if test "${ac_cv_header_+set}" = set; then
34774 echo $ECHO_N "(cached) $ECHO_C" >&6
34776 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
34777 echo "${ECHO_T}$ac_cv_header_" >&6; }
34779 # Is the header compilable?
34780 { echo "$as_me:$LINENO: checking usability" >&5
34781 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
34782 cat >conftest.$ac_ext <<_ACEOF
34785 cat confdefs.h >>conftest.$ac_ext
34786 cat >>conftest.$ac_ext <<_ACEOF
34787 /* end confdefs.h. */
34788 $ac_includes_default
34791 rm -f conftest.$ac_objext
34792 if { (ac_try="$ac_compile"
34793 case "(($ac_try" in
34794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34795 *) ac_try_echo
=$ac_try;;
34797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34798 (eval "$ac_compile") 2>conftest.er1
34800 grep -v '^ *+' conftest.er1
>conftest.err
34802 cat conftest.err
>&5
34803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804 (exit $ac_status); } &&
34805 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34806 { (case "(($ac_try" in
34807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34808 *) ac_try_echo=$ac_try;;
34810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34811 (eval "$ac_try") 2>&5
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); }; } &&
34815 { ac_try='test -s conftest.$ac_objext'
34816 { (case "(($ac_try" in
34817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34818 *) ac_try_echo
=$ac_try;;
34820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34821 (eval "$ac_try") 2>&5
34823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824 (exit $ac_status); }; }; then
34825 ac_header_compiler
=yes
34827 echo "$as_me: failed program was:" >&5
34828 sed 's/^/| /' conftest.
$ac_ext >&5
34830 ac_header_compiler
=no
34833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34835 echo "${ECHO_T}$ac_header_compiler" >&6; }
34837 # Is the header present?
34838 { echo "$as_me:$LINENO: checking presence" >&5
34839 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
34840 cat >conftest.
$ac_ext <<_ACEOF
34843 cat confdefs.h
>>conftest.
$ac_ext
34844 cat >>conftest.
$ac_ext <<_ACEOF
34845 /* end confdefs.h. */
34848 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34849 case "(($ac_try" in
34850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34851 *) ac_try_echo=$ac_try;;
34853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34856 grep -v '^ *+' conftest.er1 >conftest.err
34858 cat conftest.err >&5
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); } >/dev/null; then
34861 if test -s conftest.err; then
34862 ac_cpp_err=$ac_c_preproc_warn_flag
34863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34870 if test -z "$ac_cpp_err"; then
34871 ac_header_preproc=yes
34873 echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34876 ac_header_preproc=no
34879 rm -f conftest.err conftest.$ac_ext
34880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34881 echo "${ECHO_T}$ac_header_preproc" >&6; }
34883 # So? What about this header?
34884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34886 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
34887 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
34888 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
34889 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
34890 ac_header_preproc=yes
34893 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
34894 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
34895 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
34896 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
34897 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
34898 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
34899 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
34900 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
34901 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
34902 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
34903 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
34904 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
34906 ## ------------------------------- ##
34907 ## Report this to www.asterisk.org ##
34908 ## ------------------------------- ##
34910 ) | sed "s/^/$as_me: WARNING: /" >&2
34913 { echo "$as_me:$LINENO: checking for " >&5
34914 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
34915 if test "${ac_cv_header_+set}" = set; then
34916 echo $ECHO_N "(cached) $ECHO_C" >&6
34918 ac_cv_header_=$ac_header_preproc
34920 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
34921 echo "${ECHO_T}$ac_cv_header_" >&6; }
34924 if test $ac_cv_header_ = yes; then
34925 TERMCAP_HEADER_FOUND=1
34927 TERMCAP_HEADER_FOUND=0
34933 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
34934 if test -n "${TERMCAP_MANDATORY}" ;
34936 { echo "$as_me:$LINENO: ***" >&5
34937 echo "$as_me: ***" >&6;}
34938 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
34939 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
34940 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
34941 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
34942 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
34943 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
34952 cat >>confdefs.h <<_ACEOF
34953 #define HAVE_TERMCAP 1
34957 elif test -n "${TERMCAP_MANDATORY}";
34959 { echo "$as_me:$LINENO: ***" >&5
34960 echo "$as_me: ***" >&6;}
34961 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
34962 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
34963 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34964 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34965 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
34966 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
34973 if test "${USE_TINFO}" != "no"; then
34975 if test "x${TINFO_DIR}" != "x"; then
34976 if test -d ${TINFO_DIR}/lib; then
34977 pbxlibdir="-L${TINFO_DIR}/lib"
34979 pbxlibdir="-L${TINFO_DIR}"
34982 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
34983 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
34984 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
34985 echo $ECHO_N "(cached) $ECHO_C" >&6
34987 ac_check_lib_save_LIBS=$LIBS
34988 LIBS="-ltinfo ${pbxlibdir} $LIBS"
34989 cat >conftest.$ac_ext <<_ACEOF
34992 cat confdefs.h >>conftest.$ac_ext
34993 cat >>conftest.$ac_ext <<_ACEOF
34994 /* end confdefs.h. */
34996 /* Override any GCC internal prototype to avoid an error.
34997 Use char because int might match the return type of a GCC
34998 builtin and then its argument prototype would still apply. */
35011 rm -f conftest.$ac_objext conftest$ac_exeext
35012 if { (ac_try="$ac_link"
35013 case "(($ac_try" in
35014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35015 *) ac_try_echo
=$ac_try;;
35017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35018 (eval "$ac_link") 2>conftest.er1
35020 grep -v '^ *+' conftest.er1
>conftest.err
35022 cat conftest.err
>&5
35023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024 (exit $ac_status); } &&
35025 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35026 { (case "(($ac_try" in
35027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35028 *) ac_try_echo=$ac_try;;
35030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35031 (eval "$ac_try") 2>&5
35033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034 (exit $ac_status); }; } &&
35035 { ac_try='test -s conftest$ac_exeext'
35036 { (case "(($ac_try" in
35037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35038 *) ac_try_echo
=$ac_try;;
35040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35041 (eval "$ac_try") 2>&5
35043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044 (exit $ac_status); }; }; then
35045 ac_cv_lib_tinfo_tgetent
=yes
35047 echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.
$ac_ext >&5
35050 ac_cv_lib_tinfo_tgetent
=no
35053 rm -f core conftest.err conftest.
$ac_objext \
35054 conftest
$ac_exeext conftest.
$ac_ext
35055 LIBS
=$ac_check_lib_save_LIBS
35057 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
35058 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
35059 if test $ac_cv_lib_tinfo_tgetent = yes; then
35060 AST_TINFO_FOUND
=yes
35066 if test "${AST_TINFO_FOUND}" = "yes"; then
35067 TINFO_LIB
="-ltinfo "
35068 TINFO_HEADER_FOUND
="1"
35069 if test "x${TINFO_DIR}" != "x"; then
35070 TINFO_LIB
="${pbxlibdir} ${TINFO_LIB}"
35071 TINFO_INCLUDE
="-I${TINFO_DIR}/include"
35072 saved_cppflags
="${CPPFLAGS}"
35073 CPPFLAGS
="${CPPFLAGS} -I${TINFO_DIR}/include"
35074 if test "x" != "x" ; then
35075 as_ac_Header
=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
35076 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35077 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
35078 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
35079 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35080 echo $ECHO_N "(cached) $ECHO_C" >&6
35082 ac_res
=`eval echo '${'$as_ac_Header'}'`
35083 { echo "$as_me:$LINENO: result: $ac_res" >&5
35084 echo "${ECHO_T}$ac_res" >&6; }
35086 # Is the header compilable?
35087 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
35088 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
35089 cat >conftest.
$ac_ext <<_ACEOF
35092 cat confdefs.h
>>conftest.
$ac_ext
35093 cat >>conftest.
$ac_ext <<_ACEOF
35094 /* end confdefs.h. */
35095 $ac_includes_default
35096 #include <${TINFO_DIR}/include/>
35098 rm -f conftest.
$ac_objext
35099 if { (ac_try
="$ac_compile"
35100 case "(($ac_try" in
35101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35102 *) ac_try_echo=$ac_try;;
35104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35105 (eval "$ac_compile") 2>conftest.er1
35107 grep -v '^ *+' conftest.er1 >conftest.err
35109 cat conftest.err >&5
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); } &&
35112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35113 { (case "(($ac_try" in
35114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35115 *) ac_try_echo
=$ac_try;;
35117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35118 (eval "$ac_try") 2>&5
35120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121 (exit $ac_status); }; } &&
35122 { ac_try
='test -s conftest.$ac_objext'
35123 { (case "(($ac_try" in
35124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35125 *) ac_try_echo=$ac_try;;
35127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35128 (eval "$ac_try") 2>&5
35130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35131 (exit $ac_status); }; }; then
35132 ac_header_compiler=yes
35134 echo "$as_me: failed program was:" >&5
35135 sed 's/^/| /' conftest.$ac_ext >&5
35137 ac_header_compiler=no
35140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35142 echo "${ECHO_T}$ac_header_compiler" >&6; }
35144 # Is the header present?
35145 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
35146 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
35147 cat >conftest.$ac_ext <<_ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h. */
35153 #include <${TINFO_DIR}/include/>
35155 if { (ac_try="$ac_cpp conftest.$ac_ext"
35156 case "(($ac_try" in
35157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35158 *) ac_try_echo
=$ac_try;;
35160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35163 grep -v '^ *+' conftest.er1
>conftest.err
35165 cat conftest.err
>&5
35166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 (exit $ac_status); } >/dev
/null
; then
35168 if test -s conftest.err
; then
35169 ac_cpp_err
=$ac_c_preproc_warn_flag
35170 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
35177 if test -z "$ac_cpp_err"; then
35178 ac_header_preproc
=yes
35180 echo "$as_me: failed program was:" >&5
35181 sed 's/^/| /' conftest.
$ac_ext >&5
35183 ac_header_preproc
=no
35186 rm -f conftest.err conftest.
$ac_ext
35187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35188 echo "${ECHO_T}$ac_header_preproc" >&6; }
35190 # So? What about this header?
35191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35193 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
35194 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
35195 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
35196 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
35197 ac_header_preproc
=yes
35200 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
35201 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
35202 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
35203 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
35204 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
35205 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
35206 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
35207 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
35208 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
35209 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
35210 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
35211 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
35213 ## ------------------------------- ##
35214 ## Report this to www.asterisk.org ##
35215 ## ------------------------------- ##
35217 ) |
sed "s/^/$as_me: WARNING: /" >&2
35220 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
35221 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
35222 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35223 echo $ECHO_N "(cached) $ECHO_C" >&6
35225 eval "$as_ac_Header=\$ac_header_preproc"
35227 ac_res
=`eval echo '${'$as_ac_Header'}'`
35228 { echo "$as_me:$LINENO: result: $ac_res" >&5
35229 echo "${ECHO_T}$ac_res" >&6; }
35232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35233 TINFO_HEADER_FOUND
=1
35235 TINFO_HEADER_FOUND
=0
35240 CPPFLAGS
="${saved_cppflags}"
35242 if test "x" != "x" ; then
35243 if test "${ac_cv_header_+set}" = set; then
35244 { echo "$as_me:$LINENO: checking for " >&5
35245 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
35246 if test "${ac_cv_header_+set}" = set; then
35247 echo $ECHO_N "(cached) $ECHO_C" >&6
35249 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
35250 echo "${ECHO_T}$ac_cv_header_" >&6; }
35252 # Is the header compilable?
35253 { echo "$as_me:$LINENO: checking usability" >&5
35254 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
35255 cat >conftest.
$ac_ext <<_ACEOF
35258 cat confdefs.h
>>conftest.
$ac_ext
35259 cat >>conftest.
$ac_ext <<_ACEOF
35260 /* end confdefs.h. */
35261 $ac_includes_default
35264 rm -f conftest.
$ac_objext
35265 if { (ac_try
="$ac_compile"
35266 case "(($ac_try" in
35267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35268 *) ac_try_echo=$ac_try;;
35270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35271 (eval "$ac_compile") 2>conftest.er1
35273 grep -v '^ *+' conftest.er1 >conftest.err
35275 cat conftest.err >&5
35276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277 (exit $ac_status); } &&
35278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35279 { (case "(($ac_try" in
35280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35281 *) ac_try_echo
=$ac_try;;
35283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35284 (eval "$ac_try") 2>&5
35286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287 (exit $ac_status); }; } &&
35288 { ac_try
='test -s conftest.$ac_objext'
35289 { (case "(($ac_try" in
35290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35291 *) ac_try_echo=$ac_try;;
35293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35294 (eval "$ac_try") 2>&5
35296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297 (exit $ac_status); }; }; then
35298 ac_header_compiler=yes
35300 echo "$as_me: failed program was:" >&5
35301 sed 's/^/| /' conftest.$ac_ext >&5
35303 ac_header_compiler=no
35306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35308 echo "${ECHO_T}$ac_header_compiler" >&6; }
35310 # Is the header present?
35311 { echo "$as_me:$LINENO: checking presence" >&5
35312 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
35313 cat >conftest.$ac_ext <<_ACEOF
35316 cat confdefs.h >>conftest.$ac_ext
35317 cat >>conftest.$ac_ext <<_ACEOF
35318 /* end confdefs.h. */
35321 if { (ac_try="$ac_cpp conftest.$ac_ext"
35322 case "(($ac_try" in
35323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35324 *) ac_try_echo
=$ac_try;;
35326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35329 grep -v '^ *+' conftest.er1
>conftest.err
35331 cat conftest.err
>&5
35332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35333 (exit $ac_status); } >/dev
/null
; then
35334 if test -s conftest.err
; then
35335 ac_cpp_err
=$ac_c_preproc_warn_flag
35336 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
35343 if test -z "$ac_cpp_err"; then
35344 ac_header_preproc
=yes
35346 echo "$as_me: failed program was:" >&5
35347 sed 's/^/| /' conftest.
$ac_ext >&5
35349 ac_header_preproc
=no
35352 rm -f conftest.err conftest.
$ac_ext
35353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35354 echo "${ECHO_T}$ac_header_preproc" >&6; }
35356 # So? What about this header?
35357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35359 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
35360 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
35361 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
35362 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
35363 ac_header_preproc
=yes
35366 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
35367 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
35368 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
35369 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
35370 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
35371 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
35372 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
35373 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
35374 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
35375 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
35376 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
35377 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
35379 ## ------------------------------- ##
35380 ## Report this to www.asterisk.org ##
35381 ## ------------------------------- ##
35383 ) |
sed "s/^/$as_me: WARNING: /" >&2
35386 { echo "$as_me:$LINENO: checking for " >&5
35387 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
35388 if test "${ac_cv_header_+set}" = set; then
35389 echo $ECHO_N "(cached) $ECHO_C" >&6
35391 ac_cv_header_
=$ac_header_preproc
35393 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
35394 echo "${ECHO_T}$ac_cv_header_" >&6; }
35397 if test $ac_cv_header_ = yes; then
35398 TINFO_HEADER_FOUND
=1
35400 TINFO_HEADER_FOUND
=0
35406 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
35407 if test -n "${TINFO_MANDATORY}" ;
35409 { echo "$as_me:$LINENO: ***" >&5
35410 echo "$as_me: ***" >&6;}
35411 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
35412 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
35413 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
35414 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
35415 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
35416 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
35425 cat >>confdefs.h
<<_ACEOF
35426 #define HAVE_TINFO 1
35430 elif test -n "${TINFO_MANDATORY}";
35432 { echo "$as_me:$LINENO: ***" >&5
35433 echo "$as_me: ***" >&6;}
35434 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
35435 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
35436 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
35437 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
35438 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
35439 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
35445 if test "${host_os}" != "linux-gnu" ; then
35446 tonezone_extra
="-lm"
35450 if test "${USE_TONEZONE}" != "no"; then
35452 if test "x${TONEZONE_DIR}" != "x"; then
35453 if test -d ${TONEZONE_DIR}/lib
; then
35454 pbxlibdir
="-L${TONEZONE_DIR}/lib"
35456 pbxlibdir
="-L${TONEZONE_DIR}"
35459 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
35460 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
35461 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
35462 echo $ECHO_N "(cached) $ECHO_C" >&6
35464 ac_check_lib_save_LIBS
=$LIBS
35465 LIBS
="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
35466 cat >conftest.
$ac_ext <<_ACEOF
35469 cat confdefs.h
>>conftest.
$ac_ext
35470 cat >>conftest.
$ac_ext <<_ACEOF
35471 /* end confdefs.h. */
35473 /* Override any GCC internal prototype to avoid an error.
35474 Use char because int might match the return type of a GCC
35475 builtin and then its argument prototype would still apply. */
35479 char tone_zone_find ();
35483 return tone_zone_find ();
35488 rm -f conftest.
$ac_objext conftest
$ac_exeext
35489 if { (ac_try
="$ac_link"
35490 case "(($ac_try" in
35491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35492 *) ac_try_echo=$ac_try;;
35494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35495 (eval "$ac_link") 2>conftest.er1
35497 grep -v '^ *+' conftest.er1 >conftest.err
35499 cat conftest.err >&5
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); } &&
35502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35503 { (case "(($ac_try" in
35504 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35505 *) ac_try_echo
=$ac_try;;
35507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35508 (eval "$ac_try") 2>&5
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); }; } &&
35512 { ac_try
='test -s conftest$ac_exeext'
35513 { (case "(($ac_try" in
35514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35515 *) ac_try_echo=$ac_try;;
35517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35518 (eval "$ac_try") 2>&5
35520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521 (exit $ac_status); }; }; then
35522 ac_cv_lib_tonezone_tone_zone_find=yes
35524 echo "$as_me: failed program was:" >&5
35525 sed 's/^/| /' conftest.$ac_ext >&5
35527 ac_cv_lib_tonezone_tone_zone_find=no
35530 rm -f core conftest.err conftest.$ac_objext \
35531 conftest$ac_exeext conftest.$ac_ext
35532 LIBS=$ac_check_lib_save_LIBS
35534 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
35535 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
35536 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
35537 AST_TONEZONE_FOUND=yes
35539 AST_TONEZONE_FOUND=no
35543 if test "${AST_TONEZONE_FOUND}" = "yes"; then
35544 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
35545 TONEZONE_HEADER_FOUND="1"
35546 if test "x${TONEZONE_DIR}" != "x"; then
35547 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
35548 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
35549 saved_cppflags="${CPPFLAGS}"
35550 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
35551 if test "xzaptel/tonezone.h" != "x" ; then
35552 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" |
$as_tr_sh`
35553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35554 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
35555 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
35556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35557 echo $ECHO_N "(cached) $ECHO_C" >&6
35559 ac_res=`eval echo '${'$as_ac_Header'}'`
35560 { echo "$as_me:$LINENO: result: $ac_res" >&5
35561 echo "${ECHO_T}$ac_res" >&6; }
35563 # Is the header compilable?
35564 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
35565 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
35566 cat >conftest.$ac_ext <<_ACEOF
35569 cat confdefs.h >>conftest.$ac_ext
35570 cat >>conftest.$ac_ext <<_ACEOF
35571 /* end confdefs.h. */
35572 $ac_includes_default
35573 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
35575 rm -f conftest.$ac_objext
35576 if { (ac_try="$ac_compile"
35577 case "(($ac_try" in
35578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35579 *) ac_try_echo
=$ac_try;;
35581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35582 (eval "$ac_compile") 2>conftest.er1
35584 grep -v '^ *+' conftest.er1
>conftest.err
35586 cat conftest.err
>&5
35587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588 (exit $ac_status); } &&
35589 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35590 { (case "(($ac_try" in
35591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35592 *) ac_try_echo=$ac_try;;
35594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35595 (eval "$ac_try") 2>&5
35597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35598 (exit $ac_status); }; } &&
35599 { ac_try='test -s conftest.$ac_objext'
35600 { (case "(($ac_try" in
35601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35602 *) ac_try_echo
=$ac_try;;
35604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35605 (eval "$ac_try") 2>&5
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); }; }; then
35609 ac_header_compiler
=yes
35611 echo "$as_me: failed program was:" >&5
35612 sed 's/^/| /' conftest.
$ac_ext >&5
35614 ac_header_compiler
=no
35617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35619 echo "${ECHO_T}$ac_header_compiler" >&6; }
35621 # Is the header present?
35622 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
35623 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
35624 cat >conftest.
$ac_ext <<_ACEOF
35627 cat confdefs.h
>>conftest.
$ac_ext
35628 cat >>conftest.
$ac_ext <<_ACEOF
35629 /* end confdefs.h. */
35630 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
35632 if { (ac_try
="$ac_cpp conftest.$ac_ext"
35633 case "(($ac_try" in
35634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35635 *) ac_try_echo=$ac_try;;
35637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35640 grep -v '^ *+' conftest.er1 >conftest.err
35642 cat conftest.err >&5
35643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644 (exit $ac_status); } >/dev/null; then
35645 if test -s conftest.err; then
35646 ac_cpp_err=$ac_c_preproc_warn_flag
35647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35654 if test -z "$ac_cpp_err"; then
35655 ac_header_preproc=yes
35657 echo "$as_me: failed program was:" >&5
35658 sed 's/^/| /' conftest.$ac_ext >&5
35660 ac_header_preproc=no
35663 rm -f conftest.err conftest.$ac_ext
35664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35665 echo "${ECHO_T}$ac_header_preproc" >&6; }
35667 # So? What about this header?
35668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35670 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
35671 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35672 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
35673 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
35674 ac_header_preproc=yes
35677 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
35678 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
35679 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
35680 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
35681 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
35682 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
35683 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
35684 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
35685 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
35686 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
35687 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
35688 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
35690 ## ------------------------------- ##
35691 ## Report this to www.asterisk.org ##
35692 ## ------------------------------- ##
35694 ) | sed "s/^/$as_me: WARNING: /" >&2
35697 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
35698 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
35699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35700 echo $ECHO_N "(cached) $ECHO_C" >&6
35702 eval "$as_ac_Header=\$ac_header_preproc"
35704 ac_res=`eval echo '${'$as_ac_Header'}'`
35705 { echo "$as_me:$LINENO: result: $ac_res" >&5
35706 echo "${ECHO_T}$ac_res" >&6; }
35709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35710 TONEZONE_HEADER_FOUND=1
35712 TONEZONE_HEADER_FOUND=0
35717 CPPFLAGS="${saved_cppflags}"
35719 if test "xzaptel/tonezone.h" != "x" ; then
35720 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
35721 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
35722 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
35723 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
35724 echo $ECHO_N "(cached) $ECHO_C" >&6
35726 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
35727 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
35729 # Is the header compilable?
35730 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
35731 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
35732 cat >conftest.$ac_ext <<_ACEOF
35735 cat confdefs.h >>conftest.$ac_ext
35736 cat >>conftest.$ac_ext <<_ACEOF
35737 /* end confdefs.h. */
35738 $ac_includes_default
35739 #include <zaptel/tonezone.h>
35741 rm -f conftest.$ac_objext
35742 if { (ac_try="$ac_compile"
35743 case "(($ac_try" in
35744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35745 *) ac_try_echo
=$ac_try;;
35747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35748 (eval "$ac_compile") 2>conftest.er1
35750 grep -v '^ *+' conftest.er1
>conftest.err
35752 cat conftest.err
>&5
35753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754 (exit $ac_status); } &&
35755 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35756 { (case "(($ac_try" in
35757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35758 *) ac_try_echo=$ac_try;;
35760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35761 (eval "$ac_try") 2>&5
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); }; } &&
35765 { ac_try='test -s conftest.$ac_objext'
35766 { (case "(($ac_try" in
35767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35768 *) ac_try_echo
=$ac_try;;
35770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35771 (eval "$ac_try") 2>&5
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); }; }; then
35775 ac_header_compiler
=yes
35777 echo "$as_me: failed program was:" >&5
35778 sed 's/^/| /' conftest.
$ac_ext >&5
35780 ac_header_compiler
=no
35783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35785 echo "${ECHO_T}$ac_header_compiler" >&6; }
35787 # Is the header present?
35788 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
35789 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
35790 cat >conftest.
$ac_ext <<_ACEOF
35793 cat confdefs.h
>>conftest.
$ac_ext
35794 cat >>conftest.
$ac_ext <<_ACEOF
35795 /* end confdefs.h. */
35796 #include <zaptel/tonezone.h>
35798 if { (ac_try
="$ac_cpp conftest.$ac_ext"
35799 case "(($ac_try" in
35800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35801 *) ac_try_echo=$ac_try;;
35803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35806 grep -v '^ *+' conftest.er1 >conftest.err
35808 cat conftest.err >&5
35809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 (exit $ac_status); } >/dev/null; then
35811 if test -s conftest.err; then
35812 ac_cpp_err=$ac_c_preproc_warn_flag
35813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35820 if test -z "$ac_cpp_err"; then
35821 ac_header_preproc=yes
35823 echo "$as_me: failed program was:" >&5
35824 sed 's/^/| /' conftest.$ac_ext >&5
35826 ac_header_preproc=no
35829 rm -f conftest.err conftest.$ac_ext
35830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35831 echo "${ECHO_T}$ac_header_preproc" >&6; }
35833 # So? What about this header?
35834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35836 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
35837 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35838 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
35839 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
35840 ac_header_preproc=yes
35843 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
35844 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
35845 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
35846 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
35847 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
35848 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
35849 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
35850 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
35851 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
35852 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
35853 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
35854 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
35856 ## ------------------------------- ##
35857 ## Report this to www.asterisk.org ##
35858 ## ------------------------------- ##
35860 ) | sed "s/^/$as_me: WARNING: /" >&2
35863 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
35864 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
35865 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
35866 echo $ECHO_N "(cached) $ECHO_C" >&6
35868 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
35870 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
35871 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
35874 if test $ac_cv_header_zaptel_tonezone_h = yes; then
35875 TONEZONE_HEADER_FOUND=1
35877 TONEZONE_HEADER_FOUND=0
35883 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
35884 if test -n "${TONEZONE_MANDATORY}" ;
35886 { echo "$as_me:$LINENO: ***" >&5
35887 echo "$as_me: ***" >&6;}
35888 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
35889 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
35890 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
35891 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
35892 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
35893 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
35897 TONEZONE_INCLUDE=""
35902 cat >>confdefs.h <<_ACEOF
35903 #define HAVE_TONEZONE 1
35907 elif test -n "${TONEZONE_MANDATORY}";
35909 { echo "$as_me:$LINENO: ***" >&5
35910 echo "$as_me: ***" >&6;}
35911 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
35912 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
35913 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
35914 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
35915 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
35916 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
35923 if test "${USE_USB}" != "no"; then
35925 if test "x${USB_DIR}" != "x"; then
35926 if test -d ${USB_DIR}/lib; then
35927 pbxlibdir="-L${USB_DIR}/lib"
35929 pbxlibdir="-L${USB_DIR}"
35932 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
35933 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
35934 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
35935 echo $ECHO_N "(cached) $ECHO_C" >&6
35937 ac_check_lib_save_LIBS=$LIBS
35938 LIBS="-lusb ${pbxlibdir} $LIBS"
35939 cat >conftest.$ac_ext <<_ACEOF
35942 cat confdefs.h >>conftest.$ac_ext
35943 cat >>conftest.$ac_ext <<_ACEOF
35944 /* end confdefs.h. */
35946 /* Override any GCC internal prototype to avoid an error.
35947 Use char because int might match the return type of a GCC
35948 builtin and then its argument prototype would still apply. */
35956 return usb_init ();
35961 rm -f conftest.$ac_objext conftest$ac_exeext
35962 if { (ac_try="$ac_link"
35963 case "(($ac_try" in
35964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35965 *) ac_try_echo
=$ac_try;;
35967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35968 (eval "$ac_link") 2>conftest.er1
35970 grep -v '^ *+' conftest.er1
>conftest.err
35972 cat conftest.err
>&5
35973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); } &&
35975 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35976 { (case "(($ac_try" in
35977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35978 *) ac_try_echo=$ac_try;;
35980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35981 (eval "$ac_try") 2>&5
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); }; } &&
35985 { ac_try='test -s conftest$ac_exeext'
35986 { (case "(($ac_try" in
35987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35988 *) ac_try_echo
=$ac_try;;
35990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35991 (eval "$ac_try") 2>&5
35993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35994 (exit $ac_status); }; }; then
35995 ac_cv_lib_usb_usb_init
=yes
35997 echo "$as_me: failed program was:" >&5
35998 sed 's/^/| /' conftest.
$ac_ext >&5
36000 ac_cv_lib_usb_usb_init
=no
36003 rm -f core conftest.err conftest.
$ac_objext \
36004 conftest
$ac_exeext conftest.
$ac_ext
36005 LIBS
=$ac_check_lib_save_LIBS
36007 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
36008 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
36009 if test $ac_cv_lib_usb_usb_init = yes; then
36016 if test "${AST_USB_FOUND}" = "yes"; then
36018 USB_HEADER_FOUND
="1"
36019 if test "x${USB_DIR}" != "x"; then
36020 USB_LIB
="${pbxlibdir} ${USB_LIB}"
36021 USB_INCLUDE
="-I${USB_DIR}/include"
36022 saved_cppflags
="${CPPFLAGS}"
36023 CPPFLAGS
="${CPPFLAGS} -I${USB_DIR}/include"
36024 if test "xusb.h" != "x" ; then
36025 as_ac_Header
=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
36026 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36027 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
36028 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
36029 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36030 echo $ECHO_N "(cached) $ECHO_C" >&6
36032 ac_res
=`eval echo '${'$as_ac_Header'}'`
36033 { echo "$as_me:$LINENO: result: $ac_res" >&5
36034 echo "${ECHO_T}$ac_res" >&6; }
36036 # Is the header compilable?
36037 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
36038 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
36039 cat >conftest.
$ac_ext <<_ACEOF
36042 cat confdefs.h
>>conftest.
$ac_ext
36043 cat >>conftest.
$ac_ext <<_ACEOF
36044 /* end confdefs.h. */
36045 $ac_includes_default
36046 #include <${USB_DIR}/include/usb.h>
36048 rm -f conftest.
$ac_objext
36049 if { (ac_try
="$ac_compile"
36050 case "(($ac_try" in
36051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36052 *) ac_try_echo=$ac_try;;
36054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36055 (eval "$ac_compile") 2>conftest.er1
36057 grep -v '^ *+' conftest.er1 >conftest.err
36059 cat conftest.err >&5
36060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061 (exit $ac_status); } &&
36062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36063 { (case "(($ac_try" in
36064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36065 *) ac_try_echo
=$ac_try;;
36067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36068 (eval "$ac_try") 2>&5
36070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36071 (exit $ac_status); }; } &&
36072 { ac_try
='test -s conftest.$ac_objext'
36073 { (case "(($ac_try" in
36074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36075 *) ac_try_echo=$ac_try;;
36077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36078 (eval "$ac_try") 2>&5
36080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36081 (exit $ac_status); }; }; then
36082 ac_header_compiler=yes
36084 echo "$as_me: failed program was:" >&5
36085 sed 's/^/| /' conftest.$ac_ext >&5
36087 ac_header_compiler=no
36090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36092 echo "${ECHO_T}$ac_header_compiler" >&6; }
36094 # Is the header present?
36095 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
36096 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
36097 cat >conftest.$ac_ext <<_ACEOF
36100 cat confdefs.h >>conftest.$ac_ext
36101 cat >>conftest.$ac_ext <<_ACEOF
36102 /* end confdefs.h. */
36103 #include <${USB_DIR}/include/usb.h>
36105 if { (ac_try="$ac_cpp conftest.$ac_ext"
36106 case "(($ac_try" in
36107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36108 *) ac_try_echo
=$ac_try;;
36110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36113 grep -v '^ *+' conftest.er1
>conftest.err
36115 cat conftest.err
>&5
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 (exit $ac_status); } >/dev
/null
; then
36118 if test -s conftest.err
; then
36119 ac_cpp_err
=$ac_c_preproc_warn_flag
36120 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
36127 if test -z "$ac_cpp_err"; then
36128 ac_header_preproc
=yes
36130 echo "$as_me: failed program was:" >&5
36131 sed 's/^/| /' conftest.
$ac_ext >&5
36133 ac_header_preproc
=no
36136 rm -f conftest.err conftest.
$ac_ext
36137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36138 echo "${ECHO_T}$ac_header_preproc" >&6; }
36140 # So? What about this header?
36141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36143 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
36144 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36145 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
36146 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
36147 ac_header_preproc
=yes
36150 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
36151 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
36152 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
36153 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
36154 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
36155 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
36156 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
36157 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
36158 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
36159 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
36160 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
36161 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
36163 ## ------------------------------- ##
36164 ## Report this to www.asterisk.org ##
36165 ## ------------------------------- ##
36167 ) |
sed "s/^/$as_me: WARNING: /" >&2
36170 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
36171 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
36172 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36173 echo $ECHO_N "(cached) $ECHO_C" >&6
36175 eval "$as_ac_Header=\$ac_header_preproc"
36177 ac_res
=`eval echo '${'$as_ac_Header'}'`
36178 { echo "$as_me:$LINENO: result: $ac_res" >&5
36179 echo "${ECHO_T}$ac_res" >&6; }
36182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36190 CPPFLAGS
="${saved_cppflags}"
36192 if test "xusb.h" != "x" ; then
36193 if test "${ac_cv_header_usb_h+set}" = set; then
36194 { echo "$as_me:$LINENO: checking for usb.h" >&5
36195 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
36196 if test "${ac_cv_header_usb_h+set}" = set; then
36197 echo $ECHO_N "(cached) $ECHO_C" >&6
36199 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
36200 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
36202 # Is the header compilable?
36203 { echo "$as_me:$LINENO: checking usb.h usability" >&5
36204 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
36205 cat >conftest.
$ac_ext <<_ACEOF
36208 cat confdefs.h
>>conftest.
$ac_ext
36209 cat >>conftest.
$ac_ext <<_ACEOF
36210 /* end confdefs.h. */
36211 $ac_includes_default
36214 rm -f conftest.
$ac_objext
36215 if { (ac_try
="$ac_compile"
36216 case "(($ac_try" in
36217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36218 *) ac_try_echo=$ac_try;;
36220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36221 (eval "$ac_compile") 2>conftest.er1
36223 grep -v '^ *+' conftest.er1 >conftest.err
36225 cat conftest.err >&5
36226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36227 (exit $ac_status); } &&
36228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36229 { (case "(($ac_try" in
36230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36231 *) ac_try_echo
=$ac_try;;
36233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36234 (eval "$ac_try") 2>&5
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); }; } &&
36238 { ac_try
='test -s conftest.$ac_objext'
36239 { (case "(($ac_try" in
36240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36241 *) ac_try_echo=$ac_try;;
36243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36244 (eval "$ac_try") 2>&5
36246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247 (exit $ac_status); }; }; then
36248 ac_header_compiler=yes
36250 echo "$as_me: failed program was:" >&5
36251 sed 's/^/| /' conftest.$ac_ext >&5
36253 ac_header_compiler=no
36256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36258 echo "${ECHO_T}$ac_header_compiler" >&6; }
36260 # Is the header present?
36261 { echo "$as_me:$LINENO: checking usb.h presence" >&5
36262 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
36263 cat >conftest.$ac_ext <<_ACEOF
36266 cat confdefs.h >>conftest.$ac_ext
36267 cat >>conftest.$ac_ext <<_ACEOF
36268 /* end confdefs.h. */
36271 if { (ac_try="$ac_cpp conftest.$ac_ext"
36272 case "(($ac_try" in
36273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36274 *) ac_try_echo
=$ac_try;;
36276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36279 grep -v '^ *+' conftest.er1
>conftest.err
36281 cat conftest.err
>&5
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); } >/dev
/null
; then
36284 if test -s conftest.err
; then
36285 ac_cpp_err
=$ac_c_preproc_warn_flag
36286 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
36293 if test -z "$ac_cpp_err"; then
36294 ac_header_preproc
=yes
36296 echo "$as_me: failed program was:" >&5
36297 sed 's/^/| /' conftest.
$ac_ext >&5
36299 ac_header_preproc
=no
36302 rm -f conftest.err conftest.
$ac_ext
36303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36304 echo "${ECHO_T}$ac_header_preproc" >&6; }
36306 # So? What about this header?
36307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36309 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
36310 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36311 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
36312 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
36313 ac_header_preproc
=yes
36316 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
36317 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
36318 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
36319 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
36320 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
36321 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
36322 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
36323 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
36324 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
36325 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
36326 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
36327 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
36329 ## ------------------------------- ##
36330 ## Report this to www.asterisk.org ##
36331 ## ------------------------------- ##
36333 ) |
sed "s/^/$as_me: WARNING: /" >&2
36336 { echo "$as_me:$LINENO: checking for usb.h" >&5
36337 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
36338 if test "${ac_cv_header_usb_h+set}" = set; then
36339 echo $ECHO_N "(cached) $ECHO_C" >&6
36341 ac_cv_header_usb_h
=$ac_header_preproc
36343 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
36344 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
36347 if test $ac_cv_header_usb_h = yes; then
36356 if test "x${USB_HEADER_FOUND}" = "x0" ; then
36357 if test -n "${USB_MANDATORY}" ;
36359 { echo "$as_me:$LINENO: ***" >&5
36360 echo "$as_me: ***" >&6;}
36361 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
36362 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
36363 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
36364 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
36365 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
36366 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
36375 cat >>confdefs.h
<<_ACEOF
36380 elif test -n "${USB_MANDATORY}";
36382 { echo "$as_me:$LINENO: ***" >&5
36383 echo "$as_me: ***" >&6;}
36384 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
36385 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
36386 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
36387 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
36388 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
36389 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
36396 if test "${USE_VORBIS}" != "no"; then
36398 if test "x${VORBIS_DIR}" != "x"; then
36399 if test -d ${VORBIS_DIR}/lib
; then
36400 pbxlibdir
="-L${VORBIS_DIR}/lib"
36402 pbxlibdir
="-L${VORBIS_DIR}"
36405 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
36406 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
36407 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
36408 echo $ECHO_N "(cached) $ECHO_C" >&6
36410 ac_check_lib_save_LIBS
=$LIBS
36411 LIBS
="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
36412 cat >conftest.
$ac_ext <<_ACEOF
36415 cat confdefs.h
>>conftest.
$ac_ext
36416 cat >>conftest.
$ac_ext <<_ACEOF
36417 /* end confdefs.h. */
36419 /* Override any GCC internal prototype to avoid an error.
36420 Use char because int might match the return type of a GCC
36421 builtin and then its argument prototype would still apply. */
36425 char vorbis_info_init ();
36429 return vorbis_info_init ();
36434 rm -f conftest.
$ac_objext conftest
$ac_exeext
36435 if { (ac_try
="$ac_link"
36436 case "(($ac_try" in
36437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36438 *) ac_try_echo=$ac_try;;
36440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36441 (eval "$ac_link") 2>conftest.er1
36443 grep -v '^ *+' conftest.er1 >conftest.err
36445 cat conftest.err >&5
36446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36447 (exit $ac_status); } &&
36448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36449 { (case "(($ac_try" in
36450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36451 *) ac_try_echo
=$ac_try;;
36453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36454 (eval "$ac_try") 2>&5
36456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457 (exit $ac_status); }; } &&
36458 { ac_try
='test -s conftest$ac_exeext'
36459 { (case "(($ac_try" in
36460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36461 *) ac_try_echo=$ac_try;;
36463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36464 (eval "$ac_try") 2>&5
36466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36467 (exit $ac_status); }; }; then
36468 ac_cv_lib_vorbis_vorbis_info_init=yes
36470 echo "$as_me: failed program was:" >&5
36471 sed 's/^/| /' conftest.$ac_ext >&5
36473 ac_cv_lib_vorbis_vorbis_info_init=no
36476 rm -f core conftest.err conftest.$ac_objext \
36477 conftest$ac_exeext conftest.$ac_ext
36478 LIBS=$ac_check_lib_save_LIBS
36480 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
36481 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
36482 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
36483 AST_VORBIS_FOUND=yes
36485 AST_VORBIS_FOUND=no
36489 if test "${AST_VORBIS_FOUND}" = "yes"; then
36490 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
36491 VORBIS_HEADER_FOUND="1"
36492 if test "x${VORBIS_DIR}" != "x"; then
36493 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
36494 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
36495 saved_cppflags="${CPPFLAGS}"
36496 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
36497 if test "xvorbis/codec.h" != "x" ; then
36498 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" |
$as_tr_sh`
36499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36500 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
36501 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
36502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36503 echo $ECHO_N "(cached) $ECHO_C" >&6
36505 ac_res=`eval echo '${'$as_ac_Header'}'`
36506 { echo "$as_me:$LINENO: result: $ac_res" >&5
36507 echo "${ECHO_T}$ac_res" >&6; }
36509 # Is the header compilable?
36510 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
36511 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
36512 cat >conftest.$ac_ext <<_ACEOF
36515 cat confdefs.h >>conftest.$ac_ext
36516 cat >>conftest.$ac_ext <<_ACEOF
36517 /* end confdefs.h. */
36518 $ac_includes_default
36519 #include <${VORBIS_DIR}/include/vorbis/codec.h>
36521 rm -f conftest.$ac_objext
36522 if { (ac_try="$ac_compile"
36523 case "(($ac_try" in
36524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36525 *) ac_try_echo
=$ac_try;;
36527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36528 (eval "$ac_compile") 2>conftest.er1
36530 grep -v '^ *+' conftest.er1
>conftest.err
36532 cat conftest.err
>&5
36533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534 (exit $ac_status); } &&
36535 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36536 { (case "(($ac_try" in
36537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36538 *) ac_try_echo=$ac_try;;
36540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36541 (eval "$ac_try") 2>&5
36543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544 (exit $ac_status); }; } &&
36545 { ac_try='test -s conftest.$ac_objext'
36546 { (case "(($ac_try" in
36547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36548 *) ac_try_echo
=$ac_try;;
36550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36551 (eval "$ac_try") 2>&5
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); }; }; then
36555 ac_header_compiler
=yes
36557 echo "$as_me: failed program was:" >&5
36558 sed 's/^/| /' conftest.
$ac_ext >&5
36560 ac_header_compiler
=no
36563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36565 echo "${ECHO_T}$ac_header_compiler" >&6; }
36567 # Is the header present?
36568 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
36569 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
36570 cat >conftest.
$ac_ext <<_ACEOF
36573 cat confdefs.h
>>conftest.
$ac_ext
36574 cat >>conftest.
$ac_ext <<_ACEOF
36575 /* end confdefs.h. */
36576 #include <${VORBIS_DIR}/include/vorbis/codec.h>
36578 if { (ac_try
="$ac_cpp conftest.$ac_ext"
36579 case "(($ac_try" in
36580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36581 *) ac_try_echo=$ac_try;;
36583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36586 grep -v '^ *+' conftest.er1 >conftest.err
36588 cat conftest.err >&5
36589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36590 (exit $ac_status); } >/dev/null; then
36591 if test -s conftest.err; then
36592 ac_cpp_err=$ac_c_preproc_warn_flag
36593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36600 if test -z "$ac_cpp_err"; then
36601 ac_header_preproc=yes
36603 echo "$as_me: failed program was:" >&5
36604 sed 's/^/| /' conftest.$ac_ext >&5
36606 ac_header_preproc=no
36609 rm -f conftest.err conftest.$ac_ext
36610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36611 echo "${ECHO_T}$ac_header_preproc" >&6; }
36613 # So? What about this header?
36614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36616 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
36617 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36618 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
36619 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
36620 ac_header_preproc=yes
36623 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
36624 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
36625 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
36626 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
36627 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
36628 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
36629 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
36630 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
36631 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
36632 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
36633 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
36634 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
36636 ## ------------------------------- ##
36637 ## Report this to www.asterisk.org ##
36638 ## ------------------------------- ##
36640 ) | sed "s/^/$as_me: WARNING: /" >&2
36643 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
36644 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
36645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36646 echo $ECHO_N "(cached) $ECHO_C" >&6
36648 eval "$as_ac_Header=\$ac_header_preproc"
36650 ac_res=`eval echo '${'$as_ac_Header'}'`
36651 { echo "$as_me:$LINENO: result: $ac_res" >&5
36652 echo "${ECHO_T}$ac_res" >&6; }
36655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36656 VORBIS_HEADER_FOUND=1
36658 VORBIS_HEADER_FOUND=0
36663 CPPFLAGS="${saved_cppflags}"
36665 if test "xvorbis/codec.h" != "x" ; then
36666 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
36667 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
36668 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
36669 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
36670 echo $ECHO_N "(cached) $ECHO_C" >&6
36672 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
36673 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
36675 # Is the header compilable?
36676 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
36677 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
36678 cat >conftest.$ac_ext <<_ACEOF
36681 cat confdefs.h >>conftest.$ac_ext
36682 cat >>conftest.$ac_ext <<_ACEOF
36683 /* end confdefs.h. */
36684 $ac_includes_default
36685 #include <vorbis/codec.h>
36687 rm -f conftest.$ac_objext
36688 if { (ac_try="$ac_compile"
36689 case "(($ac_try" in
36690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36691 *) ac_try_echo
=$ac_try;;
36693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36694 (eval "$ac_compile") 2>conftest.er1
36696 grep -v '^ *+' conftest.er1
>conftest.err
36698 cat conftest.err
>&5
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); } &&
36701 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36702 { (case "(($ac_try" in
36703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36704 *) ac_try_echo=$ac_try;;
36706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36707 (eval "$ac_try") 2>&5
36709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); }; } &&
36711 { ac_try='test -s conftest.$ac_objext'
36712 { (case "(($ac_try" in
36713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36714 *) ac_try_echo
=$ac_try;;
36716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36717 (eval "$ac_try") 2>&5
36719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720 (exit $ac_status); }; }; then
36721 ac_header_compiler
=yes
36723 echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.
$ac_ext >&5
36726 ac_header_compiler
=no
36729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36731 echo "${ECHO_T}$ac_header_compiler" >&6; }
36733 # Is the header present?
36734 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
36735 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
36736 cat >conftest.
$ac_ext <<_ACEOF
36739 cat confdefs.h
>>conftest.
$ac_ext
36740 cat >>conftest.
$ac_ext <<_ACEOF
36741 /* end confdefs.h. */
36742 #include <vorbis/codec.h>
36744 if { (ac_try
="$ac_cpp conftest.$ac_ext"
36745 case "(($ac_try" in
36746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36747 *) ac_try_echo=$ac_try;;
36749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36752 grep -v '^ *+' conftest.er1 >conftest.err
36754 cat conftest.err >&5
36755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756 (exit $ac_status); } >/dev/null; then
36757 if test -s conftest.err; then
36758 ac_cpp_err=$ac_c_preproc_warn_flag
36759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36766 if test -z "$ac_cpp_err"; then
36767 ac_header_preproc=yes
36769 echo "$as_me: failed program was:" >&5
36770 sed 's/^/| /' conftest.$ac_ext >&5
36772 ac_header_preproc=no
36775 rm -f conftest.err conftest.$ac_ext
36776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36777 echo "${ECHO_T}$ac_header_preproc" >&6; }
36779 # So? What about this header?
36780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36782 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
36783 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36784 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
36785 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
36786 ac_header_preproc=yes
36789 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
36790 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
36791 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
36792 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
36793 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
36794 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
36795 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
36796 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
36797 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
36798 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
36799 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
36800 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
36802 ## ------------------------------- ##
36803 ## Report this to www.asterisk.org ##
36804 ## ------------------------------- ##
36806 ) | sed "s/^/$as_me: WARNING: /" >&2
36809 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
36810 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
36811 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
36812 echo $ECHO_N "(cached) $ECHO_C" >&6
36814 ac_cv_header_vorbis_codec_h=$ac_header_preproc
36816 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
36817 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
36820 if test $ac_cv_header_vorbis_codec_h = yes; then
36821 VORBIS_HEADER_FOUND=1
36823 VORBIS_HEADER_FOUND=0
36829 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
36830 if test -n "${VORBIS_MANDATORY}" ;
36832 { echo "$as_me:$LINENO: ***" >&5
36833 echo "$as_me: ***" >&6;}
36834 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
36835 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
36836 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
36837 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
36838 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
36839 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
36848 cat >>confdefs.h <<_ACEOF
36849 #define HAVE_VORBIS 1
36853 elif test -n "${VORBIS_MANDATORY}";
36855 { echo "$as_me:$LINENO: ***" >&5
36856 echo "$as_me: ***" >&6;}
36857 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
36858 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
36859 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
36860 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
36861 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
36862 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
36869 ac_cpp='$CXXCPP $CPPFLAGS'
36870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36875 if test "${USE_VPB}" != "no"; then
36876 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
36877 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
36878 saved_libs="${LIBS}"
36879 saved_cppflags="${CPPFLAGS}"
36880 if test "x${VPB_DIR}" != "x"; then
36881 if test -d ${VPB_DIR}/lib; then
36882 vpblibdir=${VPB_DIR}/lib
36884 vpblibdir=${VPB_DIR}
36886 LIBS="${LIBS} -L${vpblibdir}"
36887 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
36889 LIBS="${LIBS} -lvpb -lpthread"
36890 cat >conftest.$ac_ext <<_ACEOF
36894 cat confdefs.h >>conftest.$ac_ext
36895 cat >>conftest.$ac_ext <<_ACEOF
36896 /* end confdefs.h. */
36897 #include <vpbapi.h>
36901 int q = vpb_open(0,0);
36907 rm -f conftest.$ac_objext conftest$ac_exeext
36908 if { (ac_try="$ac_link"
36909 case "(($ac_try" in
36910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36911 *) ac_try_echo
=$ac_try;;
36913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36914 (eval "$ac_link") 2>conftest.er1
36916 grep -v '^ *+' conftest.er1
>conftest.err
36918 cat conftest.err
>&5
36919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920 (exit $ac_status); } &&
36921 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36922 { (case "(($ac_try" in
36923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36924 *) ac_try_echo=$ac_try;;
36926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36927 (eval "$ac_try") 2>&5
36929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930 (exit $ac_status); }; } &&
36931 { ac_try='test -s conftest$ac_exeext'
36932 { (case "(($ac_try" in
36933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36934 *) ac_try_echo
=$ac_try;;
36936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36937 (eval "$ac_try") 2>&5
36939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36940 (exit $ac_status); }; }; then
36941 { echo "$as_me:$LINENO: result: yes" >&5
36942 echo "${ECHO_T}yes" >&6; }
36943 ac_cv_lib_vpb_vpb_open
="yes"
36946 echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.
$ac_ext >&5
36949 { echo "$as_me:$LINENO: result: no" >&5
36950 echo "${ECHO_T}no" >&6; }
36951 ac_cv_lib_vpb_vpb_open
="no"
36956 rm -f core conftest.err conftest.
$ac_objext \
36957 conftest
$ac_exeext conftest.
$ac_ext
36958 LIBS
="${saved_libs}"
36959 CPPFLAGS
="${saved_cppflags}"
36960 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
36962 if test "${VPB_DIR}" != ""; then
36963 VPB_LIB
="-L${vpblibdir} ${VPB_LIB}"
36964 VPB_INCLUDE
="-I${VPB_DIR}/include"
36968 cat >>confdefs.h
<<\_ACEOF
36972 elif test -n "${VPB_MANDATORY}"; then
36973 { echo "$as_me:$LINENO: ***" >&5
36974 echo "$as_me: ***" >&6;}
36975 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
36976 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
36977 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
36978 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
36979 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
36980 echo "$as_me: *** including --without-vpb." >&6;}
36986 ac_cpp
='$CPP $CPPFLAGS'
36987 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36988 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36989 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
36993 if test "${USE_ZLIB}" != "no"; then
36995 if test "x${ZLIB_DIR}" != "x"; then
36996 if test -d ${ZLIB_DIR}/lib
; then
36997 pbxlibdir
="-L${ZLIB_DIR}/lib"
36999 pbxlibdir
="-L${ZLIB_DIR}"
37002 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
37003 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
37004 if test "${ac_cv_lib_z_compress+set}" = set; then
37005 echo $ECHO_N "(cached) $ECHO_C" >&6
37007 ac_check_lib_save_LIBS
=$LIBS
37008 LIBS
="-lz ${pbxlibdir} $LIBS"
37009 cat >conftest.
$ac_ext <<_ACEOF
37012 cat confdefs.h
>>conftest.
$ac_ext
37013 cat >>conftest.
$ac_ext <<_ACEOF
37014 /* end confdefs.h. */
37016 /* Override any GCC internal prototype to avoid an error.
37017 Use char because int might match the return type of a GCC
37018 builtin and then its argument prototype would still apply. */
37026 return compress ();
37031 rm -f conftest.
$ac_objext conftest
$ac_exeext
37032 if { (ac_try
="$ac_link"
37033 case "(($ac_try" in
37034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37035 *) ac_try_echo=$ac_try;;
37037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37038 (eval "$ac_link") 2>conftest.er1
37040 grep -v '^ *+' conftest.er1 >conftest.err
37042 cat conftest.err >&5
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); } &&
37045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37046 { (case "(($ac_try" in
37047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37048 *) ac_try_echo
=$ac_try;;
37050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37051 (eval "$ac_try") 2>&5
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); }; } &&
37055 { ac_try
='test -s conftest$ac_exeext'
37056 { (case "(($ac_try" in
37057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37058 *) ac_try_echo=$ac_try;;
37060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37061 (eval "$ac_try") 2>&5
37063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064 (exit $ac_status); }; }; then
37065 ac_cv_lib_z_compress=yes
37067 echo "$as_me: failed program was:" >&5
37068 sed 's/^/| /' conftest.$ac_ext >&5
37070 ac_cv_lib_z_compress=no
37073 rm -f core conftest.err conftest.$ac_objext \
37074 conftest$ac_exeext conftest.$ac_ext
37075 LIBS=$ac_check_lib_save_LIBS
37077 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
37078 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
37079 if test $ac_cv_lib_z_compress = yes; then
37086 if test "${AST_ZLIB_FOUND}" = "yes"; then
37088 ZLIB_HEADER_FOUND="1"
37089 if test "x${ZLIB_DIR}" != "x"; then
37090 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
37091 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
37092 saved_cppflags="${CPPFLAGS}"
37093 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
37094 if test "xzlib.h" != "x" ; then
37095 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" |
$as_tr_sh`
37096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37097 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
37098 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
37099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37100 echo $ECHO_N "(cached) $ECHO_C" >&6
37102 ac_res=`eval echo '${'$as_ac_Header'}'`
37103 { echo "$as_me:$LINENO: result: $ac_res" >&5
37104 echo "${ECHO_T}$ac_res" >&6; }
37106 # Is the header compilable?
37107 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
37108 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
37109 cat >conftest.$ac_ext <<_ACEOF
37112 cat confdefs.h >>conftest.$ac_ext
37113 cat >>conftest.$ac_ext <<_ACEOF
37114 /* end confdefs.h. */
37115 $ac_includes_default
37116 #include <${ZLIB_DIR}/include/zlib.h>
37118 rm -f conftest.$ac_objext
37119 if { (ac_try="$ac_compile"
37120 case "(($ac_try" in
37121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37122 *) ac_try_echo
=$ac_try;;
37124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37125 (eval "$ac_compile") 2>conftest.er1
37127 grep -v '^ *+' conftest.er1
>conftest.err
37129 cat conftest.err
>&5
37130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37131 (exit $ac_status); } &&
37132 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37133 { (case "(($ac_try" in
37134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37135 *) ac_try_echo=$ac_try;;
37137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37138 (eval "$ac_try") 2>&5
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); }; } &&
37142 { ac_try='test -s conftest.$ac_objext'
37143 { (case "(($ac_try" in
37144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37145 *) ac_try_echo
=$ac_try;;
37147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37148 (eval "$ac_try") 2>&5
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); }; }; then
37152 ac_header_compiler
=yes
37154 echo "$as_me: failed program was:" >&5
37155 sed 's/^/| /' conftest.
$ac_ext >&5
37157 ac_header_compiler
=no
37160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37162 echo "${ECHO_T}$ac_header_compiler" >&6; }
37164 # Is the header present?
37165 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
37166 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
37167 cat >conftest.
$ac_ext <<_ACEOF
37170 cat confdefs.h
>>conftest.
$ac_ext
37171 cat >>conftest.
$ac_ext <<_ACEOF
37172 /* end confdefs.h. */
37173 #include <${ZLIB_DIR}/include/zlib.h>
37175 if { (ac_try
="$ac_cpp conftest.$ac_ext"
37176 case "(($ac_try" in
37177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37178 *) ac_try_echo=$ac_try;;
37180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37183 grep -v '^ *+' conftest.er1 >conftest.err
37185 cat conftest.err >&5
37186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187 (exit $ac_status); } >/dev/null; then
37188 if test -s conftest.err; then
37189 ac_cpp_err=$ac_c_preproc_warn_flag
37190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37197 if test -z "$ac_cpp_err"; then
37198 ac_header_preproc=yes
37200 echo "$as_me: failed program was:" >&5
37201 sed 's/^/| /' conftest.$ac_ext >&5
37203 ac_header_preproc=no
37206 rm -f conftest.err conftest.$ac_ext
37207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37208 echo "${ECHO_T}$ac_header_preproc" >&6; }
37210 # So? What about this header?
37211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37213 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
37214 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37215 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
37216 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
37217 ac_header_preproc=yes
37220 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
37221 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
37222 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
37223 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
37224 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
37225 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
37226 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
37227 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
37228 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
37229 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
37230 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
37231 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
37233 ## ------------------------------- ##
37234 ## Report this to www.asterisk.org ##
37235 ## ------------------------------- ##
37237 ) | sed "s/^/$as_me: WARNING: /" >&2
37240 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
37241 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
37242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37243 echo $ECHO_N "(cached) $ECHO_C" >&6
37245 eval "$as_ac_Header=\$ac_header_preproc"
37247 ac_res=`eval echo '${'$as_ac_Header'}'`
37248 { echo "$as_me:$LINENO: result: $ac_res" >&5
37249 echo "${ECHO_T}$ac_res" >&6; }
37252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37253 ZLIB_HEADER_FOUND=1
37255 ZLIB_HEADER_FOUND=0
37260 CPPFLAGS="${saved_cppflags}"
37262 if test "xzlib.h" != "x" ; then
37263 if test "${ac_cv_header_zlib_h+set}" = set; then
37264 { echo "$as_me:$LINENO: checking for zlib.h" >&5
37265 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
37266 if test "${ac_cv_header_zlib_h+set}" = set; then
37267 echo $ECHO_N "(cached) $ECHO_C" >&6
37269 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
37270 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
37272 # Is the header compilable?
37273 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
37274 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
37275 cat >conftest.$ac_ext <<_ACEOF
37278 cat confdefs.h >>conftest.$ac_ext
37279 cat >>conftest.$ac_ext <<_ACEOF
37280 /* end confdefs.h. */
37281 $ac_includes_default
37284 rm -f conftest.$ac_objext
37285 if { (ac_try="$ac_compile"
37286 case "(($ac_try" in
37287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37288 *) ac_try_echo
=$ac_try;;
37290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37291 (eval "$ac_compile") 2>conftest.er1
37293 grep -v '^ *+' conftest.er1
>conftest.err
37295 cat conftest.err
>&5
37296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297 (exit $ac_status); } &&
37298 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37299 { (case "(($ac_try" in
37300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37301 *) ac_try_echo=$ac_try;;
37303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37304 (eval "$ac_try") 2>&5
37306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307 (exit $ac_status); }; } &&
37308 { ac_try='test -s conftest.$ac_objext'
37309 { (case "(($ac_try" in
37310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37311 *) ac_try_echo
=$ac_try;;
37313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37314 (eval "$ac_try") 2>&5
37316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37317 (exit $ac_status); }; }; then
37318 ac_header_compiler
=yes
37320 echo "$as_me: failed program was:" >&5
37321 sed 's/^/| /' conftest.
$ac_ext >&5
37323 ac_header_compiler
=no
37326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37327 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37328 echo "${ECHO_T}$ac_header_compiler" >&6; }
37330 # Is the header present?
37331 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
37332 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
37333 cat >conftest.
$ac_ext <<_ACEOF
37336 cat confdefs.h
>>conftest.
$ac_ext
37337 cat >>conftest.
$ac_ext <<_ACEOF
37338 /* end confdefs.h. */
37341 if { (ac_try
="$ac_cpp conftest.$ac_ext"
37342 case "(($ac_try" in
37343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37344 *) ac_try_echo=$ac_try;;
37346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37349 grep -v '^ *+' conftest.er1 >conftest.err
37351 cat conftest.err >&5
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); } >/dev/null; then
37354 if test -s conftest.err; then
37355 ac_cpp_err=$ac_c_preproc_warn_flag
37356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37363 if test -z "$ac_cpp_err"; then
37364 ac_header_preproc=yes
37366 echo "$as_me: failed program was:" >&5
37367 sed 's/^/| /' conftest.$ac_ext >&5
37369 ac_header_preproc=no
37372 rm -f conftest.err conftest.$ac_ext
37373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37374 echo "${ECHO_T}$ac_header_preproc" >&6; }
37376 # So? What about this header?
37377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37379 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
37380 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37381 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
37382 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
37383 ac_header_preproc=yes
37386 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
37387 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
37388 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
37389 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
37390 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
37391 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
37392 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
37393 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
37394 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
37395 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
37396 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
37397 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
37399 ## ------------------------------- ##
37400 ## Report this to www.asterisk.org ##
37401 ## ------------------------------- ##
37403 ) | sed "s/^/$as_me: WARNING: /" >&2
37406 { echo "$as_me:$LINENO: checking for zlib.h" >&5
37407 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
37408 if test "${ac_cv_header_zlib_h+set}" = set; then
37409 echo $ECHO_N "(cached) $ECHO_C" >&6
37411 ac_cv_header_zlib_h=$ac_header_preproc
37413 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
37414 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
37417 if test $ac_cv_header_zlib_h = yes; then
37418 ZLIB_HEADER_FOUND=1
37420 ZLIB_HEADER_FOUND=0
37426 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
37427 if test -n "${ZLIB_MANDATORY}" ;
37429 { echo "$as_me:$LINENO: ***" >&5
37430 echo "$as_me: ***" >&6;}
37431 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
37432 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
37433 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
37434 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
37435 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
37436 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
37445 cat >>confdefs.h <<_ACEOF
37446 #define HAVE_ZLIB 1
37450 elif test -n "${ZLIB_MANDATORY}";
37452 { echo "$as_me:$LINENO: ***" >&5
37453 echo "$as_me: ***" >&6;}
37454 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
37455 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
37456 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37457 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37458 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
37459 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
37465 if test "${USE_ZAPTEL}" != "no"; then
37466 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
37467 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
37468 saved_cppflags="${CPPFLAGS}"
37469 if test "x${ZAPTEL_DIR}" != "x"; then
37470 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
37472 cat >conftest.$ac_ext <<_ACEOF
37476 cat confdefs.h >>conftest.$ac_ext
37477 cat >>conftest.$ac_ext <<_ACEOF
37478 /* end confdefs.h. */
37479 #include <zaptel/zaptel.h>
37483 int foo = ZT_DIAL_OP_CANCEL;
37489 rm -f conftest.$ac_objext
37490 if { (ac_try="$ac_compile"
37491 case "(($ac_try" in
37492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37493 *) ac_try_echo
=$ac_try;;
37495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37496 (eval "$ac_compile") 2>conftest.er1
37498 grep -v '^ *+' conftest.er1
>conftest.err
37500 cat conftest.err
>&5
37501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502 (exit $ac_status); } &&
37503 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37504 { (case "(($ac_try" in
37505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37506 *) ac_try_echo=$ac_try;;
37508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37509 (eval "$ac_try") 2>&5
37511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512 (exit $ac_status); }; } &&
37513 { ac_try='test -s conftest.$ac_objext'
37514 { (case "(($ac_try" in
37515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37516 *) ac_try_echo
=$ac_try;;
37518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37519 (eval "$ac_try") 2>&5
37521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37522 (exit $ac_status); }; }; then
37523 { echo "$as_me:$LINENO: result: yes" >&5
37524 echo "${ECHO_T}yes" >&6; }
37525 ac_cv_zaptel_h
="yes"
37528 echo "$as_me: failed program was:" >&5
37529 sed 's/^/| /' conftest.
$ac_ext >&5
37531 { echo "$as_me:$LINENO: result: no" >&5
37532 echo "${ECHO_T}no" >&6; }
37533 ac_cv_zaptel_h
="no"
37538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37539 CPPFLAGS
="${saved_cppflags}"
37540 if test "${ac_cv_zaptel_h}" = "yes"; then
37541 if test "${ZAPTEL_DIR}" != ""; then
37542 ZAPTEL_INCLUDE
="-I${ZAPTEL_DIR}/include"
37546 cat >>confdefs.h
<<\_ACEOF
37547 #define HAVE_ZAPTEL 1
37550 elif test -n "${ZAPTEL_MANDATORY}";
37552 { echo "$as_me:$LINENO: ***" >&5
37553 echo "$as_me: ***" >&6;}
37554 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
37555 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
37556 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37557 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37558 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
37559 echo "$as_me: *** including --without-zaptel." >&6;}
37564 if test "${PBX_ZAPTEL}" = 1; then
37565 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
37566 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
37567 saved_cppflags
="${CPPFLAGS}"
37568 if test "x${ZAPTEL_DIR}" != "x"; then
37569 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
37571 cat >conftest.
$ac_ext <<_ACEOF
37575 cat confdefs.h
>>conftest.
$ac_ext
37576 cat >>conftest.
$ac_ext <<_ACEOF
37577 /* end confdefs.h. */
37578 #include <zaptel/zaptel.h>
37582 int foo = ZT_EVENT_REMOVED;
37588 rm -f conftest.
$ac_objext
37589 if { (ac_try
="$ac_compile"
37590 case "(($ac_try" in
37591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37592 *) ac_try_echo=$ac_try;;
37594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37595 (eval "$ac_compile") 2>conftest.er1
37597 grep -v '^ *+' conftest.er1 >conftest.err
37599 cat conftest.err >&5
37600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601 (exit $ac_status); } &&
37602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37603 { (case "(($ac_try" in
37604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37605 *) ac_try_echo
=$ac_try;;
37607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37608 (eval "$ac_try") 2>&5
37610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); }; } &&
37612 { ac_try
='test -s conftest.$ac_objext'
37613 { (case "(($ac_try" in
37614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37615 *) ac_try_echo=$ac_try;;
37617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37618 (eval "$ac_try") 2>&5
37620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621 (exit $ac_status); }; }; then
37622 { echo "$as_me:$LINENO: result: yes" >&5
37623 echo "${ECHO_T}yes" >&6; }
37624 ac_cv_zaptel_vldtmf="yes"
37627 echo "$as_me: failed program was:" >&5
37628 sed 's/^/| /' conftest.$ac_ext >&5
37630 { echo "$as_me:$LINENO: result: no" >&5
37631 echo "${ECHO_T}no" >&6; }
37632 ac_cv_zaptel_vldtmf="no"
37637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37638 CPPFLAGS="${saved_cppflags}"
37639 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
37640 PBX_ZAPTEL_VLDTMF=1
37642 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
37643 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
37644 saved_cppflags="${CPPFLAGS}"
37645 if test "x${ZAPTEL_DIR}" != "x"; then
37646 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
37648 cat >conftest.$ac_ext <<_ACEOF
37652 cat confdefs.h >>conftest.$ac_ext
37653 cat >>conftest.$ac_ext <<_ACEOF
37654 /* end confdefs.h. */
37655 #include <zaptel/zaptel.h>
37659 int foo = ZT_TCOP_ALLOCATE;
37665 rm -f conftest.$ac_objext
37666 if { (ac_try="$ac_compile"
37667 case "(($ac_try" in
37668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37669 *) ac_try_echo
=$ac_try;;
37671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37672 (eval "$ac_compile") 2>conftest.er1
37674 grep -v '^ *+' conftest.er1
>conftest.err
37676 cat conftest.err
>&5
37677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678 (exit $ac_status); } &&
37679 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37680 { (case "(($ac_try" in
37681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37682 *) ac_try_echo=$ac_try;;
37684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37685 (eval "$ac_try") 2>&5
37687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688 (exit $ac_status); }; } &&
37689 { ac_try='test -s conftest.$ac_objext'
37690 { (case "(($ac_try" in
37691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37692 *) ac_try_echo
=$ac_try;;
37694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37695 (eval "$ac_try") 2>&5
37697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698 (exit $ac_status); }; }; then
37699 { echo "$as_me:$LINENO: result: yes" >&5
37700 echo "${ECHO_T}yes" >&6; }
37701 ac_cv_zaptel_transcode
="yes"
37704 echo "$as_me: failed program was:" >&5
37705 sed 's/^/| /' conftest.
$ac_ext >&5
37707 { echo "$as_me:$LINENO: result: no" >&5
37708 echo "${ECHO_T}no" >&6; }
37709 ac_cv_zaptel_transcode
="no"
37714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37715 CPPFLAGS
="${saved_cppflags}"
37716 if test "${ac_cv_zaptel_transcode}" = "yes"; then
37717 PBX_ZAPTEL_TRANSCODE
=1
37724 if test "x$TERMCAP_LIB" != "x" ; then
37725 EDITLINE_LIB
="$TERMCAP_LIB"
37726 elif test "x$TINFO_LIB" != "x" ; then
37727 EDITLINE_LIB
="$TINFO_LIB"
37728 elif test "x$CURSES_LIB" != "x" ; then
37729 EDITLINE_LIB
="$CURSES_LIB"
37730 elif test "x$NCURSES_LIB" != "x" ; then
37731 EDITLINE_LIB
="$NCURSES_LIB"
37733 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
37734 echo "$as_me: error: *** termcap support not found" >&2;}
37735 { (exit 1); exit 1; }; }
37739 if test "${ac_cv_header_h323_h+set}" = set; then
37740 { echo "$as_me:$LINENO: checking for h323.h" >&5
37741 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
37742 if test "${ac_cv_header_h323_h+set}" = set; then
37743 echo $ECHO_N "(cached) $ECHO_C" >&6
37745 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
37746 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
37748 # Is the header compilable?
37749 { echo "$as_me:$LINENO: checking h323.h usability" >&5
37750 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
37751 cat >conftest.
$ac_ext <<_ACEOF
37754 cat confdefs.h
>>conftest.
$ac_ext
37755 cat >>conftest.
$ac_ext <<_ACEOF
37756 /* end confdefs.h. */
37757 $ac_includes_default
37760 rm -f conftest.
$ac_objext
37761 if { (ac_try
="$ac_compile"
37762 case "(($ac_try" in
37763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37764 *) ac_try_echo=$ac_try;;
37766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37767 (eval "$ac_compile") 2>conftest.er1
37769 grep -v '^ *+' conftest.er1 >conftest.err
37771 cat conftest.err >&5
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); } &&
37774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37775 { (case "(($ac_try" in
37776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37777 *) ac_try_echo
=$ac_try;;
37779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37780 (eval "$ac_try") 2>&5
37782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37783 (exit $ac_status); }; } &&
37784 { ac_try
='test -s conftest.$ac_objext'
37785 { (case "(($ac_try" in
37786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37787 *) ac_try_echo=$ac_try;;
37789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37790 (eval "$ac_try") 2>&5
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); }; }; then
37794 ac_header_compiler=yes
37796 echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37799 ac_header_compiler=no
37802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37804 echo "${ECHO_T}$ac_header_compiler" >&6; }
37806 # Is the header present?
37807 { echo "$as_me:$LINENO: checking h323.h presence" >&5
37808 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
37809 cat >conftest.$ac_ext <<_ACEOF
37812 cat confdefs.h >>conftest.$ac_ext
37813 cat >>conftest.$ac_ext <<_ACEOF
37814 /* end confdefs.h. */
37817 if { (ac_try="$ac_cpp conftest.$ac_ext"
37818 case "(($ac_try" in
37819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37820 *) ac_try_echo
=$ac_try;;
37822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37825 grep -v '^ *+' conftest.er1
>conftest.err
37827 cat conftest.err
>&5
37828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); } >/dev
/null
; then
37830 if test -s conftest.err
; then
37831 ac_cpp_err
=$ac_c_preproc_warn_flag
37832 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
37839 if test -z "$ac_cpp_err"; then
37840 ac_header_preproc
=yes
37842 echo "$as_me: failed program was:" >&5
37843 sed 's/^/| /' conftest.
$ac_ext >&5
37845 ac_header_preproc
=no
37848 rm -f conftest.err conftest.
$ac_ext
37849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37850 echo "${ECHO_T}$ac_header_preproc" >&6; }
37852 # So? What about this header?
37853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37855 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
37856 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37857 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
37858 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
37859 ac_header_preproc
=yes
37862 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
37863 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
37864 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
37865 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
37866 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
37867 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
37868 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
37869 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
37870 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
37871 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
37872 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
37873 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
37875 ## ------------------------------- ##
37876 ## Report this to www.asterisk.org ##
37877 ## ------------------------------- ##
37879 ) |
sed "s/^/$as_me: WARNING: /" >&2
37882 { echo "$as_me:$LINENO: checking for h323.h" >&5
37883 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
37884 if test "${ac_cv_header_h323_h+set}" = set; then
37885 echo $ECHO_N "(cached) $ECHO_C" >&6
37887 ac_cv_header_h323_h
=$ac_header_preproc
37889 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
37890 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
37893 if test $ac_cv_header_h323_h = yes; then
37902 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
37903 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
37904 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
37905 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
37906 echo $ECHO_N "(cached) $ECHO_C" >&6
37908 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
37909 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
37911 # Is the header compilable?
37912 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
37913 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
37914 cat >conftest.
$ac_ext <<_ACEOF
37917 cat confdefs.h
>>conftest.
$ac_ext
37918 cat >>conftest.
$ac_ext <<_ACEOF
37919 /* end confdefs.h. */
37920 $ac_includes_default
37921 #include <linux/compiler.h>
37923 rm -f conftest.
$ac_objext
37924 if { (ac_try
="$ac_compile"
37925 case "(($ac_try" in
37926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37927 *) ac_try_echo=$ac_try;;
37929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37930 (eval "$ac_compile") 2>conftest.er1
37932 grep -v '^ *+' conftest.er1 >conftest.err
37934 cat conftest.err >&5
37935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936 (exit $ac_status); } &&
37937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37938 { (case "(($ac_try" in
37939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37940 *) ac_try_echo
=$ac_try;;
37942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37943 (eval "$ac_try") 2>&5
37945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37946 (exit $ac_status); }; } &&
37947 { ac_try
='test -s conftest.$ac_objext'
37948 { (case "(($ac_try" in
37949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37950 *) ac_try_echo=$ac_try;;
37952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37953 (eval "$ac_try") 2>&5
37955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956 (exit $ac_status); }; }; then
37957 ac_header_compiler=yes
37959 echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37962 ac_header_compiler=no
37965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37967 echo "${ECHO_T}$ac_header_compiler" >&6; }
37969 # Is the header present?
37970 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
37971 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
37972 cat >conftest.$ac_ext <<_ACEOF
37975 cat confdefs.h >>conftest.$ac_ext
37976 cat >>conftest.$ac_ext <<_ACEOF
37977 /* end confdefs.h. */
37978 #include <linux/compiler.h>
37980 if { (ac_try="$ac_cpp conftest.$ac_ext"
37981 case "(($ac_try" in
37982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37983 *) ac_try_echo
=$ac_try;;
37985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37988 grep -v '^ *+' conftest.er1
>conftest.err
37990 cat conftest.err
>&5
37991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37992 (exit $ac_status); } >/dev
/null
; then
37993 if test -s conftest.err
; then
37994 ac_cpp_err
=$ac_c_preproc_warn_flag
37995 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
38002 if test -z "$ac_cpp_err"; then
38003 ac_header_preproc
=yes
38005 echo "$as_me: failed program was:" >&5
38006 sed 's/^/| /' conftest.
$ac_ext >&5
38008 ac_header_preproc
=no
38011 rm -f conftest.err conftest.
$ac_ext
38012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38013 echo "${ECHO_T}$ac_header_preproc" >&6; }
38015 # So? What about this header?
38016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38018 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
38019 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38020 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
38021 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
38022 ac_header_preproc
=yes
38025 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
38026 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
38027 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
38028 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
38029 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
38030 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
38031 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
38032 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
38033 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
38034 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
38035 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
38036 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
38038 ## ------------------------------- ##
38039 ## Report this to www.asterisk.org ##
38040 ## ------------------------------- ##
38042 ) |
sed "s/^/$as_me: WARNING: /" >&2
38045 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
38046 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
38047 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
38048 echo $ECHO_N "(cached) $ECHO_C" >&6
38050 ac_cv_header_linux_compiler_h
=$ac_header_preproc
38052 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
38053 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
38056 if test $ac_cv_header_linux_compiler_h = yes; then
38058 cat >>confdefs.h
<<_ACEOF
38059 #define HAVE_LINUX_COMPILER_H 1
38066 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
38067 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
38068 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
38069 echo $ECHO_N "(cached) $ECHO_C" >&6
38071 cat >conftest.
$ac_ext <<_ACEOF
38074 cat confdefs.h
>>conftest.
$ac_ext
38075 cat >>conftest.
$ac_ext <<_ACEOF
38076 /* end confdefs.h. */
38078 #include <linux/version.h>
38079 #ifdef HAVE_LINUX_COMPILER_H
38080 #include <linux/compiler.h>
38084 #include <linux/ixjuser.h>
38086 rm -f conftest.
$ac_objext
38087 if { (ac_try
="$ac_compile"
38088 case "(($ac_try" in
38089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
38090 *) ac_try_echo=$ac_try;;
38092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38093 (eval "$ac_compile") 2>conftest.er1
38095 grep -v '^ *+' conftest.er1 >conftest.err
38097 cat conftest.err >&5
38098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38099 (exit $ac_status); } &&
38100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38101 { (case "(($ac_try" in
38102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
38103 *) ac_try_echo
=$ac_try;;
38105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38106 (eval "$ac_try") 2>&5
38108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109 (exit $ac_status); }; } &&
38110 { ac_try
='test -s conftest.$ac_objext'
38111 { (case "(($ac_try" in
38112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
38113 *) ac_try_echo=$ac_try;;
38115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38116 (eval "$ac_try") 2>&5
38118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119 (exit $ac_status); }; }; then
38120 ac_cv_header_linux_ixjuser_h=yes
38122 echo "$as_me: failed program was:" >&5
38123 sed 's/^/| /' conftest.$ac_ext >&5
38125 ac_cv_header_linux_ixjuser_h=no
38128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38130 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
38131 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
38132 if test $ac_cv_header_linux_ixjuser_h = yes; then
38141 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
38142 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
38143 if test "${ac_cv_file__sbin_launchd+set}" = set; then
38144 echo $ECHO_N "(cached) $ECHO_C" >&6
38146 test "$cross_compiling" = yes &&
38147 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
38148 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
38149 { (exit 1); exit 1; }; }
38150 if test -r "/sbin/launchd"; then
38151 ac_cv_file__sbin_launchd=yes
38153 ac_cv_file__sbin_launchd=no
38156 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
38157 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
38158 if test $ac_cv_file__sbin_launchd = yes; then
38160 cat >>confdefs.h <<\_ACEOF
38161 #define HAVE_SBIN_LAUNCHD 1
38168 if test -n "$ac_tool_prefix"; then
38169 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
38170 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
38171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38173 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
38174 echo $ECHO_N "(cached) $ECHO_C" >&6
38176 if test -n "$GTKCONFIG"; then
38177 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
38179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38180 for as_dir in $PATH
38183 test -z "$as_dir" && as_dir=.
38184 for ac_exec_ext in '' $ac_executable_extensions; do
38185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38186 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
38187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38196 GTKCONFIG=$ac_cv_prog_GTKCONFIG
38197 if test -n "$GTKCONFIG"; then
38198 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
38199 echo "${ECHO_T}$GTKCONFIG" >&6; }
38201 { echo "$as_me:$LINENO: result: no" >&5
38202 echo "${ECHO_T}no" >&6; }
38207 if test -z "$ac_cv_prog_GTKCONFIG"; then
38208 ac_ct_GTKCONFIG=$GTKCONFIG
38209 # Extract the first word of "gtk-config", so it can be a program name with args.
38210 set dummy gtk-config; ac_word=$2
38211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38213 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
38214 echo $ECHO_N "(cached) $ECHO_C" >&6
38216 if test -n "$ac_ct_GTKCONFIG"; then
38217 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
38219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38220 for as_dir in $PATH
38223 test -z "$as_dir" && as_dir=.
38224 for ac_exec_ext in '' $ac_executable_extensions; do
38225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38226 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
38227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38236 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
38237 if test -n "$ac_ct_GTKCONFIG"; then
38238 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
38239 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
38241 { echo "$as_me:$LINENO: result: no" >&5
38242 echo "${ECHO_T}no" >&6; }
38245 if test "x$ac_ct_GTKCONFIG" = x; then
38248 case $cross_compiling:$ac_tool_warned in
38250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38251 whose name does not start with the host triplet. If you think this
38252 configuration is useful to you, please write to autoconf@gnu.org." >&5
38253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38254 whose name does not start with the host triplet. If you think this
38255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38256 ac_tool_warned=yes ;;
38258 GTKCONFIG=$ac_ct_GTKCONFIG
38261 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
38264 if test ! "x${GTKCONFIG}" = xNo; then
38265 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
38266 GTK_LIB=$(${GTKCONFIG} --libs gthread)
38269 cat >>confdefs.h <<\_ACEOF
38279 if test -n "$ac_tool_prefix"; then
38280 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
38281 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
38282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38284 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
38285 echo $ECHO_N "(cached) $ECHO_C" >&6
38287 if test -n "$PKGCONFIG"; then
38288 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
38290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38291 for as_dir in $PATH
38294 test -z "$as_dir" && as_dir=.
38295 for ac_exec_ext in '' $ac_executable_extensions; do
38296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38297 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
38298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38307 PKGCONFIG=$ac_cv_prog_PKGCONFIG
38308 if test -n "$PKGCONFIG"; then
38309 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
38310 echo "${ECHO_T}$PKGCONFIG" >&6; }
38312 { echo "$as_me:$LINENO: result: no" >&5
38313 echo "${ECHO_T}no" >&6; }
38318 if test -z "$ac_cv_prog_PKGCONFIG"; then
38319 ac_ct_PKGCONFIG=$PKGCONFIG
38320 # Extract the first word of "pkg-config", so it can be a program name with args.
38321 set dummy pkg-config; ac_word=$2
38322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38324 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
38325 echo $ECHO_N "(cached) $ECHO_C" >&6
38327 if test -n "$ac_ct_PKGCONFIG"; then
38328 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
38330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38331 for as_dir in $PATH
38334 test -z "$as_dir" && as_dir=.
38335 for ac_exec_ext in '' $ac_executable_extensions; do
38336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38337 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
38338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38347 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
38348 if test -n "$ac_ct_PKGCONFIG"; then
38349 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
38350 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
38352 { echo "$as_me:$LINENO: result: no" >&5
38353 echo "${ECHO_T}no" >&6; }
38356 if test "x$ac_ct_PKGCONFIG" = x; then
38359 case $cross_compiling:$ac_tool_warned in
38361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38362 whose name does not start with the host triplet. If you think this
38363 configuration is useful to you, please write to autoconf@gnu.org." >&5
38364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38365 whose name does not start with the host triplet. If you think this
38366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38367 ac_tool_warned=yes ;;
38369 PKGCONFIG=$ac_ct_PKGCONFIG
38372 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
38375 if test ! "x${PKGCONFIG}" = xNo; then
38376 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
38377 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
38380 cat >>confdefs.h <<\_ACEOF
38381 #define HAVE_GTK2 1
38389 if test "${USE_CURL}" != "no"; then
38390 if test -n "$ac_tool_prefix"; then
38391 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
38392 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
38393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38395 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
38396 echo $ECHO_N "(cached) $ECHO_C" >&6
38398 case $CURL_CONFIG in
38400 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
38403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38404 for as_dir in $PATH
38407 test -z "$as_dir" && as_dir=.
38408 for ac_exec_ext in '' $ac_executable_extensions; do
38409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38410 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38421 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
38422 if test -n "$CURL_CONFIG"; then
38423 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
38424 echo "${ECHO_T}$CURL_CONFIG" >&6; }
38426 { echo "$as_me:$LINENO: result: no" >&5
38427 echo "${ECHO_T}no" >&6; }
38432 if test -z "$ac_cv_path_CURL_CONFIG"; then
38433 ac_pt_CURL_CONFIG=$CURL_CONFIG
38434 # Extract the first word of "curl-config", so it can be a program name with args.
38435 set dummy curl-config; ac_word=$2
38436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38438 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
38439 echo $ECHO_N "(cached) $ECHO_C" >&6
38441 case $ac_pt_CURL_CONFIG in
38443 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
38446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38447 for as_dir in $PATH
38450 test -z "$as_dir" && as_dir=.
38451 for ac_exec_ext in '' $ac_executable_extensions; do
38452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38453 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38464 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
38465 if test -n "$ac_pt_CURL_CONFIG"; then
38466 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
38467 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
38469 { echo "$as_me:$LINENO: result: no" >&5
38470 echo "${ECHO_T}no" >&6; }
38473 if test "x$ac_pt_CURL_CONFIG" = x; then
38476 case $cross_compiling:$ac_tool_warned in
38478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38479 whose name does not start with the host triplet. If you think this
38480 configuration is useful to you, please write to autoconf@gnu.org." >&5
38481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38482 whose name does not start with the host triplet. If you think this
38483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38484 ac_tool_warned=yes ;;
38486 CURL_CONFIG=$ac_pt_CURL_CONFIG
38489 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
38492 if test ! x"${CURL_CONFIG}" = xNo; then
38493 # check for version
38494 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
38495 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
38496 CURL_LIB=$(${CURL_CONFIG} --libs)
38498 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
38499 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
38500 saved_cppflags="${CPPFLAGS}"
38501 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
38502 cat >conftest.$ac_ext <<_ACEOF
38505 cat confdefs.h >>conftest.$ac_ext
38506 cat >>conftest.$ac_ext <<_ACEOF
38507 /* end confdefs.h. */
38508 #include <curl/curl.h>
38518 rm -f conftest.$ac_objext
38519 if { (ac_try="$ac_compile"
38520 case "(($ac_try" in
38521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
38522 *) ac_try_echo
=$ac_try;;
38524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38525 (eval "$ac_compile") 2>conftest.er1
38527 grep -v '^ *+' conftest.er1
>conftest.err
38529 cat conftest.err
>&5
38530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38531 (exit $ac_status); } &&
38532 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38533 { (case "(($ac_try" in
38534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
38535 *) ac_try_echo=$ac_try;;
38537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38538 (eval "$ac_try") 2>&5
38540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38541 (exit $ac_status); }; } &&
38542 { ac_try='test -s conftest.$ac_objext'
38543 { (case "(($ac_try" in
38544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
38545 *) ac_try_echo
=$ac_try;;
38547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38548 (eval "$ac_try") 2>&5
38550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38551 (exit $ac_status); }; }; then
38553 { echo "$as_me:$LINENO: result: yes" >&5
38554 echo "${ECHO_T}yes" >&6; }
38558 echo "$as_me: failed program was:" >&5
38559 sed 's/^/| /' conftest.
$ac_ext >&5
38562 { echo "$as_me:$LINENO: result: no" >&5
38563 echo "${ECHO_T}no" >&6; }
38569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
38570 CPPFLAGS
="${saved_cppflags}"
38571 if test "${ac_cv_curl_h}" = "yes"; then
38574 cat >>confdefs.h
<<\_ACEOF
38575 #define HAVE_CURL 1
38583 ac_config_files
="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
38585 cat >confcache
<<\_ACEOF
38586 # This file is a shell script that caches the results of configure
38587 # tests run on this system so they can be shared between configure
38588 # scripts and configure runs, see configure's option --config-cache.
38589 # It is not useful on other systems. If it contains results you don't
38590 # want to keep, you may remove or edit it.
38592 # config.status only pays attention to the cache file if you give it
38593 # the --recheck option to rerun configure.
38595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38597 # following values.
38601 # The following way of writing the cache mishandles newlines in values,
38602 # but we know of no workaround that is simple, portable, and efficient.
38603 # So, we kill variables containing newlines.
38604 # Ultrix sh set writes to stderr and can't be redirected directly,
38605 # and sets the high bit in the cache file unless we assign to the vars.
38607 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38608 eval ac_val
=\$
$ac_var
38612 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38613 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38616 _ | IFS | as_nl
) ;; #(
38617 *) $as_unset $ac_var ;;
38623 case $as_nl`(ac_space=' '; set) 2>&1` in #(
38624 *${as_nl}ac_space
=\
*)
38625 # `set' does not quote correctly, so add quotes (double-quote
38626 # substitution turns \\\\ into \\, and sed turns \\ into \).
38629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38632 # `set' quotes correctly as required by POSIX, so do not add quotes.
38633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38642 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38644 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38646 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
38647 if test -w "$cache_file"; then
38648 test "x$cache_file" != "x/dev/null" &&
38649 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38650 echo "$as_me: updating cache $cache_file" >&6;}
38651 cat confcache
>$cache_file
38653 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38654 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38659 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
38660 # Let make expand exec_prefix.
38661 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
38663 DEFS
=-DHAVE_CONFIG_H
38667 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
38668 # 1. Remove the extension, and $U if already installed.
38669 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
38670 ac_i
=`echo "$ac_i" | sed "$ac_script"`
38671 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38672 # will be set to the directory where LIBOBJS objects are built.
38673 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38674 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38676 LIBOBJS
=$ac_libobjs
38678 LTLIBOBJS
=$ac_ltlibobjs
38682 : ${CONFIG_STATUS=./config.status}
38683 ac_clean_files_save
=$ac_clean_files
38684 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
38685 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38686 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38687 cat >$CONFIG_STATUS <<_ACEOF
38689 # Generated by $as_me.
38690 # Run this file to recreate the current configuration.
38691 # Compiler output produced by configure, useful for debugging
38692 # configure, is in config.log if it exists.
38695 ac_cs_recheck=false
38697 SHELL=\${CONFIG_SHELL-$SHELL}
38700 cat >>$CONFIG_STATUS <<\_ACEOF
38701 ## --------------------- ##
38702 ## M4sh Initialization. ##
38703 ## --------------------- ##
38705 # Be Bourne compatible
38706 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
38709 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38710 # is contrary to our usage. Disable this feature.
38711 alias -g '${1+"$@"}'='"$@"'
38712 setopt NO_GLOB_SUBST
38714 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
38716 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
38717 DUALCASE
=1; export DUALCASE
# for MKS sh
38721 # Avoid depending upon Character Ranges.
38722 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38723 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38724 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38725 as_cr_digits
='0123456789'
38726 as_cr_alnum
=$as_cr_Letters$as_cr_digits
38728 # The user is always right.
38729 if test "${PATH_SEPARATOR+set}" != set; then
38730 echo "#! /bin/sh" >conf$$.sh
38731 echo "exit 0" >>conf$$.sh
38733 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
38741 # Support unset when possible.
38742 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
38750 # We need space, tab and new line, in precisely that order. Quoting is
38751 # there to prevent editors from complaining about space-tab.
38752 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38753 # splitting by setting IFS to empty value.)
38758 # Find who we are. Look in the path if we contain no directory separator.
38760 *[\\/]* ) as_myself
=$0 ;;
38761 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
38762 for as_dir
in $PATH
38765 test -z "$as_dir" && as_dir
=.
38766 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
38772 # We did not find ourselves, most probably we were run as `sh COMMAND'
38773 # in which case we are not to be found in the path.
38774 if test "x$as_myself" = x
; then
38777 if test ! -f "$as_myself"; then
38778 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38779 { (exit 1); exit 1; }
38782 # Work around bugs in pre-3.0 UWIN ksh.
38783 for as_var
in ENV MAIL MAILPATH
38784 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
38792 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38793 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38794 LC_TELEPHONE LC_TIME
38796 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38797 eval $as_var=C
; export $as_var
38799 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
38803 # Required to use basename.
38804 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
38805 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
38811 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38812 as_basename
=basename
38818 # Name of the executable.
38819 as_me
=`$as_basename -- "$0" ||
38820 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38821 X"$0" : 'X\(//\)$' \| \
38822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38824 sed '/^.*\/\([^/][^/]*\)\/*$/{
38843 as_lineno_1
=$LINENO
38844 as_lineno_2
=$LINENO
38845 test "x$as_lineno_1" != "x$as_lineno_2" &&
38846 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
38848 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38849 # uniformly replaced by the line number. The first 'sed' inserts a
38850 # line-number line after each line using $LINENO; the second 'sed'
38851 # does the real work. The second script uses 'N' to pair each
38852 # line-number line with the line containing $LINENO, and appends
38853 # trailing '-' during substitution so that $LINENO is not a special
38854 # case at line end.
38855 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38856 # scripts with optimization help from Paolo Bonzini. Blame Lee
38857 # E. McMahon (1931-1989) for sed's syntax. :-)
38869 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38872 ' >$as_me.lineno
&&
38873 chmod +x
"$as_me.lineno" ||
38874 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38875 { (exit 1); exit 1; }; }
38877 # Don't try to exec as it changes $[0], causing all sort of problems
38878 # (the dirname of $[0] is not the place where we might find the
38879 # original and so on. Autoconf is especially sensitive to this).
38880 .
"./$as_me.lineno"
38881 # Exit status is that of the last command.
38886 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
38892 ECHO_C
= ECHO_N
= ECHO_T
=
38893 case `echo -n x` in
38895 case `echo 'x\c'` in
38896 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
38903 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
38904 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
38910 rm -f conf$$ conf$$.exe conf$$.
file
38911 if test -d conf$$.dir
; then
38912 rm -f conf$$.dir
/conf$$.
file
38918 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
38920 # ... but there are two gotchas:
38921 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38922 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38923 # In both cases, we have to default to `cp -p'.
38924 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
38926 elif ln conf$$.
file conf$$
2>/dev
/null
; then
38931 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
38932 rmdir conf$$.dir
2>/dev
/null
38934 if mkdir
-p .
2>/dev
/null
; then
38937 test -d .
/-p && rmdir .
/-p
38941 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
38942 # systems may use methods other than mode bits to determine executability.
38943 cat >conf$$.
file <<_ASEOF
38947 chmod +x conf$$.
file
38948 if test -x conf$$.
file >/dev
/null
2>&1; then
38949 as_executable_p
="test -x"
38955 # Sed expression to map a string onto a valid CPP name.
38956 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38958 # Sed expression to map a string onto a valid variable name.
38959 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38964 # Save the log message, to keep $[0] and so on meaningful, and to
38965 # report actual input values of CONFIG_FILES etc. instead of their
38966 # values after options handling.
38968 This file was extended by asterisk $as_me 1.4, which was
38969 generated by GNU Autoconf 2.60. Invocation command line was
38971 CONFIG_FILES = $CONFIG_FILES
38972 CONFIG_HEADERS = $CONFIG_HEADERS
38973 CONFIG_LINKS = $CONFIG_LINKS
38974 CONFIG_COMMANDS = $CONFIG_COMMANDS
38977 on `(hostname || uname -n) 2>/dev/null | sed 1q`
38982 cat >>$CONFIG_STATUS <<_ACEOF
38983 # Files that config.status was made for.
38984 config_files="$ac_config_files"
38985 config_headers="$ac_config_headers"
38989 cat >>$CONFIG_STATUS <<\_ACEOF
38991 \`$as_me' instantiates files from templates according to the
38992 current configuration.
38994 Usage: $0 [OPTIONS] [FILE]...
38996 -h, --help print this help, then exit
38997 -V, --version print version number, then exit
38998 -q, --quiet do not print progress messages
38999 -d, --debug don't remove temporary files
39000 --recheck update $as_me by reconfiguring in the same conditions
39001 --file=FILE[:TEMPLATE]
39002 instantiate the configuration file FILE
39003 --header=FILE[:TEMPLATE]
39004 instantiate the configuration header FILE
39006 Configuration files:
39009 Configuration headers:
39012 Report bugs to <bug-autoconf@gnu.org>."
39015 cat >>$CONFIG_STATUS <<_ACEOF
39017 asterisk config.status 1.4
39018 configured by $0, generated by GNU Autoconf 2.60,
39019 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39021 Copyright (C) 2006 Free Software Foundation, Inc.
39022 This config.status script is free software; the Free Software Foundation
39023 gives unlimited permission to copy, distribute and modify it."
39030 cat >>$CONFIG_STATUS <<\_ACEOF
39031 # If no file are specified by the user, then we need to provide default
39032 # value. By we need to know if files were specified by the user.
39038 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
39039 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
39050 # Handling of the options.
39051 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
39053 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
39054 echo "$ac_cs_version"; exit ;;
39055 --debug |
--debu |
--deb |
--de |
--d |
-d )
39057 --file |
--fil |
--fi |
--f )
39059 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
39060 ac_need_defaults
=false
;;
39061 --header |
--heade |
--head |
--hea )
39063 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
39064 ac_need_defaults
=false
;;
39066 # Conflict between --help and --header
39067 { echo "$as_me: error: ambiguous option: $1
39068 Try \`$0 --help' for more information." >&2
39069 { (exit 1); exit 1; }; };;
39070 --help |
--hel |
-h )
39071 echo "$ac_cs_usage"; exit ;;
39072 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
39073 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
39076 # This is an error.
39077 -*) { echo "$as_me: error: unrecognized option: $1
39078 Try \`$0 --help' for more information." >&2
39079 { (exit 1); exit 1; }; } ;;
39081 *) ac_config_targets
="$ac_config_targets $1"
39082 ac_need_defaults
=false
;;
39088 ac_configure_extra_args
=
39090 if $ac_cs_silent; then
39092 ac_configure_extra_args
="$ac_configure_extra_args --silent"
39096 cat >>$CONFIG_STATUS <<_ACEOF
39097 if \$ac_cs_recheck; then
39098 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39099 CONFIG_SHELL=$SHELL
39100 export CONFIG_SHELL
39101 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39105 cat >>$CONFIG_STATUS <<\_ACEOF
39109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39110 ## Running $as_me. ##
39116 cat >>$CONFIG_STATUS <<_ACEOF
39119 cat >>$CONFIG_STATUS <<\_ACEOF
39121 # Handling of arguments.
39122 for ac_config_target
in $ac_config_targets
39124 case $ac_config_target in
39125 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
39126 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
39127 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
39128 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
39130 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39131 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39132 { (exit 1); exit 1; }; };;
39137 # If the user did not use the arguments to specify the items to instantiate,
39138 # then the envvar interface is used. Set only those that are not.
39139 # We use the long form for the default assignment because of an extremely
39140 # bizarre bug on SunOS 4.1.3.
39141 if $ac_need_defaults; then
39142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
39143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
39146 # Have a temporary directory for convenience. Make it in the build tree
39147 # simply because there is no reason against having it here, and in addition,
39148 # creating and moving files from /tmp can sometimes cause problems.
39149 # Hook for its removal unless debugging.
39150 # Note that there is a small window in which the directory will not be cleaned:
39151 # after its creation but before its name has been assigned to `$tmp'.
39155 trap 'exit_status=$?
39156 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39158 trap '{ (exit 1); exit 1; }' 1 2 13 15
39160 # Create a (secure) tmp directory for tmp files.
39163 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39164 test -n "$tmp" && test -d "$tmp"
39167 tmp
=.
/conf$$
-$RANDOM
39168 (umask 077 && mkdir
"$tmp")
39171 echo "$me: cannot create a temporary directory in ." >&2
39172 { (exit 1); exit 1; }
39176 # Set up the sed scripts for CONFIG_FILES section.
39179 # No need to generate the scripts if there are no CONFIG_FILES.
39180 # This happens for instance when ./config.status config.h
39181 if test -n "$CONFIG_FILES"; then
39188 for ac_last_try
in false false false false false
:; do
39189 cat >conf$
$subs.
sed <<_ACEOF
39190 SHELL!$SHELL$ac_delim
39191 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39192 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39193 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39194 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39195 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39196 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39197 exec_prefix!$exec_prefix$ac_delim
39198 prefix!$prefix$ac_delim
39199 program_transform_name!$program_transform_name$ac_delim
39200 bindir!$bindir$ac_delim
39201 sbindir!$sbindir$ac_delim
39202 libexecdir!$libexecdir$ac_delim
39203 datarootdir!$datarootdir$ac_delim
39204 datadir!$datadir$ac_delim
39205 sysconfdir!$sysconfdir$ac_delim
39206 sharedstatedir!$sharedstatedir$ac_delim
39207 localstatedir!$localstatedir$ac_delim
39208 includedir!$includedir$ac_delim
39209 oldincludedir!$oldincludedir$ac_delim
39210 docdir!$docdir$ac_delim
39211 infodir!$infodir$ac_delim
39212 htmldir!$htmldir$ac_delim
39213 dvidir!$dvidir$ac_delim
39214 pdfdir!$pdfdir$ac_delim
39215 psdir!$psdir$ac_delim
39216 libdir!$libdir$ac_delim
39217 localedir!$localedir$ac_delim
39218 mandir!$mandir$ac_delim
39219 DEFS!$DEFS$ac_delim
39220 ECHO_C!$ECHO_C$ac_delim
39221 ECHO_N!$ECHO_N$ac_delim
39222 ECHO_T!$ECHO_T$ac_delim
39223 LIBS!$LIBS$ac_delim
39224 build_alias!$build_alias$ac_delim
39225 host_alias!$host_alias$ac_delim
39226 target_alias!$target_alias$ac_delim
39227 build!$build$ac_delim
39228 build_cpu!$build_cpu$ac_delim
39229 build_vendor!$build_vendor$ac_delim
39230 build_os!$build_os$ac_delim
39231 host!$host$ac_delim
39232 host_cpu!$host_cpu$ac_delim
39233 host_vendor!$host_vendor$ac_delim
39234 host_os!$host_os$ac_delim
39236 CFLAGS!$CFLAGS$ac_delim
39237 LDFLAGS!$LDFLAGS$ac_delim
39238 CPPFLAGS!$CPPFLAGS$ac_delim
39239 ac_ct_CC!$ac_ct_CC$ac_delim
39240 EXEEXT!$EXEEXT$ac_delim
39241 OBJEXT!$OBJEXT$ac_delim
39243 GREP!$GREP$ac_delim
39244 EGREP!$EGREP$ac_delim
39245 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
39246 BUILD_CPU!$BUILD_CPU$ac_delim
39247 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
39248 BUILD_OS!$BUILD_OS$ac_delim
39249 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
39250 HOST_CPU!$HOST_CPU$ac_delim
39251 HOST_VENDOR!$HOST_VENDOR$ac_delim
39252 HOST_OS!$HOST_OS$ac_delim
39253 OSARCH!$OSARCH$ac_delim
39254 UNAME!$UNAME$ac_delim
39255 PBX_OSREV!$PBX_OSREV$ac_delim
39258 RANLIB!$RANLIB$ac_delim
39259 CXXFLAGS!$CXXFLAGS$ac_delim
39260 ac_ct_CXX!$ac_ct_CXX$ac_delim
39261 CXXCPP!$CXXCPP$ac_delim
39264 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39265 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39266 INSTALL_DATA!$INSTALL_DATA$ac_delim
39267 LN_S!$LN_S$ac_delim
39268 GNU_MAKE!$GNU_MAKE$ac_delim
39269 STRIP!$STRIP$ac_delim
39271 GNU_LD!$GNU_LD$ac_delim
39272 FIND!$FIND$ac_delim
39273 COMPRESS!$COMPRESS$ac_delim
39274 BASENAME!$BASENAME$ac_delim
39276 DIRNAME!$DIRNAME$ac_delim
39279 WGET!$WGET$ac_delim
39280 FETCH!$FETCH$ac_delim
39281 DOWNLOAD!$DOWNLOAD$ac_delim
39282 SOXMIX!$SOXMIX$ac_delim
39283 acx_pthread_config!$acx_pthread_config$ac_delim
39284 PTHREAD_CC!$PTHREAD_CC$ac_delim
39285 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
39286 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
39289 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39291 elif $ac_last_try; then
39292 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39293 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39294 { (exit 1); exit 1; }; }
39296 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
39300 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39301 if test -n "$ac_eof"; then
39302 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
39303 ac_eof
=`expr $ac_eof + 1`
39306 cat >>$CONFIG_STATUS <<_ACEOF
39307 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39311 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39312 s/^/s,@/; s/!/@,|#_!!_#|/
39315 s/'"$ac_delim"'$/,g/; t
39317 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39318 ' >>$CONFIG_STATUS <conf$
$subs.
sed
39319 rm -f conf$
$subs.
sed
39320 cat >>$CONFIG_STATUS <<_ACEOF
39326 for ac_last_try
in false false false false false
:; do
39327 cat >conf$
$subs.
sed <<_ACEOF
39328 AST_DEVMODE!$AST_DEVMODE$ac_delim
39329 ALSA_LIB!$ALSA_LIB$ac_delim
39330 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
39331 ALSA_DIR!$ALSA_DIR$ac_delim
39332 PBX_ALSA!$PBX_ALSA$ac_delim
39333 CURL_LIB!$CURL_LIB$ac_delim
39334 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
39335 CURL_DIR!$CURL_DIR$ac_delim
39336 PBX_CURL!$PBX_CURL$ac_delim
39337 CAP_LIB!$CAP_LIB$ac_delim
39338 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
39339 CAP_DIR!$CAP_DIR$ac_delim
39340 PBX_CAP!$PBX_CAP$ac_delim
39341 CURSES_LIB!$CURSES_LIB$ac_delim
39342 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
39343 CURSES_DIR!$CURSES_DIR$ac_delim
39344 PBX_CURSES!$PBX_CURSES$ac_delim
39345 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
39346 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
39347 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
39348 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
39349 GSM_LIB!$GSM_LIB$ac_delim
39350 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
39351 GSM_DIR!$GSM_DIR$ac_delim
39352 PBX_GSM!$PBX_GSM$ac_delim
39353 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
39354 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
39355 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
39356 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
39357 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
39358 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
39359 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
39360 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
39361 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
39362 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
39363 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
39364 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
39365 KDE_LIB!$KDE_LIB$ac_delim
39366 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
39367 KDE_DIR!$KDE_DIR$ac_delim
39368 PBX_KDE!$PBX_KDE$ac_delim
39369 LTDL_LIB!$LTDL_LIB$ac_delim
39370 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
39371 LTDL_DIR!$LTDL_DIR$ac_delim
39372 PBX_LTDL!$PBX_LTDL$ac_delim
39373 MISDN_LIB!$MISDN_LIB$ac_delim
39374 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
39375 MISDN_DIR!$MISDN_DIR$ac_delim
39376 PBX_MISDN!$PBX_MISDN$ac_delim
39377 NBS_LIB!$NBS_LIB$ac_delim
39378 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
39379 NBS_DIR!$NBS_DIR$ac_delim
39380 PBX_NBS!$PBX_NBS$ac_delim
39381 NCURSES_LIB!$NCURSES_LIB$ac_delim
39382 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
39383 NCURSES_DIR!$NCURSES_DIR$ac_delim
39384 PBX_NCURSES!$PBX_NCURSES$ac_delim
39385 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
39386 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
39387 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
39388 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
39389 NEWT_LIB!$NEWT_LIB$ac_delim
39390 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
39391 NEWT_DIR!$NEWT_DIR$ac_delim
39392 PBX_NEWT!$PBX_NEWT$ac_delim
39393 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
39394 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
39395 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
39396 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
39397 OGG_LIB!$OGG_LIB$ac_delim
39398 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
39399 OGG_DIR!$OGG_DIR$ac_delim
39400 PBX_OGG!$PBX_OGG$ac_delim
39401 OSPTK_LIB!$OSPTK_LIB$ac_delim
39402 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
39403 OSPTK_DIR!$OSPTK_DIR$ac_delim
39404 PBX_OSPTK!$PBX_OSPTK$ac_delim
39405 OSS_LIB!$OSS_LIB$ac_delim
39406 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
39407 OSS_DIR!$OSS_DIR$ac_delim
39408 PBX_OSS!$PBX_OSS$ac_delim
39409 POPT_LIB!$POPT_LIB$ac_delim
39410 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
39411 POPT_DIR!$POPT_DIR$ac_delim
39412 PBX_POPT!$PBX_POPT$ac_delim
39413 PGSQL_LIB!$PGSQL_LIB$ac_delim
39414 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
39415 PGSQL_DIR!$PGSQL_DIR$ac_delim
39416 PBX_PGSQL!$PBX_PGSQL$ac_delim
39417 PRI_LIB!$PRI_LIB$ac_delim
39418 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
39419 PRI_DIR!$PRI_DIR$ac_delim
39420 PBX_PRI!$PBX_PRI$ac_delim
39421 PWLIB_LIB!$PWLIB_LIB$ac_delim
39422 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
39423 PWLIB_DIR!$PWLIB_DIR$ac_delim
39424 PBX_PWLIB!$PBX_PWLIB$ac_delim
39427 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39429 elif $ac_last_try; then
39430 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39431 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39432 { (exit 1); exit 1; }; }
39434 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
39438 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39439 if test -n "$ac_eof"; then
39440 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
39441 ac_eof
=`expr $ac_eof + 1`
39444 cat >>$CONFIG_STATUS <<_ACEOF
39445 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39449 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39450 s/^/s,@/; s/!/@,|#_!!_#|/
39453 s/'"$ac_delim"'$/,g/; t
39455 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39456 ' >>$CONFIG_STATUS <conf$
$subs.
sed
39457 rm -f conf$
$subs.
sed
39458 cat >>$CONFIG_STATUS <<_ACEOF
39464 for ac_last_try
in false false false false false
:; do
39465 cat >conf$
$subs.
sed <<_ACEOF
39466 OPENH323_LIB!$OPENH323_LIB$ac_delim
39467 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
39468 OPENH323_DIR!$OPENH323_DIR$ac_delim
39469 PBX_OPENH323!$PBX_OPENH323$ac_delim
39470 RADIUS_LIB!$RADIUS_LIB$ac_delim
39471 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
39472 RADIUS_DIR!$RADIUS_DIR$ac_delim
39473 PBX_RADIUS!$PBX_RADIUS$ac_delim
39474 SPEEX_LIB!$SPEEX_LIB$ac_delim
39475 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
39476 SPEEX_DIR!$SPEEX_DIR$ac_delim
39477 PBX_SPEEX!$PBX_SPEEX$ac_delim
39478 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
39479 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
39480 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
39481 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
39482 SQLITE_LIB!$SQLITE_LIB$ac_delim
39483 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
39484 SQLITE_DIR!$SQLITE_DIR$ac_delim
39485 PBX_SQLITE!$PBX_SQLITE$ac_delim
39486 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
39487 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
39488 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
39489 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
39490 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
39491 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
39492 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
39493 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
39494 FREETDS_LIB!$FREETDS_LIB$ac_delim
39495 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
39496 FREETDS_DIR!$FREETDS_DIR$ac_delim
39497 PBX_FREETDS!$PBX_FREETDS$ac_delim
39498 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
39499 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
39500 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
39501 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
39502 TINFO_LIB!$TINFO_LIB$ac_delim
39503 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
39504 TINFO_DIR!$TINFO_DIR$ac_delim
39505 PBX_TINFO!$PBX_TINFO$ac_delim
39506 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
39507 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
39508 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
39509 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
39510 USB_LIB!$USB_LIB$ac_delim
39511 USB_INCLUDE!$USB_INCLUDE$ac_delim
39512 USB_DIR!$USB_DIR$ac_delim
39513 PBX_USB!$PBX_USB$ac_delim
39514 VORBIS_LIB!$VORBIS_LIB$ac_delim
39515 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
39516 VORBIS_DIR!$VORBIS_DIR$ac_delim
39517 PBX_VORBIS!$PBX_VORBIS$ac_delim
39518 VPB_LIB!$VPB_LIB$ac_delim
39519 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
39520 VPB_DIR!$VPB_DIR$ac_delim
39521 PBX_VPB!$PBX_VPB$ac_delim
39522 ZLIB_LIB!$ZLIB_LIB$ac_delim
39523 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
39524 ZLIB_DIR!$ZLIB_DIR$ac_delim
39525 PBX_ZLIB!$PBX_ZLIB$ac_delim
39526 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
39527 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
39528 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
39529 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
39530 ALLOCA!$ALLOCA$ac_delim
39531 LIBOBJS!$LIBOBJS$ac_delim
39532 POW_LIB!$POW_LIB$ac_delim
39533 GC_CFLAGS!$GC_CFLAGS$ac_delim
39534 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
39535 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
39536 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
39537 KDEINIT!$KDEINIT$ac_delim
39538 KDEDIR!$KDEDIR$ac_delim
39539 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
39540 PG_CONFIG!$PG_CONFIG$ac_delim
39541 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
39542 PWLIBDIR!$PWLIBDIR$ac_delim
39543 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
39544 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
39545 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
39546 OPENH323DIR!$OPENH323DIR$ac_delim
39547 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
39548 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
39549 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
39550 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
39551 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
39552 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
39553 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
39554 PBX_H323!$PBX_H323$ac_delim
39555 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
39556 GTKCONFIG!$GTKCONFIG$ac_delim
39557 PBX_GTK!$PBX_GTK$ac_delim
39558 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
39559 GTK_LIB!$GTK_LIB$ac_delim
39560 PKGCONFIG!$PKGCONFIG$ac_delim
39561 PBX_GTK2!$PBX_GTK2$ac_delim
39562 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
39565 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39567 elif $ac_last_try; then
39568 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39569 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39570 { (exit 1); exit 1; }; }
39572 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
39576 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39577 if test -n "$ac_eof"; then
39578 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
39579 ac_eof
=`expr $ac_eof + 1`
39582 cat >>$CONFIG_STATUS <<_ACEOF
39583 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
39584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39587 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39588 s/^/s,@/; s/!/@,|#_!!_#|/
39591 s/'"$ac_delim"'$/,g/; t
39593 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39594 ' >>$CONFIG_STATUS <conf$
$subs.
sed
39595 rm -f conf$
$subs.
sed
39596 cat >>$CONFIG_STATUS <<_ACEOF
39602 for ac_last_try
in false false false false false
:; do
39603 cat >conf$
$subs.
sed <<_ACEOF
39604 GTK2_LIB!$GTK2_LIB$ac_delim
39605 CURL_CONFIG!$CURL_CONFIG$ac_delim
39606 LTLIBOBJS!$LTLIBOBJS$ac_delim
39609 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
39611 elif $ac_last_try; then
39612 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39613 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39614 { (exit 1); exit 1; }; }
39616 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
39620 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39621 if test -n "$ac_eof"; then
39622 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
39623 ac_eof
=`expr $ac_eof + 1`
39626 cat >>$CONFIG_STATUS <<_ACEOF
39627 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
39628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39631 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39632 s/^/s,@/; s/!/@,|#_!!_#|/
39635 s/'"$ac_delim"'$/,g/; t
39637 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39638 ' >>$CONFIG_STATUS <conf$
$subs.
sed
39639 rm -f conf$
$subs.
sed
39640 cat >>$CONFIG_STATUS <<_ACEOF
39647 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39648 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39649 # trailing colons and then remove the whole line if VPATH becomes empty
39650 # (actually we leave an empty line to preserve line numbers).
39651 if test "x$srcdir" = x.
; then
39652 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
39653 s/:*\$(srcdir):*/:/
39654 s/:*\${srcdir}:*/:/
39656 s/^\([^=]*=[ ]*\):*/\1/
39662 cat >>$CONFIG_STATUS <<\_ACEOF
39663 fi # test -n "$CONFIG_FILES"
39666 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
39669 :[FHLC
]) ac_mode
=$ac_tag; continue;;
39671 case $ac_mode$ac_tag in
39673 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39674 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39675 { (exit 1); exit 1; }; };;
39676 :[FH
]-) ac_tag
=-:-;;
39677 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
39694 -) ac_f
="$tmp/stdin";;
39695 *) # Look for the file first in the build tree, then in the source tree
39696 # (if the path is not absolute). The absolute path cannot be DOS-style,
39697 # because $ac_f cannot contain `:'.
39701 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
39703 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39704 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39705 { (exit 1); exit 1; }; };;
39707 ac_file_inputs
="$ac_file_inputs $ac_f"
39710 # Let's still pretend it is `configure' which instantiates (i.e., don't
39711 # use $as_me), people would be surprised to read:
39712 # /* config.h. Generated by config.status. */
39713 configure_input
="Generated from "`IFS=:
39714 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39715 if test x
"$ac_file" != x-
; then
39716 configure_input
="$ac_file. $configure_input"
39717 { echo "$as_me:$LINENO: creating $ac_file" >&5
39718 echo "$as_me: creating $ac_file" >&6;}
39722 *:-:* |
*:-) cat >"$tmp/stdin";;
39727 ac_dir
=`$as_dirname -- "$ac_file" ||
39728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39729 X"$ac_file" : 'X\(//\)[^/]' \| \
39730 X"$ac_file" : 'X\(//\)$' \| \
39731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39737 /^X\(\/\/\)[^/].*/{
39752 -*) as_dir
=.
/$as_dir;;
39754 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
39758 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39759 *) as_qdir
=$as_dir;;
39761 as_dirs
="'$as_qdir' $as_dirs"
39762 as_dir
=`$as_dirname -- "$as_dir" ||
39763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39764 X"$as_dir" : 'X\(//\)[^/]' \| \
39765 X"$as_dir" : 'X\(//\)$' \| \
39766 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39772 /^X\(\/\/\)[^/].*/{
39785 test -d "$as_dir" && break
39787 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
39788 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39789 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39790 { (exit 1); exit 1; }; }; }
39794 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
39796 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39797 # A ".." for each directory in $ac_dir_suffix.
39798 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39799 case $ac_top_builddir_sub in
39800 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
39801 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
39804 ac_abs_top_builddir
=$ac_pwd
39805 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
39806 # for backward compatibility:
39807 ac_top_builddir
=$ac_top_build_prefix
39810 .
) # We are building in place.
39812 ac_top_srcdir
=$ac_top_builddir_sub
39813 ac_abs_top_srcdir
=$ac_pwd ;;
39814 [\\/]* | ?
:[\\/]* ) # Absolute name.
39815 ac_srcdir
=$srcdir$ac_dir_suffix;
39816 ac_top_srcdir
=$srcdir
39817 ac_abs_top_srcdir
=$srcdir ;;
39818 *) # Relative name.
39819 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
39820 ac_top_srcdir
=$ac_top_build_prefix$srcdir
39821 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
39823 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
39833 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
39834 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
39838 cat >>$CONFIG_STATUS <<\_ACEOF
39839 # If the template does not know about datarootdir, expand it.
39840 # FIXME: This hack should be removed a few years after 2.60.
39841 ac_datarootdir_hack
=; ac_datarootdir_seen
=
39843 case `sed -n '/datarootdir/ {
39852 ' $ac_file_inputs` in
39853 *datarootdir
*) ac_datarootdir_seen
=yes;;
39854 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
39855 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39856 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39858 cat >>$CONFIG_STATUS <<_ACEOF
39859 ac_datarootdir_hack='
39860 s&@datadir@&$datadir&g
39861 s&@docdir@&$docdir&g
39862 s&@infodir@&$infodir&g
39863 s&@localedir@&$localedir&g
39864 s&@mandir@&$mandir&g
39865 s&\\\${datarootdir}&$datarootdir&g' ;;
39869 # Neutralize VPATH when `$srcdir' = `.'.
39870 # Shell code in configure.ac might set extrasub.
39871 # FIXME: do we really want to maintain this feature?
39872 cat >>$CONFIG_STATUS <<_ACEOF
39876 cat >>$CONFIG_STATUS <<\_ACEOF
39878 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
39879 s
&@configure_input@
&$configure_input&;t t
39880 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
39881 s
&@srcdir@
&$ac_srcdir&;t t
39882 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
39883 s
&@top_srcdir@
&$ac_top_srcdir&;t t
39884 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
39885 s
&@builddir@
&$ac_builddir&;t t
39886 s
&@abs_builddir@
&$ac_abs_builddir&;t t
39887 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
39888 s
&@INSTALL@
&$ac_INSTALL&;t t
39889 $ac_datarootdir_hack
39890 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" | sed -f "$tmp/subs-4.
sed" >$tmp/out
39892 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39893 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
39894 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
39895 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
39896 which seems to be undefined. Please make sure it is defined." >&5
39897 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
39898 which seems to be undefined. Please make sure it is defined." >&2;}
39902 -) cat "$tmp/out"; rm -f "$tmp/out";;
39903 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39912 # Transform confdefs.h into a sed script `conftest.defines', that
39913 # substitutes the proper values into config.h.in to produce config.h.
39914 rm -f conftest.defines conftest.
tail
39915 # First, append a space to every undef/define line, to ease matching.
39916 echo 's/$/ /' >conftest.defines
39917 # Then, protect against being on the right side of a sed subst, or in
39918 # an unquoted here document, in config.status. If some macros were
39919 # called several times there might be several #defines for the same
39920 # symbol, which is useless. But do not sort them, since the last
39921 # AC_DEFINE must be honored.
39922 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
39923 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39924 # NAME is the cpp macro being defined, VALUE is the value it is being given.
39925 # PARAMS is the parameter list in the macro definition--in most cases, it's
39926 # just an empty string.
39927 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
39928 ac_dB
='\\)[ (].*,\\1define\\2'
39936 s/^[ ]*#[ ]*define[ ][ ]*//
39941 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39942 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39943 ' >>conftest.defines
39945 # Remove the space that was appended to ease matching.
39946 # Then replace #undef with comments. This is necessary, for
39947 # example, in the case of _POSIX_SOURCE, which is predefined and required
39948 # on some systems where configure will not decide to define it.
39949 # (The regexp can be short, since the line contains either #define or #undef.)
39951 s,^[ #]*u.*,/* & */,' >>conftest.defines
39953 # Break up conftest.defines:
39954 ac_max_sed_lines
=50
39956 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39957 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39958 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39960 ac_in
='$ac_file_inputs'
39961 ac_out
='"$tmp/out1"'
39962 ac_nxt
='"$tmp/out2"'
39966 # Write a here document:
39967 cat >>$CONFIG_STATUS <<_ACEOF
39968 # First, check the format of the line:
39969 cat >"\$tmp/defines.sed" <<\\CEOF
39970 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
39971 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
39975 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
39977 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39978 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
39979 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
39980 grep . conftest.
tail >/dev
/null ||
break
39981 rm -f conftest.defines
39982 mv conftest.
tail conftest.defines
39984 rm -f conftest.defines conftest.
tail
39986 echo "ac_result=$ac_in" >>$CONFIG_STATUS
39987 cat >>$CONFIG_STATUS <<\_ACEOF
39988 if test x
"$ac_file" != x-
; then
39989 echo "/* $configure_input */" >"$tmp/config.h"
39990 cat "$ac_result" >>"$tmp/config.h"
39991 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
39992 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39993 echo "$as_me: $ac_file is unchanged" >&6;}
39996 mv "$tmp/config.h" $ac_file
39999 echo "/* $configure_input */"
40011 { (exit 0); exit 0; }
40013 chmod +x
$CONFIG_STATUS
40014 ac_clean_files
=$ac_clean_files_save
40017 # configure is writing to config.log, and then calls config.status.
40018 # config.status does its own redirection, appending to config.log.
40019 # Unfortunately, on DOS this fails, as config.log is still kept open
40020 # by configure, so config.status won't be able to write to it; its
40021 # output is simply discarded. So we exec the FD to /dev/null,
40022 # effectively closing config.log, so it can be properly (re)opened and
40023 # appended to by config.status. When coming back to configure, we
40024 # need to make the FD available again.
40025 if test "$no_create" != yes; then
40027 ac_config_status_args
=
40028 test "$silent" = yes &&
40029 ac_config_status_args
="$ac_config_status_args --quiet"
40031 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
40033 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40034 # would make configure fail if this is the last instruction.
40035 $ac_cs_success ||
{ (exit 1); exit 1; }
40039 if test "x${silent}" != "xyes" ; then
40041 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
40042 echo " .\$7\$7.. .7\$\$7:. "
40043 echo " .\$\$:. ,\$7.7 "
40044 echo " .\$7. 7\$\$\$\$ .\$\$77 "
40045 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
40046 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
40047 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
40048 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
40049 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
40050 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
40051 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
40052 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
40053 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
40054 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
40055 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
40056 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
40057 echo " \$\$\$\$\$ \$\$\$ "
40058 echo " \$\$\$\$7. \$\$ (TM) "
40059 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
40060 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
40061 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
40065 { echo "$as_me:$LINENO: Package configured for: " >&5
40066 echo "$as_me: Package configured for: " >&6;}
40067 { echo "$as_me:$LINENO: OS type : $host_os" >&5
40068 echo "$as_me: OS type : $host_os" >&6;}
40069 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
40070 echo "$as_me: Host CPU : $host_cpu" >&6;}
40071 if test "${cross_compiling}" = "yes"; then
40072 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
40073 echo "$as_me: Cross Compilation = YES" >&6;}