2 # From configure.ac Revision: 107461 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.4.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in
29 *posix
*) set -o posix
;;
38 # Avoid depending upon Character Ranges.
39 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits
='0123456789'
43 as_cr_alnum
=$as_cr_Letters$as_cr_digits
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
50 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
58 # Support unset when possible.
59 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
75 # Find who we are. Look in the path if we contain no directory separator.
77 *[\\/]* ) as_myself
=$0 ;;
78 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
82 test -z "$as_dir" && as_dir
=.
83 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x
; then
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var
in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
113 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C
; export $as_var
116 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
120 # Required to use basename.
121 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
128 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
135 # Name of the executable.
136 as_me
=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 if test "x$CONFIG_SHELL" = x
; then
160 if (eval ":") 2>/dev
/null
; then
166 if test $as_have_required = yes && (eval ":
176 as_func_ret_success () {
179 as_func_ret_failure () {
184 if as_func_success; then
188 echo as_func_success failed.
191 if as_func_failure; then
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev
/null
; then
226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
227 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
230 test -z "$as_dir" && as_dir
=.
233 for as_base
in sh bash ksh sh5
; do
234 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
241 for as_shell
in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
253 case `(set -o) 2>/dev/null` in
254 *posix
*) set -o posix
;;
263 CONFIG_SHELL
=$as_shell
265 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
274 case `(set -o) 2>/dev/null` in
275 *posix
*) set -o posix
;;
291 as_func_ret_success
() {
294 as_func_ret_failure
() {
299 if as_func_success
; then
303 echo as_func_success failed.
306 if as_func_failure
; then
308 echo as_func_failure succeeded.
311 if as_func_ret_success
; then
315 echo as_func_ret_success failed.
318 if as_func_ret_failure
; then
320 echo as_func_ret_failure succeeded.
323 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
327 echo positional parameters were not saved.
330 test $exitcode = 0) ||
{ (exit 1); exit 1; }
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
347 if test "x$CONFIG_SHELL" != x
; then
348 for as_var
in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
356 if test $as_have_required = no
; then
357 echo This
script requires a shell
more modern than all the
358 echo shells that I found on your system. Please
install a
359 echo modern shell
, or manually run the
script under such a
360 echo shell
if you
do have one.
361 { (exit 1); exit 1; }
371 (eval "as_func_return () {
380 as_func_ret_success () {
383 as_func_ret_failure () {
388 if as_func_success; then
392 echo as_func_success failed.
395 if as_func_failure; then
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
416 echo positional parameters were not saved.
419 test \$exitcode = 0") ||
{
420 echo No shell found that supports shell functions.
421 echo Please tell autoconf@gnu.org about your system
,
422 echo including any error possibly output before this
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 chmod +x
"$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
466 # Exit status is that of the last command.
471 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
477 ECHO_C
= ECHO_N
= ECHO_T
=
481 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
488 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
495 rm -f conf$$ conf$$.exe conf$$.
file
496 if test -d conf$$.dir
; then
497 rm -f conf$$.dir
/conf$$.
file
503 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
511 elif ln conf$$.
file conf$$
2>/dev
/null
; then
516 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
517 rmdir conf$$.dir
2>/dev
/null
519 if mkdir
-p .
2>/dev
/null
; then
522 test -d .
/-p && rmdir .
/-p
526 if test -x / >/dev
/null
2>&1; then
529 if ls -dL / >/dev
/null
2>&1; then
536 if test -d "$1"; then
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
547 as_executable_p
=$as_test_x
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 exec 7<&0 </dev
/null
6>&1
560 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
567 ac_default_prefix
=/usr
/local
569 ac_config_libobj_dir
=.
575 SHELL
=${CONFIG_SHELL-/bin/sh}
577 # Identity of this package.
578 PACKAGE_NAME
='asterisk'
579 PACKAGE_TARNAME
='asterisk'
580 PACKAGE_VERSION
='1.4'
581 PACKAGE_STRING
='asterisk 1.4'
582 PACKAGE_BUGREPORT
='www.asterisk.org'
584 ac_unique_file
="main/asterisk.c"
585 # Factoring default headers for most tests.
586 ac_includes_default
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
631 program_transform_name
885 AST_DECLARATION_AFTER_STATEMENT
886 AST_NO_STRICT_OVERFLOW
918 ac_precious_vars
='build_alias
933 # Initialize some variables set by options.
935 ac_init_version
=false
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
945 program_transform_name
=s
,x
,x
,
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir
='${exec_prefix}/bin'
960 sbindir
='${exec_prefix}/sbin'
961 libexecdir
='${exec_prefix}/libexec'
962 datarootdir
='${prefix}/share'
963 datadir
='${datarootdir}'
964 sysconfdir
='${prefix}/etc'
965 sharedstatedir
='${prefix}/com'
966 localstatedir
='${prefix}/var'
967 includedir
='${prefix}/include'
968 oldincludedir
='/usr/include'
969 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir
='${datarootdir}/info'
975 libdir
='${exec_prefix}/lib'
976 localedir
='${datarootdir}/locale'
977 mandir
='${datarootdir}/man'
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\
$ac_option
991 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
1001 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1003 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1004 bindir
=$ac_optarg ;;
1006 -build |
--build |
--buil |
--bui |
--bu)
1007 ac_prev
=build_alias
;;
1008 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1009 build_alias
=$ac_optarg ;;
1011 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1012 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1013 ac_prev
=cache_file
;;
1014 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1015 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1016 cache_file
=$ac_optarg ;;
1018 --config-cache |
-C)
1019 cache_file
=config.cache
;;
1021 -datadir |
--datadir |
--datadi |
--datad)
1023 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1024 datadir
=$ac_optarg ;;
1026 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1027 |
--dataroo |
--dataro |
--datar)
1028 ac_prev
=datarootdir
;;
1029 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1030 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1031 datarootdir
=$ac_optarg ;;
1033 -disable-* |
--disable-*)
1034 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_
$ac_feature=no
;;
1042 -docdir |
--docdir |
--docdi |
--doc |
--do)
1044 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1045 docdir
=$ac_optarg ;;
1047 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1049 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1050 dvidir
=$ac_optarg ;;
1052 -enable-* |
--enable-*)
1053 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_
$ac_feature=\
$ac_optarg ;;
1061 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1062 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1063 |
--exec |
--exe |
--ex)
1064 ac_prev
=exec_prefix
;;
1065 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1066 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1067 |
--exec=* |
--exe=* |
--ex=*)
1068 exec_prefix
=$ac_optarg ;;
1070 -gas |
--gas |
--ga |
--g)
1071 # Obsolete; use --with-gas.
1074 -help |
--help |
--hel |
--he |
-h)
1075 ac_init_help
=long
;;
1076 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1077 ac_init_help
=recursive
;;
1078 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1079 ac_init_help
=short
;;
1081 -host |
--host |
--hos |
--ho)
1082 ac_prev
=host_alias
;;
1083 -host=* |
--host=* |
--hos=* |
--ho=*)
1084 host_alias
=$ac_optarg ;;
1086 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1088 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1090 htmldir
=$ac_optarg ;;
1092 -includedir |
--includedir |
--includedi |
--included |
--include \
1093 |
--includ |
--inclu |
--incl |
--inc)
1094 ac_prev
=includedir
;;
1095 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1096 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1097 includedir
=$ac_optarg ;;
1099 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1101 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1102 infodir
=$ac_optarg ;;
1104 -libdir |
--libdir |
--libdi |
--libd)
1106 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1107 libdir
=$ac_optarg ;;
1109 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1110 |
--libexe |
--libex |
--libe)
1111 ac_prev
=libexecdir
;;
1112 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1113 |
--libexe=* |
--libex=* |
--libe=*)
1114 libexecdir
=$ac_optarg ;;
1116 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1117 ac_prev
=localedir
;;
1118 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1119 localedir
=$ac_optarg ;;
1121 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1122 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1123 ac_prev
=localstatedir
;;
1124 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1125 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1126 localstatedir
=$ac_optarg ;;
1128 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1130 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1131 mandir
=$ac_optarg ;;
1133 -nfp |
--nfp |
--nf)
1134 # Obsolete; use --without-fp.
1137 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1138 |
--no-cr |
--no-c |
-n)
1141 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1142 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1145 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1146 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1147 |
--oldin |
--oldi |
--old |
--ol |
--o)
1148 ac_prev
=oldincludedir
;;
1149 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1150 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1151 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1152 oldincludedir
=$ac_optarg ;;
1154 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1156 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1157 prefix
=$ac_optarg ;;
1159 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1160 |
--program-pre |
--program-pr |
--program-p)
1161 ac_prev
=program_prefix
;;
1162 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1163 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1164 program_prefix
=$ac_optarg ;;
1166 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1167 |
--program-suf |
--program-su |
--program-s)
1168 ac_prev
=program_suffix
;;
1169 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1170 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1171 program_suffix
=$ac_optarg ;;
1173 -program-transform-name |
--program-transform-name \
1174 |
--program-transform-nam |
--program-transform-na \
1175 |
--program-transform-n |
--program-transform- \
1176 |
--program-transform |
--program-transfor \
1177 |
--program-transfo |
--program-transf \
1178 |
--program-trans |
--program-tran \
1179 |
--progr-tra |
--program-tr |
--program-t)
1180 ac_prev
=program_transform_name
;;
1181 -program-transform-name=* |
--program-transform-name=* \
1182 |
--program-transform-nam=* |
--program-transform-na=* \
1183 |
--program-transform-n=* |
--program-transform-=* \
1184 |
--program-transform=* |
--program-transfor=* \
1185 |
--program-transfo=* |
--program-transf=* \
1186 |
--program-trans=* |
--program-tran=* \
1187 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1188 program_transform_name
=$ac_optarg ;;
1190 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1192 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1193 pdfdir
=$ac_optarg ;;
1195 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1197 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1200 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1201 |
-silent |
--silent |
--silen |
--sile |
--sil)
1204 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1206 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1208 sbindir
=$ac_optarg ;;
1210 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1211 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1212 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1214 ac_prev
=sharedstatedir
;;
1215 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1216 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1217 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1219 sharedstatedir
=$ac_optarg ;;
1221 -site |
--site |
--sit)
1223 -site=* |
--site=* |
--sit=*)
1226 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1228 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1229 srcdir
=$ac_optarg ;;
1231 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1232 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1233 ac_prev
=sysconfdir
;;
1234 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1235 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1236 sysconfdir
=$ac_optarg ;;
1238 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1239 ac_prev
=target_alias
;;
1240 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1241 target_alias
=$ac_optarg ;;
1243 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1246 -version |
--version |
--versio |
--versi |
--vers |
-V)
1247 ac_init_version
=: ;;
1250 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_
$ac_package=\
$ac_optarg ;;
1258 -without-* |
--without-*)
1259 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1262 { echo "$as_me: error: invalid package name: $ac_package" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1265 eval with_
$ac_package=no
;;
1268 # Obsolete; use --with-x.
1271 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1272 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1273 ac_prev
=x_includes
;;
1274 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1275 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1276 x_includes
=$ac_optarg ;;
1278 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1279 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1280 ac_prev
=x_libraries
;;
1281 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1282 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1283 x_libraries
=$ac_optarg ;;
1285 -*) { echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287 { (exit 1); exit 1; }; }
1291 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1294 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295 { (exit 1); exit 1; }; }
1296 eval $ac_envvar=\
$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1303 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1310 if test -n "$ac_prev"; then
1311 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1312 { echo "$as_me: error: missing argument to $ac_option" >&2
1313 { (exit 1); exit 1; }; }
1316 # Be sure to have absolute directory names.
1317 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val
=\$
$ac_var
1324 [\\/$
]* | ?
:[\\/]* ) continue;;
1325 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1327 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328 { (exit 1); exit 1; }; }
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1336 target
=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x
; then
1340 if test "x$build_alias" = x
; then
1341 cross_compiling
=maybe
1342 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used." >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1350 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1352 test "$silent" = yes && exec 6>/dev
/null
1355 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di
=`ls -di .` &&
1357 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1358 { echo "$as_me: error: Working directory cannot be determined" >&2
1359 { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 { echo "$as_me: error: pwd does not report name of working directory" >&2
1362 { (exit 1); exit 1; }; }
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted
=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir
=`$as_dirname -- "$0" ||
1370 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$0" : 'X\(//\)[^/]' \| \
1372 X"$0" : 'X\(//\)$' \| \
1373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1397 ac_srcdir_defaulted
=no
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1401 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402 { (exit 1); exit 1; }; }
1404 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1407 { (exit 1); exit 1; }; }
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1417 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 for ac_var
in $ac_precious_vars; do
1420 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1422 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1433 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1491 --build=BUILD configure
for building on BUILD
[guessed
]
1492 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1496 if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive
) echo "Configuration of asterisk 1.4:";;
1503 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1504 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1505 --enable-dev-mode Turn on developer mode
1506 --disable-largefile omit support
for large files
1509 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1510 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1511 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1512 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1513 --with-curl=PATH use cURL files
in PATH
1514 --with-cap=PATH use POSIX
1.e capabilities files
in PATH
1515 --with-curses=PATH use curses files
in PATH
1516 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1518 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1519 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1520 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1521 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1522 --with-kde=PATH use KDE files
in PATH
1523 --with-ltdl=PATH use libtool files
in PATH
1524 --with-misdn=PATH use mISDN User Library files
in PATH
1525 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1526 --with-ncurses=PATH use ncurses files
in PATH
1527 --with-netsnmp=PATH use Net-SNMP files
in PATH
1528 --with-newt=PATH use newt files
in PATH
1529 --with-odbc=PATH use unixODBC files
in PATH
1530 --with-ogg=PATH use OGG files
in PATH
1531 --with-osptk=PATH use OSP Toolkit files
in PATH
1532 --with-oss=PATH use Open Sound System files
in PATH
1533 --with-popt=PATH use popt files
in PATH
1534 --with-postgres=PATH use PostgreSQL files
in PATH
1535 --with-pri=PATH use ISDN PRI files
in PATH
1536 --with-pwlib=PATH use PWlib files
in PATH
1537 --with-h323=PATH use OpenH323 files
in PATH
1538 --with-radius=PATH use Radius Client files
in PATH
1539 --with-speex=PATH use Speex files
in PATH
1540 --with-speexdsp=PATH use Speexdsp files
in PATH
1541 --with-sqlite=PATH use SQLite files
in PATH
1542 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1543 --with-ssl=PATH use OpenSSL files
in PATH
1544 --with-tds=PATH use FreeTDS files
in PATH
1545 --with-termcap=PATH use Termcap files
in PATH
1546 --with-tinfo=PATH use Term Info files
in PATH
1547 --with-tonezone=PATH use tonezone files
in PATH
1548 --with-usb=PATH use usb files
in PATH
1549 --with-vorbis=PATH use Vorbis files
in PATH
1550 --with-vpb=PATH use Voicetronix API files
in PATH
1551 --with-z=PATH use zlib files
in PATH
1552 --with-zaptel=PATH use Zaptel files
in PATH
1554 Some influential environment variables
:
1555 CC C compiler
command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1558 nonstandard directory
<lib dir
>
1559 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1560 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1561 you have headers
in a nonstandard directory
<include dir
>
1563 CXX C
++ compiler
command
1564 CXXFLAGS C
++ compiler flags
1565 CXXCPP C
++ preprocessor
1567 Use these variables to override the choices made by
`configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1570 Report bugs to <www.asterisk.org>.
1575 if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" || continue
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1631 asterisk configure 1.4
1632 generated by GNU Autoconf 2.61
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1643 cat >config.log <<_ACEOF
1644 This file contains any messages produced by compilers while
1645 running configure, to aid debugging if configure makes a mistake.
1647 It was created by asterisk $as_me 1.4, which was
1648 generated by GNU Autoconf 2.61. Invocation command line was
1660 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1661 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1662 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1663 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1664 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1666 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1667 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1669 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1670 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1671 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1672 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1673 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1674 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1675 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 test -z "$as_dir" && as_dir=.
1684 echo "PATH: $as_dir"
1700 # Keep a trace of the command line.
1701 # Strip out --no-create and --no-recursion so they do not pile up.
1702 # Strip out --silent because we don't want to record it for future runs.
1703 # Also quote any args containing shell meta-characters.
1704 # Make two passes to allow for proper duplicate-argument suppression.
1708 ac_must_keep_next=false
1714 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716 | -silent | --silent | --silen | --sile | --sil)
1719 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1722 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1724 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1725 if test $ac_must_keep_next = true; then
1726 ac_must_keep_next=false # Got value, back to normal.
1729 *=* | --config-cache | -C | -disable-* | --disable-* \
1730 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1731 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1732 | -with-* | --with-* | -without-* | --without-* | --x)
1733 case "$ac_configure_args0 " in
1734 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1737 -* ) ac_must_keep_next=true ;;
1740 ac_configure_args="$ac_configure_args '$ac_arg'"
1745 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1746 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1748 # When interrupted or exit'd, cleanup temporary files, and complete
1749 # config.log. We remove comments because anyway the quotes in there
1750 # would cause problems or look ugly.
1751 # WARNING: Use '\'' to represent an apostrophe within the trap.
1752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1753 trap 'exit_status=$?
1754 # Save into config.log some information that might help in debugging.
1759 ## ---------------- ##
1760 ## Cache variables. ##
1761 ## ---------------- ##
1764 # The following way of writing the cache mishandles newlines in values,
1766 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1767 eval ac_val=\$$ac_var
1771 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1772 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1775 _ | IFS | as_nl) ;; #(
1776 *) $as_unset $ac_var ;;
1781 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1782 *${as_nl}ac_space=\ *)
1784 "s/'\''/'\''\\\\'\'''\''/g;
1785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1801 for ac_var in $ac_subst_vars
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 echo "$ac_var='\''$ac_val'\''"
1811 if test -n "$ac_subst_files"; then
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1818 for ac_var in $ac_subst_files
1820 eval ac_val=\$$ac_var
1822 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 echo "$ac_var='\''$ac_val'\''"
1829 if test -s confdefs.h; then
1839 test "$ac_signal" != 0 &&
1840 echo "$as_me: caught signal $ac_signal"
1841 echo "$as_me: exit $exit_status"
1843 rm -f core *.core core.conftest.* &&
1844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1847 for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1855 # Predefined preprocessor variables.
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer explicitly selected file to automatically selected ones.
1884 if test -n "$CONFIG_SITE"; then
1885 set x "$CONFIG_SITE"
1886 elif test "x$prefix" != xNONE; then
1887 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1889 set x "$ac_default_prefix/share/config.site" \
1890 "$ac_default_prefix/etc/config.site"
1895 if test -r "$ac_site_file"; then
1896 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 echo "$as_me: loading cache $cache_file" >&6;}
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1915 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 echo "$as_me: creating cache $cache_file" >&6;}
1920 ac_header_list="$ac_header_list utime.h"
1921 # Check that the precious variables saved in the cache have kept the same
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1931 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1932 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1936 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1943 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1944 echo "$as_me: former value
: $ac_old_val" >&2;}
1945 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1946 echo "$as_me: current value
: $ac_new_val" >&2;}
1947 ac_cache_corrupted=:
1950 # Pass precious variables to config.status.
1951 if test "$ac_new_set" = set; then
1953 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1954 *) ac_arg=$ac_var=$ac_new_val ;;
1956 case " $ac_configure_args " in
1957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1962 if $ac_cache_corrupted; then
1963 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1964 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1965 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 # cross-compile macros
2004 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2005 if test -f "$ac_dir/install-sh"; then
2007 ac_install_sh="$ac_aux_dir/install-sh -c"
2009 elif test -f "$ac_dir/install.sh"; then
2011 ac_install_sh="$ac_aux_dir/install.sh -c"
2013 elif test -f "$ac_dir/shtool"; then
2015 ac_install_sh="$ac_aux_dir/shtool install -c"
2019 if test -z "$ac_aux_dir"; then
2020 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2021 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2022 { (exit 1); exit 1; }; }
2025 # These three variables are undocumented and unsupported,
2026 # and are intended to be withdrawn in a future Autoconf release.
2027 # They can cause serious problems if a builder's source tree is in a directory
2028 # whose full name contains unusual characters.
2029 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2030 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2031 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2034 # Make sure we can run config.sub.
2035 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2036 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2037 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2038 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: checking build system type" >&5
2041 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_build+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 ac_build_alias=$build_alias
2046 test "x$ac_build_alias" = x &&
2047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2048 test "x$ac_build_alias" = x &&
2049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2051 { (exit 1); exit 1; }; }
2052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2053 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2055 { (exit 1); exit 1; }; }
2058 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2059 echo "${ECHO_T}$ac_cv_build" >&6; }
2060 case $ac_cv_build in
2062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2063 echo "$as_me: error: invalid value of canonical build" >&2;}
2064 { (exit 1); exit 1; }; };;
2067 ac_save_IFS=$IFS; IFS='-'
2073 # Remember, the first character of IFS is used to create $*,
2074 # except with old shells:
2077 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2080 { echo "$as_me:$LINENO: checking host system type" >&5
2081 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2082 if test "${ac_cv_host+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test "x$host_alias" = x; then
2086 ac_cv_host=$ac_cv_build
2088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2089 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2091 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2096 echo "${ECHO_T}$ac_cv_host" >&6; }
2099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2100 echo "$as_me: error: invalid value of canonical host" >&2;}
2101 { (exit 1); exit 1; }; };;
2104 ac_save_IFS=$IFS; IFS='-'
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2114 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2118 # check existence of the package
2121 # specify output header file
2122 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2129 cat >>confdefs.h <<\_ACEOF
2130 #define _GNU_SOURCE 1
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 if test -n "$CC"; then
2169 { echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6; }
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2178 if test -z "$ac_cv_prog_CC"; then
2180 # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$ac_ct_CC"; then
2188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_ac_ct_CC="gcc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210 echo "${ECHO_T}$ac_ct_CC" >&6; }
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2216 if test "x$ac_ct_CC" = x; then
2219 case $cross_compiling:$ac_tool_warned in
2221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet. If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&5
2224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet. If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2227 ac_tool_warned=yes ;;
2235 if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254 ac_cv_prog_CC="${ac_tool_prefix}cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 if test -n "$CC"; then
2266 { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2276 if test -z "$CC"; then
2277 # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296 ac_prog_rejected=yes
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 if test $ac_prog_rejected = yes; then
2308 # We found a bogon in the path, so make sure we never use it.
2309 set dummy $ac_cv_prog_CC
2311 if test $# != 0; then
2312 # We chose a different compiler from the bogus one.
2313 # However, it has the same basename, so the bogon will be chosen
2314 # first if we set CC to just the basename; use the full file name.
2316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2322 if test -n "$CC"; then
2323 { echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6; }
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl.exe
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 if test -n "$CC"; then
2365 { echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6; }
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2373 test -n "$CC" && break
2376 if test -z "$CC"; then
2378 for ac_prog in cl.exe
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 if test -n "$ac_ct_CC"; then
2388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_ac_ct_CC="$ac_prog"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2410 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2417 test -n "$ac_ct_CC" && break
2420 if test "x$ac_ct_CC" = x; then
2423 case $cross_compiling:$ac_tool_warned in
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2440 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2441 See \`config.log
' for more details." >&5
2442 echo "$as_me: error: no acceptable C compiler found in \$PATH
2443 See \`config.log' for more details.
" >&2;}
2444 { (exit 1); exit 1; }; }
2446 # Provide some information about the compiler.
2447 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2448 ac_compiler=`set X $ac_compile; echo $2`
2449 { (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
2457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2458 (exit $ac_status); }
2459 { (ac_try="$ac_compiler -v >&5"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compiler -v >&5") 2>&5
2467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2468 (exit $ac_status); }
2469 { (ac_try="$ac_compiler -V >&5"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_compiler -V >&5") 2>&5
2477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2478 (exit $ac_status); }
2480 cat >conftest.$ac_ext <<_ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2495 ac_clean_files_save=$ac_clean_files
2496 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2497 # Try to create an executable without -o first, disregard a.out.
2498 # It will help us diagnose broken compilers, and finding out an intuition
2500 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2501 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2502 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 # List of possible output files, starting from the most likely.
2505 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2506 # only as a last resort. b.out is created by i960 compilers.
2507 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2509 # The IRIX 6 linker writes into existing files which may not be
2510 # executable, retaining their permissions. Remove them first so a
2511 # subsequent execution test works.
2513 for ac_file in $ac_files
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2522 if { (ac_try="$ac_link_default"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link_default") 2>&5
2530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2535 # so that the user can short-circuit this test for compilers unknown to
2537 for ac_file in $ac_files ''
2539 test -f "$ac_file" || continue
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2544 # We found the default executable, but exeext='' is most
2548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 # We set ac_cv_exeext here because the later test for it is not
2553 # safe: cross compilers may not add the suffix if given an `-o'
2554 # argument, so we may need to know it at that point already.
2555 # Even if this section looks crufty: it has the advantage of
2562 test "$ac_cv_exeext" = no && ac_cv_exeext=
2568 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2569 echo "${ECHO_T}$ac_file" >&6; }
2570 if test -z "$ac_file"; then
2571 echo "$as_me: failed program was
:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2575 See \
`config.log' for more details." >&5
2576 echo "$as_me: error: C compiler cannot create executables
2577 See \`config.log
' for more details." >&2;}
2578 { (exit 77); exit 77; }; }
2581 ac_exeext=$ac_cv_exeext
2583 # Check that the compiler produces executables we can run. If not, either
2584 # the compiler is broken, or we cross compile.
2585 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590 if { ac_try='.
/$ac_file'
2591 { (case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_try") 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 if test "$cross_compiling" = maybe; then
2605 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \
`config.log' for more details." >&5
2608 echo "$as_me: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details.
" >&2;}
2611 { (exit 1); exit 1; }; }
2615 { echo "$as_me:$LINENO: result
: yes" >&5
2616 echo "${ECHO_T}yes" >&6; }
2618 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 # Check that the compiler produces executables we can run. If not, either
2621 # the compiler is broken, or we cross compile.
2622 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2623 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2624 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2625 echo "${ECHO_T}$cross_compiling" >&6; }
2627 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2628 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2629 if { (ac_try="$ac_link"
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_link") 2>&5
2637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2638 (exit $ac_status); }; then
2639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2643 for ac_file in conftest.exe conftest conftest.*; do
2644 test -f "$ac_file" || continue
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2647 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2653 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2654 See \
`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log
' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2660 rm -f conftest$ac_cv_exeext
2661 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2667 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2669 if test "${ac_cv_objext+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2687 rm -f conftest.o conftest.obj
2688 if { (ac_try="$ac_compile"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compile") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; then
2698 for ac_file in conftest.o conftest.obj conftest.*; do
2699 test -f "$ac_file" || continue;
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2702 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2707 echo "$as_me: failed program was:" >&5
2708 sed 's
/^
/|
/' conftest.$ac_ext >&5
2710 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details.
" >&5
2712 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2713 See \
`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2719 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720 echo "${ECHO_T}$ac_cv_objext" >&6; }
2721 OBJEXT=$ac_cv_objext
2723 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2725 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 cat >conftest.$ac_ext <<_ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2750 *) ac_try_echo
=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compile") 2>conftest.er1
2755 grep -v '^ *+' conftest.er1
>conftest.err
2757 cat conftest.err
>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.
$ac_objext; then
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.
$ac_ext >&5
2771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2772 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2775 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2777 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2778 ac_test_CFLAGS
=${CFLAGS+set}
2779 ac_save_CFLAGS
=$CFLAGS
2780 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 ac_save_c_werror_flag
=$ac_c_werror_flag
2786 ac_c_werror_flag
=yes
2789 cat >conftest.
$ac_ext <<_ACEOF
2792 cat confdefs.h
>>conftest.
$ac_ext
2793 cat >>conftest.
$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2804 rm -f conftest.
$ac_objext
2805 if { (ac_try
="$ac_compile"
2807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compile") 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } && {
2818 test -z "$ac_c_werror_flag" ||
2819 test ! -s conftest.err
2820 } && test -s conftest.$ac_objext; then
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2827 cat >conftest.$ac_ext <<_ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2846 *) ac_try_echo
=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2851 grep -v '^ *+' conftest.er1
>conftest.err
2853 cat conftest.err
>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.
$ac_objext; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.
$ac_ext >&5
2864 ac_c_werror_flag
=$ac_save_c_werror_flag
2866 cat >conftest.
$ac_ext <<_ACEOF
2869 cat confdefs.h
>>conftest.
$ac_ext
2870 cat >>conftest.
$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2881 rm -f conftest.
$ac_objext
2882 if { (ac_try
="$ac_compile"
2884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 ac_c_werror_flag=$ac_save_c_werror_flag
2915 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2916 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918 CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920 if test "$GCC" = yes; then
2926 if test "$GCC" = yes; then
2932 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2933 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2934 if test "${ac_cv_prog_cc_c89+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 ac_cv_prog_cc_c89=no
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2947 #include <sys/types.h>
2948 #include <sys/stat.h>
2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2950 struct buf { int x; };
2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2952 static char *e (p, i)
2958 static char *f (char * (*g) (char **, int), char **p, ...)
2963 s = g (p, va_arg (v,int));
2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2969 function prototypes and stuff, but not '\xHH' hex character constants.
2970 These don't provoke an error unfortunately, instead are silently treated
2971 as 'x'. The following induces an error, until -std is added to get
2972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2973 array size at least. It's necessary to write '\x00'==0 to get something
2974 that's true only with -std. */
2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2978 inside strings and character constants. */
2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2982 int test (int i, double x);
2983 struct s1 {int (*f) (int a);};
2984 struct s2 {int (*f) (double a);};
2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2997 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2999 CC="$ac_save_CC $ac_arg"
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3004 *) ac_try_echo
=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1
>conftest.err
3011 cat conftest.err
>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.
$ac_objext; then
3017 ac_cv_prog_cc_c89
=$ac_arg
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.
$ac_ext >&5
3025 rm -f core conftest.err conftest.
$ac_objext
3026 test "x$ac_cv_prog_cc_c89" != "xno" && break
3028 rm -f conftest.
$ac_ext
3033 case "x$ac_cv_prog_cc_c89" in
3035 { echo "$as_me:$LINENO: result: none needed" >&5
3036 echo "${ECHO_T}none needed" >&6; } ;;
3038 { echo "$as_me:$LINENO: result: unsupported" >&5
3039 echo "${ECHO_T}unsupported" >&6; } ;;
3041 CC
="$CC $ac_cv_prog_cc_c89"
3042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3043 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3048 ac_cpp
='$CPP $CPPFLAGS'
3049 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3055 ac_cpp
='$CPP $CPPFLAGS'
3056 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3059 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3060 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3061 # On Suns, sometimes $CPP names a directory.
3062 if test -n "$CPP" && test -d "$CPP"; then
3065 if test -z "$CPP"; then
3066 if test "${ac_cv_prog_CPP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 # Double quotes because CPP needs to be expanded
3070 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3073 for ac_c_preproc_warn_flag
in '' yes
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.
$ac_ext <<_ACEOF
3084 cat confdefs.h
>>conftest.
$ac_ext
3085 cat >>conftest.
$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3088 # include <limits.h>
3090 # include <assert.h>
3094 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 # Broken: fails on valid input.
3119 rm -f conftest.err conftest.$ac_ext
3121 # OK, works on sane cases. Now check whether nonexistent headers
3122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #include <ac_nonexistent.h>
3131 if { (ac_try="$ac_cpp conftest.$ac_ext"
3133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3134 *) ac_try_echo
=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1
>conftest.err
3141 cat conftest.err
>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev
/null
&& {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3147 # Broken: success on invalid input.
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.
$ac_ext >&5
3153 # Passes both tests.
3158 rm -f conftest.err conftest.
$ac_ext
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.
$ac_ext
3163 if $ac_preproc_ok; then
3175 { echo "$as_me:$LINENO: result: $CPP" >&5
3176 echo "${ECHO_T}$CPP" >&6; }
3178 for ac_c_preproc_warn_flag
in '' yes
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.
$ac_ext <<_ACEOF
3189 cat confdefs.h
>>conftest.
$ac_ext
3190 cat >>conftest.
$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3193 # include <limits.h>
3195 # include <assert.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 && {
3212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 # Broken: fails on valid input.
3224 rm -f conftest.err conftest.$ac_ext
3226 # OK, works on sane cases. Now check whether nonexistent headers
3227 # can be detected and how.
3228 cat >conftest.$ac_ext <<_ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <ac_nonexistent.h>
3236 if { (ac_try="$ac_cpp conftest.$ac_ext"
3238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3239 *) ac_try_echo
=$ac_try;;
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3244 grep -v '^ *+' conftest.er1
>conftest.err
3246 cat conftest.err
>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev
/null
&& {
3249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3250 test ! -s conftest.err
3252 # Broken: success on invalid input.
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.
$ac_ext >&5
3258 # Passes both tests.
3263 rm -f conftest.err conftest.
$ac_ext
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.
$ac_ext
3268 if $ac_preproc_ok; then
3271 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." >&2;}
3275 { (exit 1); exit 1; }; }
3279 ac_cpp
='$CPP $CPPFLAGS'
3280 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3285 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3286 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3287 if test "${ac_cv_path_GREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 # Extract the first word of "grep ggrep" to use in msg output
3291 if test -z "$GREP"; then
3292 set dummy
grep ggrep
; ac_prog_name
=$2
3293 if test "${ac_cv_path_GREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 ac_path_GREP_found
=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3299 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3302 test -z "$as_dir" && as_dir
=.
3303 for ac_prog
in grep ggrep
; do
3304 for ac_exec_ext
in '' $ac_executable_extensions; do
3305 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3307 # Check for GNU ac_path_GREP and select it if it is found.
3308 # Check for GNU $ac_path_GREP
3309 case `"$ac_path_GREP" --version 2>&1` in
3311 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 echo 'GREP' >> "conftest.nl"
3321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3322 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3323 ac_count
=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_GREP
="$ac_path_GREP"
3327 ac_path_GREP_max
=$ac_count
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3332 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3336 $ac_path_GREP_found && break 3
3346 GREP
="$ac_cv_path_GREP"
3347 if test -z "$GREP"; then
3348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3354 ac_cv_path_GREP
=$GREP
3359 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3360 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3361 GREP
="$ac_cv_path_GREP"
3364 { echo "$as_me:$LINENO: checking for egrep" >&5
3365 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3366 if test "${ac_cv_path_EGREP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3370 then ac_cv_path_EGREP
="$GREP -E"
3372 # Extract the first word of "egrep" to use in msg output
3373 if test -z "$EGREP"; then
3374 set dummy
egrep; ac_prog_name
=$2
3375 if test "${ac_cv_path_EGREP+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 ac_path_EGREP_found
=false
3379 # Loop through the user's path and test for each of PROGNAME-LIST
3380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3381 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3384 test -z "$as_dir" && as_dir
=.
3385 for ac_prog
in egrep; do
3386 for ac_exec_ext
in '' $ac_executable_extensions; do
3387 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3389 # Check for GNU ac_path_EGREP and select it if it is found.
3390 # Check for GNU $ac_path_EGREP
3391 case `"$ac_path_EGREP" --version 2>&1` in
3393 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3396 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3399 cat "conftest.in" "conftest.in" >"conftest.tmp"
3400 mv "conftest.tmp" "conftest.in"
3401 cp "conftest.in" "conftest.nl"
3402 echo 'EGREP' >> "conftest.nl"
3403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3404 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3405 ac_count
=`expr $ac_count + 1`
3406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3407 # Best one so far, save it but keep looking for a better one
3408 ac_cv_path_EGREP
="$ac_path_EGREP"
3409 ac_path_EGREP_max
=$ac_count
3411 # 10*(2^10) chars as input seems more than enough
3412 test $ac_count -gt 10 && break
3414 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3418 $ac_path_EGREP_found && break 3
3428 EGREP
="$ac_cv_path_EGREP"
3429 if test -z "$EGREP"; then
3430 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3431 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3432 { (exit 1); exit 1; }; }
3436 ac_cv_path_EGREP
=$EGREP
3442 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3443 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3444 EGREP
="$ac_cv_path_EGREP"
3448 { echo "$as_me:$LINENO: checking for AIX" >&5
3449 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 $EGREP "yes" >/dev
/null
2>&1; then
3463 { echo "$as_me:$LINENO: result: yes" >&5
3464 echo "${ECHO_T}yes" >&6; }
3465 cat >>confdefs.h
<<\_ACEOF
3466 #define _ALL_SOURCE 1
3470 { echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6; }
3476 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3477 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3478 if test "${ac_cv_header_stdc+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 cat >conftest.
$ac_ext <<_ACEOF
3484 cat confdefs.h
>>conftest.
$ac_ext
3485 cat >>conftest.
$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3500 rm -f conftest.
$ac_objext
3501 if { (ac_try
="$ac_compile"
3503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_compile") 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } && {
3514 test -z "$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3516 } && test -s conftest.$ac_objext; then
3517 ac_cv_header_stdc=yes
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 ac_cv_header_stdc=no
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 if test $ac_cv_header_stdc = yes; then
3528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3539 $EGREP "memchr" >/dev/null 2>&1; then
3542 ac_cv_header_stdc=no
3548 if test $ac_cv_header_stdc = yes; then
3549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 $EGREP "free" >/dev/null 2>&1; then
3563 ac_cv_header_stdc=no
3569 if test $ac_cv_header_stdc = yes; then
3570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3571 if test "$cross_compiling" = yes; then
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3582 #if ((' ' & 0x0FF) == 0x020)
3583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3586 # define ISLOWER(c) \
3587 (('a' <= (c) && (c) <= 'i') \
3588 || ('j' <= (c) && (c) <= 'r') \
3589 || ('s' <= (c) && (c) <= 'z'))
3590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3598 for (i = 0; i < 256; i++)
3599 if (XOR (islower (i), ISLOWER (i))
3600 || toupper (i) != TOUPPER (i))
3605 rm -f conftest$ac_exeext
3606 if { (ac_try="$ac_link"
3608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3609 *) ac_try_echo
=$ac_try;;
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_link") 2>&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3616 { (case "(($ac_try" in
3617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_try") 2>&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3627 echo "$as_me: program exited with status $ac_status" >&5
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3632 ac_cv_header_stdc=no
3634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3640 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3641 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3642 if test $ac_cv_header_stdc = yes; then
3644 cat >>confdefs.h <<\_ACEOF
3645 #define STDC_HEADERS 1
3650 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3660 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3661 inttypes.h stdint.h unistd.h
3663 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 $ac_includes_default
3677 #include <$ac_header>
3679 rm -f conftest.$ac_objext
3680 if { (ac_try="$ac_compile"
3682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3683 *) ac_try_echo
=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_compile") 2>conftest.er1
3688 grep -v '^ *+' conftest.er1
>conftest.err
3690 cat conftest.err
>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } && {
3693 test -z "$ac_c_werror_flag" ||
3694 test ! -s conftest.err
3695 } && test -s conftest.
$ac_objext; then
3696 eval "$as_ac_Header=yes"
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.
$ac_ext >&5
3701 eval "$as_ac_Header=no"
3704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3706 ac_res
=`eval echo '${'$as_ac_Header'}'`
3707 { echo "$as_me:$LINENO: result: $ac_res" >&5
3708 echo "${ECHO_T}$ac_res" >&6; }
3709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3710 cat >>confdefs.h
<<_ACEOF
3711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3719 if test "${ac_cv_header_minix_config_h+set}" = set; then
3720 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3721 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3722 if test "${ac_cv_header_minix_config_h+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3726 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3728 # Is the header compilable?
3729 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3730 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3731 cat >conftest.
$ac_ext <<_ACEOF
3734 cat confdefs.h
>>conftest.
$ac_ext
3735 cat >>conftest.
$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 $ac_includes_default
3738 #include <minix/config.h>
3740 rm -f conftest.
$ac_objext
3741 if { (ac_try
="$ac_compile"
3743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && {
3754 test -z "$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 } && test -s conftest.$ac_objext; then
3757 ac_header_compiler=yes
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 ac_header_compiler=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3767 echo "${ECHO_T}$ac_header_compiler" >&6; }
3769 # Is the header present?
3770 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3771 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 #include <minix/config.h>
3780 if { (ac_try="$ac_cpp conftest.$ac_ext"
3782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3783 *) ac_try_echo
=$ac_try;;
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3788 grep -v '^ *+' conftest.er1
>conftest.err
3790 cat conftest.err
>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } >/dev
/null
&& {
3793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3796 ac_header_preproc
=yes
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.
$ac_ext >&5
3801 ac_header_preproc
=no
3804 rm -f conftest.err conftest.
$ac_ext
3805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3806 echo "${ECHO_T}$ac_header_preproc" >&6; }
3808 # So? What about this header?
3809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3811 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3812 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3813 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3814 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3815 ac_header_preproc
=yes
3818 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3819 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3821 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3823 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3824 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3825 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3827 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3829 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3831 ## ------------------------------- ##
3832 ## Report this to www.asterisk.org ##
3833 ## ------------------------------- ##
3835 ) |
sed "s/^/$as_me: WARNING: /" >&2
3838 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3839 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3840 if test "${ac_cv_header_minix_config_h+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 ac_cv_header_minix_config_h
=$ac_header_preproc
3845 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3846 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3849 if test $ac_cv_header_minix_config_h = yes; then
3856 if test "$MINIX" = yes; then
3858 cat >>confdefs.h
<<\_ACEOF
3859 #define _POSIX_SOURCE 1
3863 cat >>confdefs.h
<<\_ACEOF
3864 #define _POSIX_1_SOURCE 2
3868 cat >>confdefs.h
<<\_ACEOF
3884 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3885 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3886 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 cat >conftest.
$ac_ext <<_ACEOF
3892 cat confdefs.h
>>conftest.
$ac_ext
3893 cat >>conftest.
$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3896 # define __EXTENSIONS__ 1
3897 $ac_includes_default
3906 rm -f conftest.
$ac_objext
3907 if { (ac_try
="$ac_compile"
3909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3923 ac_cv_safe_to_define___extensions__=yes
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ac_cv_safe_to_define___extensions__=no
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3934 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3935 test $ac_cv_safe_to_define___extensions__ = yes &&
3936 cat >>confdefs.h <<\_ACEOF
3937 #define __EXTENSIONS__ 1
3940 cat >>confdefs.h <<\_ACEOF
3941 #define _POSIX_PTHREAD_SEMANTICS 1
3944 cat >>confdefs.h <<\_ACEOF
3945 #define _TANDEM_SOURCE 1
3948 # note- does not work on FreeBSD
3950 case "${host_os}" in
3952 ac_default_prefix=/usr/local
3953 CPPFLAGS=-I/usr/local/include
3954 LDFLAGS=-L/usr/local/lib
3957 ac_default_prefix=/usr
3958 if test ${sysconfdir} = '${prefix}/etc'; then
3961 if test ${mandir} = '${prefix}/man'; then
3962 mandir=/usr/share/man
3967 if test ${localstatedir} = '${prefix}/var'; then
3971 BUILD_PLATFORM=${build}
3972 BUILD_CPU=${build_cpu}
3973 BUILD_VENDOR=${build_vendor}
3974 BUILD_OS=${build_os}
3981 HOST_PLATFORM=${host}
3982 HOST_CPU=${host_cpu}
3983 HOST_VENDOR=${host_vendor}
3991 case "${host_os}" in
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}uname; ac_word=$2
4015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4017 if test "${ac_cv_path_UNAME+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 UNAME=$ac_cv_path_UNAME
4044 if test -n "$UNAME"; then
4045 { echo "$as_me:$LINENO: result: $UNAME" >&5
4046 echo "${ECHO_T}$UNAME" >&6; }
4048 { echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6; }
4054 if test -z "$ac_cv_path_UNAME"; then
4056 # Extract the first word of "uname", so it can be a program name with args.
4057 set dummy uname; ac_word=$2
4058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4060 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 case $ac_pt_UNAME in
4065 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4087 if test -n "$ac_pt_UNAME"; then
4088 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4089 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4091 { echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6; }
4095 if test "x$ac_pt_UNAME" = x; then
4098 case $cross_compiling:$ac_tool_warned in
4100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4101 whose name does not start with the host triplet. If you think this
4102 configuration is useful to you, please write to autoconf@gnu.org." >&5
4103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4104 whose name does not start with the host triplet. If you think this
4105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4106 ac_tool_warned=yes ;;
4111 UNAME="$ac_cv_path_UNAME"
4114 if test ! x"${UNAME}" = xNo; then
4115 PBX_OSREV=$(${UNAME} -r)
4125 # cross-compile checks
4126 if test "${cross_compiling}" = "yes";
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4133 if test "${ac_cv_prog_CC+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 if test -n "$CC"; then
4158 { echo "$as_me:$LINENO: result: $CC" >&5
4159 echo "${ECHO_T}$CC" >&6; }
4161 { echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6; }
4167 if test -z "$ac_cv_prog_CC"; then
4169 # Extract the first word of "gcc", so it can be a program name with args.
4170 set dummy gcc; ac_word=$2
4171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 if test -n "$ac_ct_CC"; then
4177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_ac_ct_CC="gcc"
4187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4197 if test -n "$ac_ct_CC"; then
4198 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4199 echo "${ECHO_T}$ac_ct_CC" >&6; }
4201 { echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6; }
4205 if test "x$ac_ct_CC" = x; then
4208 case $cross_compiling:$ac_tool_warned in
4210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4211 whose name does not start with the host triplet. If you think this
4212 configuration is useful to you, please write to autoconf@gnu.org." >&5
4213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4214 whose name does not start with the host triplet. If you think this
4215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4216 ac_tool_warned=yes ;;
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}g++; ac_word=$2
4227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229 if test "${ac_cv_prog_CXX+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 if test -n "$CXX"; then
4233 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 if test -n "$CXX"; then
4254 { echo "$as_me:$LINENO: result: $CXX" >&5
4255 echo "${ECHO_T}$CXX" >&6; }
4257 { echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6; }
4263 if test -z "$ac_cv_prog_CXX"; then
4265 # Extract the first word of "g++", so it can be a program name with args.
4266 set dummy g++; ac_word=$2
4267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4269 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 if test -n "$ac_ct_CXX"; then
4273 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_ac_ct_CXX="g++"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4293 if test -n "$ac_ct_CXX"; then
4294 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4295 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4297 { echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6; }
4301 if test "x$ac_ct_CXX" = x; then
4304 case $cross_compiling:$ac_tool_warned in
4306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4307 whose name does not start with the host triplet. If you think this
4308 configuration is useful to you, please write to autoconf@gnu.org." >&5
4309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4310 whose name does not start with the host triplet. If you think this
4311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4312 ac_tool_warned=yes ;;
4317 CXX="$ac_cv_prog_CXX"
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}ld; ac_word=$2
4323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4325 if test "${ac_cv_prog_LD+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 if test -n "$LD"; then
4329 ac_cv_prog_LD="$LD" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_LD="${ac_tool_prefix}ld"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 if test -n "$LD"; then
4350 { echo "$as_me:$LINENO: result: $LD" >&5
4351 echo "${ECHO_T}$LD" >&6; }
4353 { echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6; }
4359 if test -z "$ac_cv_prog_LD"; then
4361 # Extract the first word of "ld", so it can be a program name with args.
4362 set dummy ld; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 if test -n "$ac_ct_LD"; then
4369 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_ac_ct_LD="ld"
4379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4389 if test -n "$ac_ct_LD"; then
4390 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4391 echo "${ECHO_T}$ac_ct_LD" >&6; }
4393 { echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6; }
4397 if test "x$ac_ct_LD" = x; then
4400 case $cross_compiling:$ac_tool_warned in
4402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4403 whose name does not start with the host triplet. If you think this
4404 configuration is useful to you, please write to autoconf@gnu.org." >&5
4405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4406 whose name does not start with the host triplet. If you think this
4407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4408 ac_tool_warned=yes ;;
4416 if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4418 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_prog_RANLIB+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 if test -n "$RANLIB"; then
4425 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 RANLIB=$ac_cv_prog_RANLIB
4445 if test -n "$RANLIB"; then
4446 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4447 echo "${ECHO_T}$RANLIB" >&6; }
4449 { echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6; }
4455 if test -z "$ac_cv_prog_RANLIB"; then
4456 ac_ct_RANLIB=$RANLIB
4457 # Extract the first word of "ranlib", so it can be a program name with args.
4458 set dummy ranlib; ac_word=$2
4459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4461 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 if test -n "$ac_ct_RANLIB"; then
4465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_ac_ct_RANLIB="ranlib"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4485 if test -n "$ac_ct_RANLIB"; then
4486 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4487 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4489 { echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6; }
4493 if test "x$ac_ct_RANLIB" = x; then
4496 case $cross_compiling:$ac_tool_warned in
4498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4499 whose name does not start with the host triplet. If you think this
4500 configuration is useful to you, please write to autoconf@gnu.org." >&5
4501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4502 whose name does not start with the host triplet. If you think this
4503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4504 ac_tool_warned=yes ;;
4506 RANLIB=$ac_ct_RANLIB
4509 RANLIB="$ac_cv_prog_RANLIB"
4514 # Checks for programs.
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520 if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4522 set dummy ${ac_tool_prefix}gcc; 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_CC+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 if test -n "$CC"; then
4529 ac_cv_prog_CC="$CC" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 if test -n "$CC"; then
4550 { echo "$as_me:$LINENO: result: $CC" >&5
4551 echo "${ECHO_T}$CC" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4559 if test -z "$ac_cv_prog_CC"; then
4561 # Extract the first word of "gcc", so it can be a program name with args.
4562 set dummy gcc; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$ac_ct_CC"; then
4569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_ac_ct_CC="gcc"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4589 if test -n "$ac_ct_CC"; then
4590 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4591 echo "${ECHO_T}$ac_ct_CC" >&6; }
4593 { echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6; }
4597 if test "x$ac_ct_CC" = x; then
4600 case $cross_compiling:$ac_tool_warned in
4602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4603 whose name does not start with the host triplet. If you think this
4604 configuration is useful to you, please write to autoconf@gnu.org." >&5
4605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4606 whose name does not start with the host triplet. If you think this
4607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4608 ac_tool_warned=yes ;;
4616 if test -z "$CC"; then
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}cc; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="${ac_tool_prefix}cc"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$CC"; then
4647 { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4657 if test -z "$CC"; then
4658 # Extract the first word of "cc", so it can be a program name with args.
4659 set dummy cc; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_CC+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 if test -n "$CC"; then
4666 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4677 ac_prog_rejected=yes
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 if test $ac_prog_rejected = yes; then
4689 # We found a bogon in the path, so make sure we never use it.
4690 set dummy $ac_cv_prog_CC
4692 if test $# != 0; then
4693 # We chose a different compiler from the bogus one.
4694 # However, it has the same basename, so the bogon will be chosen
4695 # first if we set CC to just the basename; use the full file name.
4697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4703 if test -n "$CC"; then
4704 { echo "$as_me:$LINENO: result: $CC" >&5
4705 echo "${ECHO_T}$CC" >&6; }
4707 { echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6; }
4713 if test -z "$CC"; then
4714 if test -n "$ac_tool_prefix"; then
4715 for ac_prog in cl.exe
4717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_prog_CC+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 if test -n "$CC"; then
4725 ac_cv_prog_CC="$CC" # Let the user override the test.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 if test -n "$CC"; then
4746 { echo "$as_me:$LINENO: result: $CC" >&5
4747 echo "${ECHO_T}$CC" >&6; }
4749 { echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6; }
4754 test -n "$CC" && break
4757 if test -z "$CC"; then
4759 for ac_prog in cl.exe
4761 # Extract the first word of "$ac_prog", so it can be a program name with args.
4762 set dummy $ac_prog; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 if test -n "$ac_ct_CC"; then
4769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_ac_ct_CC="$ac_prog"
4779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4789 if test -n "$ac_ct_CC"; then
4790 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4791 echo "${ECHO_T}$ac_ct_CC" >&6; }
4793 { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4798 test -n "$ac_ct_CC" && break
4801 if test "x$ac_ct_CC" = x; then
4804 case $cross_compiling:$ac_tool_warned in
4806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4807 whose name does not start with the host triplet. If you think this
4808 configuration is useful to you, please write to autoconf@gnu.org." >&5
4809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4810 whose name does not start with the host triplet. If you think this
4811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4812 ac_tool_warned=yes ;;
4821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4822 See \`config.log
' for more details." >&5
4823 echo "$as_me: error: no acceptable C compiler found in \$PATH
4824 See \`config.log' for more details.
" >&2;}
4825 { (exit 1); exit 1; }; }
4827 # Provide some information about the compiler.
4828 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4829 ac_compiler=`set X $ac_compile; echo $2`
4830 { (ac_try="$ac_compiler --version >&5"
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_compiler --version >&5") 2>&5
4838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4839 (exit $ac_status); }
4840 { (ac_try="$ac_compiler -v >&5"
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_compiler -v >&5") 2>&5
4848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4849 (exit $ac_status); }
4850 { (ac_try="$ac_compiler -V >&5"
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_compiler -V >&5") 2>&5
4858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4859 (exit $ac_status); }
4861 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4862 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4863 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4864 echo $ECHO_N "(cached
) $ECHO_C" >&6
4866 cat >conftest.$ac_ext <<_ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4884 rm -f conftest.$ac_objext
4885 if { (ac_try="$ac_compile"
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_compile") 2>conftest.er1
4893 grep -v '^ *+' conftest.er1 >conftest.err
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4897 (exit $ac_status); } && {
4898 test -z "$ac_c_werror_flag" ||
4899 test ! -s conftest.err
4900 } && test -s conftest.$ac_objext; then
4903 echo "$as_me: failed program was
:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4913 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4915 GCC=`test $ac_compiler_gnu = yes && echo yes`
4916 ac_test_CFLAGS=${CFLAGS+set}
4917 ac_save_CFLAGS=$CFLAGS
4918 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4919 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4920 if test "${ac_cv_prog_cc_g+set}" = set; then
4921 echo $ECHO_N "(cached
) $ECHO_C" >&6
4923 ac_save_c_werror_flag=$ac_c_werror_flag
4924 ac_c_werror_flag=yes
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4942 rm -f conftest.$ac_objext
4943 if { (ac_try="$ac_compile"
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_compile") 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4955 (exit $ac_status); } && {
4956 test -z "$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 } && test -s conftest.$ac_objext; then
4961 echo "$as_me: failed program was
:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4980 rm -f conftest.$ac_objext
4981 if { (ac_try="$ac_compile"
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_compile") 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest.$ac_objext; then
4999 echo "$as_me: failed program was
:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 ac_c_werror_flag=$ac_save_c_werror_flag
5004 cat >conftest.$ac_ext <<_ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_compile") 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest.$ac_objext; then
5038 echo "$as_me: failed program was
:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 ac_c_werror_flag=$ac_save_c_werror_flag
5053 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5055 if test "$ac_test_CFLAGS" = set; then
5056 CFLAGS=$ac_save_CFLAGS
5057 elif test $ac_cv_prog_cc_g = yes; then
5058 if test "$GCC" = yes; then
5064 if test "$GCC" = yes; then
5070 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5071 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5072 if test "${ac_cv_prog_cc_c89+set}" = set; then
5073 echo $ECHO_N "(cached
) $ECHO_C" >&6
5075 ac_cv_prog_cc_c89=no
5077 cat >conftest.$ac_ext <<_ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5085 #include <sys/types.h>
5086 #include <sys/stat.h>
5087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5088 struct buf { int x; };
5089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5090 static char *e (p, i)
5096 static char *f (char * (*g) (char **, int), char **p, ...)
5101 s = g (p, va_arg (v,int));
5106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5107 function prototypes and stuff, but not '\xHH' hex character constants.
5108 These don't provoke an error unfortunately, instead are silently treated
5109 as 'x'. The following induces an error, until -std is added to get
5110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5111 array size at least. It's necessary to write '\x00'==0 to get something
5112 that's true only with -std. */
5113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5116 inside strings and character constants. */
5118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5120 int test (int i, double x);
5121 struct s1 {int (*f) (int a);};
5122 struct s2 {int (*f) (double a);};
5123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5137 CC="$ac_save_CC $ac_arg"
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
5155 ac_cv_prog_cc_c89=$ac_arg
5157 echo "$as_me: failed program was
:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5163 rm -f core conftest.err conftest.$ac_objext
5164 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5166 rm -f conftest.$ac_ext
5171 case "x
$ac_cv_prog_cc_c89" in
5173 { echo "$as_me:$LINENO: result
: none needed
" >&5
5174 echo "${ECHO_T}none needed
" >&6; } ;;
5176 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5177 echo "${ECHO_T}unsupported
" >&6; } ;;
5179 CC="$CC $ac_cv_prog_cc_c89"
5180 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5181 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5186 ac_cpp='$CPP $CPPFLAGS'
5187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 if test -z "$CXX"; then
5197 if test -n "$CCC"; then
5200 if test -n "$ac_tool_prefix"; then
5201 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5205 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5206 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5207 if test "${ac_cv_prog_CXX+set}" = set; then
5208 echo $ECHO_N "(cached
) $ECHO_C" >&6
5210 if test -n "$CXX"; then
5211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5221 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5231 if test -n "$CXX"; then
5232 { echo "$as_me:$LINENO: result
: $CXX" >&5
5233 echo "${ECHO_T}$CXX" >&6; }
5235 { echo "$as_me:$LINENO: result
: no
" >&5
5236 echo "${ECHO_T}no
" >&6; }
5240 test -n "$CXX" && break
5243 if test -z "$CXX"; then
5245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5250 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5252 echo $ECHO_N "(cached
) $ECHO_C" >&6
5254 if test -n "$ac_ct_CXX"; then
5255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_prog_ac_ct_CXX="$ac_prog"
5265 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5275 if test -n "$ac_ct_CXX"; then
5276 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5277 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5279 { echo "$as_me:$LINENO: result
: no
" >&5
5280 echo "${ECHO_T}no
" >&6; }
5284 test -n "$ac_ct_CXX" && break
5287 if test "x
$ac_ct_CXX" = x; then
5290 case $cross_compiling:$ac_tool_warned in
5292 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5293 whose name does not start with the
host triplet. If you think this
5294 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5295 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5296 whose name does not start with the
host triplet. If you think this
5297 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5298 ac_tool_warned=yes ;;
5306 # Provide some information about the compiler.
5307 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5308 ac_compiler=`set X $ac_compile; echo $2`
5309 { (ac_try="$ac_compiler --version >&5"
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_compiler --version >&5") 2>&5
5317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5318 (exit $ac_status); }
5319 { (ac_try="$ac_compiler -v >&5"
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compiler -v >&5") 2>&5
5327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5328 (exit $ac_status); }
5329 { (ac_try="$ac_compiler -V >&5"
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compiler -V >&5") 2>&5
5337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5338 (exit $ac_status); }
5340 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5341 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5342 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5343 echo $ECHO_N "(cached
) $ECHO_C" >&6
5345 cat >conftest.$ac_ext <<_ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5363 rm -f conftest.$ac_objext
5364 if { (ac_try="$ac_compile"
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_compile") 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5376 (exit $ac_status); } && {
5377 test -z "$ac_cxx_werror_flag" ||
5378 test ! -s conftest.err
5379 } && test -s conftest.$ac_objext; then
5382 echo "$as_me: failed program was
:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5392 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5393 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5394 GXX=`test $ac_compiler_gnu = yes && echo yes`
5395 ac_test_CXXFLAGS=${CXXFLAGS+set}
5396 ac_save_CXXFLAGS=$CXXFLAGS
5397 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5398 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5399 if test "${ac_cv_prog_cxx_g+set}" = set; then
5400 echo $ECHO_N "(cached
) $ECHO_C" >&6
5402 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5403 ac_cxx_werror_flag=yes
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5421 rm -f conftest.$ac_objext
5422 if { (ac_try="$ac_compile"
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_compile") 2>conftest.er1
5430 grep -v '^ *+' conftest.er1 >conftest.err
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5434 (exit $ac_status); } && {
5435 test -z "$ac_cxx_werror_flag" ||
5436 test ! -s conftest.err
5437 } && test -s conftest.$ac_objext; then
5438 ac_cv_prog_cxx_g=yes
5440 echo "$as_me: failed program was
:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5444 cat >conftest.$ac_ext <<_ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5459 rm -f conftest.$ac_objext
5460 if { (ac_try="$ac_compile"
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compile") 2>conftest.er1
5468 grep -v '^ *+' conftest.er1 >conftest.err
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5472 (exit $ac_status); } && {
5473 test -z "$ac_cxx_werror_flag" ||
5474 test ! -s conftest.err
5475 } && test -s conftest.$ac_objext; then
5478 echo "$as_me: failed program was
:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_cxx_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
5515 ac_cv_prog_cxx_g=yes
5517 echo "$as_me: failed program was
:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5532 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5533 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5534 if test "$ac_test_CXXFLAGS" = set; then
5535 CXXFLAGS=$ac_save_CXXFLAGS
5536 elif test $ac_cv_prog_cxx_g = yes; then
5537 if test "$GXX" = yes; then
5543 if test "$GXX" = yes; then
5550 ac_cpp='$CPP $CPPFLAGS'
5551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5561 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5562 # On Suns, sometimes $CPP names a directory.
5563 if test -n "$CPP" && test -d "$CPP"; then
5566 if test -z "$CPP"; then
5567 if test "${ac_cv_prog_CPP+set}" = set; then
5568 echo $ECHO_N "(cached
) $ECHO_C" >&6
5570 # Double quotes because CPP needs to be expanded
5571 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5574 for ac_c_preproc_warn_flag in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error
" is here to catch this case.
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5589 # include <limits.h>
5591 # include <assert.h>
5595 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5603 grep -v '^ *+' conftest.er1 >conftest.err
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5607 (exit $ac_status); } >/dev/null && {
5608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5609 test ! -s conftest.err
5613 echo "$as_me: failed program was
:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 # Broken: fails on valid input.
5620 rm -f conftest.err conftest.$ac_ext
5622 # OK, works on sane cases. Now check whether nonexistent headers
5623 # can be detected and how.
5624 cat >conftest.$ac_ext <<_ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <ac_nonexistent.h>
5632 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 2>conftest.er1
5640 grep -v '^ *+' conftest.er1 >conftest.err
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5644 (exit $ac_status); } >/dev/null && {
5645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5648 # Broken: success on invalid input.
5651 echo "$as_me: failed program was
:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 # Passes both tests.
5659 rm -f conftest.err conftest.$ac_ext
5662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5663 rm -f conftest.err conftest.$ac_ext
5664 if $ac_preproc_ok; then
5676 { echo "$as_me:$LINENO: result
: $CPP" >&5
5677 echo "${ECHO_T}$CPP" >&6; }
5679 for ac_c_preproc_warn_flag in '' yes
5681 # Use a header file that comes with gcc, so configuring glibc
5682 # with a fresh cross-compiler works.
5683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684 # <limits.h> exists even on freestanding compilers.
5685 # On the NeXT, cc -E runs the code through the compiler's parser,
5686 # not just through cpp. "Syntax error
" is here to catch this case.
5687 cat >conftest.$ac_ext <<_ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5694 # include <limits.h>
5696 # include <assert.h>
5700 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5712 (exit $ac_status); } >/dev/null && {
5713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5714 test ! -s conftest.err
5718 echo "$as_me: failed program was
:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 # Broken: fails on valid input.
5725 rm -f conftest.err conftest.$ac_ext
5727 # OK, works on sane cases. Now check whether nonexistent headers
5728 # can be detected and how.
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <ac_nonexistent.h>
5737 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5745 grep -v '^ *+' conftest.er1 >conftest.err
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5749 (exit $ac_status); } >/dev/null && {
5750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5753 # Broken: success on invalid input.
5756 echo "$as_me: failed program was
:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 # Passes both tests.
5764 rm -f conftest.err conftest.$ac_ext
5767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768 rm -f conftest.err conftest.$ac_ext
5769 if $ac_preproc_ok; then
5772 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5773 See \
`config.log' for more details." >&5
5774 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5775 See \`config.log
' for more details." >&2;}
5776 { (exit 1); exit 1; }; }
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5782 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786 ac_cpp='$CXXCPP $CPPFLAGS'
5787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5788 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5790 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5791 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5792 if test -z "$CXXCPP"; then
5793 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 # Double quotes because CXXCPP needs to be expanded
5797 for CXXCPP in "$CXX -E" "/lib/cpp"
5800 for ac_cxx_preproc_warn_flag in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser
,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat >conftest.
$ac_ext <<_ACEOF
5811 cat confdefs.h
>>conftest.
$ac_ext
5812 cat >>conftest.
$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5815 # include <limits.h>
5817 # include <assert.h>
5821 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null && {
5834 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5835 test ! -s conftest.err
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 # Broken: fails on valid input.
5846 rm -f conftest.err conftest.$ac_ext
5848 # OK, works on sane cases. Now check whether nonexistent headers
5849 # can be detected and how.
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #include <ac_nonexistent.h>
5858 if { (ac_try="$ac_cpp conftest.$ac_ext"
5860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5861 *) ac_try_echo
=$ac_try;;
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5866 grep -v '^ *+' conftest.er1
>conftest.err
5868 cat conftest.err
>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev
/null
&& {
5871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5874 # Broken: success on invalid input.
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.
$ac_ext >&5
5880 # Passes both tests.
5885 rm -f conftest.err conftest.
$ac_ext
5888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5889 rm -f conftest.err conftest.
$ac_ext
5890 if $ac_preproc_ok; then
5895 ac_cv_prog_CXXCPP
=$CXXCPP
5898 CXXCPP
=$ac_cv_prog_CXXCPP
5900 ac_cv_prog_CXXCPP
=$CXXCPP
5902 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5903 echo "${ECHO_T}$CXXCPP" >&6; }
5905 for ac_cxx_preproc_warn_flag
in '' yes
5907 # Use a header file that comes with gcc, so configuring glibc
5908 # with a fresh cross-compiler works.
5909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5910 # <limits.h> exists even on freestanding compilers.
5911 # On the NeXT, cc -E runs the code through the compiler's parser,
5912 # not just through cpp. "Syntax error" is here to catch this case.
5913 cat >conftest.
$ac_ext <<_ACEOF
5916 cat confdefs.h
>>conftest.
$ac_ext
5917 cat >>conftest.
$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5920 # include <limits.h>
5922 # include <assert.h>
5926 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 grep -v '^ *+' conftest.er1 >conftest.err
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } >/dev/null && {
5939 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5940 test ! -s conftest.err
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 # Broken: fails on valid input.
5951 rm -f conftest.err conftest.$ac_ext
5953 # OK, works on sane cases. Now check whether nonexistent headers
5954 # can be detected and how.
5955 cat >conftest.$ac_ext <<_ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #include <ac_nonexistent.h>
5963 if { (ac_try="$ac_cpp conftest.$ac_ext"
5965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5966 *) ac_try_echo
=$ac_try;;
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5971 grep -v '^ *+' conftest.er1
>conftest.err
5973 cat conftest.err
>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } >/dev
/null
&& {
5976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5977 test ! -s conftest.err
5979 # Broken: success on invalid input.
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.
$ac_ext >&5
5985 # Passes both tests.
5990 rm -f conftest.err conftest.
$ac_ext
5993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5994 rm -f conftest.err conftest.
$ac_ext
5995 if $ac_preproc_ok; then
5998 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5999 See \`config.log' for more details." >&5
6000 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6001 See \`config.log' for more details." >&2;}
6002 { (exit 1); exit 1; }; }
6006 ac_cpp
='$CPP $CPPFLAGS'
6007 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6011 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6012 # the developers regenerating the configure script don't have to install libtool.
6013 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6014 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6015 if test "${ac_cv_path_SED+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6019 for ac_i
in 1 2 3 4 5 6 7; do
6020 ac_script
="$ac_script$as_nl$ac_script"
6022 echo "$ac_script" |
sed 99q
>conftest.
sed
6023 $as_unset ac_script || ac_script
=
6024 # Extract the first word of "sed gsed" to use in msg output
6025 if test -z "$SED"; then
6026 set dummy
sed gsed
; ac_prog_name
=$2
6027 if test "${ac_cv_path_SED+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 ac_path_SED_found
=false
6031 # Loop through the user's path and test for each of PROGNAME-LIST
6032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6036 test -z "$as_dir" && as_dir
=.
6037 for ac_prog
in sed gsed
; do
6038 for ac_exec_ext
in '' $ac_executable_extensions; do
6039 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6040 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6041 # Check for GNU ac_path_SED and select it if it is found.
6042 # Check for GNU $ac_path_SED
6043 case `"$ac_path_SED" --version 2>&1` in
6045 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6048 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6051 cat "conftest.in" "conftest.in" >"conftest.tmp"
6052 mv "conftest.tmp" "conftest.in"
6053 cp "conftest.in" "conftest.nl"
6054 echo '' >> "conftest.nl"
6055 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6056 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6057 ac_count
=`expr $ac_count + 1`
6058 if test $ac_count -gt ${ac_path_SED_max-0}; then
6059 # Best one so far, save it but keep looking for a better one
6060 ac_cv_path_SED
="$ac_path_SED"
6061 ac_path_SED_max
=$ac_count
6063 # 10*(2^10) chars as input seems more than enough
6064 test $ac_count -gt 10 && break
6066 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6070 $ac_path_SED_found && break 3
6080 SED
="$ac_cv_path_SED"
6081 if test -z "$SED"; then
6082 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6083 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6084 { (exit 1); exit 1; }; }
6092 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6093 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6094 SED
="$ac_cv_path_SED"
6097 { echo "$as_me:$LINENO: checking for egrep" >&5
6098 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6099 if test "${ac_cv_prog_egrep+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6103 then ac_cv_prog_egrep
='grep -E'
6104 else ac_cv_prog_egrep
='egrep'
6107 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6108 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6109 EGREP
=$ac_cv_prog_egrep
6113 # Check whether --with-gnu-ld was given.
6114 if test "${with_gnu_ld+set}" = set; then
6115 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6121 if test "$GCC" = yes; then
6122 # Check if gcc -print-prog-name=ld gives a path.
6123 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6124 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6127 # gcc leaves a trailing carriage return which upsets mingw
6128 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6130 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6133 # Accept absolute paths.
6135 re_direlt
='/[^/][^/]*/\.\./'
6136 # Canonicalize the pathname of ld
6137 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6138 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6139 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6141 test -z "$LD" && LD
="$ac_prog"
6144 # If it fails, then pretend we aren't using GCC.
6148 # If it is relative, then search for the first ld in PATH.
6152 elif test "$with_gnu_ld" = yes; then
6153 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6154 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6156 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6157 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6159 if test "${lt_cv_path_LD+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 if test -z "$LD"; then
6163 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6164 for ac_dir
in $PATH; do
6166 test -z "$ac_dir" && ac_dir
=.
6167 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6168 lt_cv_path_LD
="$ac_dir/$ac_prog"
6169 # Check to see if the program is GNU ld. I'd rather use --version,
6170 # but apparently some variants of GNU ld only accept -v.
6171 # Break only if it was the GNU/non-GNU ld that we prefer.
6172 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6173 *GNU
* |
*'with BFD'*)
6174 test "$with_gnu_ld" != no
&& break
6177 test "$with_gnu_ld" != yes && break
6184 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6189 if test -n "$LD"; then
6190 { echo "$as_me:$LINENO: result: $LD" >&5
6191 echo "${ECHO_T}$LD" >&6; }
6193 { echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6; }
6196 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6197 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6198 { (exit 1); exit 1; }; }
6199 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6200 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6201 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6205 case `$LD -v 2>&1 </dev/null` in
6206 *GNU
* |
*'with BFD'*)
6207 lt_cv_prog_gnu_ld
=yes
6210 lt_cv_prog_gnu_ld
=no
6214 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6215 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6216 with_gnu_ld
=$lt_cv_prog_gnu_ld
6218 # note - does not work on freebsd
6219 for ac_prog
in gawk mawk nawk
awk
6221 # Extract the first word of "$ac_prog", so it can be a program name with args.
6222 set dummy
$ac_prog; ac_word
=$2
6223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_AWK+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 if test -n "$AWK"; then
6229 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir
=.
6236 for ac_exec_ext
in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_AWK
="$ac_prog"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 if test -n "$AWK"; then
6250 { echo "$as_me:$LINENO: result: $AWK" >&5
6251 echo "${ECHO_T}$AWK" >&6; }
6253 { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6258 test -n "$AWK" && break
6261 # Find a good install program. We prefer a C program (faster),
6262 # so one script is as good as another. But avoid the broken or
6263 # incompatible versions:
6264 # SysV /etc/install, /usr/sbin/install
6265 # SunOS /usr/etc/install
6266 # IRIX /sbin/install
6268 # AmigaOS /C/install, which installs bootblocks on floppy discs
6269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6272 # OS/2's system install, which has a completely different semantic
6273 # ./install, which can be erroneously created by make from ./install.sh.
6274 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6276 if test -z "$INSTALL"; then
6277 if test "${ac_cv_path_install+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir
=.
6285 # Account for people who put trailing slashes in PATH elements.
6287 .
/ | .
// |
/cC
/* | \
6288 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6289 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6292 # OSF1 and SCO ODT 3.0 have their own names for install.
6293 # Don't use installbsd from OSF since it installs stuff as root
6295 for ac_prog
in ginstall scoinst
install; do
6296 for ac_exec_ext
in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6298 if test $ac_prog = install &&
6299 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6300 # AIX install. It has an incompatible calling convention.
6302 elif test $ac_prog = install &&
6303 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6304 # program-specific install script used by HP pwplus--don't use.
6307 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6320 if test "${ac_cv_path_install+set}" = set; then
6321 INSTALL
=$ac_cv_path_install
6323 # As a last resort, use the slow shell script. Don't cache a
6324 # value for INSTALL within a source directory, because that will
6325 # break other packages using the cache if that directory is
6326 # removed, or if the value is a relative name.
6327 INSTALL
=$ac_install_sh
6330 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6331 echo "${ECHO_T}$INSTALL" >&6; }
6333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6334 # It thinks the first close brace ends the variable substitution.
6335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6339 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6341 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6342 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6344 if test "$LN_S" = "ln -s"; then
6345 { echo "$as_me:$LINENO: result: yes" >&5
6346 echo "${ECHO_T}yes" >&6; }
6348 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6349 echo "${ECHO_T}no, using $LN_S" >&6; }
6352 if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_prog_RANLIB+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 if test -n "$RANLIB"; then
6361 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir
=.
6368 for ac_exec_ext
in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 RANLIB
=$ac_cv_prog_RANLIB
6381 if test -n "$RANLIB"; then
6382 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6383 echo "${ECHO_T}$RANLIB" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6391 if test -z "$ac_cv_prog_RANLIB"; then
6392 ac_ct_RANLIB
=$RANLIB
6393 # Extract the first word of "ranlib", so it can be a program name with args.
6394 set dummy ranlib
; ac_word
=$2
6395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 if test -n "$ac_ct_RANLIB"; then
6401 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir
=.
6408 for ac_exec_ext
in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6421 if test -n "$ac_ct_RANLIB"; then
6422 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6423 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6429 if test "x$ac_ct_RANLIB" = x
; then
6432 case $cross_compiling:$ac_tool_warned in
6434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6435 whose name does not start with the host triplet. If you think this
6436 configuration is useful to you, please write to autoconf@gnu.org." >&5
6437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6438 whose name does not start with the host triplet. If you think this
6439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6440 ac_tool_warned
=yes ;;
6442 RANLIB
=$ac_ct_RANLIB
6445 RANLIB
="$ac_cv_prog_RANLIB"
6448 { echo "$as_me:$LINENO: checking for GNU make" >&5
6449 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6450 if test "${GNU_MAKE+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 GNU_MAKE
='Not Found' ;
6454 GNU_MAKE_VERSION_MAJOR
=0 ;
6455 GNU_MAKE_VERSION_MINOR
=0 ;
6456 for a
in make gmake gnumake
; do
6457 if test -z "$a" ; then continue ; fi ;
6458 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6460 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6461 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6467 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6468 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6469 if test "x$GNU_MAKE" = "xNot Found" ; then
6470 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6471 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6472 { (exit 1); exit 1; }; }
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6480 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_path_STRIP+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir
=.
6496 for ac_exec_ext
in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 STRIP
=$ac_cv_path_STRIP
6510 if test -n "$STRIP"; then
6511 { echo "$as_me:$LINENO: result: $STRIP" >&5
6512 echo "${ECHO_T}$STRIP" >&6; }
6514 { echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6; }
6520 if test -z "$ac_cv_path_STRIP"; then
6522 # Extract the first word of "strip", so it can be a program name with args.
6523 set dummy strip
; ac_word
=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 case $ac_pt_STRIP in
6531 ac_cv_path_ac_pt_STRIP
="$ac_pt_STRIP" # Let the user override the test with a path.
6534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir
=.
6539 for ac_exec_ext
in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_ac_pt_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 ac_pt_STRIP
=$ac_cv_path_ac_pt_STRIP
6553 if test -n "$ac_pt_STRIP"; then
6554 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6555 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6557 { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6561 if test "x$ac_pt_STRIP" = x
; then
6564 case $cross_compiling:$ac_tool_warned in
6566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6567 whose name does not start with the host triplet. If you think this
6568 configuration is useful to you, please write to autoconf@gnu.org." >&5
6569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6570 whose name does not start with the host triplet. If you think this
6571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6572 ac_tool_warned
=yes ;;
6577 STRIP
="$ac_cv_path_STRIP"
6580 if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6582 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_AR+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir
=.
6598 for ac_exec_ext
in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 if test -n "$AR"; then
6613 { echo "$as_me:$LINENO: result: $AR" >&5
6614 echo "${ECHO_T}$AR" >&6; }
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6622 if test -z "$ac_cv_path_AR"; then
6624 # Extract the first word of "ar", so it can be a program name with args.
6625 set dummy
ar; ac_word
=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_cv_path_ac_pt_AR
="$ac_pt_AR" # Let the user override the test with a path.
6636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir
=.
6641 for ac_exec_ext
in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_ac_pt_AR
="$as_dir/$ac_word$ac_exec_ext"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 ac_pt_AR
=$ac_cv_path_ac_pt_AR
6655 if test -n "$ac_pt_AR"; then
6656 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6657 echo "${ECHO_T}$ac_pt_AR" >&6; }
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6663 if test "x$ac_pt_AR" = x
; then
6666 case $cross_compiling:$ac_tool_warned in
6668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6669 whose name does not start with the host triplet. If you think this
6670 configuration is useful to you, please write to autoconf@gnu.org." >&5
6671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6672 whose name does not start with the host triplet. If you think this
6673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6674 ac_tool_warned
=yes ;;
6684 if test "x$with_gnu_ld" = "xyes" ; then
6689 # Extract the first word of "awk", so it can be a program name with args.
6690 set dummy
awk; ac_word
=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_path_AWK+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
6701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir
=.
6706 for ac_exec_ext
in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK
=":"
6721 if test -n "$AWK"; then
6722 { echo "$as_me:$LINENO: result: $AWK" >&5
6723 echo "${ECHO_T}$AWK" >&6; }
6725 { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6730 # Extract the first word of "grep", so it can be a program name with args.
6731 set dummy
grep; ac_word
=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_GREP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir
=.
6747 for ac_exec_ext
in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6761 GREP
=$ac_cv_path_GREP
6762 if test -n "$GREP"; then
6763 { echo "$as_me:$LINENO: result: $GREP" >&5
6764 echo "${ECHO_T}$GREP" >&6; }
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6771 # Extract the first word of "find", so it can be a program name with args.
6772 set dummy
find; ac_word
=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_FIND+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir
=.
6788 for ac_exec_ext
in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6802 FIND
=$ac_cv_path_FIND
6803 if test -n "$FIND"; then
6804 { echo "$as_me:$LINENO: result: $FIND" >&5
6805 echo "${ECHO_T}$FIND" >&6; }
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6812 # Extract the first word of "compress", so it can be a program name with args.
6813 set dummy
compress; ac_word
=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_COMPRESS+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir
=.
6829 for ac_exec_ext
in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6843 COMPRESS
=$ac_cv_path_COMPRESS
6844 if test -n "$COMPRESS"; then
6845 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6846 echo "${ECHO_T}$COMPRESS" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 # Extract the first word of "basename", so it can be a program name with args.
6854 set dummy
basename; ac_word
=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_path_BASENAME+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir
=.
6870 for ac_exec_ext
in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6884 BASENAME
=$ac_cv_path_BASENAME
6885 if test -n "$BASENAME"; then
6886 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6887 echo "${ECHO_T}$BASENAME" >&6; }
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6894 # Extract the first word of "id", so it can be a program name with args.
6895 set dummy id
; ac_word
=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_path_ID+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir
=.
6911 for ac_exec_ext
in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6926 if test -n "$ID"; then
6927 { echo "$as_me:$LINENO: result: $ID" >&5
6928 echo "${ECHO_T}$ID" >&6; }
6930 { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6935 # Extract the first word of "dirname", so it can be a program name with args.
6936 set dummy
dirname; ac_word
=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_path_DIRNAME+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6951 test -z "$as_dir" && as_dir
=.
6952 for ac_exec_ext
in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6966 DIRNAME
=$ac_cv_path_DIRNAME
6967 if test -n "$DIRNAME"; then
6968 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6969 echo "${ECHO_T}$DIRNAME" >&6; }
6971 { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6976 # Extract the first word of "sh", so it can be a program name with args.
6977 set dummy sh
; ac_word
=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_SHELL+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir
=.
6993 for ac_exec_ext
in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
7007 SHELL
=$ac_cv_path_SHELL
7008 if test -n "$SHELL"; then
7009 { echo "$as_me:$LINENO: result: $SHELL" >&5
7010 echo "${ECHO_T}$SHELL" >&6; }
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 # Extract the first word of "ln", so it can be a program name with args.
7018 set dummy
ln; ac_word
=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_LN+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
7029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir
=.
7034 for ac_exec_ext
in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
7049 if test -n "$LN"; then
7050 { echo "$as_me:$LINENO: result: $LN" >&5
7051 echo "${ECHO_T}$LN" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 # Extract the first word of "dot", so it can be a program name with args.
7059 set dummy dot
; 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_DOT+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 ac_cv_path_DOT
="$DOT" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_DOT
="$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_DOT" && ac_cv_path_DOT
=":"
7090 if test -n "$DOT"; then
7091 { echo "$as_me:$LINENO: result: $DOT" >&5
7092 echo "${ECHO_T}$DOT" >&6; }
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 # Extract the first word of "wget", so it can be a program name with args.
7100 set dummy wget
; 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_WGET+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 ac_cv_path_WGET
="$WGET" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_WGET
="$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_WGET" && ac_cv_path_WGET
=":"
7130 WGET
=$ac_cv_path_WGET
7131 if test -n "$WGET"; then
7132 { echo "$as_me:$LINENO: result: $WGET" >&5
7133 echo "${ECHO_T}$WGET" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 if test "${WGET}" != ":" ; then
7143 # Extract the first word of "fetch", so it can be a program name with args.
7144 set dummy fetch
; ac_word
=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_FETCH+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir
=.
7160 for ac_exec_ext
in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7174 FETCH
=$ac_cv_path_FETCH
7175 if test -n "$FETCH"; then
7176 { echo "$as_me:$LINENO: result: $FETCH" >&5
7177 echo "${ECHO_T}$FETCH" >&6; }
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7190 set dummy
${ac_tool_prefix}soxmix
; ac_word
=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 if test -n "$SOXMIX"; then
7197 ac_cv_prog_SOXMIX
="$SOXMIX" # Let the user override the test.
7199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7203 test -z "$as_dir" && as_dir
=.
7204 for ac_exec_ext
in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_prog_SOXMIX
="${ac_tool_prefix}soxmix"
7207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 SOXMIX
=$ac_cv_prog_SOXMIX
7217 if test -n "$SOXMIX"; then
7218 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7219 echo "${ECHO_T}$SOXMIX" >&6; }
7221 { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7227 if test -z "$ac_cv_prog_SOXMIX"; then
7228 ac_ct_SOXMIX
=$SOXMIX
7229 # Extract the first word of "soxmix", so it can be a program name with args.
7230 set dummy soxmix
; ac_word
=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 if test -n "$ac_ct_SOXMIX"; then
7237 ac_cv_prog_ac_ct_SOXMIX
="$ac_ct_SOXMIX" # Let the user override the test.
7239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7243 test -z "$as_dir" && as_dir
=.
7244 for ac_exec_ext
in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246 ac_cv_prog_ac_ct_SOXMIX
="soxmix"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 ac_ct_SOXMIX
=$ac_cv_prog_ac_ct_SOXMIX
7257 if test -n "$ac_ct_SOXMIX"; then
7258 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7259 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7261 { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7265 if test "x$ac_ct_SOXMIX" = x
; then
7268 case $cross_compiling:$ac_tool_warned in
7270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7271 whose name does not start with the host triplet. If you think this
7272 configuration is useful to you, please write to autoconf@gnu.org." >&5
7273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7274 whose name does not start with the host triplet. If you think this
7275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7276 ac_tool_warned
=yes ;;
7278 SOXMIX
=$ac_ct_SOXMIX
7281 SOXMIX
="$ac_cv_prog_SOXMIX"
7284 if test "${SOXMIX}" != ":" ; then
7286 cat >>confdefs.h
<<\_ACEOF
7287 #define HAVE_SOXMIX 1
7296 ac_cpp
='$CPP $CPPFLAGS'
7297 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7303 # We used to check for pthread.h first, but this fails if pthread.h
7304 # requires special compiler flags (e.g. on True64 or Sequent).
7305 # It gets checked for in the link test anyway.
7307 # First of all, check if the user has set any of the PTHREAD_LIBS,
7308 # etcetera environment variables, and if threads linking works using
7310 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
7311 save_CFLAGS
="$CFLAGS"
7312 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7314 LIBS
="$PTHREAD_LIBS $LIBS"
7315 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7316 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7317 cat >conftest.
$ac_ext <<_ACEOF
7320 cat confdefs.h
>>conftest.
$ac_ext
7321 cat >>conftest.
$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7324 /* Override any GCC internal prototype to avoid an error.
7325 Use char because int might match the return type of a GCC
7326 builtin and then its argument prototype would still apply. */
7330 char pthread_join ();
7334 return pthread_join ();
7339 rm -f conftest.
$ac_objext conftest
$ac_exeext
7340 if { (ac_try
="$ac_link"
7342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest$ac_exeext &&
7356 $as_test_x conftest$ac_exeext; then
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366 conftest$ac_exeext conftest.$ac_ext
7367 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7368 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7369 if test x"$acx_pthread_ok" = xno; then
7374 CFLAGS="$save_CFLAGS"
7377 # We must check for the threads library under a number of different
7378 # names; the ordering is very important because some systems
7379 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7380 # libraries is broken (non-POSIX).
7382 # Create a list of thread flags to try. Items starting with a "-" are
7383 # C compiler flags, and other items are library names, except for "none"
7384 # which indicates that we try without any flags at all, and "pthread-config"
7385 # which is a program returning the flags for the Pth emulation library.
7387 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7389 # The ordering *is* (sometimes) important. Some notes on the
7390 # individual items follow:
7392 # pthreads: AIX (must check this before -lpthread)
7393 # none: in case threads are in libc; should be tried before -Kthread and
7394 # other compiler flags to prevent continual compiler warnings
7395 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7396 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7397 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7398 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7399 # -pthreads: Solaris/gcc
7400 # -mthreads: Mingw32/gcc, Lynx/gcc
7401 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7402 # doesn't hurt to check since this sometimes defines pthreads too;
7403 # also defines -D_REENTRANT)
7404 # ... -mt is also the pthreads flag for HP/aCC
7405 # pthread: Linux, etcetera
7406 # --thread-safe: KAI C++
7407 # pthread-config: use pthread-config program (for GNU Pth library)
7409 case "${host_cpu}-${host_os}" in
7412 # On Solaris (at least, for some versions), libc contains stubbed
7413 # (non-functional) versions of the pthreads routines, so link-based
7414 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7415 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7416 # a function called by this macro, so we could check for that, but
7417 # who knows whether they'll stub that too in a future libc.) So,
7418 # we'll just look for -pthreads and -lpthread first:
7420 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7424 if test x"$acx_pthread_ok" = xno; then
7425 for flag in $acx_pthread_flags; do
7429 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7430 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7434 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7435 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7436 PTHREAD_CFLAGS="$flag"
7440 # Extract the first word of "pthread-config", so it can be a program name with args.
7441 set dummy pthread-config; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 if test -n "$acx_pthread_config"; then
7448 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_acx_pthread_config="yes"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7468 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7469 if test -n "$acx_pthread_config"; then
7470 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7471 echo "${ECHO_T}$acx_pthread_config" >&6; }
7473 { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7478 if test x"$acx_pthread_config" = xno; then continue; fi
7479 PTHREAD_CFLAGS="`pthread-config
--cflags`"
7480 PTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
7484 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7485 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7486 PTHREAD_LIBS="-l$flag"
7491 save_CFLAGS="$CFLAGS"
7492 LIBS="$PTHREAD_LIBS $LIBS"
7493 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7495 # Check for various functions. We must include pthread.h,
7496 # since some functions may be macros. (On the Sequent, we
7497 # need a special flag -Kthread to make this header compile.)
7498 # We check for pthread_join because it is in -lpthread on IRIX
7499 # while pthread_create is in libc. We check for pthread_attr_init
7500 # due to DEC craziness with -lpthreads. We check for
7501 # pthread_cleanup_push because it is one of the few pthread
7502 # functions on Solaris that doesn't have a non-functional libc stub.
7503 # We try pthread_create on general principles.
7504 cat >conftest.$ac_ext <<_ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 #include <pthread.h>
7514 pthread_t th; pthread_join(th, 0);
7515 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7516 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7521 rm -f conftest.$ac_objext conftest$ac_exeext
7522 if { (ac_try="$ac_link"
7524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7525 *) ac_try_echo
=$ac_try;;
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_link") 2>conftest.er1
7530 grep -v '^ *+' conftest.er1
>conftest.err
7532 cat conftest.err
>&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest
$ac_exeext &&
7538 $as_test_x conftest
$ac_exeext; then
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.
$ac_ext >&5
7547 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7548 conftest
$ac_exeext conftest.
$ac_ext
7551 CFLAGS
="$save_CFLAGS"
7553 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7554 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7555 if test "x$acx_pthread_ok" = xyes
; then
7564 # Various other checks:
7565 if test "x$acx_pthread_ok" = xyes
; then
7567 LIBS
="$PTHREAD_LIBS $LIBS"
7568 save_CFLAGS
="$CFLAGS"
7569 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7571 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7572 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7573 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7575 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7576 cat >conftest.
$ac_ext <<_ACEOF
7579 cat confdefs.h
>>conftest.
$ac_ext
7580 cat >>conftest.
$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 #include <pthread.h>
7586 int attr=$attr; return attr;
7591 rm -f conftest.
$ac_objext conftest
$ac_exeext
7592 if { (ac_try
="$ac_link"
7594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_link") 2>conftest.er1
7600 grep -v '^ *+' conftest.er1 >conftest.err
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest$ac_exeext &&
7608 $as_test_x conftest$ac_exeext; then
7609 attr_name=$attr; break
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7618 conftest$ac_exeext conftest.$ac_ext
7620 { echo "$as_me:$LINENO: result: $attr_name" >&5
7621 echo "${ECHO_T}$attr_name" >&6; }
7622 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7624 cat >>confdefs.h <<_ACEOF
7625 #define PTHREAD_CREATE_JOINABLE $attr_name
7630 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7631 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7633 case "${host_cpu}-${host_os}" in
7634 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7635 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7637 { echo "$as_me:$LINENO: result: ${flag}" >&5
7638 echo "${ECHO_T}${flag}" >&6; }
7639 if test "x$flag" != xno; then
7640 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7644 CFLAGS="$save_CFLAGS"
7646 # More AIX lossage: must compile with xlc_r or cc_r
7647 if test x"$GCC" != xyes; then
7648 for ac_prog in xlc_r cc_r
7650 # Extract the first word of "$ac_prog", so it can be a program name with args.
7651 set dummy $ac_prog; ac_word=$2
7652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 if test -n "$PTHREAD_CC"; then
7658 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_prog_PTHREAD_CC="$ac_prog"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7678 if test -n "$PTHREAD_CC"; then
7679 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7680 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7682 { echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6; }
7687 test -n "$PTHREAD_CC" && break
7689 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7702 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7703 if test x"$acx_pthread_ok" = xyes; then
7705 cat >>confdefs.h <<\_ACEOF
7706 #define HAVE_PTHREAD 1
7715 ac_cpp='$CPP $CPPFLAGS'
7716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7723 ac_cpp='$CPP $CPPFLAGS'
7724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729 # Check whether --enable-dev-mode was given.
7730 if test "${enable_dev_mode+set}" = set; then
7731 enableval=$enable_dev_mode; case "${enableval}" in
7732 y|ye|yes) AST_DEVMODE=yes ;;
7733 n|no) AST_DEVMODE=no ;;
7734 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7735 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7736 { (exit 1); exit 1; }; } ;;
7742 # package option names should be in alphabetical order
7743 # by the --with option name, to make things easier for the users :-)
7746 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7747 ALSA_OPTION="asound"
7749 # Check whether --with-asound was given.
7750 if test "${with_asound+set}" = set; then
7751 withval=$with_asound;
7757 ALSA_MANDATORY="yes"
7760 ALSA_DIR="${withval}"
7761 ALSA_MANDATORY="yes"
7777 # Check whether --with-curl was given.
7778 if test "${with_curl+set}" = set; then
7785 CURL_MANDATORY="yes"
7788 CURL_DIR="${withval}"
7789 CURL_MANDATORY="yes"
7802 CAP_DESCRIP="POSIX 1.e capabilities"
7805 # Check whether --with-cap was given.
7806 if test "${with_cap+set}" = set; then
7816 CAP_DIR="${withval}"
7830 CURSES_DESCRIP="curses"
7831 CURSES_OPTION="curses"
7833 # Check whether --with-curses was given.
7834 if test "${with_curses+set}" = set; then
7835 withval=$with_curses;
7841 CURSES_MANDATORY="yes"
7844 CURSES_DIR="${withval}"
7845 CURSES_MANDATORY="yes"
7858 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7859 GNUTLS_OPTION="gnutls"
7861 # Check whether --with-gnutls was given.
7862 if test "${with_gnutls+set}" = set; then
7863 withval=$with_gnutls;
7869 GNUTLS_MANDATORY="yes"
7872 GNUTLS_DIR="${withval}"
7873 GNUTLS_MANDATORY="yes"
7889 # Check whether --with-gsm was given.
7890 if test "${with_gsm+set}" = set; then
7900 GSM_DIR="${withval}"
7914 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7915 IKSEMEL_OPTION="iksemel"
7917 # Check whether --with-iksemel was given.
7918 if test "${with_iksemel+set}" = set; then
7919 withval=$with_iksemel;
7925 IKSEMEL_MANDATORY="yes"
7928 IKSEMEL_DIR="${withval}"
7929 IKSEMEL_MANDATORY="yes"
7942 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7943 IMAP_TK_OPTION="imap"
7945 # Check whether --with-imap was given.
7946 if test "${with_imap+set}" = set; then
7953 IMAP_TK_MANDATORY="yes"
7956 IMAP_TK_DIR="${withval}"
7957 IMAP_TK_MANDATORY="yes"
7970 ISDNNET_DESCRIP="ISDN4Linux Library"
7971 ISDNNET_OPTION="isdnnet"
7973 # Check whether --with-isdnnet was given.
7974 if test "${with_isdnnet+set}" = set; then
7975 withval=$with_isdnnet;
7981 ISDNNET_MANDATORY="yes"
7984 ISDNNET_DIR="${withval}"
7985 ISDNNET_MANDATORY="yes"
8001 # Check whether --with-kde was given.
8002 if test "${with_kde+set}" = set; then
8012 KDE_DIR="${withval}"
8026 LTDL_DESCRIP="libtool"
8029 # Check whether --with-ltdl was given.
8030 if test "${with_ltdl+set}" = set; then
8037 LTDL_MANDATORY="yes"
8040 LTDL_DIR="${withval}"
8041 LTDL_MANDATORY="yes"
8054 MISDN_DESCRIP="mISDN User Library"
8055 MISDN_OPTION="misdn"
8057 # Check whether --with-misdn was given.
8058 if test "${with_misdn+set}" = set; then
8059 withval=$with_misdn;
8065 MISDN_MANDATORY="yes"
8068 MISDN_DIR="${withval}"
8069 MISDN_MANDATORY="yes"
8082 NBS_DESCRIP="Network Broadcast Sound"
8085 # Check whether --with-nbs was given.
8086 if test "${with_nbs+set}" = set; then
8096 NBS_DIR="${withval}"
8110 NCURSES_DESCRIP="ncurses"
8111 NCURSES_OPTION="ncurses"
8113 # Check whether --with-ncurses was given.
8114 if test "${with_ncurses+set}" = set; then
8115 withval=$with_ncurses;
8121 NCURSES_MANDATORY="yes"
8124 NCURSES_DIR="${withval}"
8125 NCURSES_MANDATORY="yes"
8138 NETSNMP_DESCRIP="Net-SNMP"
8139 NETSNMP_OPTION="netsnmp"
8141 # Check whether --with-netsnmp was given.
8142 if test "${with_netsnmp+set}" = set; then
8143 withval=$with_netsnmp;
8149 NETSNMP_MANDATORY="yes"
8152 NETSNMP_DIR="${withval}"
8153 NETSNMP_MANDATORY="yes"
8169 # Check whether --with-newt was given.
8170 if test "${with_newt+set}" = set; then
8177 NEWT_MANDATORY="yes"
8180 NEWT_DIR="${withval}"
8181 NEWT_MANDATORY="yes"
8194 UNIXODBC_DESCRIP="unixODBC"
8195 UNIXODBC_OPTION="odbc"
8197 # Check whether --with-odbc was given.
8198 if test "${with_odbc+set}" = set; then
8205 UNIXODBC_MANDATORY="yes"
8208 UNIXODBC_DIR="${withval}"
8209 UNIXODBC_MANDATORY="yes"
8225 # Check whether --with-ogg was given.
8226 if test "${with_ogg+set}" = set; then
8236 OGG_DIR="${withval}"
8250 OSPTK_DESCRIP="OSP Toolkit"
8251 OSPTK_OPTION="osptk"
8253 # Check whether --with-osptk was given.
8254 if test "${with_osptk+set}" = set; then
8255 withval=$with_osptk;
8261 OSPTK_MANDATORY="yes"
8264 OSPTK_DIR="${withval}"
8265 OSPTK_MANDATORY="yes"
8278 OSS_DESCRIP="Open Sound System"
8281 # Check whether --with-oss was given.
8282 if test "${with_oss+set}" = set; then
8292 OSS_DIR="${withval}"
8309 # Check whether --with-popt was given.
8310 if test "${with_popt+set}" = set; then
8317 POPT_MANDATORY="yes"
8320 POPT_DIR="${withval}"
8321 POPT_MANDATORY="yes"
8334 PGSQL_DESCRIP="PostgreSQL"
8335 PGSQL_OPTION="postgres"
8337 # Check whether --with-postgres was given.
8338 if test "${with_postgres+set}" = set; then
8339 withval=$with_postgres;
8345 PGSQL_MANDATORY="yes"
8348 PGSQL_DIR="${withval}"
8349 PGSQL_MANDATORY="yes"
8362 PRI_DESCRIP="ISDN PRI"
8365 # Check whether --with-pri was given.
8366 if test "${with_pri+set}" = set; then
8376 PRI_DIR="${withval}"
8390 PWLIB_DESCRIP="PWlib"
8391 PWLIB_OPTION="pwlib"
8393 # Check whether --with-pwlib was given.
8394 if test "${with_pwlib+set}" = set; then
8395 withval=$with_pwlib;
8401 PWLIB_MANDATORY="yes"
8404 PWLIB_DIR="${withval}"
8405 PWLIB_MANDATORY="yes"
8418 OPENH323_DESCRIP="OpenH323"
8419 OPENH323_OPTION="h323"
8421 # Check whether --with-h323 was given.
8422 if test "${with_h323+set}" = set; then
8429 OPENH323_MANDATORY="yes"
8432 OPENH323_DIR="${withval}"
8433 OPENH323_MANDATORY="yes"
8446 RADIUS_DESCRIP="Radius Client"
8447 RADIUS_OPTION="radius"
8449 # Check whether --with-radius was given.
8450 if test "${with_radius+set}" = set; then
8451 withval=$with_radius;
8457 RADIUS_MANDATORY="yes"
8460 RADIUS_DIR="${withval}"
8461 RADIUS_MANDATORY="yes"
8474 SPEEX_DESCRIP="Speex"
8475 SPEEX_OPTION="speex"
8477 # Check whether --with-speex was given.
8478 if test "${with_speex+set}" = set; then
8479 withval=$with_speex;
8485 SPEEX_MANDATORY="yes"
8488 SPEEX_DIR="${withval}"
8489 SPEEX_MANDATORY="yes"
8502 SPEEXDSP_DESCRIP="Speexdsp"
8503 SPEEXDSP_OPTION="speexdsp"
8505 # Check whether --with-speexdsp was given.
8506 if test "${with_speexdsp+set}" = set; then
8507 withval=$with_speexdsp;
8513 SPEEXDSP_MANDATORY="yes"
8516 SPEEXDSP_DIR="${withval}"
8517 SPEEXDSP_MANDATORY="yes"
8530 SQLITE_DESCRIP="SQLite"
8531 SQLITE_OPTION="sqlite"
8533 # Check whether --with-sqlite was given.
8534 if test "${with_sqlite+set}" = set; then
8535 withval=$with_sqlite;
8541 SQLITE_MANDATORY="yes"
8544 SQLITE_DIR="${withval}"
8545 SQLITE_MANDATORY="yes"
8558 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8559 SUPPSERV_OPTION="suppserv"
8561 # Check whether --with-suppserv was given.
8562 if test "${with_suppserv+set}" = set; then
8563 withval=$with_suppserv;
8569 SUPPSERV_MANDATORY="yes"
8572 SUPPSERV_DIR="${withval}"
8573 SUPPSERV_MANDATORY="yes"
8586 OPENSSL_DESCRIP="OpenSSL"
8587 OPENSSL_OPTION="ssl"
8589 # Check whether --with-ssl was given.
8590 if test "${with_ssl+set}" = set; then
8597 OPENSSL_MANDATORY="yes"
8600 OPENSSL_DIR="${withval}"
8601 OPENSSL_MANDATORY="yes"
8614 FREETDS_DESCRIP="FreeTDS"
8615 FREETDS_OPTION="tds"
8617 # Check whether --with-tds was given.
8618 if test "${with_tds+set}" = set; then
8625 FREETDS_MANDATORY="yes"
8628 FREETDS_DIR="${withval}"
8629 FREETDS_MANDATORY="yes"
8642 TERMCAP_DESCRIP="Termcap"
8643 TERMCAP_OPTION="termcap"
8645 # Check whether --with-termcap was given.
8646 if test "${with_termcap+set}" = set; then
8647 withval=$with_termcap;
8653 TERMCAP_MANDATORY="yes"
8656 TERMCAP_DIR="${withval}"
8657 TERMCAP_MANDATORY="yes"
8670 TINFO_DESCRIP="Term Info"
8671 TINFO_OPTION="tinfo"
8673 # Check whether --with-tinfo was given.
8674 if test "${with_tinfo+set}" = set; then
8675 withval=$with_tinfo;
8681 TINFO_MANDATORY="yes"
8684 TINFO_DIR="${withval}"
8685 TINFO_MANDATORY="yes"
8698 TONEZONE_DESCRIP="tonezone"
8699 TONEZONE_OPTION="tonezone"
8701 # Check whether --with-tonezone was given.
8702 if test "${with_tonezone+set}" = set; then
8703 withval=$with_tonezone;
8709 TONEZONE_MANDATORY="yes"
8712 TONEZONE_DIR="${withval}"
8713 TONEZONE_MANDATORY="yes"
8729 # Check whether --with-usb was given.
8730 if test "${with_usb+set}" = set; then
8740 USB_DIR="${withval}"
8754 VORBIS_DESCRIP="Vorbis"
8755 VORBIS_OPTION="vorbis"
8757 # Check whether --with-vorbis was given.
8758 if test "${with_vorbis+set}" = set; then
8759 withval=$with_vorbis;
8765 VORBIS_MANDATORY="yes"
8768 VORBIS_DIR="${withval}"
8769 VORBIS_MANDATORY="yes"
8782 VPB_DESCRIP="Voicetronix API"
8785 # Check whether --with-vpb was given.
8786 if test "${with_vpb+set}" = set; then
8796 VPB_DIR="${withval}"
8813 # Check whether --with-z was given.
8814 if test "${with_z+set}" = set; then
8821 ZLIB_MANDATORY="yes"
8824 ZLIB_DIR="${withval}"
8825 ZLIB_MANDATORY="yes"
8838 ZAPTEL_DESCRIP="Zaptel"
8839 ZAPTEL_OPTION="zaptel"
8841 # Check whether --with-zaptel was given.
8842 if test "${with_zaptel+set}" = set; then
8843 withval=$with_zaptel;
8849 ZAPTEL_MANDATORY="yes"
8852 ZAPTEL_DIR="${withval}"
8853 ZAPTEL_MANDATORY="yes"
8866 # check for basic system features and functionality before
8867 # checking for package libraries
8869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8870 # for constant arguments. Useless!
8871 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8872 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8873 if test "${ac_cv_working_alloca_h+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 cat >conftest.$ac_ext <<_ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8886 char *p = (char *) alloca (2 * sizeof (int));
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (ac_try="$ac_link"
8895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8896 *) ac_try_echo
=$ac_try;;
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899 (eval "$ac_link") 2>conftest.er1
8901 grep -v '^ *+' conftest.er1
>conftest.err
8903 cat conftest.err
>&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest
$ac_exeext &&
8909 $as_test_x conftest
$ac_exeext; then
8910 ac_cv_working_alloca_h
=yes
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.
$ac_ext >&5
8915 ac_cv_working_alloca_h
=no
8918 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8919 conftest
$ac_exeext conftest.
$ac_ext
8921 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8922 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8923 if test $ac_cv_working_alloca_h = yes; then
8925 cat >>confdefs.h
<<\_ACEOF
8926 #define HAVE_ALLOCA_H 1
8931 { echo "$as_me:$LINENO: checking for alloca" >&5
8932 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8933 if test "${ac_cv_func_alloca_works+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 cat >conftest.
$ac_ext <<_ACEOF
8939 cat confdefs.h
>>conftest.
$ac_ext
8940 cat >>conftest.
$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8943 # define alloca __builtin_alloca
8946 # include <malloc.h>
8947 # define alloca _alloca
8949 # ifdef HAVE_ALLOCA_H
8950 # include <alloca.h>
8955 # ifndef alloca /* predefined by HP cc +Olibcalls */
8966 char *p = (char *) alloca (1);
8972 rm -f conftest.
$ac_objext conftest
$ac_exeext
8973 if { (ac_try
="$ac_link"
8975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_link") 2>conftest.er1
8981 grep -v '^ *+' conftest.er1 >conftest.err
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest$ac_exeext &&
8989 $as_test_x conftest$ac_exeext; then
8990 ac_cv_func_alloca_works=yes
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_cv_func_alloca_works=no
8998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999 conftest$ac_exeext conftest.$ac_ext
9001 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9002 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9004 if test $ac_cv_func_alloca_works = yes; then
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_ALLOCA 1
9011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9012 # that cause trouble. Some versions do not even contain alloca or
9013 # contain a buggy version. If you still want to use their alloca,
9014 # use ar to extract alloca.o from them instead of compiling alloca.c.
9016 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9018 cat >>confdefs.h <<\_ACEOF
9023 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
9024 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
9025 if test "${ac_cv_os_cray+set}" = set; then
9026 echo $ECHO_N "(cached
) $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 #if defined CRAY && ! defined CRAY2
9041 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9042 $EGREP "webecray
" >/dev/null 2>&1; then
9050 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
9051 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9052 if test $ac_cv_os_cray = yes; then
9053 for ac_func in _getb67 GETB67 getb67; do
9054 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9055 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9056 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9057 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9058 echo $ECHO_N "(cached
) $ECHO_C" >&6
9060 cat >conftest.$ac_ext <<_ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9068 #define $ac_func innocuous_$ac_func
9070 /* System header to define __stub macros and hopefully few prototypes,
9071 which can conflict with char $ac_func (); below.
9072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9073 <limits.h> exists even on freestanding compilers. */
9076 # include <limits.h>
9078 # include <assert.h>
9083 /* Override any GCC internal prototype to avoid an error.
9084 Use char because int might match the return type of a GCC
9085 builtin and then its argument prototype would still apply. */
9090 /* The GNU C library defines this for functions which it implements
9091 to always fail with ENOSYS. Some functions are actually named
9092 something starting with __ and the normal name is an alias. */
9093 #if defined __stub_$ac_func || defined __stub___$ac_func
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (ac_try="$ac_link"
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_link") 2>conftest.er1
9114 grep -v '^ *+' conftest.er1 >conftest.err
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9118 (exit $ac_status); } && {
9119 test -z "$ac_c_werror_flag" ||
9120 test ! -s conftest.err
9121 } && test -s conftest$ac_exeext &&
9122 $as_test_x conftest$ac_exeext; then
9123 eval "$as_ac_var=yes"
9125 echo "$as_me: failed program was
:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 eval "$as_ac_var=no
"
9131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9132 conftest$ac_exeext conftest.$ac_ext
9134 ac_res=`eval echo '${'$as_ac_var'}'`
9135 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9136 echo "${ECHO_T}$ac_res" >&6; }
9137 if test `eval echo '${'$as_ac_var'}'` = yes; then
9139 cat >>confdefs.h <<_ACEOF
9140 #define CRAY_STACKSEG_END $ac_func
9149 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
9150 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
9151 if test "${ac_cv_c_stack_direction+set}" = set; then
9152 echo $ECHO_N "(cached
) $ECHO_C" >&6
9154 if test "$cross_compiling" = yes; then
9155 ac_cv_c_stack_direction=0
9157 cat >conftest.$ac_ext <<_ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 $ac_includes_default
9165 find_stack_direction ()
9167 static char *addr = 0;
9172 return find_stack_direction ();
9175 return (&dummy > addr) ? 1 : -1;
9181 return find_stack_direction () < 0;
9184 rm -f conftest$ac_exeext
9185 if { (ac_try="$ac_link"
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_link") 2>&5
9193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9195 { (case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_try") 2>&5
9202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_c_stack_direction=1
9206 echo "$as_me: program exited with status
$ac_status" >&5
9207 echo "$as_me: failed program was
:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9211 ac_cv_c_stack_direction=-1
9213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9218 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
9219 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9221 cat >>confdefs.h <<_ACEOF
9222 #define STACK_DIRECTION $ac_cv_c_stack_direction
9234 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9235 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
9236 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
9237 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
9238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9239 echo $ECHO_N "(cached
) $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 #include <sys/types.h>
9259 rm -f conftest.$ac_objext
9260 if { (ac_try="$ac_compile"
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_compile") 2>conftest.er1
9268 grep -v '^ *+' conftest.er1 >conftest.err
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest.$ac_objext; then
9276 eval "$as_ac_Header=yes"
9278 echo "$as_me: failed program was
:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 eval "$as_ac_Header=no
"
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 ac_res=`eval echo '${'$as_ac_Header'}'`
9287 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9288 echo "${ECHO_T}$ac_res" >&6; }
9289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9290 cat >>confdefs.h <<_ACEOF
9291 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
9294 ac_header_dirent=$ac_hdr; break
9298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9299 if test $ac_header_dirent = dirent.h; then
9300 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9301 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9302 if test "${ac_cv_search_opendir+set}" = set; then
9303 echo $ECHO_N "(cached
) $ECHO_C" >&6
9305 ac_func_search_save_LIBS=$LIBS
9306 cat >conftest.$ac_ext <<_ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9313 /* Override any GCC internal prototype to avoid an error.
9314 Use char because int might match the return type of a GCC
9315 builtin and then its argument prototype would still apply. */
9328 for ac_lib in '' dir; do
9329 if test -z "$ac_lib"; then
9330 ac_res="none required
"
9333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (ac_try="$ac_link"
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_link") 2>conftest.er1
9344 grep -v '^ *+' conftest.er1 >conftest.err
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9348 (exit $ac_status); } && {
9349 test -z "$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 } && test -s conftest$ac_exeext &&
9352 $as_test_x conftest$ac_exeext; then
9353 ac_cv_search_opendir=$ac_res
9355 echo "$as_me: failed program was
:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9363 if test "${ac_cv_search_opendir+set}" = set; then
9367 if test "${ac_cv_search_opendir+set}" = set; then
9370 ac_cv_search_opendir=no
9373 LIBS=$ac_func_search_save_LIBS
9375 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9376 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9377 ac_res=$ac_cv_search_opendir
9378 if test "$ac_res" != no; then
9379 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9384 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9385 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9386 if test "${ac_cv_search_opendir+set}" = set; then
9387 echo $ECHO_N "(cached
) $ECHO_C" >&6
9389 ac_func_search_save_LIBS=$LIBS
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9412 for ac_lib in '' x; do
9413 if test -z "$ac_lib"; then
9414 ac_res="none required
"
9417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_link") 2>conftest.er1
9428 grep -v '^ *+' conftest.er1 >conftest.err
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest$ac_exeext &&
9436 $as_test_x conftest$ac_exeext; then
9437 ac_cv_search_opendir=$ac_res
9439 echo "$as_me: failed program was
:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9447 if test "${ac_cv_search_opendir+set}" = set; then
9451 if test "${ac_cv_search_opendir+set}" = set; then
9454 ac_cv_search_opendir=no
9457 LIBS=$ac_func_search_save_LIBS
9459 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9460 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9461 ac_res=$ac_cv_search_opendir
9462 if test "$ac_res" != no; then
9463 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9469 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
9470 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
9471 if test "${ac_cv_header_stdc+set}" = set; then
9472 echo $ECHO_N "(cached
) $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9493 rm -f conftest.$ac_objext
9494 if { (ac_try="$ac_compile"
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_compile") 2>conftest.er1
9502 grep -v '^ *+' conftest.er1 >conftest.err
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest.$ac_objext; then
9510 ac_cv_header_stdc=yes
9512 echo "$as_me: failed program was
:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_cv_header_stdc=no
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520 if test $ac_cv_header_stdc = yes; then
9521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9531 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9532 $EGREP "memchr
" >/dev/null 2>&1; then
9535 ac_cv_header_stdc=no
9541 if test $ac_cv_header_stdc = yes; then
9542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9552 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9553 $EGREP "free
" >/dev/null 2>&1; then
9556 ac_cv_header_stdc=no
9562 if test $ac_cv_header_stdc = yes; then
9563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9564 if test "$cross_compiling" = yes; then
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9575 #if ((' ' & 0x0FF) == 0x020)
9576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9579 # define ISLOWER(c) \
9580 (('a' <= (c) && (c) <= 'i') \
9581 || ('j' <= (c) && (c) <= 'r') \
9582 || ('s' <= (c) && (c) <= 'z'))
9583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9591 for (i = 0; i < 256; i++)
9592 if (XOR (islower (i), ISLOWER (i))
9593 || toupper (i) != TOUPPER (i))
9598 rm -f conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>&5
9607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9609 { (case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_try") 2>&5
9616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9617 (exit $ac_status); }; }; then
9620 echo "$as_me: program exited with status
$ac_status" >&5
9621 echo "$as_me: failed program was
:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9625 ac_cv_header_stdc=no
9627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9633 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
9634 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9635 if test $ac_cv_header_stdc = yes; then
9637 cat >>confdefs.h <<\_ACEOF
9638 #define STDC_HEADERS 1
9643 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
9644 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
9645 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9646 echo $ECHO_N "(cached
) $ECHO_C" >&6
9648 cat >conftest.$ac_ext <<_ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <sys/types.h>
9655 #include <sys/wait.h>
9657 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9660 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9668 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9673 rm -f conftest.$ac_objext
9674 if { (ac_try="$ac_compile"
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_compile") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest.$ac_objext; then
9690 ac_cv_header_sys_wait_h=yes
9692 echo "$as_me: failed program was
:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_cv_header_sys_wait_h=no
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
9701 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9702 if test $ac_cv_header_sys_wait_h = yes; then
9704 cat >>confdefs.h <<\_ACEOF
9705 #define HAVE_SYS_WAIT_H 1
9733 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
9735 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9736 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9737 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9738 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9739 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9740 echo $ECHO_N "(cached
) $ECHO_C" >&6
9742 ac_res=`eval echo '${'$as_ac_Header'}'`
9743 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9744 echo "${ECHO_T}$ac_res" >&6; }
9746 # Is the header compilable?
9747 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9748 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9756 #include <$ac_header>
9758 rm -f conftest.$ac_objext
9759 if { (ac_try="$ac_compile"
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_compile") 2>conftest.er1
9767 grep -v '^ *+' conftest.er1 >conftest.err
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9771 (exit $ac_status); } && {
9772 test -z "$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9774 } && test -s conftest.$ac_objext; then
9775 ac_header_compiler=yes
9777 echo "$as_me: failed program was
:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_header_compiler=no
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9785 echo "${ECHO_T}$ac_header_compiler" >&6; }
9787 # Is the header present?
9788 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9789 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9796 #include <$ac_header>
9798 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9806 grep -v '^ *+' conftest.er1 >conftest.err
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9810 (exit $ac_status); } >/dev/null && {
9811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9814 ac_header_preproc=yes
9816 echo "$as_me: failed program was
:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_header_preproc=no
9822 rm -f conftest.err conftest.$ac_ext
9823 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9824 echo "${ECHO_T}$ac_header_preproc" >&6; }
9826 # So? What about this header?
9827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9829 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9830 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9831 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9833 ac_header_preproc=yes
9836 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9837 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9838 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9839 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9840 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9841 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9842 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9843 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9844 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9846 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9847 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9849 ## ------------------------------- ##
9850 ## Report this to www.asterisk.org ##
9851 ## ------------------------------- ##
9853 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9856 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9857 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9858 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9859 echo $ECHO_N "(cached
) $ECHO_C" >&6
9861 eval "$as_ac_Header=\
$ac_header_preproc"
9863 ac_res=`eval echo '${'$as_ac_Header'}'`
9864 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9865 echo "${ECHO_T}$ac_res" >&6; }
9868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9869 cat >>confdefs.h <<_ACEOF
9870 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9878 # Check whether --enable-largefile was given.
9879 if test "${enable_largefile+set}" = set; then
9880 enableval=$enable_largefile;
9883 if test "$enable_largefile" != no; then
9885 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
9886 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
9887 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9888 echo $ECHO_N "(cached
) $ECHO_C" >&6
9890 ac_cv_sys_largefile_CC=no
9891 if test "$GCC" != yes; then
9894 # IRIX 6.2 and later do not support large files by default,
9895 # so use the C compiler's -n32 option if that helps.
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 #include <sys/types.h>
9903 /* Check that off_t can represent 2**63 - 1 correctly.
9904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9905 since some C++ compilers masquerading as C compilers
9906 incorrectly reject 9223372036854775807. */
9907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9909 && LARGE_OFF_T % 2147483647 == 1)
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_compile") 2>conftest.er1
9928 grep -v '^ *+' conftest.er1 >conftest.err
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest.$ac_objext; then
9938 echo "$as_me: failed program was
:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9944 rm -f core conftest.err conftest.$ac_objext
9946 rm -f conftest.$ac_objext
9947 if { (ac_try="$ac_compile"
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_compile") 2>conftest.er1
9955 grep -v '^ *+' conftest.er1 >conftest.err
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest.$ac_objext; then
9963 ac_cv_sys_largefile_CC=' -n32'; break
9965 echo "$as_me: failed program was
:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9971 rm -f core conftest.err conftest.$ac_objext
9975 rm -f conftest.$ac_ext
9978 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
9979 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9980 if test "$ac_cv_sys_largefile_CC" != no; then
9981 CC=$CC$ac_cv_sys_largefile_CC
9984 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
9985 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
9986 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9987 echo $ECHO_N "(cached
) $ECHO_C" >&6
9990 cat >conftest.$ac_ext <<_ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996 #include <sys/types.h>
9997 /* Check that off_t can represent 2**63 - 1 correctly.
9998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9999 since some C++ compilers masquerading as C compilers
10000 incorrectly reject 9223372036854775807. */
10001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10003 && LARGE_OFF_T % 2147483647 == 1)
10013 rm -f conftest.$ac_objext
10014 if { (ac_try="$ac_compile"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_compile") 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10026 (exit $ac_status); } && {
10027 test -z "$ac_c_werror_flag" ||
10028 test ! -s conftest.err
10029 } && test -s conftest.$ac_objext; then
10030 ac_cv_sys_file_offset_bits=no; break
10032 echo "$as_me: failed program was
:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #define _FILE_OFFSET_BITS 64
10046 #include <sys/types.h>
10047 /* Check that off_t can represent 2**63 - 1 correctly.
10048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10049 since some C++ compilers masquerading as C compilers
10050 incorrectly reject 9223372036854775807. */
10051 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10053 && LARGE_OFF_T % 2147483647 == 1)
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10072 grep -v '^ *+' conftest.er1 >conftest.err
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.$ac_objext; then
10080 ac_cv_sys_file_offset_bits=64; break
10082 echo "$as_me: failed program was
:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 ac_cv_sys_file_offset_bits=unknown
10093 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
10094 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10095 case $ac_cv_sys_file_offset_bits in #(
10098 cat >>confdefs.h <<_ACEOF
10099 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10104 if test $ac_cv_sys_file_offset_bits = unknown; then
10105 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
10106 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
10107 if test "${ac_cv_sys_large_files+set}" = set; then
10108 echo $ECHO_N "(cached
) $ECHO_C" >&6
10111 cat >conftest.$ac_ext <<_ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 #include <sys/types.h>
10118 /* Check that off_t can represent 2**63 - 1 correctly.
10119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10120 since some C++ compilers masquerading as C compilers
10121 incorrectly reject 9223372036854775807. */
10122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10124 && LARGE_OFF_T % 2147483647 == 1)
10134 rm -f conftest.$ac_objext
10135 if { (ac_try="$ac_compile"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_compile") 2>conftest.er1
10143 grep -v '^ *+' conftest.er1 >conftest.err
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10147 (exit $ac_status); } && {
10148 test -z "$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10150 } && test -s conftest.$ac_objext; then
10151 ac_cv_sys_large_files=no; break
10153 echo "$as_me: failed program was
:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 cat >conftest.$ac_ext <<_ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 #define _LARGE_FILES 1
10167 #include <sys/types.h>
10168 /* Check that off_t can represent 2**63 - 1 correctly.
10169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10170 since some C++ compilers masquerading as C compilers
10171 incorrectly reject 9223372036854775807. */
10172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10174 && LARGE_OFF_T % 2147483647 == 1)
10184 rm -f conftest.$ac_objext
10185 if { (ac_try="$ac_compile"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_compile") 2>conftest.er1
10193 grep -v '^ *+' conftest.er1 >conftest.err
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10197 (exit $ac_status); } && {
10198 test -z "$ac_c_werror_flag" ||
10199 test ! -s conftest.err
10200 } && test -s conftest.$ac_objext; then
10201 ac_cv_sys_large_files=1; break
10203 echo "$as_me: failed program was
:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 ac_cv_sys_large_files=unknown
10214 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
10215 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10216 case $ac_cv_sys_large_files in #(
10219 cat >>confdefs.h <<_ACEOF
10220 #define _LARGE_FILES $ac_cv_sys_large_files
10229 # Checks for typedefs, structures, and compiler characteristics.
10230 { echo "$as_me:$LINENO: checking
for stdbool.h that conforms to C99
" >&5
10231 echo $ECHO_N "checking
for stdbool.h that conforms to C99...
$ECHO_C" >&6; }
10232 if test "${ac_cv_header_stdbool_h+set}" = set; then
10233 echo $ECHO_N "(cached
) $ECHO_C" >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10242 #include <stdbool.h>
10244 "error
: bool is not defined
"
10247 "error
: false is not defined
"
10250 "error
: false is not
0"
10253 "error
: true is not defined
"
10256 "error
: true is not
1"
10258 #ifndef __bool_true_false_are_defined
10259 "error
: __bool_true_false_are_defined is not defined
"
10262 struct s { _Bool s: 1; _Bool t; } s;
10264 char a[true == 1 ? 1 : -1];
10265 char b[false == 0 ? 1 : -1];
10266 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10267 char d[(bool) 0.5 == true ? 1 : -1];
10269 char f[(_Bool) 0.0 == false ? 1 : -1];
10271 char h[sizeof (_Bool)];
10272 char i[sizeof s.t];
10273 enum { j = false, k = true, l = false * true, m = true * 256 };
10275 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10276 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10277 # if defined __xlc__ || defined __GNUC__
10278 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10279 reported by James Lemley on 2005-10-05; see
10280 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10281 This test is not quite right, since xlc is allowed to
10282 reject this program, as the initializer for xlcbug is
10283 not one of the forms that C requires support for.
10284 However, doing the test right would require a runtime
10285 test, and that would make cross-compilation harder.
10286 Let us hope that IBM fixes the xlc bug, and also adds
10287 support for this kind of constant expression. In the
10288 meantime, this test will reject xlc, which is OK, since
10289 our stdbool.h substitute should suffice. We also test
10290 this with GCC, where it should work, to detect more
10291 quickly whether someone messes up the test in the
10293 char digs[] = "0123456789";
10294 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10296 /* Catch a bug in an HP-UX C compiler. See
10297 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10298 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10309 /* Refer to every declared value, to avoid compiler optimizations. */
10310 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10311 + !m + !n + !o + !p + !q + !pq);
10317 rm -f conftest.$ac_objext
10318 if { (ac_try="$ac_compile"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_compile") 2>conftest.er1
10326 grep -v '^ *+' conftest.er1 >conftest.err
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10330 (exit $ac_status); } && {
10331 test -z "$ac_c_werror_flag" ||
10332 test ! -s conftest.err
10333 } && test -s conftest.$ac_objext; then
10334 ac_cv_header_stdbool_h=yes
10336 echo "$as_me: failed program was
:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_header_stdbool_h=no
10342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10344 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdbool_h" >&5
10345 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10346 { echo "$as_me:$LINENO: checking
for _Bool
" >&5
10347 echo $ECHO_N "checking
for _Bool...
$ECHO_C" >&6; }
10348 if test "${ac_cv_type__Bool+set}" = set; then
10349 echo $ECHO_N "(cached
) $ECHO_C" >&6
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 typedef _Bool ac__type_new_;
10362 if ((ac__type_new_ *) 0)
10364 if (sizeof (ac__type_new_))
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10379 grep -v '^ *+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_cv_type__Bool=yes
10389 echo "$as_me: failed program was
:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_cv_type__Bool=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 { echo "$as_me:$LINENO: result
: $ac_cv_type__Bool" >&5
10398 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10399 if test $ac_cv_type__Bool = yes; then
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE__BOOL 1
10408 if test $ac_cv_header_stdbool_h = yes; then
10410 cat >>confdefs.h <<\_ACEOF
10411 #define HAVE_STDBOOL_H 1
10416 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
10417 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
10418 if test "${ac_cv_c_const+set}" = set; then
10419 echo $ECHO_N "(cached
) $ECHO_C" >&6
10421 cat >conftest.$ac_ext <<_ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10431 /* FIXME: Include the comments suggested by Paul. */
10432 #ifndef __cplusplus
10433 /* Ultrix mips cc rejects this. */
10434 typedef int charset[2];
10436 /* SunOS 4.1.1 cc rejects this. */
10437 char const *const *pcpcc;
10439 /* NEC SVR4.0.2 mips cc rejects this. */
10440 struct point {int x, y;};
10441 static struct point const zero = {0,0};
10442 /* AIX XL C 1.02.0.0 rejects this.
10443 It does not let you subtract one const X* pointer from another in
10444 an arm of an if-expression whose if-part is not a constant
10446 const char *g = "string
";
10447 pcpcc = &g + (g ? g-g : 0);
10448 /* HPUX 7.0 cc rejects these. */
10450 ppc = (char**) pcpcc;
10451 pcpcc = (char const *const *) ppc;
10452 { /* SCO 3.2v4 cc rejects this. */
10454 char const *s = 0 ? (char *) 0 : (char const *) 0;
10459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10460 int x[] = {25, 17};
10461 const int *foo = &x[0];
10464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10465 typedef const int *iptr;
10469 { /* AIX XL C 1.02.0.0 rejects this saying
10470 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10471 struct s { int j; const int *ap[3]; };
10472 struct s *b; b->j = 5;
10474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10475 const int foo = 10;
10476 if (!foo) return 0;
10478 return !cs[0] && !zero.x;
10485 rm -f conftest.$ac_objext
10486 if { (ac_try="$ac_compile"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_compile") 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest.$ac_objext; then
10504 echo "$as_me: failed program was
:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
10513 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10514 if test $ac_cv_c_const = no; then
10516 cat >>confdefs.h <<\_ACEOF
10522 { echo "$as_me:$LINENO: checking
for uid_t
in sys
/types.h
" >&5
10523 echo $ECHO_N "checking
for uid_t
in sys
/types.h...
$ECHO_C" >&6; }
10524 if test "${ac_cv_type_uid_t+set}" = set; then
10525 echo $ECHO_N "(cached
) $ECHO_C" >&6
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <sys/types.h>
10536 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10537 $EGREP "uid_t
" >/dev/null 2>&1; then
10538 ac_cv_type_uid_t=yes
10540 ac_cv_type_uid_t=no
10545 { echo "$as_me:$LINENO: result
: $ac_cv_type_uid_t" >&5
10546 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10547 if test $ac_cv_type_uid_t = no; then
10549 cat >>confdefs.h <<\_ACEOF
10554 cat >>confdefs.h <<\_ACEOF
10560 { echo "$as_me:$LINENO: checking
for inline
" >&5
10561 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
10562 if test "${ac_cv_c_inline+set}" = set; then
10563 echo $ECHO_N "(cached
) $ECHO_C" >&6
10566 for ac_kw in inline __inline__ __inline; do
10567 cat >conftest.$ac_ext <<_ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 #ifndef __cplusplus
10575 static $ac_kw foo_t static_foo () {return 0; }
10576 $ac_kw foo_t foo () {return 0; }
10580 rm -f conftest.$ac_objext
10581 if { (ac_try="$ac_compile"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_compile") 2>conftest.er1
10589 grep -v '^ *+' conftest.er1 >conftest.err
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10593 (exit $ac_status); } && {
10594 test -z "$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 } && test -s conftest.$ac_objext; then
10597 ac_cv_c_inline=$ac_kw
10599 echo "$as_me: failed program was
:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 test "$ac_cv_c_inline" != no && break
10610 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
10611 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10614 case $ac_cv_c_inline in
10617 case $ac_cv_c_inline in
10619 *) ac_val=$ac_cv_c_inline;;
10621 cat >>confdefs.h <<_ACEOF
10622 #ifndef __cplusplus
10623 #define inline $ac_val
10629 { echo "$as_me:$LINENO: checking
for mode_t
" >&5
10630 echo $ECHO_N "checking
for mode_t...
$ECHO_C" >&6; }
10631 if test "${ac_cv_type_mode_t+set}" = set; then
10632 echo $ECHO_N "(cached
) $ECHO_C" >&6
10634 cat >conftest.$ac_ext <<_ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10641 typedef mode_t ac__type_new_;
10645 if ((ac__type_new_ *) 0)
10647 if (sizeof (ac__type_new_))
10653 rm -f conftest.$ac_objext
10654 if { (ac_try="$ac_compile"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_compile") 2>conftest.er1
10662 grep -v '^ *+' conftest.er1 >conftest.err
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10666 (exit $ac_status); } && {
10667 test -z "$ac_c_werror_flag" ||
10668 test ! -s conftest.err
10669 } && test -s conftest.$ac_objext; then
10670 ac_cv_type_mode_t=yes
10672 echo "$as_me: failed program was
:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_type_mode_t=no
10678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10680 { echo "$as_me:$LINENO: result
: $ac_cv_type_mode_t" >&5
10681 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10682 if test $ac_cv_type_mode_t = yes; then
10686 cat >>confdefs.h <<_ACEOF
10692 { echo "$as_me:$LINENO: checking
for off_t
" >&5
10693 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
10694 if test "${ac_cv_type_off_t+set}" = set; then
10695 echo $ECHO_N "(cached
) $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 $ac_includes_default
10704 typedef off_t ac__type_new_;
10708 if ((ac__type_new_ *) 0)
10710 if (sizeof (ac__type_new_))
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_compile") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 } && test -s conftest.$ac_objext; then
10733 ac_cv_type_off_t=yes
10735 echo "$as_me: failed program was
:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_cv_type_off_t=no
10741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
10744 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10745 if test $ac_cv_type_off_t = yes; then
10749 cat >>confdefs.h <<_ACEOF
10750 #define off_t long int
10755 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
10756 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
10757 if test "${ac_cv_type_pid_t+set}" = set; then
10758 echo $ECHO_N "(cached
) $ECHO_C" >&6
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 $ac_includes_default
10767 typedef pid_t ac__type_new_;
10771 if ((ac__type_new_ *) 0)
10773 if (sizeof (ac__type_new_))
10779 rm -f conftest.$ac_objext
10780 if { (ac_try="$ac_compile"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_compile") 2>conftest.er1
10788 grep -v '^ *+' conftest.er1 >conftest.err
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest.$ac_objext; then
10796 ac_cv_type_pid_t=yes
10798 echo "$as_me: failed program was
:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_cv_type_pid_t=no
10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
10807 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10808 if test $ac_cv_type_pid_t = yes; then
10812 cat >>confdefs.h <<_ACEOF
10818 { echo "$as_me:$LINENO: checking
for size_t
" >&5
10819 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
10820 if test "${ac_cv_type_size_t+set}" = set; then
10821 echo $ECHO_N "(cached
) $ECHO_C" >&6
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 $ac_includes_default
10830 typedef size_t ac__type_new_;
10834 if ((ac__type_new_ *) 0)
10836 if (sizeof (ac__type_new_))
10842 rm -f conftest.$ac_objext
10843 if { (ac_try="$ac_compile"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_compile") 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest.$ac_objext; then
10859 ac_cv_type_size_t=yes
10861 echo "$as_me: failed program was
:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_cv_type_size_t=no
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
10870 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10871 if test $ac_cv_type_size_t = yes; then
10875 cat >>confdefs.h <<_ACEOF
10876 #define size_t unsigned int
10881 { echo "$as_me:$LINENO: checking
for struct stat.st_blksize
" >&5
10882 echo $ECHO_N "checking
for struct stat.st_blksize...
$ECHO_C" >&6; }
10883 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10884 echo $ECHO_N "(cached
) $ECHO_C" >&6
10886 cat >conftest.$ac_ext <<_ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 $ac_includes_default
10896 static struct stat ac_aggr;
10897 if (ac_aggr.st_blksize)
10903 rm -f conftest.$ac_objext
10904 if { (ac_try="$ac_compile"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_compile") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest.$ac_objext; then
10920 ac_cv_member_struct_stat_st_blksize=yes
10922 echo "$as_me: failed program was
:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 $ac_includes_default
10935 static struct stat ac_aggr;
10936 if (sizeof ac_aggr.st_blksize)
10942 rm -f conftest.$ac_objext
10943 if { (ac_try="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_compile") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest.$ac_objext; then
10959 ac_cv_member_struct_stat_st_blksize=yes
10961 echo "$as_me: failed program was
:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_member_struct_stat_st_blksize=no
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blksize" >&5
10973 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10974 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10983 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
10984 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
10985 if test "${ac_cv_header_time+set}" = set; then
10986 echo $ECHO_N "(cached
) $ECHO_C" >&6
10988 cat >conftest.$ac_ext <<_ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 #include <sys/types.h>
10995 #include <sys/time.h>
11001 if ((struct tm *) 0)
11007 rm -f conftest.$ac_objext
11008 if { (ac_try="$ac_compile"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_compile") 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11020 (exit $ac_status); } && {
11021 test -z "$ac_c_werror_flag" ||
11022 test ! -s conftest.err
11023 } && test -s conftest.$ac_objext; then
11024 ac_cv_header_time=yes
11026 echo "$as_me: failed program was
:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 ac_cv_header_time=no
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
11035 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11036 if test $ac_cv_header_time = yes; then
11038 cat >>confdefs.h <<\_ACEOF
11039 #define TIME_WITH_SYS_TIME 1
11044 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
11045 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
11046 if test "${ac_cv_struct_tm+set}" = set; then
11047 echo $ECHO_N "(cached
) $ECHO_C" >&6
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 #include <sys/types.h>
11062 int *p = &tm.tm_sec;
11068 rm -f conftest.$ac_objext
11069 if { (ac_try="$ac_compile"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_compile") 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest.$ac_objext; then
11085 ac_cv_struct_tm=time.h
11087 echo "$as_me: failed program was
:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_cv_struct_tm=sys/time.h
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
11096 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11097 if test $ac_cv_struct_tm = sys/time.h; then
11099 cat >>confdefs.h <<\_ACEOF
11100 #define TM_IN_SYS_TIME 1
11105 { echo "$as_me:$LINENO: checking
for working volatile
" >&5
11106 echo $ECHO_N "checking
for working volatile...
$ECHO_C" >&6; }
11107 if test "${ac_cv_c_volatile+set}" = set; then
11108 echo $ECHO_N "(cached
) $ECHO_C" >&6
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11122 int * volatile y = (int *) 0;
11128 rm -f conftest.$ac_objext
11129 if { (ac_try="$ac_compile"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_compile") 2>conftest.er1
11137 grep -v '^ *+' conftest.er1 >conftest.err
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest.$ac_objext; then
11145 ac_cv_c_volatile=yes
11147 echo "$as_me: failed program was
:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_cv_c_volatile=no
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result
: $ac_cv_c_volatile" >&5
11156 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11157 if test $ac_cv_c_volatile = no; then
11159 cat >>confdefs.h <<\_ACEOF
11165 { echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
11166 echo $ECHO_N "checking
for ptrdiff_t...
$ECHO_C" >&6; }
11167 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11168 echo $ECHO_N "(cached
) $ECHO_C" >&6
11170 cat >conftest.$ac_ext <<_ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 $ac_includes_default
11177 typedef ptrdiff_t ac__type_new_;
11181 if ((ac__type_new_ *) 0)
11183 if (sizeof (ac__type_new_))
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 test -z "$ac_c_werror_flag" ||
11204 test ! -s conftest.err
11205 } && test -s conftest.$ac_objext; then
11206 ac_cv_type_ptrdiff_t=yes
11208 echo "$as_me: failed program was
:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_cv_type_ptrdiff_t=no
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
11217 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11218 if test $ac_cv_type_ptrdiff_t = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define HAVE_PTRDIFF_T 1
11228 # Checks for library functions.
11230 for ac_header in unistd.h
11232 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11235 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached
) $ECHO_C" >&6
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11243 # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11245 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 $ac_includes_default
11253 #include <$ac_header>
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest.$ac_objext; then
11272 ac_header_compiler=yes
11274 echo "$as_me: failed program was
:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_header_compiler=no
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11282 echo "${ECHO_T}$ac_header_compiler" >&6; }
11284 # Is the header present?
11285 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11286 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11287 cat >conftest.$ac_ext <<_ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <$ac_header>
11295 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11296 case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11303 grep -v '^ *+' conftest.er1 >conftest.err
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11307 (exit $ac_status); } >/dev/null && {
11308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11311 ac_header_preproc=yes
11313 echo "$as_me: failed program was
:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_header_preproc=no
11319 rm -f conftest.err conftest.$ac_ext
11320 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11321 echo "${ECHO_T}$ac_header_preproc" >&6; }
11323 # So? What about this header?
11324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11326 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11327 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11328 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11330 ac_header_preproc=yes
11333 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11334 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11335 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11336 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11337 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11338 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11339 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11340 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11341 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11343 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11344 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11346 ## ------------------------------- ##
11347 ## Report this to www.asterisk.org ##
11348 ## ------------------------------- ##
11350 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11353 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11354 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11355 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11356 echo $ECHO_N "(cached
) $ECHO_C" >&6
11358 eval "$as_ac_Header=\
$ac_header_preproc"
11360 ac_res=`eval echo '${'$as_ac_Header'}'`
11361 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11366 cat >>confdefs.h <<_ACEOF
11367 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11374 { echo "$as_me:$LINENO: checking
for working chown
" >&5
11375 echo $ECHO_N "checking
for working chown...
$ECHO_C" >&6; }
11376 if test "${ac_cv_func_chown_works+set}" = set; then
11377 echo $ECHO_N "(cached
) $ECHO_C" >&6
11379 if test "$cross_compiling" = yes; then
11380 ac_cv_func_chown_works=no
11382 cat >conftest.$ac_ext <<_ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 $ac_includes_default
11394 char *f = "conftest.chown
";
11395 struct stat before, after;
11397 if (creat (f, 0600) < 0)
11399 if (stat (f, &before) < 0)
11401 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11403 if (stat (f, &after) < 0)
11405 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11411 rm -f conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_link") 2>&5
11420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11422 { (case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_try") 2>&5
11429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 ac_cv_func_chown_works=yes
11433 echo "$as_me: program exited with status
$ac_status" >&5
11434 echo "$as_me: failed program was
:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ( exit $ac_status )
11438 ac_cv_func_chown_works=no
11440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11444 rm -f conftest.chown
11447 { echo "$as_me:$LINENO: result
: $ac_cv_func_chown_works" >&5
11448 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11449 if test $ac_cv_func_chown_works = yes; then
11451 cat >>confdefs.h <<\_ACEOF
11452 #define HAVE_CHOWN 1
11457 { echo "$as_me:$LINENO: checking whether closedir returns void
" >&5
11458 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; }
11459 if test "${ac_cv_func_closedir_void+set}" = set; then
11460 echo $ECHO_N "(cached
) $ECHO_C" >&6
11462 if test "$cross_compiling" = yes; then
11463 ac_cv_func_closedir_void=yes
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 #include <$ac_header_dirent>
11473 #ifndef __cplusplus
11480 return closedir (opendir (".
")) != 0;
11485 rm -f conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_link") 2>&5
11494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_func_closedir_void=no
11507 echo "$as_me: program exited with status
$ac_status" >&5
11508 echo "$as_me: failed program was
:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 ( exit $ac_status )
11512 ac_cv_func_closedir_void=yes
11514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11519 { echo "$as_me:$LINENO: result
: $ac_cv_func_closedir_void" >&5
11520 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11521 if test $ac_cv_func_closedir_void = yes; then
11523 cat >>confdefs.h <<\_ACEOF
11524 #define CLOSEDIR_VOID 1
11529 { echo "$as_me:$LINENO: checking
for error_at_line
" >&5
11530 echo $ECHO_N "checking
for error_at_line...
$ECHO_C" >&6; }
11531 if test "${ac_cv_lib_error_at_line+set}" = set; then
11532 echo $ECHO_N "(cached
) $ECHO_C" >&6
11534 cat >conftest.$ac_ext <<_ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11544 error_at_line (0, 0, "", 0, "an error occurred
");
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext &&
11566 $as_test_x conftest$ac_exeext; then
11567 ac_cv_lib_error_at_line=yes
11569 echo "$as_me: failed program was
:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_cv_lib_error_at_line=no
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11578 { echo "$as_me:$LINENO: result
: $ac_cv_lib_error_at_line" >&5
11579 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11580 if test $ac_cv_lib_error_at_line = no; then
11581 case " $LIBOBJS " in
11582 *" error.
$ac_objext "* ) ;;
11583 *) LIBOBJS="$LIBOBJS error.
$ac_objext"
11590 for ac_header in vfork.h
11592 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11593 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11594 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11595 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11596 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached
) $ECHO_C" >&6
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11603 # Is the header compilable?
11604 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11605 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 $ac_includes_default
11613 #include <$ac_header>
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_compile") 2>conftest.er1
11624 grep -v '^ *+' conftest.er1 >conftest.err
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest.$ac_objext; then
11632 ac_header_compiler=yes
11634 echo "$as_me: failed program was
:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_compiler=no
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6; }
11644 # Is the header present?
11645 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11646 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11647 cat >conftest.$ac_ext <<_ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <$ac_header>
11655 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11667 (exit $ac_status); } >/dev/null && {
11668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11671 ac_header_preproc=yes
11673 echo "$as_me: failed program was
:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_preproc=no
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11687 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11690 ac_header_preproc=yes
11693 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11694 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11695 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11696 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11697 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11698 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11699 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11700 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11703 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11704 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11706 ## ------------------------------- ##
11707 ## Report this to www.asterisk.org ##
11708 ## ------------------------------- ##
11710 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11713 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11714 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11715 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11716 echo $ECHO_N "(cached
) $ECHO_C" >&6
11718 eval "$as_ac_Header=\
$ac_header_preproc"
11720 ac_res=`eval echo '${'$as_ac_Header'}'`
11721 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11722 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11736 for ac_func in fork vfork
11738 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11739 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11740 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11741 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11742 echo $ECHO_N "(cached
) $ECHO_C" >&6
11744 cat >conftest.$ac_ext <<_ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11752 #define $ac_func innocuous_$ac_func
11754 /* System header to define __stub macros and hopefully few prototypes,
11755 which can conflict with char $ac_func (); below.
11756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 <limits.h> exists even on freestanding compilers. */
11760 # include <limits.h>
11762 # include <assert.h>
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11774 /* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
11777 #if defined __stub_$ac_func || defined __stub___$ac_func
11784 return $ac_func ();
11789 rm -f conftest.$ac_objext conftest$ac_exeext
11790 if { (ac_try="$ac_link"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_link") 2>conftest.er1
11798 grep -v '^ *+' conftest.er1 >conftest.err
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11802 (exit $ac_status); } && {
11803 test -z "$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest$ac_exeext &&
11806 $as_test_x conftest$ac_exeext; then
11807 eval "$as_ac_var=yes"
11809 echo "$as_me: failed program was
:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 eval "$as_ac_var=no
"
11815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11816 conftest$ac_exeext conftest.$ac_ext
11818 ac_res=`eval echo '${'$as_ac_var'}'`
11819 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11820 echo "${ECHO_T}$ac_res" >&6; }
11821 if test `eval echo '${'$as_ac_var'}'` = yes; then
11822 cat >>confdefs.h <<_ACEOF
11823 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11829 if test "x
$ac_cv_func_fork" = xyes; then
11830 { echo "$as_me:$LINENO: checking
for working fork
" >&5
11831 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
11832 if test "${ac_cv_func_fork_works+set}" = set; then
11833 echo $ECHO_N "(cached
) $ECHO_C" >&6
11835 if test "$cross_compiling" = yes; then
11836 ac_cv_func_fork_works=cross
11838 cat >conftest.$ac_ext <<_ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 $ac_includes_default
11849 /* By Ruediger Kuhlmann. */
11850 return fork () < 0;
11856 rm -f conftest$ac_exeext
11857 if { (ac_try="$ac_link"
11858 case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_link") 2>&5
11865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11867 { (case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_try") 2>&5
11874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_func_fork_works=yes
11878 echo "$as_me: program exited with status
$ac_status" >&5
11879 echo "$as_me: failed program was
:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ( exit $ac_status )
11883 ac_cv_func_fork_works=no
11885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
11891 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11894 ac_cv_func_fork_works=$ac_cv_func_fork
11896 if test "x
$ac_cv_func_fork_works" = xcross; then
11898 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11899 # Override, as these systems have only a dummy fork() stub
11900 ac_cv_func_fork_works=no
11903 ac_cv_func_fork_works=yes
11906 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
11907 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
11909 ac_cv_func_vfork_works=$ac_cv_func_vfork
11910 if test "x
$ac_cv_func_vfork" = xyes; then
11911 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
11912 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
11913 if test "${ac_cv_func_vfork_works+set}" = set; then
11914 echo $ECHO_N "(cached
) $ECHO_C" >&6
11916 if test "$cross_compiling" = yes; then
11917 ac_cv_func_vfork_works=cross
11919 cat >conftest.$ac_ext <<_ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 /* Thanks to Paul Eggert for this test. */
11926 $ac_includes_default
11927 #include <sys/wait.h>
11928 #ifdef HAVE_VFORK_H
11929 # include <vfork.h>
11931 /* On some sparc systems, changes by the child to local and incoming
11932 argument registers are propagated back to the parent. The compiler
11933 is told about this with #include <vfork.h>, but some compilers
11934 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11935 static variable whose address is put into a register that is
11936 clobbered by the vfork. */
11939 sparc_address_test (int arg)
11941 sparc_address_test (arg) int arg;
11944 static pid_t child;
11962 pid_t parent = getpid ();
11965 sparc_address_test (0);
11970 /* Here is another test for sparc vfork register problems. This
11971 test uses lots of local variables, at least as many local
11972 variables as main has allocated so far including compiler
11973 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11974 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11975 reuse the register of parent for one of the local variables,
11976 since it will think that parent can't possibly be used any more
11977 in this routine. Assigning to the local variable will thus
11978 munge parent in the parent process. */
11980 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11981 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11982 /* Convince the compiler that p..p7 are live; otherwise, it might
11983 use the same hardware register for all 8 local variables. */
11984 if (p != p1 || p != p2 || p != p3 || p != p4
11985 || p != p5 || p != p6 || p != p7)
11988 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11989 from child file descriptors. If the child closes a descriptor
11990 before it execs or exits, this munges the parent's descriptor
11991 as well. Test for this by closing stdout in the child. */
11992 _exit(close(fileno(stdout)) != 0);
11997 while (wait(&status) != child)
12000 /* Was there some problem with vforking? */
12003 /* Did the child fail? (This shouldn't happen.) */
12006 /* Did the vfork/compiler bug occur? */
12007 || parent != getpid()
12009 /* Did the file descriptor bug occur? */
12010 || fstat(fileno(stdout), &st) != 0
12015 rm -f conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>&5
12024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_cv_func_vfork_works=yes
12037 echo "$as_me: program exited with status
$ac_status" >&5
12038 echo "$as_me: failed program was
:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ( exit $ac_status )
12042 ac_cv_func_vfork_works=no
12044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12049 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
12050 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12053 if test "x
$ac_cv_func_fork_works" = xcross; then
12054 ac_cv_func_vfork_works=$ac_cv_func_vfork
12055 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
12056 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
12059 if test "x
$ac_cv_func_vfork_works" = xyes; then
12061 cat >>confdefs.h <<\_ACEOF
12062 #define HAVE_WORKING_VFORK 1
12067 cat >>confdefs.h <<\_ACEOF
12072 if test "x
$ac_cv_func_fork_works" = xyes; then
12074 cat >>confdefs.h <<\_ACEOF
12075 #define HAVE_WORKING_FORK 1
12080 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
12081 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
12082 if test "${ac_cv_sys_largefile_source+set}" = set; then
12083 echo $ECHO_N "(cached
) $ECHO_C" >&6
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12096 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12110 grep -v '^ *+' conftest.er1 >conftest.err
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12114 (exit $ac_status); } && {
12115 test -z "$ac_c_werror_flag" ||
12116 test ! -s conftest.err
12117 } && test -s conftest$ac_exeext &&
12118 $as_test_x conftest$ac_exeext; then
12119 ac_cv_sys_largefile_source=no; break
12121 echo "$as_me: failed program was
:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12128 conftest$ac_exeext conftest.$ac_ext
12129 cat >conftest.$ac_ext <<_ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 #define _LARGEFILE_SOURCE 1
12140 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (ac_try="$ac_link"
12147 case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_link") 2>conftest.er1
12154 grep -v '^ *+' conftest.er1 >conftest.err
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12158 (exit $ac_status); } && {
12159 test -z "$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12161 } && test -s conftest$ac_exeext &&
12162 $as_test_x conftest$ac_exeext; then
12163 ac_cv_sys_largefile_source=1; break
12165 echo "$as_me: failed program was
:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12172 conftest$ac_exeext conftest.$ac_ext
12173 ac_cv_sys_largefile_source=unknown
12177 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
12178 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12179 case $ac_cv_sys_largefile_source in #(
12182 cat >>confdefs.h <<_ACEOF
12183 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12189 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12190 # in glibc 2.1.3, but that breaks too many other things.
12191 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12192 if test $ac_cv_sys_largefile_source != unknown; then
12194 cat >>confdefs.h <<\_ACEOF
12195 #define HAVE_FSEEKO 1
12200 if test $ac_cv_c_compiler_gnu = yes; then
12201 { echo "$as_me:$LINENO: checking whether
$CC needs
-traditional" >&5
12202 echo $ECHO_N "checking whether
$CC needs
-traditional...
$ECHO_C" >&6; }
12203 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12204 echo $ECHO_N "(cached
) $ECHO_C" >&6
12206 ac_pattern="Autoconf.
*'x'"
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12216 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12217 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12218 ac_cv_prog_gcc_traditional=yes
12220 ac_cv_prog_gcc_traditional=no
12225 if test $ac_cv_prog_gcc_traditional = no; then
12226 cat >conftest.$ac_ext <<_ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 #include <termio.h>
12235 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12236 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12237 ac_cv_prog_gcc_traditional=yes
12243 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gcc_traditional" >&5
12244 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12245 if test $ac_cv_prog_gcc_traditional = yes; then
12246 CC="$CC -traditional"
12250 # XXX: these are commented out until we determine whether it matters if our malloc()
12251 # acts exactly like glibc's or not
12254 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
12255 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
12256 if test "${ac_cv_func_memcmp_working+set}" = set; then
12257 echo $ECHO_N "(cached
) $ECHO_C" >&6
12259 if test "$cross_compiling" = yes; then
12260 ac_cv_func_memcmp_working=no
12262 cat >conftest.$ac_ext <<_ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12268 $ac_includes_default
12273 /* Some versions of memcmp are not 8-bit clean. */
12274 char c0 = '\100', c1 = '\200', c2 = '\201';
12275 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12278 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12279 or more and with at least one buffer not starting on a 4-byte boundary.
12280 William Lewis provided this test program. */
12285 for (i = 0; i < 4; i++)
12289 strcpy (a, "--------01111111");
12290 strcpy (b, "--------10000000");
12291 if (memcmp (a, b, 16) >= 0)
12301 rm -f conftest$ac_exeext
12302 if { (ac_try="$ac_link"
12303 case "(($ac_try" in
12304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305 *) ac_try_echo=$ac_try;;
12307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12308 (eval "$ac_link") 2>&5
12310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12312 { (case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_try") 2>&5
12319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 ac_cv_func_memcmp_working=yes
12323 echo "$as_me: program exited with status
$ac_status" >&5
12324 echo "$as_me: failed program was
:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12327 ( exit $ac_status )
12328 ac_cv_func_memcmp_working=no
12330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12335 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
12336 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12337 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12338 *" memcmp.
$ac_objext "* ) ;;
12339 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
12346 for ac_header in stdlib.h unistd.h
12348 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12349 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12350 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12351 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12352 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12353 echo $ECHO_N "(cached
) $ECHO_C" >&6
12355 ac_res=`eval echo '${'$as_ac_Header'}'`
12356 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12357 echo "${ECHO_T}$ac_res" >&6; }
12359 # Is the header compilable?
12360 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12361 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12362 cat >conftest.$ac_ext <<_ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 $ac_includes_default
12369 #include <$ac_header>
12371 rm -f conftest.$ac_objext
12372 if { (ac_try="$ac_compile"
12373 case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_compile") 2>conftest.er1
12380 grep -v '^ *+' conftest.er1 >conftest.err
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12384 (exit $ac_status); } && {
12385 test -z "$ac_c_werror_flag" ||
12386 test ! -s conftest.err
12387 } && test -s conftest.$ac_objext; then
12388 ac_header_compiler=yes
12390 echo "$as_me: failed program was
:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 ac_header_compiler=no
12396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12398 echo "${ECHO_T}$ac_header_compiler" >&6; }
12400 # Is the header present?
12401 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12402 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 #include <$ac_header>
12411 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12412 case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12419 grep -v '^ *+' conftest.er1 >conftest.err
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12423 (exit $ac_status); } >/dev/null && {
12424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12427 ac_header_preproc=yes
12429 echo "$as_me: failed program was
:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_header_preproc=no
12435 rm -f conftest.err conftest.$ac_ext
12436 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12437 echo "${ECHO_T}$ac_header_preproc" >&6; }
12439 # So? What about this header?
12440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12442 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12443 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12444 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12446 ac_header_preproc=yes
12449 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12450 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12451 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12452 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12453 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12454 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12455 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12456 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12457 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12459 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12460 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12462 ## ------------------------------- ##
12463 ## Report this to www.asterisk.org ##
12464 ## ------------------------------- ##
12466 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12469 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12470 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12471 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12472 echo $ECHO_N "(cached
) $ECHO_C" >&6
12474 eval "$as_ac_Header=\
$ac_header_preproc"
12476 ac_res=`eval echo '${'$as_ac_Header'}'`
12477 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12478 echo "${ECHO_T}$ac_res" >&6; }
12481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12482 cat >>confdefs.h <<_ACEOF
12483 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12491 for ac_func in getpagesize
12493 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12494 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12495 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12496 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12497 echo $ECHO_N "(cached
) $ECHO_C" >&6
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12507 #define $ac_func innocuous_$ac_func
12509 /* System header to define __stub macros and hopefully few prototypes,
12510 which can conflict with char $ac_func (); below.
12511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12512 <limits.h> exists even on freestanding compilers. */
12515 # include <limits.h>
12517 # include <assert.h>
12522 /* Override any GCC internal prototype to avoid an error.
12523 Use char because int might match the return type of a GCC
12524 builtin and then its argument prototype would still apply. */
12529 /* The GNU C library defines this for functions which it implements
12530 to always fail with ENOSYS. Some functions are actually named
12531 something starting with __ and the normal name is an alias. */
12532 #if defined __stub_$ac_func || defined __stub___$ac_func
12539 return $ac_func ();
12544 rm -f conftest.$ac_objext conftest$ac_exeext
12545 if { (ac_try="$ac_link"
12546 case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_link") 2>conftest.er1
12553 grep -v '^ *+' conftest.er1 >conftest.err
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12557 (exit $ac_status); } && {
12558 test -z "$ac_c_werror_flag" ||
12559 test ! -s conftest.err
12560 } && test -s conftest$ac_exeext &&
12561 $as_test_x conftest$ac_exeext; then
12562 eval "$as_ac_var=yes"
12564 echo "$as_me: failed program was
:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 eval "$as_ac_var=no
"
12570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12571 conftest$ac_exeext conftest.$ac_ext
12573 ac_res=`eval echo '${'$as_ac_var'}'`
12574 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12575 echo "${ECHO_T}$ac_res" >&6; }
12576 if test `eval echo '${'$as_ac_var'}'` = yes; then
12577 cat >>confdefs.h <<_ACEOF
12578 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12584 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
12585 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
12586 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12587 echo $ECHO_N "(cached
) $ECHO_C" >&6
12589 if test "$cross_compiling" = yes; then
12590 ac_cv_func_mmap_fixed_mapped=no
12592 cat >conftest.$ac_ext <<_ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 $ac_includes_default
12599 /* malloc might have been renamed as rpl_malloc. */
12602 /* Thanks to Mike Haertel and Jim Avera for this test.
12603 Here is a matrix of mmap possibilities:
12604 mmap private not fixed
12605 mmap private fixed at somewhere currently unmapped
12606 mmap private fixed at somewhere already mapped
12607 mmap shared not fixed
12608 mmap shared fixed at somewhere currently unmapped
12609 mmap shared fixed at somewhere already mapped
12610 For private mappings, we should verify that changes cannot be read()
12611 back from the file, nor mmap's back from the file at a different
12612 address. (There have been systems where private was not correctly
12613 implemented like the infamous i386 svr4.0, and systems where the
12614 VM page cache was not coherent with the file system buffer cache
12615 like early versions of FreeBSD and possibly contemporary NetBSD.)
12616 For shared mappings, we should conversely verify that changes get
12617 propagated back to all the places they're supposed to be.
12619 Grep wants private fixed already mapped.
12620 The main things grep needs to know about mmap are:
12621 * does it exist and is it safe to write into the mmap'd area
12622 * how to use it (BSD variants) */
12625 #include <sys/mman.h>
12627 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12631 /* This mess was copied from the GNU getpagesize.h. */
12632 #ifndef HAVE_GETPAGESIZE
12633 /* Assume that all systems that can run configure have sys/param.h. */
12634 # ifndef HAVE_SYS_PARAM_H
12635 # define HAVE_SYS_PARAM_H 1
12638 # ifdef _SC_PAGESIZE
12639 # define getpagesize() sysconf(_SC_PAGESIZE)
12640 # else /* no _SC_PAGESIZE */
12641 # ifdef HAVE_SYS_PARAM_H
12642 # include <sys/param.h>
12643 # ifdef EXEC_PAGESIZE
12644 # define getpagesize() EXEC_PAGESIZE
12645 # else /* no EXEC_PAGESIZE */
12647 # define getpagesize() NBPG * CLSIZE
12650 # endif /* no CLSIZE */
12651 # else /* no NBPG */
12653 # define getpagesize() NBPC
12654 # else /* no NBPC */
12656 # define getpagesize() PAGESIZE
12657 # endif /* PAGESIZE */
12658 # endif /* no NBPC */
12659 # endif /* no NBPG */
12660 # endif /* no EXEC_PAGESIZE */
12661 # else /* no HAVE_SYS_PARAM_H */
12662 # define getpagesize() 8192 /* punt totally */
12663 # endif /* no HAVE_SYS_PARAM_H */
12664 # endif /* no _SC_PAGESIZE */
12666 #endif /* no HAVE_GETPAGESIZE */
12671 char *data, *data2, *data3;
12675 pagesize = getpagesize ();
12677 /* First, make a file with some known garbage in it. */
12678 data = (char *) malloc (pagesize);
12681 for (i = 0; i < pagesize; ++i)
12682 *(data + i) = rand ();
12684 fd = creat ("conftest.mmap
", 0600);
12687 if (write (fd, data, pagesize) != pagesize)
12691 /* Next, try to mmap the file at a fixed address which already has
12692 something else allocated at it. If we can, also make sure that
12693 we see the same garbage. */
12694 fd = open ("conftest.mmap
", O_RDWR);
12697 data2 = (char *) malloc (2 * pagesize);
12700 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12701 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12702 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12704 for (i = 0; i < pagesize; ++i)
12705 if (*(data + i) != *(data2 + i))
12708 /* Finally, make sure that changes to the mapped area do not
12709 percolate back to the file as seen by read(). (This is a bug on
12710 some variants of i386 svr4.0.) */
12711 for (i = 0; i < pagesize; ++i)
12712 *(data2 + i) = *(data2 + i) + 1;
12713 data3 = (char *) malloc (pagesize);
12716 if (read (fd, data3, pagesize) != pagesize)
12718 for (i = 0; i < pagesize; ++i)
12719 if (*(data + i) != *(data3 + i))
12725 rm -f conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_link") 2>&5
12734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_func_mmap_fixed_mapped=yes
12747 echo "$as_me: program exited with status
$ac_status" >&5
12748 echo "$as_me: failed program was
:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 ( exit $ac_status )
12752 ac_cv_func_mmap_fixed_mapped=no
12754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12759 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
12760 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12761 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12763 cat >>confdefs.h <<\_ACEOF
12764 #define HAVE_MMAP 1
12768 rm -f conftest.mmap
12772 for ac_header in sys/select.h sys/socket.h
12774 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12775 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12776 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12777 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12778 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12779 echo $ECHO_N "(cached
) $ECHO_C" >&6
12781 ac_res=`eval echo '${'$as_ac_Header'}'`
12782 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12783 echo "${ECHO_T}$ac_res" >&6; }
12785 # Is the header compilable?
12786 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12787 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12788 cat >conftest.$ac_ext <<_ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12794 $ac_includes_default
12795 #include <$ac_header>
12797 rm -f conftest.$ac_objext
12798 if { (ac_try="$ac_compile"
12799 case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_compile") 2>conftest.er1
12806 grep -v '^ *+' conftest.er1 >conftest.err
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12810 (exit $ac_status); } && {
12811 test -z "$ac_c_werror_flag" ||
12812 test ! -s conftest.err
12813 } && test -s conftest.$ac_objext; then
12814 ac_header_compiler=yes
12816 echo "$as_me: failed program was
:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ac_header_compiler=no
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12824 echo "${ECHO_T}$ac_header_compiler" >&6; }
12826 # Is the header present?
12827 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12828 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12829 cat >conftest.$ac_ext <<_ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 #include <$ac_header>
12837 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12845 grep -v '^ *+' conftest.er1 >conftest.err
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12849 (exit $ac_status); } >/dev/null && {
12850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12851 test ! -s conftest.err
12853 ac_header_preproc=yes
12855 echo "$as_me: failed program was
:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12858 ac_header_preproc=no
12861 rm -f conftest.err conftest.$ac_ext
12862 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12863 echo "${ECHO_T}$ac_header_preproc" >&6; }
12865 # So? What about this header?
12866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12868 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12869 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12870 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12872 ac_header_preproc=yes
12875 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12876 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12877 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12878 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12879 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12880 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12881 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12882 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12883 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12885 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12886 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12888 ## ------------------------------- ##
12889 ## Report this to www.asterisk.org ##
12890 ## ------------------------------- ##
12892 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12895 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12896 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12897 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12898 echo $ECHO_N "(cached
) $ECHO_C" >&6
12900 eval "$as_ac_Header=\
$ac_header_preproc"
12902 ac_res=`eval echo '${'$as_ac_Header'}'`
12903 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12904 echo "${ECHO_T}$ac_res" >&6; }
12907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12908 cat >>confdefs.h <<_ACEOF
12909 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12916 { echo "$as_me:$LINENO: checking types of arguments
for select" >&5
12917 echo $ECHO_N "checking types of arguments
for select...
$ECHO_C" >&6; }
12918 if test "${ac_cv_func_select_args+set}" = set; then
12919 echo $ECHO_N "(cached
) $ECHO_C" >&6
12921 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12922 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12923 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12924 cat >conftest.$ac_ext <<_ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930 $ac_includes_default
12931 #ifdef HAVE_SYS_SELECT_H
12932 # include <sys/select.h>
12934 #ifdef HAVE_SYS_SOCKET_H
12935 # include <sys/socket.h>
12941 extern int select ($ac_arg1,
12942 $ac_arg234, $ac_arg234, $ac_arg234,
12948 rm -f conftest.$ac_objext
12949 if { (ac_try="$ac_compile"
12950 case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12955 (eval "$ac_compile") 2>conftest.er1
12957 grep -v '^ *+' conftest.er1 >conftest.err
12959 cat conftest.err >&5
12960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12961 (exit $ac_status); } && {
12962 test -z "$ac_c_werror_flag" ||
12963 test ! -s conftest.err
12964 } && test -s conftest.$ac_objext; then
12965 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12967 echo "$as_me: failed program was
:" >&5
12968 sed 's/^/| /' conftest.$ac_ext >&5
12973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977 # Provide a safe default value.
12978 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12981 { echo "$as_me:$LINENO: result
: $ac_cv_func_select_args" >&5
12982 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12983 ac_save_IFS=$IFS; IFS=','
12984 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12988 cat >>confdefs.h <<_ACEOF
12989 #define SELECT_TYPE_ARG1 $1
12993 cat >>confdefs.h <<_ACEOF
12994 #define SELECT_TYPE_ARG234 ($2)
12998 cat >>confdefs.h <<_ACEOF
12999 #define SELECT_TYPE_ARG5 ($3)
13004 { echo "$as_me:$LINENO: checking
for function prototypes
" >&5
13005 echo $ECHO_N "checking
for function prototypes...
$ECHO_C" >&6; }
13006 if test "$ac_cv_prog_cc_c89" != no; then
13007 { echo "$as_me:$LINENO: result
: yes" >&5
13008 echo "${ECHO_T}yes" >&6; }
13010 cat >>confdefs.h <<\_ACEOF
13011 #define PROTOTYPES 1
13015 cat >>confdefs.h <<\_ACEOF
13016 #define __PROTOTYPES 1
13020 { echo "$as_me:$LINENO: result
: no
" >&5
13021 echo "${ECHO_T}no
" >&6; }
13024 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed
" >&5
13025 echo $ECHO_N "checking whether setvbuf arguments are reversed...
$ECHO_C" >&6; }
13026 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13027 echo $ECHO_N "(cached
) $ECHO_C" >&6
13029 ac_cv_func_setvbuf_reversed=no
13030 cat >conftest.$ac_ext <<_ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13038 int (setvbuf) (FILE *, int, char *, size_t);
13043 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13048 rm -f conftest.$ac_objext conftest$ac_exeext
13049 if { (ac_try="$ac_link"
13050 case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_link") 2>conftest.er1
13057 grep -v '^ *+' conftest.er1 >conftest.err
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest$ac_exeext &&
13065 $as_test_x conftest$ac_exeext; then
13066 cat >conftest.$ac_ext <<_ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13074 int (setvbuf) (FILE *, int, char *, size_t);
13079 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13084 rm -f conftest.$ac_objext conftest$ac_exeext
13085 if { (ac_try="$ac_link"
13086 case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_link") 2>conftest.er1
13093 grep -v '^ *+' conftest.er1 >conftest.err
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13097 (exit $ac_status); } && {
13098 test -z "$ac_c_werror_flag" ||
13099 test ! -s conftest.err
13100 } && test -s conftest$ac_exeext &&
13101 $as_test_x conftest$ac_exeext; then
13102 # It compiles and links either way, so it must not be declared
13103 # with a prototype and most likely this is a K&R C compiler.
13105 if test "$cross_compiling" = yes; then
13106 : # Assume setvbuf is not reversed when cross-compiling.
13108 cat >conftest.$ac_ext <<_ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13114 $ac_includes_default
13118 /* This call has the arguments reversed.
13119 A reversed system may check and see that the address of buf
13120 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13122 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13125 return 0; /* Non-reversed systems SEGV here. */
13130 rm -f conftest$ac_exeext
13131 if { (ac_try="$ac_link"
13132 case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_link") 2>&5
13139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13141 { (case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_try") 2>&5
13148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 ac_cv_func_setvbuf_reversed=yes
13152 echo "$as_me: program exited with status
$ac_status" >&5
13153 echo "$as_me: failed program was
:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13161 ac_cv_func_setvbuf_reversed=yes
13163 echo "$as_me: failed program was
:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13170 conftest$ac_exeext conftest.$ac_ext
13172 echo "$as_me: failed program was
:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13179 conftest$ac_exeext conftest.$ac_ext
13181 { echo "$as_me:$LINENO: result
: $ac_cv_func_setvbuf_reversed" >&5
13182 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13183 if test $ac_cv_func_setvbuf_reversed = yes; then
13185 cat >>confdefs.h <<\_ACEOF
13186 #define SETVBUF_REVERSED 1
13191 { echo "$as_me:$LINENO: checking
return type of signal handlers
" >&5
13192 echo $ECHO_N "checking
return type of signal handlers...
$ECHO_C" >&6; }
13193 if test "${ac_cv_type_signal+set}" = set; then
13194 echo $ECHO_N "(cached
) $ECHO_C" >&6
13196 cat >conftest.$ac_ext <<_ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13202 #include <sys/types.h>
13203 #include <signal.h>
13208 return *(signal (0, 0)) (0) == 1;
13213 rm -f conftest.$ac_objext
13214 if { (ac_try="$ac_compile"
13215 case "(($ac_try" in
13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13220 (eval "$ac_compile") 2>conftest.er1
13222 grep -v '^ *+' conftest.er1 >conftest.err
13224 cat conftest.err >&5
13225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13226 (exit $ac_status); } && {
13227 test -z "$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 } && test -s conftest.$ac_objext; then
13230 ac_cv_type_signal=int
13232 echo "$as_me: failed program was
:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 ac_cv_type_signal=void
13238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13240 { echo "$as_me:$LINENO: result
: $ac_cv_type_signal" >&5
13241 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13243 cat >>confdefs.h <<_ACEOF
13244 #define RETSIGTYPE $ac_cv_type_signal
13248 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash
" >&5
13249 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash...
$ECHO_C" >&6; }
13250 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13251 echo $ECHO_N "(cached
) $ECHO_C" >&6
13253 rm -f conftest.sym conftest.file
13254 echo >conftest.file
13255 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13256 if test "$cross_compiling" = yes; then
13257 ac_cv_func_lstat_dereferences_slashed_symlink=no
13259 cat >conftest.$ac_ext <<_ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 $ac_includes_default
13270 /* Linux will dereference the symlink and fail.
13271 That is better in the sense that it means we will not
13272 have to compile and use the lstat wrapper. */
13273 return lstat ("conftest.sym
/", &sbuf) == 0;
13278 rm -f conftest$ac_exeext
13279 if { (ac_try="$ac_link"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_link") 2>&5
13287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13289 { (case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_try") 2>&5
13296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13297 (exit $ac_status); }; }; then
13298 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13300 echo "$as_me: program exited with status
$ac_status" >&5
13301 echo "$as_me: failed program was
:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13304 ( exit $ac_status )
13305 ac_cv_func_lstat_dereferences_slashed_symlink=no
13307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13312 # If the `ln -s' command failed, then we probably don't even
13313 # have an lstat function.
13314 ac_cv_func_lstat_dereferences_slashed_symlink=no
13316 rm -f conftest.sym conftest.file
13319 { echo "$as_me:$LINENO: result
: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13320 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13322 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13324 cat >>confdefs.h <<_ACEOF
13325 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13329 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13330 case " $LIBOBJS " in
13331 *" lstat.
$ac_objext "* ) ;;
13332 *) LIBOBJS="$LIBOBJS lstat.
$ac_objext"
13338 { echo "$as_me:$LINENO: checking whether stat accepts an empty string
" >&5
13339 echo $ECHO_N "checking whether stat accepts an empty string...
$ECHO_C" >&6; }
13340 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13341 echo $ECHO_N "(cached
) $ECHO_C" >&6
13343 if test "$cross_compiling" = yes; then
13344 ac_cv_func_stat_empty_string_bug=yes
13346 cat >conftest.$ac_ext <<_ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13352 $ac_includes_default
13357 return stat ("", &sbuf) == 0;
13362 rm -f conftest$ac_exeext
13363 if { (ac_try="$ac_link"
13364 case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_link") 2>&5
13371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13373 { (case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_try") 2>&5
13380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_cv_func_stat_empty_string_bug=no
13384 echo "$as_me: program exited with status
$ac_status" >&5
13385 echo "$as_me: failed program was
:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13388 ( exit $ac_status )
13389 ac_cv_func_stat_empty_string_bug=yes
13391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13396 { echo "$as_me:$LINENO: result
: $ac_cv_func_stat_empty_string_bug" >&5
13397 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13398 if test $ac_cv_func_stat_empty_string_bug = yes; then
13399 case " $LIBOBJS " in
13400 *" stat.
$ac_objext "* ) ;;
13401 *) LIBOBJS="$LIBOBJS stat.
$ac_objext"
13406 cat >>confdefs.h <<_ACEOF
13407 #define HAVE_STAT_EMPTY_STRING_BUG 1
13412 { echo "$as_me:$LINENO: checking
for working strcoll
" >&5
13413 echo $ECHO_N "checking
for working strcoll...
$ECHO_C" >&6; }
13414 if test "${ac_cv_func_strcoll_works+set}" = set; then
13415 echo $ECHO_N "(cached
) $ECHO_C" >&6
13417 if test "$cross_compiling" = yes; then
13418 ac_cv_func_strcoll_works=no
13420 cat >conftest.$ac_ext <<_ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 $ac_includes_default
13430 return (strcoll ("abc
", "def
") >= 0 ||
13431 strcoll ("ABC
", "DEF
") >= 0 ||
13432 strcoll ("123", "456") >= 0)
13437 rm -f conftest$ac_exeext
13438 if { (ac_try="$ac_link"
13439 case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_link") 2>&5
13446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13448 { (case "(($ac_try" in
13449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_try") 2>&5
13455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_cv_func_strcoll_works=yes
13459 echo "$as_me: program exited with status
$ac_status" >&5
13460 echo "$as_me: failed program was
:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13463 ( exit $ac_status )
13464 ac_cv_func_strcoll_works=no
13466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13471 { echo "$as_me:$LINENO: result
: $ac_cv_func_strcoll_works" >&5
13472 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13473 if test $ac_cv_func_strcoll_works = yes; then
13475 cat >>confdefs.h <<\_ACEOF
13476 #define HAVE_STRCOLL 1
13482 for ac_func in strftime
13484 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
13485 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
13486 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
13487 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
13488 echo $ECHO_N "(cached
) $ECHO_C" >&6
13490 cat >conftest.$ac_ext <<_ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13498 #define $ac_func innocuous_$ac_func
13500 /* System header to define __stub macros and hopefully few prototypes,
13501 which can conflict with char $ac_func (); below.
13502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13503 <limits.h> exists even on freestanding compilers. */
13506 # include <limits.h>
13508 # include <assert.h>
13513 /* Override any GCC internal prototype to avoid an error.
13514 Use char because int might match the return type of a GCC
13515 builtin and then its argument prototype would still apply. */
13520 /* The GNU C library defines this for functions which it implements
13521 to always fail with ENOSYS. Some functions are actually named
13522 something starting with __ and the normal name is an alias. */
13523 #if defined __stub_$ac_func || defined __stub___$ac_func
13530 return $ac_func ();
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (ac_try="$ac_link"
13537 case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_link") 2>conftest.er1
13544 grep -v '^ *+' conftest.er1 >conftest.err
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest$ac_exeext &&
13552 $as_test_x conftest$ac_exeext; then
13553 eval "$as_ac_var=yes"
13555 echo "$as_me: failed program was
:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13558 eval "$as_ac_var=no
"
13561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13562 conftest$ac_exeext conftest.$ac_ext
13564 ac_res=`eval echo '${'$as_ac_var'}'`
13565 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13566 echo "${ECHO_T}$ac_res" >&6; }
13567 if test `eval echo '${'$as_ac_var'}'` = yes; then
13568 cat >>confdefs.h <<_ACEOF
13569 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
13573 # strftime is in -lintl on SCO UNIX.
13574 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
13575 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
13576 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13577 echo $ECHO_N "(cached
) $ECHO_C" >&6
13579 ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-lintl $LIBS"
13581 cat >conftest.$ac_ext <<_ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13598 return strftime ();
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (ac_try="$ac_link"
13605 case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13610 (eval "$ac_link") 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13616 (exit $ac_status); } && {
13617 test -z "$ac_c_werror_flag" ||
13618 test ! -s conftest.err
13619 } && test -s conftest$ac_exeext &&
13620 $as_test_x conftest$ac_exeext; then
13621 ac_cv_lib_intl_strftime=yes
13623 echo "$as_me: failed program was
:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 ac_cv_lib_intl_strftime=no
13629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13630 conftest$ac_exeext conftest.$ac_ext
13631 LIBS=$ac_check_lib_save_LIBS
13633 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
13634 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13635 if test $ac_cv_lib_intl_strftime = yes; then
13636 cat >>confdefs.h <<\_ACEOF
13637 #define HAVE_STRFTIME 1
13640 LIBS="-lintl $LIBS"
13646 { echo "$as_me:$LINENO: checking
for working strnlen
" >&5
13647 echo $ECHO_N "checking
for working strnlen...
$ECHO_C" >&6; }
13648 if test "${ac_cv_func_strnlen_working+set}" = set; then
13649 echo $ECHO_N "(cached
) $ECHO_C" >&6
13651 if test "$cross_compiling" = yes; then
13652 ac_cv_func_strnlen_working=no
13654 cat >conftest.$ac_ext <<_ACEOF
13657 cat confdefs.h >>conftest.$ac_ext
13658 cat >>conftest.$ac_ext <<_ACEOF
13659 /* end confdefs.h. */
13660 $ac_includes_default
13666 #define S_LEN (sizeof S - 1)
13668 /* At least one implementation is buggy: that of AIX 4.3 would
13669 give strnlen (S, 1) == 3. */
13672 for (i = 0; i < S_LEN + 1; ++i)
13674 int expected = i <= S_LEN ? i : S_LEN;
13675 if (strnlen (S, i) != expected)
13684 rm -f conftest$ac_exeext
13685 if { (ac_try="$ac_link"
13686 case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>&5
13693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13695 { (case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_try") 2>&5
13702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_cv_func_strnlen_working=yes
13706 echo "$as_me: program exited with status
$ac_status" >&5
13707 echo "$as_me: failed program was
:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13710 ( exit $ac_status )
13711 ac_cv_func_strnlen_working=no
13713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13718 { echo "$as_me:$LINENO: result
: $ac_cv_func_strnlen_working" >&5
13719 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13720 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13721 *" strnlen.
$ac_objext "* ) ;;
13722 *) LIBOBJS="$LIBOBJS strnlen.
$ac_objext"
13727 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
13728 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
13729 if test "${ac_cv_func_strtod+set}" = set; then
13730 echo $ECHO_N "(cached
) $ECHO_C" >&6
13732 if test "$cross_compiling" = yes; then
13733 ac_cv_func_strtod=no
13735 cat >conftest.$ac_ext <<_ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h. */
13742 $ac_includes_default
13750 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13751 char *string = " +69";
13754 value = strtod (string, &term);
13755 if (value != 69 || term != (string + 4))
13760 /* Under Solaris 2.4, strtod returns the wrong value for the
13761 terminating character under some conditions. */
13762 char *string = "NaN
";
13764 strtod (string, &term);
13765 if (term != string && *(term - 1) == 0)
13772 rm -f conftest$ac_exeext
13773 if { (ac_try="$ac_link"
13774 case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_link") 2>&5
13781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13783 { (case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_try") 2>&5
13790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 ac_cv_func_strtod=yes
13794 echo "$as_me: program exited with status
$ac_status" >&5
13795 echo "$as_me: failed program was
:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13798 ( exit $ac_status )
13799 ac_cv_func_strtod=no
13801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13806 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
13807 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13808 if test $ac_cv_func_strtod = no; then
13809 case " $LIBOBJS " in
13810 *" strtod.
$ac_objext "* ) ;;
13811 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
13815 { echo "$as_me:$LINENO: checking
for pow
" >&5
13816 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
13817 if test "${ac_cv_func_pow+set}" = set; then
13818 echo $ECHO_N "(cached
) $ECHO_C" >&6
13820 cat >conftest.$ac_ext <<_ACEOF
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13826 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13828 #define pow innocuous_pow
13830 /* System header to define __stub macros and hopefully few prototypes,
13831 which can conflict with char pow (); below.
13832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13833 <limits.h> exists even on freestanding compilers. */
13836 # include <limits.h>
13838 # include <assert.h>
13843 /* Override any GCC internal prototype to avoid an error.
13844 Use char because int might match the return type of a GCC
13845 builtin and then its argument prototype would still apply. */
13850 /* The GNU C library defines this for functions which it implements
13851 to always fail with ENOSYS. Some functions are actually named
13852 something starting with __ and the normal name is an alias. */
13853 #if defined __stub_pow || defined __stub___pow
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (ac_try="$ac_link"
13867 case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13872 (eval "$ac_link") 2>conftest.er1
13874 grep -v '^ *+' conftest.er1 >conftest.err
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13878 (exit $ac_status); } && {
13879 test -z "$ac_c_werror_flag" ||
13880 test ! -s conftest.err
13881 } && test -s conftest$ac_exeext &&
13882 $as_test_x conftest$ac_exeext; then
13885 echo "$as_me: failed program was
:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13892 conftest$ac_exeext conftest.$ac_ext
13894 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
13895 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13897 if test $ac_cv_func_pow = no; then
13898 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
13899 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
13900 if test "${ac_cv_lib_m_pow+set}" = set; then
13901 echo $ECHO_N "(cached
) $ECHO_C" >&6
13903 ac_check_lib_save_LIBS=$LIBS
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (ac_try="$ac_link"
13929 case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_link") 2>conftest.er1
13936 grep -v '^ *+' conftest.er1 >conftest.err
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13940 (exit $ac_status); } && {
13941 test -z "$ac_c_werror_flag" ||
13942 test ! -s conftest.err
13943 } && test -s conftest$ac_exeext &&
13944 $as_test_x conftest$ac_exeext; then
13945 ac_cv_lib_m_pow=yes
13947 echo "$as_me: failed program was
:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13957 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
13958 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13959 if test $ac_cv_lib_m_pow = yes; then
13962 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
13963 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
13974 for ac_header in $ac_header_list
13976 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13977 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13978 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13979 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13980 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13981 echo $ECHO_N "(cached
) $ECHO_C" >&6
13983 ac_res=`eval echo '${'$as_ac_Header'}'`
13984 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13985 echo "${ECHO_T}$ac_res" >&6; }
13987 # Is the header compilable?
13988 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13989 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13990 cat >conftest.$ac_ext <<_ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13996 $ac_includes_default
13997 #include <$ac_header>
13999 rm -f conftest.$ac_objext
14000 if { (ac_try="$ac_compile"
14001 case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_compile") 2>conftest.er1
14008 grep -v '^ *+' conftest.er1 >conftest.err
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14012 (exit $ac_status); } && {
14013 test -z "$ac_c_werror_flag" ||
14014 test ! -s conftest.err
14015 } && test -s conftest.$ac_objext; then
14016 ac_header_compiler=yes
14018 echo "$as_me: failed program was
:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_header_compiler=no
14024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14025 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14026 echo "${ECHO_T}$ac_header_compiler" >&6; }
14028 # Is the header present?
14029 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14030 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14031 cat >conftest.$ac_ext <<_ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 #include <$ac_header>
14039 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14040 case "(($ac_try" in
14041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042 *) ac_try_echo=$ac_try;;
14044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14045 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14047 grep -v '^ *+' conftest.er1 >conftest.err
14049 cat conftest.err >&5
14050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14051 (exit $ac_status); } >/dev/null && {
14052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14053 test ! -s conftest.err
14055 ac_header_preproc=yes
14057 echo "$as_me: failed program was
:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14060 ac_header_preproc=no
14063 rm -f conftest.err conftest.$ac_ext
14064 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14065 echo "${ECHO_T}$ac_header_preproc" >&6; }
14067 # So? What about this header?
14068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14070 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14071 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14072 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14074 ac_header_preproc=yes
14077 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14078 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14079 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14080 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14081 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14082 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14083 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14084 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14085 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14087 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14088 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14090 ## ------------------------------- ##
14091 ## Report this to www.asterisk.org ##
14092 ## ------------------------------- ##
14094 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
14097 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14098 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14099 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14100 echo $ECHO_N "(cached
) $ECHO_C" >&6
14102 eval "$as_ac_Header=\
$ac_header_preproc"
14104 ac_res=`eval echo '${'$as_ac_Header'}'`
14105 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14106 echo "${ECHO_T}$ac_res" >&6; }
14109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14110 cat >>confdefs.h <<_ACEOF
14111 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14126 { echo "$as_me:$LINENO: checking whether utime accepts a null argument
" >&5
14127 echo $ECHO_N "checking whether utime accepts a null argument...
$ECHO_C" >&6; }
14128 if test "${ac_cv_func_utime_null+set}" = set; then
14129 echo $ECHO_N "(cached
) $ECHO_C" >&6
14131 rm -f conftest.data; >conftest.data
14132 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14133 if test "$cross_compiling" = yes; then
14134 ac_cv_func_utime_null=no
14136 cat >conftest.$ac_ext <<_ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 $ac_includes_default
14143 #ifdef HAVE_UTIME_H
14144 # include <utime.h>
14150 return ! (stat ("conftest.data
", &s) == 0
14151 && utime ("conftest.data
", 0) == 0
14152 && stat ("conftest.data
", &t) == 0
14153 && t.st_mtime >= s.st_mtime
14154 && t.st_mtime - s.st_mtime < 120);
14159 rm -f conftest$ac_exeext
14160 if { (ac_try="$ac_link"
14161 case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_link") 2>&5
14168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14170 { (case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_try") 2>&5
14177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_func_utime_null=yes
14181 echo "$as_me: program exited with status
$ac_status" >&5
14182 echo "$as_me: failed program was
:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 ( exit $ac_status )
14186 ac_cv_func_utime_null=no
14188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14193 { echo "$as_me:$LINENO: result
: $ac_cv_func_utime_null" >&5
14194 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14195 if test $ac_cv_func_utime_null = yes; then
14197 cat >>confdefs.h <<\_ACEOF
14198 #define HAVE_UTIME_NULL 1
14202 rm -f conftest.data
14205 for ac_func in vprintf
14207 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14208 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14209 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14210 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14211 echo $ECHO_N "(cached
) $ECHO_C" >&6
14213 cat >conftest.$ac_ext <<_ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14221 #define $ac_func innocuous_$ac_func
14223 /* System header to define __stub macros and hopefully few prototypes,
14224 which can conflict with char $ac_func (); below.
14225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14226 <limits.h> exists even on freestanding compilers. */
14229 # include <limits.h>
14231 # include <assert.h>
14236 /* Override any GCC internal prototype to avoid an error.
14237 Use char because int might match the return type of a GCC
14238 builtin and then its argument prototype would still apply. */
14243 /* The GNU C library defines this for functions which it implements
14244 to always fail with ENOSYS. Some functions are actually named
14245 something starting with __ and the normal name is an alias. */
14246 #if defined __stub_$ac_func || defined __stub___$ac_func
14253 return $ac_func ();
14258 rm -f conftest.$ac_objext conftest$ac_exeext
14259 if { (ac_try="$ac_link"
14260 case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_link") 2>conftest.er1
14267 grep -v '^ *+' conftest.er1 >conftest.err
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14271 (exit $ac_status); } && {
14272 test -z "$ac_c_werror_flag" ||
14273 test ! -s conftest.err
14274 } && test -s conftest$ac_exeext &&
14275 $as_test_x conftest$ac_exeext; then
14276 eval "$as_ac_var=yes"
14278 echo "$as_me: failed program was
:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281 eval "$as_ac_var=no
"
14284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14285 conftest$ac_exeext conftest.$ac_ext
14287 ac_res=`eval echo '${'$as_ac_var'}'`
14288 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14289 echo "${ECHO_T}$ac_res" >&6; }
14290 if test `eval echo '${'$as_ac_var'}'` = yes; then
14291 cat >>confdefs.h <<_ACEOF
14292 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14295 { echo "$as_me:$LINENO: checking
for _doprnt
" >&5
14296 echo $ECHO_N "checking
for _doprnt...
$ECHO_C" >&6; }
14297 if test "${ac_cv_func__doprnt+set}" = set; then
14298 echo $ECHO_N "(cached
) $ECHO_C" >&6
14300 cat >conftest.$ac_ext <<_ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14308 #define _doprnt innocuous__doprnt
14310 /* System header to define __stub macros and hopefully few prototypes,
14311 which can conflict with char _doprnt (); below.
14312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14313 <limits.h> exists even on freestanding compilers. */
14316 # include <limits.h>
14318 # include <assert.h>
14323 /* Override any GCC internal prototype to avoid an error.
14324 Use char because int might match the return type of a GCC
14325 builtin and then its argument prototype would still apply. */
14330 /* The GNU C library defines this for functions which it implements
14331 to always fail with ENOSYS. Some functions are actually named
14332 something starting with __ and the normal name is an alias. */
14333 #if defined __stub__doprnt || defined __stub____doprnt
14345 rm -f conftest.$ac_objext conftest$ac_exeext
14346 if { (ac_try="$ac_link"
14347 case "(($ac_try" in
14348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349 *) ac_try_echo=$ac_try;;
14351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14352 (eval "$ac_link") 2>conftest.er1
14354 grep -v '^ *+' conftest.er1 >conftest.err
14356 cat conftest.err >&5
14357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14358 (exit $ac_status); } && {
14359 test -z "$ac_c_werror_flag" ||
14360 test ! -s conftest.err
14361 } && test -s conftest$ac_exeext &&
14362 $as_test_x conftest$ac_exeext; then
14363 ac_cv_func__doprnt=yes
14365 echo "$as_me: failed program was
:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14368 ac_cv_func__doprnt=no
14371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14372 conftest$ac_exeext conftest.$ac_ext
14374 { echo "$as_me:$LINENO: result
: $ac_cv_func__doprnt" >&5
14375 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14376 if test $ac_cv_func__doprnt = yes; then
14378 cat >>confdefs.h <<\_ACEOF
14379 #define HAVE_DOPRNT 1
14437 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
14439 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14440 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14441 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14442 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14443 echo $ECHO_N "(cached
) $ECHO_C" >&6
14445 cat >conftest.$ac_ext <<_ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14453 #define $ac_func innocuous_$ac_func
14455 /* System header to define __stub macros and hopefully few prototypes,
14456 which can conflict with char $ac_func (); below.
14457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14458 <limits.h> exists even on freestanding compilers. */
14461 # include <limits.h>
14463 # include <assert.h>
14468 /* Override any GCC internal prototype to avoid an error.
14469 Use char because int might match the return type of a GCC
14470 builtin and then its argument prototype would still apply. */
14475 /* The GNU C library defines this for functions which it implements
14476 to always fail with ENOSYS. Some functions are actually named
14477 something starting with __ and the normal name is an alias. */
14478 #if defined __stub_$ac_func || defined __stub___$ac_func
14485 return $ac_func ();
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (ac_try="$ac_link"
14492 case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_link") 2>conftest.er1
14499 grep -v '^ *+' conftest.er1 >conftest.err
14501 cat conftest.err >&5
14502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14503 (exit $ac_status); } && {
14504 test -z "$ac_c_werror_flag" ||
14505 test ! -s conftest.err
14506 } && test -s conftest$ac_exeext &&
14507 $as_test_x conftest$ac_exeext; then
14508 eval "$as_ac_var=yes"
14510 echo "$as_me: failed program was
:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 eval "$as_ac_var=no
"
14516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14517 conftest$ac_exeext conftest.$ac_ext
14519 ac_res=`eval echo '${'$as_ac_var'}'`
14520 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14521 echo "${ECHO_T}$ac_res" >&6; }
14522 if test `eval echo '${'$as_ac_var'}'` = yes; then
14523 cat >>confdefs.h <<_ACEOF
14524 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14531 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14532 { echo "$as_me:$LINENO: checking
for library containing gethostbyname_r
" >&5
14533 echo $ECHO_N "checking
for library containing gethostbyname_r...
$ECHO_C" >&6; }
14534 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14535 echo $ECHO_N "(cached
) $ECHO_C" >&6
14537 ac_func_search_save_LIBS=$LIBS
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14545 /* Override any GCC internal prototype to avoid an error.
14546 Use char because int might match the return type of a GCC
14547 builtin and then its argument prototype would still apply. */
14551 char gethostbyname_r ();
14555 return gethostbyname_r ();
14560 for ac_lib in '' socket nsl; do
14561 if test -z "$ac_lib"; then
14562 ac_res="none required
"
14565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (ac_try="$ac_link"
14569 case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_link") 2>conftest.er1
14576 grep -v '^ *+' conftest.er1 >conftest.err
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest$ac_exeext &&
14584 $as_test_x conftest$ac_exeext; then
14585 ac_cv_search_gethostbyname_r=$ac_res
14587 echo "$as_me: failed program was
:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14595 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14599 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14602 ac_cv_search_gethostbyname_r=no
14604 rm conftest.$ac_ext
14605 LIBS=$ac_func_search_save_LIBS
14607 { echo "$as_me:$LINENO: result
: $ac_cv_search_gethostbyname_r" >&5
14608 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14609 ac_res=$ac_cv_search_gethostbyname_r
14610 if test "$ac_res" != no; then
14611 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14616 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
6 arguments
" >&5
14617 echo $ECHO_N "checking
for gethostbyname_r with
6 arguments...
$ECHO_C" >&6; }
14618 cat >conftest.$ac_ext <<_ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 #include <stdlib.h>
14629 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14634 rm -f conftest.$ac_objext conftest$ac_exeext
14635 if { (ac_try="$ac_link"
14636 case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_link") 2>conftest.er1
14643 grep -v '^ *+' conftest.er1 >conftest.err
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14647 (exit $ac_status); } && {
14648 test -z "$ac_c_werror_flag" ||
14649 test ! -s conftest.err
14650 } && test -s conftest$ac_exeext &&
14651 $as_test_x conftest$ac_exeext; then
14652 { echo "$as_me:$LINENO: result
: yes" >&5
14653 echo "${ECHO_T}yes" >&6; }
14655 cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_GETHOSTBYNAME_R_6 1
14660 echo "$as_me: failed program was
:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14663 { echo "$as_me:$LINENO: result
: no
" >&5
14664 echo "${ECHO_T}no
" >&6; }
14668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14669 conftest$ac_exeext conftest.$ac_ext
14671 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
5 arguments
" >&5
14672 echo $ECHO_N "checking
for gethostbyname_r with
5 arguments...
$ECHO_C" >&6; }
14673 cat >conftest.$ac_ext <<_ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 #include <stdlib.h>
14684 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (ac_try="$ac_link"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_link") 2>conftest.er1
14698 grep -v '^ *+' conftest.er1 >conftest.err
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14702 (exit $ac_status); } && {
14703 test -z "$ac_c_werror_flag" ||
14704 test ! -s conftest.err
14705 } && test -s conftest$ac_exeext &&
14706 $as_test_x conftest$ac_exeext; then
14707 { echo "$as_me:$LINENO: result
: yes" >&5
14708 echo "${ECHO_T}yes" >&6; }
14710 cat >>confdefs.h <<\_ACEOF
14711 #define HAVE_GETHOSTBYNAME_R_5 1
14715 echo "$as_me: failed program was
:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 { echo "$as_me:$LINENO: result
: no
" >&5
14719 echo "${ECHO_T}no
" >&6; }
14723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14724 conftest$ac_exeext conftest.$ac_ext
14726 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_INITIALIZER
" >&5
14727 echo $ECHO_N "checking
for PTHREAD_RWLOCK_INITIALIZER...
$ECHO_C" >&6; }
14728 cat >conftest.$ac_ext <<_ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 #include <pthread.h>
14738 int foo = PTHREAD_RWLOCK_INITIALIZER;
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (ac_try="$ac_link"
14745 case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_link") 2>conftest.er1
14752 grep -v '^ *+' conftest.er1 >conftest.err
14754 cat conftest.err >&5
14755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14756 (exit $ac_status); } && {
14757 test -z "$ac_c_werror_flag" ||
14758 test ! -s conftest.err
14759 } && test -s conftest$ac_exeext &&
14760 $as_test_x conftest$ac_exeext; then
14761 { echo "$as_me:$LINENO: result
: yes" >&5
14762 echo "${ECHO_T}yes" >&6; }
14764 cat >>confdefs.h <<\_ACEOF
14765 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14769 echo "$as_me: failed program was
:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 { echo "$as_me:$LINENO: result
: no
" >&5
14773 echo "${ECHO_T}no
" >&6; }
14777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14778 conftest$ac_exeext conftest.$ac_ext
14780 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP
" >&5
14781 echo $ECHO_N "checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP...
$ECHO_C" >&6; }
14782 cat >conftest.$ac_ext <<_ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 #include <pthread.h>
14792 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14797 rm -f conftest.$ac_objext conftest$ac_exeext
14798 if { (ac_try="$ac_link"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_link") 2>conftest.er1
14806 grep -v '^ *+' conftest.er1 >conftest.err
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14810 (exit $ac_status); } && {
14811 test -z "$ac_c_werror_flag" ||
14812 test ! -s conftest.err
14813 } && test -s conftest$ac_exeext &&
14814 $as_test_x conftest$ac_exeext; then
14815 { echo "$as_me:$LINENO: result
: yes" >&5
14816 echo "${ECHO_T}yes" >&6; }
14818 cat >>confdefs.h <<\_ACEOF
14819 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14823 echo "$as_me: failed program was
:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 { echo "$as_me:$LINENO: result
: no
" >&5
14827 echo "${ECHO_T}no
" >&6; }
14831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14832 conftest$ac_exeext conftest.$ac_ext
14834 { echo "$as_me:$LINENO: checking
for compiler atomic operations
" >&5
14835 echo $ECHO_N "checking
for compiler atomic operations...
$ECHO_C" >&6; }
14836 cat >conftest.$ac_ext <<_ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14846 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14851 rm -f conftest.$ac_objext conftest$ac_exeext
14852 if { (ac_try="$ac_link"
14853 case "(($ac_try" in
14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14858 (eval "$ac_link") 2>conftest.er1
14860 grep -v '^ *+' conftest.er1 >conftest.err
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14864 (exit $ac_status); } && {
14865 test -z "$ac_c_werror_flag" ||
14866 test ! -s conftest.err
14867 } && test -s conftest$ac_exeext &&
14868 $as_test_x conftest$ac_exeext; then
14869 { echo "$as_me:$LINENO: result
: yes" >&5
14870 echo "${ECHO_T}yes" >&6; }
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_GCC_ATOMICS 1
14877 echo "$as_me: failed program was
:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14880 { echo "$as_me:$LINENO: result
: no
" >&5
14881 echo "${ECHO_T}no
" >&6; }
14885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14886 conftest$ac_exeext conftest.$ac_ext
14889 { echo "$as_me:$LINENO: checking
for compiler
'attribute pure' support
" >&5
14890 echo $ECHO_N "checking
for compiler
'attribute pure' support...
$ECHO_C" >&6; }
14891 cat >conftest.$ac_ext <<_ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14897 static int __attribute__((pure)) test(void) {}
14906 rm -f conftest.$ac_objext
14907 if { (ac_try="$ac_compile"
14908 case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_compile") 2>conftest.er1
14915 grep -v '^ *+' conftest.er1 >conftest.err
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14919 (exit $ac_status); } && {
14920 test -z "$ac_c_werror_flag" ||
14921 test ! -s conftest.err
14922 } && test -s conftest.$ac_objext; then
14923 { echo "$as_me:$LINENO: result
: yes" >&5
14924 echo "${ECHO_T}yes" >&6; }
14926 cat >>confdefs.h <<_ACEOF
14927 #define HAVE_ATTRIBUTE_pure 1
14931 echo "$as_me: failed program was
:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 { echo "$as_me:$LINENO: result
: no
" >&5
14935 echo "${ECHO_T}no
" >&6; }
14938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941 { echo "$as_me:$LINENO: checking
for compiler
'attribute malloc' support
" >&5
14942 echo $ECHO_N "checking
for compiler
'attribute malloc' support...
$ECHO_C" >&6; }
14943 cat >conftest.$ac_ext <<_ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 static int __attribute__((malloc)) test(void) {}
14958 rm -f conftest.$ac_objext
14959 if { (ac_try="$ac_compile"
14960 case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_compile") 2>conftest.er1
14967 grep -v '^ *+' conftest.er1 >conftest.err
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14971 (exit $ac_status); } && {
14972 test -z "$ac_c_werror_flag" ||
14973 test ! -s conftest.err
14974 } && test -s conftest.$ac_objext; then
14975 { echo "$as_me:$LINENO: result
: yes" >&5
14976 echo "${ECHO_T}yes" >&6; }
14978 cat >>confdefs.h <<_ACEOF
14979 #define HAVE_ATTRIBUTE_malloc 1
14983 echo "$as_me: failed program was
:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14986 { echo "$as_me:$LINENO: result
: no
" >&5
14987 echo "${ECHO_T}no
" >&6; }
14990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14993 { echo "$as_me:$LINENO: checking
for compiler
'attribute const' support
" >&5
14994 echo $ECHO_N "checking
for compiler
'attribute const' support...
$ECHO_C" >&6; }
14995 cat >conftest.$ac_ext <<_ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15001 static int __attribute__((const)) test(void) {}
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest.$ac_objext; then
15027 { echo "$as_me:$LINENO: result
: yes" >&5
15028 echo "${ECHO_T}yes" >&6; }
15030 cat >>confdefs.h <<_ACEOF
15031 #define HAVE_ATTRIBUTE_const 1
15035 echo "$as_me: failed program was
:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 { echo "$as_me:$LINENO: result
: no
" >&5
15039 echo "${ECHO_T}no
" >&6; }
15042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045 { echo "$as_me:$LINENO: checking
for compiler
'attribute unused' support
" >&5
15046 echo $ECHO_N "checking
for compiler
'attribute unused' support...
$ECHO_C" >&6; }
15047 cat >conftest.$ac_ext <<_ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15053 static int __attribute__((unused)) test(void) {}
15062 rm -f conftest.$ac_objext
15063 if { (ac_try="$ac_compile"
15064 case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15069 (eval "$ac_compile") 2>conftest.er1
15071 grep -v '^ *+' conftest.er1 >conftest.err
15073 cat conftest.err >&5
15074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15075 (exit $ac_status); } && {
15076 test -z "$ac_c_werror_flag" ||
15077 test ! -s conftest.err
15078 } && test -s conftest.$ac_objext; then
15079 { echo "$as_me:$LINENO: result
: yes" >&5
15080 echo "${ECHO_T}yes" >&6; }
15082 cat >>confdefs.h <<_ACEOF
15083 #define HAVE_ATTRIBUTE_unused 1
15087 echo "$as_me: failed program was
:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 { echo "$as_me:$LINENO: result
: no
" >&5
15091 echo "${ECHO_T}no
" >&6; }
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097 { echo "$as_me:$LINENO: checking
for compiler
'attribute always_inline' support
" >&5
15098 echo $ECHO_N "checking
for compiler
'attribute always_inline' support...
$ECHO_C" >&6; }
15099 cat >conftest.$ac_ext <<_ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 static int __attribute__((always_inline)) test(void) {}
15114 rm -f conftest.$ac_objext
15115 if { (ac_try="$ac_compile"
15116 case "(($ac_try" in
15117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15118 *) ac_try_echo=$ac_try;;
15120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15121 (eval "$ac_compile") 2>conftest.er1
15123 grep -v '^ *+' conftest.er1 >conftest.err
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15127 (exit $ac_status); } && {
15128 test -z "$ac_c_werror_flag" ||
15129 test ! -s conftest.err
15130 } && test -s conftest.$ac_objext; then
15131 { echo "$as_me:$LINENO: result
: yes" >&5
15132 echo "${ECHO_T}yes" >&6; }
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_ATTRIBUTE_always_inline 1
15139 echo "$as_me: failed program was
:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 { echo "$as_me:$LINENO: result
: no
" >&5
15143 echo "${ECHO_T}no
" >&6; }
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15149 { echo "$as_me:$LINENO: checking
for compiler
'attribute deprecated' support
" >&5
15150 echo $ECHO_N "checking
for compiler
'attribute deprecated' support...
$ECHO_C" >&6; }
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 static int __attribute__((deprecated)) test(void) {}
15166 rm -f conftest.$ac_objext
15167 if { (ac_try="$ac_compile"
15168 case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_compile") 2>conftest.er1
15175 grep -v '^ *+' conftest.er1 >conftest.err
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15179 (exit $ac_status); } && {
15180 test -z "$ac_c_werror_flag" ||
15181 test ! -s conftest.err
15182 } && test -s conftest.$ac_objext; then
15183 { echo "$as_me:$LINENO: result
: yes" >&5
15184 echo "${ECHO_T}yes" >&6; }
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_ATTRIBUTE_deprecated 1
15191 echo "$as_me: failed program was
:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 { echo "$as_me:$LINENO: result
: no
" >&5
15195 echo "${ECHO_T}no
" >&6; }
15198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201 { echo "$as_me:$LINENO: checking
for -ffunction-sections support
" >&5
15202 echo $ECHO_N "checking
for -ffunction-sections support...
$ECHO_C" >&6; }
15203 saved_CFLAGS="${CFLAGS}"
15204 CFLAGS="${CFLAGS} -ffunction-sections"
15205 cat >conftest.$ac_ext <<_ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15220 rm -f conftest.$ac_objext
15221 if { (ac_try="$ac_compile"
15222 case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_compile") 2>conftest.er1
15229 grep -v '^ *+' conftest.er1 >conftest.err
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15233 (exit $ac_status); } && {
15234 test -z "$ac_c_werror_flag" ||
15235 test ! -s conftest.err
15236 } && test -s conftest.$ac_objext; then
15237 { echo "$as_me:$LINENO: result
: yes" >&5
15238 echo "${ECHO_T}yes" >&6; }
15239 saved_LDFLAGS="${LDFLAGS}"
15240 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15241 { echo "$as_me:$LINENO: checking
for --gc-sections support
" >&5
15242 echo $ECHO_N "checking
for --gc-sections support...
$ECHO_C" >&6; }
15243 cat >conftest.$ac_ext <<_ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15258 rm -f conftest.$ac_objext conftest$ac_exeext
15259 if { (ac_try="$ac_link"
15260 case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_link") 2>conftest.er1
15267 grep -v '^ *+' conftest.er1 >conftest.err
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15271 (exit $ac_status); } && {
15272 test -z "$ac_c_werror_flag" ||
15273 test ! -s conftest.err
15274 } && test -s conftest$ac_exeext &&
15275 $as_test_x conftest$ac_exeext; then
15276 { echo "$as_me:$LINENO: result
: yes" >&5
15277 echo "${ECHO_T}yes" >&6; }
15278 GC_CFLAGS="-ffunction-sections"
15279 GC_LDFLAGS="-Wl,--gc-sections"
15281 echo "$as_me: failed program was
:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 { echo "$as_me:$LINENO: result
: no
" >&5
15285 echo "${ECHO_T}no
" >&6; }
15289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15290 conftest$ac_exeext conftest.$ac_ext
15291 LDFLAGS="${saved_LDFLAGS}"
15293 echo "$as_me: failed program was
:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15296 { echo "$as_me:$LINENO: result
: no
" >&5
15297 echo "${ECHO_T}no
" >&6; }
15301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15302 CFLAGS="${saved_CFLAGS}"
15306 { echo "$as_me:$LINENO: checking
for -Wdeclaration-after-statement support
" >&5
15307 echo $ECHO_N "checking
for -Wdeclaration-after-statement support...
$ECHO_C" >&6; }
15308 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15309 { echo "$as_me:$LINENO: result
: yes" >&5
15310 echo "${ECHO_T}yes" >&6; }
15311 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15313 { echo "$as_me:$LINENO: result
: no
" >&5
15314 echo "${ECHO_T}no
" >&6; }
15315 AST_DECLARATION_AFTER_STATEMENT=
15319 { echo "$as_me:$LINENO: checking
for -fno-strict-overflow" >&5
15320 echo $ECHO_N "checking
for -fno-strict-overflow...
$ECHO_C" >&6; }
15321 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15322 { echo "$as_me:$LINENO: result
: yes" >&5
15323 echo "${ECHO_T}yes" >&6; }
15324 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15326 { echo "$as_me:$LINENO: result
: no
" >&5
15327 echo "${ECHO_T}no
" >&6; }
15328 AST_NO_STRICT_OVERFLOW=
15332 { echo "$as_me:$LINENO: checking
for res_ninit
" >&5
15333 echo $ECHO_N "checking
for res_ninit...
$ECHO_C" >&6; }
15334 cat >conftest.$ac_ext <<_ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 #include <resolv.h>
15344 int foo = res_ninit(NULL);
15349 rm -f conftest.$ac_objext conftest$ac_exeext
15350 if { (ac_try="$ac_link"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_link") 2>conftest.er1
15358 grep -v '^ *+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest$ac_exeext &&
15366 $as_test_x conftest$ac_exeext; then
15367 { echo "$as_me:$LINENO: result
: yes" >&5
15368 echo "${ECHO_T}yes" >&6; }
15370 cat >>confdefs.h <<\_ACEOF
15371 #define HAVE_RES_NINIT 1
15374 { echo "$as_me:$LINENO: checking
for res_ndestroy
" >&5
15375 echo $ECHO_N "checking
for res_ndestroy...
$ECHO_C" >&6; }
15376 cat >conftest.$ac_ext <<_ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 #include <resolv.h>
15386 int foo = res_ndestroy(NULL);
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (ac_try="$ac_link"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_link") 2>conftest.er1
15400 grep -v '^ *+' conftest.er1 >conftest.err
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15404 (exit $ac_status); } && {
15405 test -z "$ac_c_werror_flag" ||
15406 test ! -s conftest.err
15407 } && test -s conftest$ac_exeext &&
15408 $as_test_x conftest$ac_exeext; then
15409 { echo "$as_me:$LINENO: result
: yes" >&5
15410 echo "${ECHO_T}yes" >&6; }
15412 cat >>confdefs.h <<\_ACEOF
15413 #define HAVE_RES_NDESTROY 1
15417 echo "$as_me: failed program was
:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 { echo "$as_me:$LINENO: result
: no
" >&5
15421 echo "${ECHO_T}no
" >&6; }
15425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15426 conftest$ac_exeext conftest.$ac_ext
15428 echo "$as_me: failed program was
:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 { echo "$as_me:$LINENO: result
: no
" >&5
15432 echo "${ECHO_T}no
" >&6; }
15436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15437 conftest$ac_exeext conftest.$ac_ext
15439 { echo "$as_me:$LINENO: checking
for RTLD_NOLOAD
" >&5
15440 echo $ECHO_N "checking
for RTLD_NOLOAD...
$ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15451 int foo = RTLD_NOLOAD;
15456 rm -f conftest.$ac_objext conftest$ac_exeext
15457 if { (ac_try="$ac_link"
15458 case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_link") 2>conftest.er1
15465 grep -v '^ *+' conftest.er1 >conftest.err
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15469 (exit $ac_status); } && {
15470 test -z "$ac_c_werror_flag" ||
15471 test ! -s conftest.err
15472 } && test -s conftest$ac_exeext &&
15473 $as_test_x conftest$ac_exeext; then
15474 { echo "$as_me:$LINENO: result
: yes" >&5
15475 echo "${ECHO_T}yes" >&6; }
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_RTLD_NOLOAD 1
15482 echo "$as_me: failed program was
:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 { echo "$as_me:$LINENO: result
: no
" >&5
15486 echo "${ECHO_T}no
" >&6; }
15490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15491 conftest$ac_exeext conftest.$ac_ext
15493 { echo "$as_me:$LINENO: checking
for IP_MTU_DISCOVER
" >&5
15494 echo $ECHO_N "checking
for IP_MTU_DISCOVER...
$ECHO_C" >&6; }
15495 cat >conftest.$ac_ext <<_ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 #include <netinet/in.h>
15505 int foo = IP_MTU_DISCOVER;
15510 rm -f conftest.$ac_objext conftest$ac_exeext
15511 if { (ac_try="$ac_link"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_link") 2>conftest.er1
15519 grep -v '^ *+' conftest.er1 >conftest.err
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15523 (exit $ac_status); } && {
15524 test -z "$ac_c_werror_flag" ||
15525 test ! -s conftest.err
15526 } && test -s conftest$ac_exeext &&
15527 $as_test_x conftest$ac_exeext; then
15528 { echo "$as_me:$LINENO: result
: yes" >&5
15529 echo "${ECHO_T}yes" >&6; }
15531 cat >>confdefs.h <<\_ACEOF
15532 #define HAVE_IP_MTU_DISCOVER 1
15536 echo "$as_me: failed program was
:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 { echo "$as_me:$LINENO: result
: no
" >&5
15540 echo "${ECHO_T}no
" >&6; }
15544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15545 conftest$ac_exeext conftest.$ac_ext
15547 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15548 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15549 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15550 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15551 echo $ECHO_N "(cached
) $ECHO_C" >&6
15553 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15554 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15556 # Is the header compilable?
15557 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h usability
" >&5
15558 echo $ECHO_N "checking libkern
/OSAtomic.h usability...
$ECHO_C" >&6; }
15559 cat >conftest.$ac_ext <<_ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15565 $ac_includes_default
15566 #include <libkern/OSAtomic.h>
15568 rm -f conftest.$ac_objext
15569 if { (ac_try="$ac_compile"
15570 case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_compile") 2>conftest.er1
15577 grep -v '^ *+' conftest.er1 >conftest.err
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
15584 } && test -s conftest.$ac_objext; then
15585 ac_header_compiler=yes
15587 echo "$as_me: failed program was
:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15590 ac_header_compiler=no
15593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15594 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15595 echo "${ECHO_T}$ac_header_compiler" >&6; }
15597 # Is the header present?
15598 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h presence
" >&5
15599 echo $ECHO_N "checking libkern
/OSAtomic.h presence...
$ECHO_C" >&6; }
15600 cat >conftest.$ac_ext <<_ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 #include <libkern/OSAtomic.h>
15608 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15609 case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15616 grep -v '^ *+' conftest.er1 >conftest.err
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15620 (exit $ac_status); } >/dev/null && {
15621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15622 test ! -s conftest.err
15624 ac_header_preproc=yes
15626 echo "$as_me: failed program was
:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15629 ac_header_preproc=no
15632 rm -f conftest.err conftest.$ac_ext
15633 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15634 echo "${ECHO_T}$ac_header_preproc" >&6; }
15636 # So? What about this header?
15637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15639 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15640 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15641 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the compiler
's result" >&5
15642 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result
" >&2;}
15643 ac_header_preproc=yes
15646 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&5
15647 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&2;}
15648 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&5
15649 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&2;}
15650 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&5
15651 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&2;}
15652 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15653 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15654 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the preprocessor
's result" >&5
15655 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result
" >&2;}
15656 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&5
15657 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&2;}
15659 ## ------------------------------- ##
15660 ## Report this to www.asterisk.org ##
15661 ## ------------------------------- ##
15663 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15666 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15667 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15668 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15669 echo $ECHO_N "(cached
) $ECHO_C" >&6
15671 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15673 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15674 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15677 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15679 cat >>confdefs.h <<_ACEOF
15680 #define HAVE_OSX_ATOMICS 1
15687 { echo "$as_me:$LINENO: checking
for int
" >&5
15688 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
15689 if test "${ac_cv_type_int+set}" = set; then
15690 echo $ECHO_N "(cached
) $ECHO_C" >&6
15692 cat >conftest.$ac_ext <<_ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 $ac_includes_default
15699 typedef int ac__type_new_;
15703 if ((ac__type_new_ *) 0)
15705 if (sizeof (ac__type_new_))
15711 rm -f conftest.$ac_objext
15712 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15720 grep -v '^ *+' conftest.er1 >conftest.err
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15724 (exit $ac_status); } && {
15725 test -z "$ac_c_werror_flag" ||
15726 test ! -s conftest.err
15727 } && test -s conftest.$ac_objext; then
15730 echo "$as_me: failed program was
:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
15739 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15741 # The cast to long int works around a bug in the HP C Compiler
15742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15744 # This bug is HP SR number 8606223364.
15745 { echo "$as_me:$LINENO: checking size of int
" >&5
15746 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
15747 if test "${ac_cv_sizeof_int+set}" = set; then
15748 echo $ECHO_N "(cached
) $ECHO_C" >&6
15750 if test "$cross_compiling" = yes; then
15751 # Depending upon the size, compute the lo and hi bounds.
15752 cat >conftest.$ac_ext <<_ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 $ac_includes_default
15759 typedef int ac__type_sizeof_;
15763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15770 rm -f conftest.$ac_objext
15771 if { (ac_try="$ac_compile"
15772 case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_compile") 2>conftest.er1
15779 grep -v '^ *+' conftest.er1 >conftest.err
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15783 (exit $ac_status); } && {
15784 test -z "$ac_c_werror_flag" ||
15785 test ! -s conftest.err
15786 } && test -s conftest.$ac_objext; then
15789 cat >conftest.$ac_ext <<_ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795 $ac_includes_default
15796 typedef int ac__type_sizeof_;
15800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15807 rm -f conftest.$ac_objext
15808 if { (ac_try="$ac_compile"
15809 case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15816 grep -v '^ *+' conftest.er1 >conftest.err
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15820 (exit $ac_status); } && {
15821 test -z "$ac_c_werror_flag" ||
15822 test ! -s conftest.err
15823 } && test -s conftest.$ac_objext; then
15824 ac_hi=$ac_mid; break
15826 echo "$as_me: failed program was
:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_lo=`expr $ac_mid + 1`
15830 if test $ac_lo -le $ac_mid; then
15834 ac_mid=`expr 2 '*' $ac_mid + 1`
15837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15840 echo "$as_me: failed program was
:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 cat >conftest.$ac_ext <<_ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 $ac_includes_default
15850 typedef int ac__type_sizeof_;
15854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15861 rm -f conftest.$ac_objext
15862 if { (ac_try="$ac_compile"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_compile") 2>conftest.er1
15870 grep -v '^ *+' conftest.er1 >conftest.err
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest.$ac_objext; then
15880 cat >conftest.$ac_ext <<_ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 $ac_includes_default
15887 typedef int ac__type_sizeof_;
15891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15898 rm -f conftest.$ac_objext
15899 if { (ac_try="$ac_compile"
15900 case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_compile") 2>conftest.er1
15907 grep -v '^ *+' conftest.er1 >conftest.err
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15911 (exit $ac_status); } && {
15912 test -z "$ac_c_werror_flag" ||
15913 test ! -s conftest.err
15914 } && test -s conftest.$ac_objext; then
15915 ac_lo=$ac_mid; break
15917 echo "$as_me: failed program was
:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_hi=`expr '(' $ac_mid ')' - 1`
15921 if test $ac_mid -le $ac_hi; then
15925 ac_mid=`expr 2 '*' $ac_mid`
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931 echo "$as_me: failed program was
:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15941 # Binary search between lo and hi bounds.
15942 while test "x
$ac_lo" != "x
$ac_hi"; do
15943 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15944 cat >conftest.$ac_ext <<_ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15950 $ac_includes_default
15951 typedef int ac__type_sizeof_;
15955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15962 rm -f conftest.$ac_objext
15963 if { (ac_try="$ac_compile"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_compile") 2>conftest.er1
15971 grep -v '^ *+' conftest.er1 >conftest.err
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest.$ac_objext; then
15981 echo "$as_me: failed program was
:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 ac_lo=`expr '(' $ac_mid ')' + 1`
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990 ?*) ac_cv_sizeof_int=$ac_lo;;
15991 '') if test "$ac_cv_type_int" = yes; then
15992 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
15993 See \
`config.log' for more details." >&5
15994 echo "$as_me: error: cannot compute sizeof (int)
15995 See \`config.log
' for more details." >&2;}
15996 { (exit 77); exit 77; }; }
16002 cat >conftest.$ac_ext <<_ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 $ac_includes_default
16009 typedef int ac__type_sizeof_;
16010 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16011 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16013 #include <stdlib.h>
16018 FILE *f = fopen ("conftest.val", "w");
16021 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16023 long int i = longval ();
16024 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16026 fprintf (f, "%ld\n", i);
16030 unsigned long int i = ulongval ();
16031 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16033 fprintf (f, "%lu\n", i);
16035 return ferror (f) || fclose (f) != 0;
16041 rm -f conftest$ac_exeext
16042 if { (ac_try="$ac_link"
16043 case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_link") 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16052 { (case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_try") 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 ac_cv_sizeof_int=`cat conftest.val`
16063 echo "$as_me: program exited with status $ac_status" >&5
16064 echo "$as_me: failed program was:" >&5
16065 sed 's
/^
/|
/' conftest.$ac_ext >&5
16067 ( exit $ac_status )
16068 if test "$ac_cv_type_int" = yes; then
16069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16070 See \`config.log' for more details.
" >&5
16071 echo "$as_me: error
: cannot compute sizeof
(int
)
16072 See \
`config.log' for more details." >&2;}
16073 { (exit 77); exit 77; }; }
16078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16082 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16083 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16087 cat >>confdefs.h <<_ACEOF
16088 #define SIZEOF_INT $ac_cv_sizeof_int
16093 # do the package library checks now
16096 if test "${USE_ALSA}" != "no"; then
16098 if test "x${ALSA_DIR}" != "x"; then
16099 if test -d ${ALSA_DIR}/lib; then
16100 pbxlibdir="-L${ALSA_DIR}/lib"
16102 pbxlibdir="-L${ALSA_DIR}"
16105 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16106 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16107 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 ac_check_lib_save_LIBS=$LIBS
16111 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16112 cat >conftest.$ac_ext <<_ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16119 /* Override any GCC internal prototype to avoid an error.
16120 Use char because int might match the return type of a GCC
16121 builtin and then its argument prototype would still apply. */
16125 char snd_spcm_init ();
16129 return snd_spcm_init ();
16134 rm -f conftest.$ac_objext conftest$ac_exeext
16135 if { (ac_try="$ac_link"
16136 case "(($ac_try" in
16137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16138 *) ac_try_echo
=$ac_try;;
16140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16141 (eval "$ac_link") 2>conftest.er1
16143 grep -v '^ *+' conftest.er1
>conftest.err
16145 cat conftest.err
>&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } && {
16148 test -z "$ac_c_werror_flag" ||
16149 test ! -s conftest.err
16150 } && test -s conftest
$ac_exeext &&
16151 $as_test_x conftest
$ac_exeext; then
16152 ac_cv_lib_asound_snd_spcm_init
=yes
16154 echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.
$ac_ext >&5
16157 ac_cv_lib_asound_snd_spcm_init
=no
16160 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16161 conftest
$ac_exeext conftest.
$ac_ext
16162 LIBS
=$ac_check_lib_save_LIBS
16164 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16165 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16166 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16173 if test "${AST_ALSA_FOUND}" = "yes"; then
16174 ALSA_LIB
="-lasound -lm -ldl"
16175 ALSA_HEADER_FOUND
="1"
16176 if test "x${ALSA_DIR}" != "x"; then
16177 ALSA_LIB
="${pbxlibdir} ${ALSA_LIB}"
16178 ALSA_INCLUDE
="-I${ALSA_DIR}/include"
16179 saved_cppflags
="${CPPFLAGS}"
16180 CPPFLAGS
="${CPPFLAGS} -I${ALSA_DIR}/include"
16181 if test "xalsa/asoundlib.h" != "x" ; then
16182 as_ac_Header
=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16183 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16184 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16185 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16186 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 ac_res
=`eval echo '${'$as_ac_Header'}'`
16190 { echo "$as_me:$LINENO: result: $ac_res" >&5
16191 echo "${ECHO_T}$ac_res" >&6; }
16193 # Is the header compilable?
16194 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16195 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16196 cat >conftest.
$ac_ext <<_ACEOF
16199 cat confdefs.h
>>conftest.
$ac_ext
16200 cat >>conftest.
$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 $ac_includes_default
16203 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16205 rm -f conftest.
$ac_objext
16206 if { (ac_try
="$ac_compile"
16207 case "(($ac_try" in
16208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_compile") 2>conftest.er1
16214 grep -v '^ *+' conftest.er1 >conftest.err
16216 cat conftest.err >&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } && {
16219 test -z "$ac_c_werror_flag" ||
16220 test ! -s conftest.err
16221 } && test -s conftest.$ac_objext; then
16222 ac_header_compiler=yes
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16227 ac_header_compiler=no
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16232 echo "${ECHO_T}$ac_header_compiler" >&6; }
16234 # Is the header present?
16235 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16236 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16245 if { (ac_try="$ac_cpp conftest.$ac_ext"
16246 case "(($ac_try" in
16247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16248 *) ac_try_echo
=$ac_try;;
16250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16253 grep -v '^ *+' conftest.er1
>conftest.err
16255 cat conftest.err
>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } >/dev
/null
&& {
16258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16259 test ! -s conftest.err
16261 ac_header_preproc
=yes
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.
$ac_ext >&5
16266 ac_header_preproc
=no
16269 rm -f conftest.err conftest.
$ac_ext
16270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16271 echo "${ECHO_T}$ac_header_preproc" >&6; }
16273 # So? What about this header?
16274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16276 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16277 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16279 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16280 ac_header_preproc
=yes
16283 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16284 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16286 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16288 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16290 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16292 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16294 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16296 ## ------------------------------- ##
16297 ## Report this to www.asterisk.org ##
16298 ## ------------------------------- ##
16300 ) |
sed "s/^/$as_me: WARNING: /" >&2
16303 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16304 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16305 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 eval "$as_ac_Header=\$ac_header_preproc"
16310 ac_res
=`eval echo '${'$as_ac_Header'}'`
16311 { echo "$as_me:$LINENO: result: $ac_res" >&5
16312 echo "${ECHO_T}$ac_res" >&6; }
16315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16316 ALSA_HEADER_FOUND
=1
16318 ALSA_HEADER_FOUND
=0
16323 CPPFLAGS
="${saved_cppflags}"
16325 if test "xalsa/asoundlib.h" != "x" ; then
16326 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16327 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16328 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16329 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16333 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16335 # Is the header compilable?
16336 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16337 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16338 cat >conftest.
$ac_ext <<_ACEOF
16341 cat confdefs.h
>>conftest.
$ac_ext
16342 cat >>conftest.
$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 $ac_includes_default
16345 #include <alsa/asoundlib.h>
16347 rm -f conftest.
$ac_objext
16348 if { (ac_try
="$ac_compile"
16349 case "(($ac_try" in
16350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_compile") 2>conftest.er1
16356 grep -v '^ *+' conftest.er1 >conftest.err
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } && {
16361 test -z "$ac_c_werror_flag" ||
16362 test ! -s conftest.err
16363 } && test -s conftest.$ac_objext; then
16364 ac_header_compiler=yes
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16369 ac_header_compiler=no
16372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16374 echo "${ECHO_T}$ac_header_compiler" >&6; }
16376 # Is the header present?
16377 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16378 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16379 cat >conftest.$ac_ext <<_ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16385 #include <alsa/asoundlib.h>
16387 if { (ac_try="$ac_cpp conftest.$ac_ext"
16388 case "(($ac_try" in
16389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16390 *) ac_try_echo
=$ac_try;;
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16395 grep -v '^ *+' conftest.er1
>conftest.err
16397 cat conftest.err
>&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } >/dev
/null
&& {
16400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16401 test ! -s conftest.err
16403 ac_header_preproc
=yes
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.
$ac_ext >&5
16408 ac_header_preproc
=no
16411 rm -f conftest.err conftest.
$ac_ext
16412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16413 echo "${ECHO_T}$ac_header_preproc" >&6; }
16415 # So? What about this header?
16416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16418 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16419 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16420 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16421 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16422 ac_header_preproc
=yes
16425 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16426 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16427 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16428 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16430 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16432 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16434 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16436 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16438 ## ------------------------------- ##
16439 ## Report this to www.asterisk.org ##
16440 ## ------------------------------- ##
16442 ) |
sed "s/^/$as_me: WARNING: /" >&2
16445 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16446 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16447 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
16452 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16453 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16456 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16457 ALSA_HEADER_FOUND
=1
16459 ALSA_HEADER_FOUND
=0
16465 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16466 if test -n "${ALSA_MANDATORY}" ;
16468 { echo "$as_me:$LINENO: ***" >&5
16469 echo "$as_me: ***" >&6;}
16470 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16471 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16472 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16473 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16474 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16475 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16484 cat >>confdefs.h
<<_ACEOF
16485 #define HAVE_ALSA 1
16489 elif test -n "${ALSA_MANDATORY}";
16491 { echo "$as_me:$LINENO: ***" >&5
16492 echo "$as_me: ***" >&6;}
16493 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16494 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16495 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16496 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16497 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16498 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16505 if test "${USE_CURSES}" != "no"; then
16507 if test "x${CURSES_DIR}" != "x"; then
16508 if test -d ${CURSES_DIR}/lib
; then
16509 pbxlibdir
="-L${CURSES_DIR}/lib"
16511 pbxlibdir
="-L${CURSES_DIR}"
16514 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16515 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16516 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16519 ac_check_lib_save_LIBS
=$LIBS
16520 LIBS
="-lcurses ${pbxlibdir} $LIBS"
16521 cat >conftest.
$ac_ext <<_ACEOF
16524 cat confdefs.h
>>conftest.
$ac_ext
16525 cat >>conftest.
$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16528 /* Override any GCC internal prototype to avoid an error.
16529 Use char because int might match the return type of a GCC
16530 builtin and then its argument prototype would still apply. */
16543 rm -f conftest.
$ac_objext conftest
$ac_exeext
16544 if { (ac_try
="$ac_link"
16545 case "(($ac_try" in
16546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_link") 2>conftest.er1
16552 grep -v '^ *+' conftest.er1 >conftest.err
16554 cat conftest.err >&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } && {
16557 test -z "$ac_c_werror_flag" ||
16558 test ! -s conftest.err
16559 } && test -s conftest$ac_exeext &&
16560 $as_test_x conftest$ac_exeext; then
16561 ac_cv_lib_curses_initscr=yes
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ac_cv_lib_curses_initscr=no
16569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16570 conftest$ac_exeext conftest.$ac_ext
16571 LIBS=$ac_check_lib_save_LIBS
16573 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16574 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16575 if test $ac_cv_lib_curses_initscr = yes; then
16576 AST_CURSES_FOUND=yes
16578 AST_CURSES_FOUND=no
16582 if test "${AST_CURSES_FOUND}" = "yes"; then
16583 CURSES_LIB="-lcurses "
16584 CURSES_HEADER_FOUND="1"
16585 if test "x${CURSES_DIR}" != "x"; then
16586 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16587 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16588 saved_cppflags="${CPPFLAGS}"
16589 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16590 if test "xcurses.h" != "x" ; then
16591 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" |
$as_tr_sh`
16592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16593 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16594 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16598 ac_res=`eval echo '${'$as_ac_Header'}'`
16599 { echo "$as_me:$LINENO: result: $ac_res" >&5
16600 echo "${ECHO_T}$ac_res" >&6; }
16602 # Is the header compilable?
16603 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16604 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16605 cat >conftest.$ac_ext <<_ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 $ac_includes_default
16612 #include <${CURSES_DIR}/include/curses.h>
16614 rm -f conftest.$ac_objext
16615 if { (ac_try="$ac_compile"
16616 case "(($ac_try" in
16617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16618 *) ac_try_echo
=$ac_try;;
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_compile") 2>conftest.er1
16623 grep -v '^ *+' conftest.er1
>conftest.err
16625 cat conftest.err
>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && {
16628 test -z "$ac_c_werror_flag" ||
16629 test ! -s conftest.err
16630 } && test -s conftest.
$ac_objext; then
16631 ac_header_compiler
=yes
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.
$ac_ext >&5
16636 ac_header_compiler
=no
16639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16641 echo "${ECHO_T}$ac_header_compiler" >&6; }
16643 # Is the header present?
16644 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16645 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16646 cat >conftest.
$ac_ext <<_ACEOF
16649 cat confdefs.h
>>conftest.
$ac_ext
16650 cat >>conftest.
$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 #include <${CURSES_DIR}/include/curses.h>
16654 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16655 case "(($ac_try" in
16656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16662 grep -v '^ *+' conftest.er1 >conftest.err
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } >/dev/null && {
16667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16668 test ! -s conftest.err
16670 ac_header_preproc=yes
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 ac_header_preproc=no
16678 rm -f conftest.err conftest.$ac_ext
16679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16680 echo "${ECHO_T}$ac_header_preproc" >&6; }
16682 # So? What about this header?
16683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16685 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16686 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16688 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16689 ac_header_preproc=yes
16692 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16693 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16694 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16695 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16696 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16697 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16699 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16700 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16701 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16702 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16703 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16705 ## ------------------------------- ##
16706 ## Report this to www.asterisk.org ##
16707 ## ------------------------------- ##
16709 ) | sed "s/^/$as_me: WARNING: /" >&2
16712 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16713 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 eval "$as_ac_Header=\$ac_header_preproc"
16719 ac_res=`eval echo '${'$as_ac_Header'}'`
16720 { echo "$as_me:$LINENO: result: $ac_res" >&5
16721 echo "${ECHO_T}$ac_res" >&6; }
16724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16725 CURSES_HEADER_FOUND=1
16727 CURSES_HEADER_FOUND=0
16732 CPPFLAGS="${saved_cppflags}"
16734 if test "xcurses.h" != "x" ; then
16735 if test "${ac_cv_header_curses_h+set}" = set; then
16736 { echo "$as_me:$LINENO: checking for curses.h" >&5
16737 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16738 if test "${ac_cv_header_curses_h+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16742 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16744 # Is the header compilable?
16745 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16746 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16747 cat >conftest.$ac_ext <<_ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h. */
16753 $ac_includes_default
16754 #include <curses.h>
16756 rm -f conftest.$ac_objext
16757 if { (ac_try="$ac_compile"
16758 case "(($ac_try" in
16759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16760 *) ac_try_echo
=$ac_try;;
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_compile") 2>conftest.er1
16765 grep -v '^ *+' conftest.er1
>conftest.err
16767 cat conftest.err
>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } && {
16770 test -z "$ac_c_werror_flag" ||
16771 test ! -s conftest.err
16772 } && test -s conftest.
$ac_objext; then
16773 ac_header_compiler
=yes
16775 echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.
$ac_ext >&5
16778 ac_header_compiler
=no
16781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16783 echo "${ECHO_T}$ac_header_compiler" >&6; }
16785 # Is the header present?
16786 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16787 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16788 cat >conftest.
$ac_ext <<_ACEOF
16791 cat confdefs.h
>>conftest.
$ac_ext
16792 cat >>conftest.
$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 #include <curses.h>
16796 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16797 case "(($ac_try" in
16798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16804 grep -v '^ *+' conftest.er1 >conftest.err
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } >/dev/null && {
16809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16810 test ! -s conftest.err
16812 ac_header_preproc=yes
16814 echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16817 ac_header_preproc=no
16820 rm -f conftest.err conftest.$ac_ext
16821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16822 echo "${ECHO_T}$ac_header_preproc" >&6; }
16824 # So? What about this header?
16825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16827 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16828 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16829 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16830 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16831 ac_header_preproc=yes
16834 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16835 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16836 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16837 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16838 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16839 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16840 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16841 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16843 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16844 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16845 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16847 ## ------------------------------- ##
16848 ## Report this to www.asterisk.org ##
16849 ## ------------------------------- ##
16851 ) | sed "s/^/$as_me: WARNING: /" >&2
16854 { echo "$as_me:$LINENO: checking for curses.h" >&5
16855 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16856 if test "${ac_cv_header_curses_h+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 ac_cv_header_curses_h=$ac_header_preproc
16861 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16862 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16865 if test $ac_cv_header_curses_h = yes; then
16866 CURSES_HEADER_FOUND=1
16868 CURSES_HEADER_FOUND=0
16874 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16875 if test -n "${CURSES_MANDATORY}" ;
16877 { echo "$as_me:$LINENO: ***" >&5
16878 echo "$as_me: ***" >&6;}
16879 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16880 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16881 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16882 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16883 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16884 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16893 cat >>confdefs.h <<_ACEOF
16894 #define HAVE_CURSES 1
16898 elif test -n "${CURSES_MANDATORY}";
16900 { echo "$as_me:$LINENO: ***" >&5
16901 echo "$as_me: ***" >&6;}
16902 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16903 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16904 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16905 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16906 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16907 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16913 if test "x${host_os}" = "xlinux-gnu" ; then
16915 if test "${USE_CAP}" != "no"; then
16917 if test "x${CAP_DIR}" != "x"; then
16918 if test -d ${CAP_DIR}/lib; then
16919 pbxlibdir="-L${CAP_DIR}/lib"
16921 pbxlibdir="-L${CAP_DIR}"
16924 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
16925 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
16926 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 ac_check_lib_save_LIBS=$LIBS
16930 LIBS="-lcap ${pbxlibdir} $LIBS"
16931 cat >conftest.$ac_ext <<_ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16938 /* Override any GCC internal prototype to avoid an error.
16939 Use char because int might match the return type of a GCC
16940 builtin and then its argument prototype would still apply. */
16944 char cap_from_text ();
16948 return cap_from_text ();
16953 rm -f conftest.$ac_objext conftest$ac_exeext
16954 if { (ac_try="$ac_link"
16955 case "(($ac_try" in
16956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16957 *) ac_try_echo
=$ac_try;;
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_link") 2>conftest.er1
16962 grep -v '^ *+' conftest.er1
>conftest.err
16964 cat conftest.err
>&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } && {
16967 test -z "$ac_c_werror_flag" ||
16968 test ! -s conftest.err
16969 } && test -s conftest
$ac_exeext &&
16970 $as_test_x conftest
$ac_exeext; then
16971 ac_cv_lib_cap_cap_from_text
=yes
16973 echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.
$ac_ext >&5
16976 ac_cv_lib_cap_cap_from_text
=no
16979 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16980 conftest
$ac_exeext conftest.
$ac_ext
16981 LIBS
=$ac_check_lib_save_LIBS
16983 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
16984 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
16985 if test $ac_cv_lib_cap_cap_from_text = yes; then
16992 if test "${AST_CAP_FOUND}" = "yes"; then
16994 CAP_HEADER_FOUND
="1"
16995 if test "x${CAP_DIR}" != "x"; then
16996 CAP_LIB
="${pbxlibdir} ${CAP_LIB}"
16997 CAP_INCLUDE
="-I${CAP_DIR}/include"
16998 saved_cppflags
="${CPPFLAGS}"
16999 CPPFLAGS
="${CPPFLAGS} -I${CAP_DIR}/include"
17000 if test "xsys/capability.h" != "x" ; then
17001 as_ac_Header
=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
17002 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17003 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17004 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17005 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 ac_res
=`eval echo '${'$as_ac_Header'}'`
17009 { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17012 # Is the header compilable?
17013 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
17014 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
17015 cat >conftest.
$ac_ext <<_ACEOF
17018 cat confdefs.h
>>conftest.
$ac_ext
17019 cat >>conftest.
$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 $ac_includes_default
17022 #include <${CAP_DIR}/include/sys/capability.h>
17024 rm -f conftest.
$ac_objext
17025 if { (ac_try
="$ac_compile"
17026 case "(($ac_try" in
17027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_compile") 2>conftest.er1
17033 grep -v '^ *+' conftest.er1 >conftest.err
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } && {
17038 test -z "$ac_c_werror_flag" ||
17039 test ! -s conftest.err
17040 } && test -s conftest.$ac_objext; then
17041 ac_header_compiler=yes
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17046 ac_header_compiler=no
17049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17051 echo "${ECHO_T}$ac_header_compiler" >&6; }
17053 # Is the header present?
17054 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
17055 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
17056 cat >conftest.$ac_ext <<_ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17062 #include <${CAP_DIR}/include/sys/capability.h>
17064 if { (ac_try="$ac_cpp conftest.$ac_ext"
17065 case "(($ac_try" in
17066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17067 *) ac_try_echo
=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17072 grep -v '^ *+' conftest.er1
>conftest.err
17074 cat conftest.err
>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } >/dev
/null
&& {
17077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17080 ac_header_preproc
=yes
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.
$ac_ext >&5
17085 ac_header_preproc
=no
17088 rm -f conftest.err conftest.
$ac_ext
17089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17090 echo "${ECHO_T}$ac_header_preproc" >&6; }
17092 # So? What about this header?
17093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17095 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17096 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
17098 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
17099 ac_header_preproc
=yes
17102 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
17103 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
17105 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
17107 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17109 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
17111 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
17113 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
17115 ## ------------------------------- ##
17116 ## Report this to www.asterisk.org ##
17117 ## ------------------------------- ##
17119 ) |
sed "s/^/$as_me: WARNING: /" >&2
17122 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17123 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17124 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 eval "$as_ac_Header=\$ac_header_preproc"
17129 ac_res
=`eval echo '${'$as_ac_Header'}'`
17130 { echo "$as_me:$LINENO: result: $ac_res" >&5
17131 echo "${ECHO_T}$ac_res" >&6; }
17134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17142 CPPFLAGS
="${saved_cppflags}"
17144 if test "xsys/capability.h" != "x" ; then
17145 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17146 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17147 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17148 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17152 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17154 # Is the header compilable?
17155 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
17156 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
17157 cat >conftest.
$ac_ext <<_ACEOF
17160 cat confdefs.h
>>conftest.
$ac_ext
17161 cat >>conftest.
$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 $ac_includes_default
17164 #include <sys/capability.h>
17166 rm -f conftest.
$ac_objext
17167 if { (ac_try
="$ac_compile"
17168 case "(($ac_try" in
17169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_compile") 2>conftest.er1
17175 grep -v '^ *+' conftest.er1 >conftest.err
17177 cat conftest.err >&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } && {
17180 test -z "$ac_c_werror_flag" ||
17181 test ! -s conftest.err
17182 } && test -s conftest.$ac_objext; then
17183 ac_header_compiler=yes
17185 echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17188 ac_header_compiler=no
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17193 echo "${ECHO_T}$ac_header_compiler" >&6; }
17195 # Is the header present?
17196 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17197 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17198 cat >conftest.$ac_ext <<_ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17204 #include <sys/capability.h>
17206 if { (ac_try="$ac_cpp conftest.$ac_ext"
17207 case "(($ac_try" in
17208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17209 *) ac_try_echo
=$ac_try;;
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17214 grep -v '^ *+' conftest.er1
>conftest.err
17216 cat conftest.err
>&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } >/dev
/null
&& {
17219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17220 test ! -s conftest.err
17222 ac_header_preproc
=yes
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.
$ac_ext >&5
17227 ac_header_preproc
=no
17230 rm -f conftest.err conftest.
$ac_ext
17231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17232 echo "${ECHO_T}$ac_header_preproc" >&6; }
17234 # So? What about this header?
17235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17237 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17238 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17239 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17240 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17241 ac_header_preproc
=yes
17244 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17245 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17246 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17247 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17248 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17249 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17250 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17251 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17253 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17255 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17257 ## ------------------------------- ##
17258 ## Report this to www.asterisk.org ##
17259 ## ------------------------------- ##
17261 ) |
sed "s/^/$as_me: WARNING: /" >&2
17264 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17265 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17266 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 ac_cv_header_sys_capability_h
=$ac_header_preproc
17271 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17272 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17275 if test $ac_cv_header_sys_capability_h = yes; then
17284 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17285 if test -n "${CAP_MANDATORY}" ;
17287 { echo "$as_me:$LINENO: ***" >&5
17288 echo "$as_me: ***" >&6;}
17289 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17290 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17291 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17292 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17293 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17294 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17303 cat >>confdefs.h
<<_ACEOF
17308 elif test -n "${CAP_MANDATORY}";
17310 { echo "$as_me:$LINENO: ***" >&5
17311 echo "$as_me: ***" >&6;}
17312 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17313 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17314 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17315 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17316 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17317 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17325 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17326 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17327 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17328 saved_cppflags
="${CPPFLAGS}"
17329 if test "x${GETIFADDRS_DIR}" != "x"; then
17330 GETIFADDRS_INCLUDE
="-I${GETIFADDRS_DIR}/include"
17332 CPPFLAGS
="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17334 cat >conftest.
$ac_ext <<_ACEOF
17337 cat confdefs.h
>>conftest.
$ac_ext
17338 cat >>conftest.
$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 #include <ifaddrs.h>
17344 struct ifaddrs *p; getifaddrs(&p);
17350 rm -f conftest.
$ac_objext
17351 if { (ac_try
="$ac_compile"
17352 case "(($ac_try" in
17353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357 (eval "$ac_compile") 2>conftest.er1
17359 grep -v '^ *+' conftest.er1 >conftest.err
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } && {
17364 test -z "$ac_c_werror_flag" ||
17365 test ! -s conftest.err
17366 } && test -s conftest.$ac_objext; then
17367 { echo "$as_me:$LINENO: result: yes" >&5
17368 echo "${ECHO_T}yes" >&6; }
17371 cat >>confdefs.h <<\_ACEOF
17372 #define HAVE_GETIFADDRS 1
17376 cat >>confdefs.h <<\_ACEOF
17377 #define HAVE_GETIFADDRS_VERSION
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 { echo "$as_me:$LINENO: result: no" >&5
17386 echo "${ECHO_T}no" >&6; }
17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391 CPPFLAGS="${saved_cppflags}"
17398 if test "${USE_GSM}" != "no"; then
17399 if test "${GSM_DIR}" = "internal"; then
17401 elif test "${GSM_DIR}" != ""; then
17404 if test "${GSM_SYSTEM}" = "yes"; then
17406 if test "x${GSM_DIR}" != "x"; then
17407 if test -d ${GSM_DIR}/lib; then
17408 gsmlibdir="-L${GSM_DIR}/lib"
17410 gsmlibdir="-L${GSM_DIR}"
17413 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17414 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17415 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 ac_check_lib_save_LIBS=$LIBS
17419 LIBS="-lgsm ${gsmlibdir} $LIBS"
17420 cat >conftest.$ac_ext <<_ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17427 /* Override any GCC internal prototype to avoid an error.
17428 Use char because int might match the return type of a GCC
17429 builtin and then its argument prototype would still apply. */
17433 char gsm_create ();
17437 return gsm_create ();
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 test -z "$ac_c_werror_flag" ||
17457 test ! -s conftest.err
17458 } && test -s conftest
$ac_exeext &&
17459 $as_test_x conftest
$ac_exeext; then
17460 ac_cv_lib_gsm_gsm_create
=yes
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.
$ac_ext >&5
17465 ac_cv_lib_gsm_gsm_create
=no
17468 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17469 conftest
$ac_exeext conftest.
$ac_ext
17470 LIBS
=$ac_check_lib_save_LIBS
17472 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17473 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17474 if test $ac_cv_lib_gsm_gsm_create = yes; then
17476 cat >>confdefs.h
<<_ACEOF
17482 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17483 if test "x${GSM_DIR}" != "x" ; then
17484 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17485 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17486 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17487 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17488 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 ac_res
=`eval echo '${'$as_ac_Header'}'`
17492 { echo "$as_me:$LINENO: result: $ac_res" >&5
17493 echo "${ECHO_T}$ac_res" >&6; }
17495 # Is the header compilable?
17496 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17497 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17498 cat >conftest.
$ac_ext <<_ACEOF
17501 cat confdefs.h
>>conftest.
$ac_ext
17502 cat >>conftest.
$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 $ac_includes_default
17505 #include <${GSM_DIR}/include/gsm.h>
17507 rm -f conftest.
$ac_objext
17508 if { (ac_try
="$ac_compile"
17509 case "(($ac_try" in
17510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_compile") 2>conftest.er1
17516 grep -v '^ *+' conftest.er1 >conftest.err
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } && {
17521 test -z "$ac_c_werror_flag" ||
17522 test ! -s conftest.err
17523 } && test -s conftest.$ac_objext; then
17524 ac_header_compiler=yes
17526 echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17529 ac_header_compiler=no
17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17534 echo "${ECHO_T}$ac_header_compiler" >&6; }
17536 # Is the header present?
17537 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17538 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17539 cat >conftest.$ac_ext <<_ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 #include <${GSM_DIR}/include/gsm.h>
17547 if { (ac_try="$ac_cpp conftest.$ac_ext"
17548 case "(($ac_try" in
17549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17550 *) ac_try_echo
=$ac_try;;
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17555 grep -v '^ *+' conftest.er1
>conftest.err
17557 cat conftest.err
>&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } >/dev
/null
&& {
17560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17561 test ! -s conftest.err
17563 ac_header_preproc
=yes
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.
$ac_ext >&5
17568 ac_header_preproc
=no
17571 rm -f conftest.err conftest.
$ac_ext
17572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17573 echo "${ECHO_T}$ac_header_preproc" >&6; }
17575 # So? What about this header?
17576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17578 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17579 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17580 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17581 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17582 ac_header_preproc
=yes
17585 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17586 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17587 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17588 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17589 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17590 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17591 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17592 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17593 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17594 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17595 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17596 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17598 ## ------------------------------- ##
17599 ## Report this to www.asterisk.org ##
17600 ## ------------------------------- ##
17602 ) |
sed "s/^/$as_me: WARNING: /" >&2
17605 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17606 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17610 eval "$as_ac_Header=\$ac_header_preproc"
17612 ac_res
=`eval echo '${'$as_ac_Header'}'`
17613 { echo "$as_me:$LINENO: result: $ac_res" >&5
17614 echo "${ECHO_T}$ac_res" >&6; }
17617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17624 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17625 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17626 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17627 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17628 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 ac_res
=`eval echo '${'$as_ac_Header'}'`
17632 { echo "$as_me:$LINENO: result: $ac_res" >&5
17633 echo "${ECHO_T}$ac_res" >&6; }
17635 # Is the header compilable?
17636 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17637 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17638 cat >conftest.
$ac_ext <<_ACEOF
17641 cat confdefs.h
>>conftest.
$ac_ext
17642 cat >>conftest.
$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 $ac_includes_default
17645 #include <${GSM_DIR}/include/gsm/gsm.h>
17647 rm -f conftest.
$ac_objext
17648 if { (ac_try
="$ac_compile"
17649 case "(($ac_try" in
17650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_compile") 2>conftest.er1
17656 grep -v '^ *+' conftest.er1 >conftest.err
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } && {
17661 test -z "$ac_c_werror_flag" ||
17662 test ! -s conftest.err
17663 } && test -s conftest.$ac_objext; then
17664 ac_header_compiler=yes
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 ac_header_compiler=no
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17674 echo "${ECHO_T}$ac_header_compiler" >&6; }
17676 # Is the header present?
17677 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17678 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17679 cat >conftest.$ac_ext <<_ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685 #include <${GSM_DIR}/include/gsm/gsm.h>
17687 if { (ac_try="$ac_cpp conftest.$ac_ext"
17688 case "(($ac_try" in
17689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17690 *) ac_try_echo
=$ac_try;;
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17695 grep -v '^ *+' conftest.er1
>conftest.err
17697 cat conftest.err
>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } >/dev
/null
&& {
17700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17703 ac_header_preproc
=yes
17705 echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.
$ac_ext >&5
17708 ac_header_preproc
=no
17711 rm -f conftest.err conftest.
$ac_ext
17712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17713 echo "${ECHO_T}$ac_header_preproc" >&6; }
17715 # So? What about this header?
17716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17718 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17719 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17720 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17721 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17722 ac_header_preproc
=yes
17725 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17726 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17727 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17728 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17729 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17730 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17731 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17732 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17733 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17734 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17736 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17738 ## ------------------------------- ##
17739 ## Report this to www.asterisk.org ##
17740 ## ------------------------------- ##
17742 ) |
sed "s/^/$as_me: WARNING: /" >&2
17745 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17746 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17747 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 eval "$as_ac_Header=\$ac_header_preproc"
17752 ac_res
=`eval echo '${'$as_ac_Header'}'`
17753 { echo "$as_me:$LINENO: result: $ac_res" >&5
17754 echo "${ECHO_T}$ac_res" >&6; }
17757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17758 GSM_GSM_HEADER_FOUND
=1
17760 GSM_GSM_HEADER_FOUND
=0
17765 if test "${ac_cv_header_gsm_h+set}" = set; then
17766 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17767 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17768 if test "${ac_cv_header_gsm_h+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17772 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17774 # Is the header compilable?
17775 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17776 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17777 cat >conftest.
$ac_ext <<_ACEOF
17780 cat confdefs.h
>>conftest.
$ac_ext
17781 cat >>conftest.
$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 $ac_includes_default
17786 rm -f conftest.
$ac_objext
17787 if { (ac_try
="$ac_compile"
17788 case "(($ac_try" in
17789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17790 *) ac_try_echo=$ac_try;;
17792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793 (eval "$ac_compile") 2>conftest.er1
17795 grep -v '^ *+' conftest.er1 >conftest.err
17797 cat conftest.err >&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } && {
17800 test -z "$ac_c_werror_flag" ||
17801 test ! -s conftest.err
17802 } && test -s conftest.$ac_objext; then
17803 ac_header_compiler=yes
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17808 ac_header_compiler=no
17811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17813 echo "${ECHO_T}$ac_header_compiler" >&6; }
17815 # Is the header present?
17816 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17817 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17818 cat >conftest.$ac_ext <<_ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17826 if { (ac_try="$ac_cpp conftest.$ac_ext"
17827 case "(($ac_try" in
17828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17829 *) ac_try_echo
=$ac_try;;
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17834 grep -v '^ *+' conftest.er1
>conftest.err
17836 cat conftest.err
>&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } >/dev
/null
&& {
17839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17842 ac_header_preproc
=yes
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.
$ac_ext >&5
17847 ac_header_preproc
=no
17850 rm -f conftest.err conftest.
$ac_ext
17851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17852 echo "${ECHO_T}$ac_header_preproc" >&6; }
17854 # So? What about this header?
17855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17857 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17858 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17859 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17860 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17861 ac_header_preproc
=yes
17864 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17865 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17866 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17867 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17868 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17869 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17870 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17871 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17872 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17873 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17874 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17875 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17877 ## ------------------------------- ##
17878 ## Report this to www.asterisk.org ##
17879 ## ------------------------------- ##
17881 ) |
sed "s/^/$as_me: WARNING: /" >&2
17884 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17885 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17886 if test "${ac_cv_header_gsm_h+set}" = set; then
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 ac_cv_header_gsm_h
=$ac_header_preproc
17891 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17892 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17895 if test $ac_cv_header_gsm_h = yes; then
17902 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17903 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17904 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17905 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17909 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17911 # Is the header compilable?
17912 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17913 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17914 cat >conftest.
$ac_ext <<_ACEOF
17917 cat confdefs.h
>>conftest.
$ac_ext
17918 cat >>conftest.
$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17920 $ac_includes_default
17921 #include <gsm/gsm.h>
17923 rm -f conftest.
$ac_objext
17924 if { (ac_try
="$ac_compile"
17925 case "(($ac_try" in
17926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_compile") 2>conftest.er1
17932 grep -v '^ *+' conftest.er1 >conftest.err
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } && {
17937 test -z "$ac_c_werror_flag" ||
17938 test ! -s conftest.err
17939 } && test -s conftest.$ac_objext; then
17940 ac_header_compiler=yes
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 ac_header_compiler=no
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17950 echo "${ECHO_T}$ac_header_compiler" >&6; }
17952 # Is the header present?
17953 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17954 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17955 cat >conftest.$ac_ext <<_ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 #include <gsm/gsm.h>
17963 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
17971 grep -v '^ *+' conftest.er1
>conftest.err
17973 cat conftest.err
>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } >/dev
/null
&& {
17976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17977 test ! -s conftest.err
17979 ac_header_preproc
=yes
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.
$ac_ext >&5
17984 ac_header_preproc
=no
17987 rm -f conftest.err conftest.
$ac_ext
17988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17989 echo "${ECHO_T}$ac_header_preproc" >&6; }
17991 # So? What about this header?
17992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17994 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17995 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17996 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
17997 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
17998 ac_header_preproc
=yes
18001 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
18002 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
18003 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
18004 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
18005 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
18006 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
18007 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18008 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18009 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
18010 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
18011 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
18012 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
18014 ## ------------------------------- ##
18015 ## Report this to www.asterisk.org ##
18016 ## ------------------------------- ##
18018 ) |
sed "s/^/$as_me: WARNING: /" >&2
18021 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18022 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18023 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 ac_cv_header_gsm_gsm_h
=$ac_header_preproc
18028 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18029 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18032 if test $ac_cv_header_gsm_gsm_h = yes; then
18033 GSM_GSM_HEADER_FOUND
=1
18035 GSM_GSM_HEADER_FOUND
=0
18040 if test "${GSM_HEADER_FOUND}" = "0" ; then
18041 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
18042 if test "x${GSM_MANDATORY}" = "xyes" ; then
18043 { echo "$as_me:$LINENO: ***" >&5
18044 echo "$as_me: ***" >&6;}
18045 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
18046 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
18047 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
18048 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
18049 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
18050 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
18056 if test "${GSM_HEADER_FOUND}" = "1" ; then
18058 cat >>confdefs.h
<<_ACEOF
18059 #define HAVE_GSM_HEADER 1
18064 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
18066 cat >>confdefs.h
<<_ACEOF
18067 #define HAVE_GSM_GSM_HEADER 1
18073 if test "${GSM_OK}" = "1" ; then
18075 if test "x${GSM_DIR}" != "x"; then
18076 GSM_LIB
="${gsmlibdir} ${GSM_LIB}"
18077 GSM_INCLUDE
="-I${GSM_DIR}/include"
18084 if test "${GSM_INTERNAL}" = "yes"; then
18087 cat >>confdefs.h
<<_ACEOF
18088 #define HAVE_GSM_HEADER 1
18095 if test "${USE_IKSEMEL}" != "no"; then
18097 if test "x${IKSEMEL_DIR}" != "x"; then
18098 if test -d ${IKSEMEL_DIR}/lib
; then
18099 pbxlibdir
="-L${IKSEMEL_DIR}/lib"
18101 pbxlibdir
="-L${IKSEMEL_DIR}"
18104 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18105 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18106 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 ac_check_lib_save_LIBS
=$LIBS
18110 LIBS
="-liksemel ${pbxlibdir} $LIBS"
18111 cat >conftest.
$ac_ext <<_ACEOF
18114 cat confdefs.h
>>conftest.
$ac_ext
18115 cat >>conftest.
$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18118 /* Override any GCC internal prototype to avoid an error.
18119 Use char because int might match the return type of a GCC
18120 builtin and then its argument prototype would still apply. */
18124 char iks_start_sasl ();
18128 return iks_start_sasl ();
18133 rm -f conftest.
$ac_objext conftest
$ac_exeext
18134 if { (ac_try
="$ac_link"
18135 case "(($ac_try" in
18136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_link") 2>conftest.er1
18142 grep -v '^ *+' conftest.er1 >conftest.err
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && {
18147 test -z "$ac_c_werror_flag" ||
18148 test ! -s conftest.err
18149 } && test -s conftest$ac_exeext &&
18150 $as_test_x conftest$ac_exeext; then
18151 ac_cv_lib_iksemel_iks_start_sasl=yes
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 ac_cv_lib_iksemel_iks_start_sasl=no
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160 conftest$ac_exeext conftest.$ac_ext
18161 LIBS=$ac_check_lib_save_LIBS
18163 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18164 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18165 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18166 AST_IKSEMEL_FOUND=yes
18168 AST_IKSEMEL_FOUND=no
18172 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18173 IKSEMEL_LIB="-liksemel "
18174 IKSEMEL_HEADER_FOUND="1"
18175 if test "x${IKSEMEL_DIR}" != "x"; then
18176 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
18177 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
18178 saved_cppflags="${CPPFLAGS}"
18179 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
18180 if test "xiksemel.h" != "x" ; then
18181 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" |
$as_tr_sh`
18182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18183 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18184 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 ac_res=`eval echo '${'$as_ac_Header'}'`
18189 { echo "$as_me:$LINENO: result: $ac_res" >&5
18190 echo "${ECHO_T}$ac_res" >&6; }
18192 # Is the header compilable?
18193 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
18194 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
18195 cat >conftest.$ac_ext <<_ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 $ac_includes_default
18202 #include <${IKSEMEL_DIR}/include/iksemel.h>
18204 rm -f conftest.$ac_objext
18205 if { (ac_try="$ac_compile"
18206 case "(($ac_try" in
18207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18208 *) ac_try_echo
=$ac_try;;
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_compile") 2>conftest.er1
18213 grep -v '^ *+' conftest.er1
>conftest.err
18215 cat conftest.err
>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } && {
18218 test -z "$ac_c_werror_flag" ||
18219 test ! -s conftest.err
18220 } && test -s conftest.
$ac_objext; then
18221 ac_header_compiler
=yes
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.
$ac_ext >&5
18226 ac_header_compiler
=no
18229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18231 echo "${ECHO_T}$ac_header_compiler" >&6; }
18233 # Is the header present?
18234 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
18235 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
18236 cat >conftest.
$ac_ext <<_ACEOF
18239 cat confdefs.h
>>conftest.
$ac_ext
18240 cat >>conftest.
$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 #include <${IKSEMEL_DIR}/include/iksemel.h>
18244 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18245 case "(($ac_try" in
18246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18252 grep -v '^ *+' conftest.er1 >conftest.err
18254 cat conftest.err >&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } >/dev/null && {
18257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18258 test ! -s conftest.err
18260 ac_header_preproc=yes
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ac_header_preproc=no
18268 rm -f conftest.err conftest.$ac_ext
18269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18270 echo "${ECHO_T}$ac_header_preproc" >&6; }
18272 # So? What about this header?
18273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18275 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18276 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18277 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18278 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18279 ac_header_preproc=yes
18282 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18283 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18284 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18285 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18286 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18287 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18288 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18289 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18290 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18291 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18292 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18293 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18295 ## ------------------------------- ##
18296 ## Report this to www.asterisk.org ##
18297 ## ------------------------------- ##
18299 ) | sed "s/^/$as_me: WARNING: /" >&2
18302 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18303 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 eval "$as_ac_Header=\$ac_header_preproc"
18309 ac_res=`eval echo '${'$as_ac_Header'}'`
18310 { echo "$as_me:$LINENO: result: $ac_res" >&5
18311 echo "${ECHO_T}$ac_res" >&6; }
18314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18315 IKSEMEL_HEADER_FOUND=1
18317 IKSEMEL_HEADER_FOUND=0
18322 CPPFLAGS="${saved_cppflags}"
18324 if test "xiksemel.h" != "x" ; then
18325 if test "${ac_cv_header_iksemel_h+set}" = set; then
18326 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18327 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18328 if test "${ac_cv_header_iksemel_h+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18332 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18334 # Is the header compilable?
18335 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18336 echo $ECHO_N "checking iksemel.h usability... $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 $ac_includes_default
18344 #include <iksemel.h>
18346 rm -f conftest.$ac_objext
18347 if { (ac_try="$ac_compile"
18348 case "(($ac_try" in
18349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18350 *) ac_try_echo
=$ac_try;;
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_compile") 2>conftest.er1
18355 grep -v '^ *+' conftest.er1
>conftest.err
18357 cat conftest.err
>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } && {
18360 test -z "$ac_c_werror_flag" ||
18361 test ! -s conftest.err
18362 } && test -s conftest.
$ac_objext; then
18363 ac_header_compiler
=yes
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.
$ac_ext >&5
18368 ac_header_compiler
=no
18371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18373 echo "${ECHO_T}$ac_header_compiler" >&6; }
18375 # Is the header present?
18376 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18377 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18378 cat >conftest.
$ac_ext <<_ACEOF
18381 cat confdefs.h
>>conftest.
$ac_ext
18382 cat >>conftest.
$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 #include <iksemel.h>
18386 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18387 case "(($ac_try" in
18388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18394 grep -v '^ *+' conftest.er1 >conftest.err
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } >/dev/null && {
18399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18400 test ! -s conftest.err
18402 ac_header_preproc=yes
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18407 ac_header_preproc=no
18410 rm -f conftest.err conftest.$ac_ext
18411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18412 echo "${ECHO_T}$ac_header_preproc" >&6; }
18414 # So? What about this header?
18415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18417 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18418 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18420 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18421 ac_header_preproc=yes
18424 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18425 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18427 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18429 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18431 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18433 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18435 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18437 ## ------------------------------- ##
18438 ## Report this to www.asterisk.org ##
18439 ## ------------------------------- ##
18441 ) | sed "s/^/$as_me: WARNING: /" >&2
18444 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18445 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18446 if test "${ac_cv_header_iksemel_h+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 ac_cv_header_iksemel_h=$ac_header_preproc
18451 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18452 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18455 if test $ac_cv_header_iksemel_h = yes; then
18456 IKSEMEL_HEADER_FOUND=1
18458 IKSEMEL_HEADER_FOUND=0
18464 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18465 if test -n "${IKSEMEL_MANDATORY}" ;
18467 { echo "$as_me:$LINENO: ***" >&5
18468 echo "$as_me: ***" >&6;}
18469 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18470 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18471 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18472 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18473 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18474 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18483 cat >>confdefs.h <<_ACEOF
18484 #define HAVE_IKSEMEL 1
18488 elif test -n "${IKSEMEL_MANDATORY}";
18490 { echo "$as_me:$LINENO: ***" >&5
18491 echo "$as_me: ***" >&6;}
18492 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18493 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18494 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18495 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18496 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18497 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18503 if test "${PBX_IKSEMEL}" = 1; then
18505 if test "${USE_GNUTLS}" != "no"; then
18507 if test "x${GNUTLS_DIR}" != "x"; then
18508 if test -d ${GNUTLS_DIR}/lib; then
18509 pbxlibdir="-L${GNUTLS_DIR}/lib"
18511 pbxlibdir="-L${GNUTLS_DIR}"
18514 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18515 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18516 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18519 ac_check_lib_save_LIBS=$LIBS
18520 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18521 cat >conftest.$ac_ext <<_ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18528 /* Override any GCC internal prototype to avoid an error.
18529 Use char because int might match the return type of a GCC
18530 builtin and then its argument prototype would still apply. */
18534 char gnutls_bye ();
18538 return gnutls_bye ();
18543 rm -f conftest.$ac_objext conftest$ac_exeext
18544 if { (ac_try="$ac_link"
18545 case "(($ac_try" in
18546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18547 *) ac_try_echo
=$ac_try;;
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_link") 2>conftest.er1
18552 grep -v '^ *+' conftest.er1
>conftest.err
18554 cat conftest.err
>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } && {
18557 test -z "$ac_c_werror_flag" ||
18558 test ! -s conftest.err
18559 } && test -s conftest
$ac_exeext &&
18560 $as_test_x conftest
$ac_exeext; then
18561 ac_cv_lib_gnutls_gnutls_bye
=yes
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.
$ac_ext >&5
18566 ac_cv_lib_gnutls_gnutls_bye
=no
18569 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18570 conftest
$ac_exeext conftest.
$ac_ext
18571 LIBS
=$ac_check_lib_save_LIBS
18573 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18574 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18575 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18576 AST_GNUTLS_FOUND
=yes
18578 AST_GNUTLS_FOUND
=no
18582 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18583 GNUTLS_LIB
="-lgnutls -lz -lgcrypt -lgpg-error"
18584 GNUTLS_HEADER_FOUND
="1"
18585 if test "x${GNUTLS_DIR}" != "x"; then
18586 GNUTLS_LIB
="${pbxlibdir} ${GNUTLS_LIB}"
18587 GNUTLS_INCLUDE
="-I${GNUTLS_DIR}/include"
18588 saved_cppflags
="${CPPFLAGS}"
18589 CPPFLAGS
="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18590 if test "xgnutls/gnutls.h" != "x" ; then
18591 as_ac_Header
=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18592 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18593 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18594 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18595 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 ac_res
=`eval echo '${'$as_ac_Header'}'`
18599 { echo "$as_me:$LINENO: result: $ac_res" >&5
18600 echo "${ECHO_T}$ac_res" >&6; }
18602 # Is the header compilable?
18603 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18604 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18605 cat >conftest.
$ac_ext <<_ACEOF
18608 cat confdefs.h
>>conftest.
$ac_ext
18609 cat >>conftest.
$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 $ac_includes_default
18612 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18614 rm -f conftest.
$ac_objext
18615 if { (ac_try
="$ac_compile"
18616 case "(($ac_try" in
18617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18618 *) ac_try_echo=$ac_try;;
18620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621 (eval "$ac_compile") 2>conftest.er1
18623 grep -v '^ *+' conftest.er1 >conftest.err
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } && {
18628 test -z "$ac_c_werror_flag" ||
18629 test ! -s conftest.err
18630 } && test -s conftest.$ac_objext; then
18631 ac_header_compiler=yes
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 ac_header_compiler=no
18639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18641 echo "${ECHO_T}$ac_header_compiler" >&6; }
18643 # Is the header present?
18644 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18645 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18646 cat >conftest.$ac_ext <<_ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18652 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18654 if { (ac_try="$ac_cpp conftest.$ac_ext"
18655 case "(($ac_try" in
18656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18657 *) ac_try_echo
=$ac_try;;
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18662 grep -v '^ *+' conftest.er1
>conftest.err
18664 cat conftest.err
>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } >/dev
/null
&& {
18667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18668 test ! -s conftest.err
18670 ac_header_preproc
=yes
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.
$ac_ext >&5
18675 ac_header_preproc
=no
18678 rm -f conftest.err conftest.
$ac_ext
18679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18680 echo "${ECHO_T}$ac_header_preproc" >&6; }
18682 # So? What about this header?
18683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18685 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18686 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18687 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18688 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18689 ac_header_preproc
=yes
18692 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18693 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18694 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18695 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18696 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18697 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18698 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18699 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18700 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18701 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18702 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18703 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18705 ## ------------------------------- ##
18706 ## Report this to www.asterisk.org ##
18707 ## ------------------------------- ##
18709 ) |
sed "s/^/$as_me: WARNING: /" >&2
18712 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18713 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18717 eval "$as_ac_Header=\$ac_header_preproc"
18719 ac_res
=`eval echo '${'$as_ac_Header'}'`
18720 { echo "$as_me:$LINENO: result: $ac_res" >&5
18721 echo "${ECHO_T}$ac_res" >&6; }
18724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18725 GNUTLS_HEADER_FOUND
=1
18727 GNUTLS_HEADER_FOUND
=0
18732 CPPFLAGS
="${saved_cppflags}"
18734 if test "xgnutls/gnutls.h" != "x" ; then
18735 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18736 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18737 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18738 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18742 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18744 # Is the header compilable?
18745 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18746 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18747 cat >conftest.
$ac_ext <<_ACEOF
18750 cat confdefs.h
>>conftest.
$ac_ext
18751 cat >>conftest.
$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18753 $ac_includes_default
18754 #include <gnutls/gnutls.h>
18756 rm -f conftest.
$ac_objext
18757 if { (ac_try
="$ac_compile"
18758 case "(($ac_try" in
18759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_compile") 2>conftest.er1
18765 grep -v '^ *+' conftest.er1 >conftest.err
18767 cat conftest.err >&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } && {
18770 test -z "$ac_c_werror_flag" ||
18771 test ! -s conftest.err
18772 } && test -s conftest.$ac_objext; then
18773 ac_header_compiler=yes
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 ac_header_compiler=no
18781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18783 echo "${ECHO_T}$ac_header_compiler" >&6; }
18785 # Is the header present?
18786 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18787 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18788 cat >conftest.$ac_ext <<_ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 #include <gnutls/gnutls.h>
18796 if { (ac_try="$ac_cpp conftest.$ac_ext"
18797 case "(($ac_try" in
18798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18799 *) ac_try_echo
=$ac_try;;
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18804 grep -v '^ *+' conftest.er1
>conftest.err
18806 cat conftest.err
>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } >/dev
/null
&& {
18809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18812 ac_header_preproc
=yes
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.
$ac_ext >&5
18817 ac_header_preproc
=no
18820 rm -f conftest.err conftest.
$ac_ext
18821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18822 echo "${ECHO_T}$ac_header_preproc" >&6; }
18824 # So? What about this header?
18825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18827 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18828 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18830 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18831 ac_header_preproc
=yes
18834 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18835 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18836 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18837 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18838 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18839 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18840 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18841 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18842 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18843 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18844 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18845 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18847 ## ------------------------------- ##
18848 ## Report this to www.asterisk.org ##
18849 ## ------------------------------- ##
18851 ) |
sed "s/^/$as_me: WARNING: /" >&2
18854 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18855 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18856 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18859 ac_cv_header_gnutls_gnutls_h
=$ac_header_preproc
18861 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18862 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18865 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18866 GNUTLS_HEADER_FOUND
=1
18868 GNUTLS_HEADER_FOUND
=0
18874 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18875 if test -n "${GNUTLS_MANDATORY}" ;
18877 { echo "$as_me:$LINENO: ***" >&5
18878 echo "$as_me: ***" >&6;}
18879 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18880 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18881 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18882 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18883 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18884 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18893 cat >>confdefs.h
<<_ACEOF
18894 #define HAVE_GNUTLS 1
18898 elif test -n "${GNUTLS_MANDATORY}";
18900 { echo "$as_me:$LINENO: ***" >&5
18901 echo "$as_me: ***" >&6;}
18902 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18903 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18904 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18905 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18906 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18907 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18914 if test "${USE_IMAP_TK}" != "no"; then
18915 saved_cppflags
="${CPPFLAGS}"
18916 saved_libs
="${LIBS}"
18917 switch_to_system_on_failure
="no"
18918 if test "${IMAP_TK_DIR}" = ""; then
18919 IMAP_TK_DIR
=`pwd`"/../imap-2004g"
18920 switch_to_system_on_failure
="yes"
18922 if test "${IMAP_TK_DIR}" != "system"; then
18923 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18924 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18925 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
18926 imap_ldflags
=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18928 imap_libs
="${IMAP_TK_DIR}/c-client/c-client.a"
18929 imap_include
="-I${IMAP_TK_DIR}/c-client"
18930 CPPFLAGS
="${CPPFLAGS} ${imap_include}"
18931 LIBS
="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18932 cat >conftest.$ac_ext <<_ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18938 #include "c-client.h
"
18939 void mm_searched (MAILSTREAM *stream,unsigned long number)
18942 void mm_exists (MAILSTREAM *stream,unsigned long number)
18945 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18948 void mm_flags (MAILSTREAM *stream,unsigned long number)
18951 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18954 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18957 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18960 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18963 void mm_log (char *string,long errflg)
18966 void mm_dlog (char *string)
18969 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18972 void mm_critical (MAILSTREAM *stream)
18975 void mm_nocritical (MAILSTREAM *stream)
18978 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18981 void mm_fatal (char *string)
18988 MAILSTREAM *foo = mail_open(NULL, "", 0);
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_link") 2>conftest.er1
19004 grep -v '^ *+' conftest.er1 >conftest.err
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest$ac_exeext &&
19012 $as_test_x conftest$ac_exeext; then
19013 ac_cv_imap_tk="yes"
19015 echo "$as_me: failed program was
:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023 conftest$ac_exeext conftest.$ac_ext
19024 if test "${ac_cv_imap_tk}" = "yes"; then
19025 cat >conftest.$ac_ext <<_ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h. */
19031 #include "c-client.h
"
19032 void mm_searched (MAILSTREAM *stream,unsigned long number)
19035 void mm_exists (MAILSTREAM *stream,unsigned long number)
19038 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19041 void mm_flags (MAILSTREAM *stream,unsigned long number)
19044 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19047 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19050 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19053 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19056 void mm_log (char *string,long errflg)
19059 void mm_dlog (char *string)
19062 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19065 void mm_critical (MAILSTREAM *stream)
19068 void mm_nocritical (MAILSTREAM *stream)
19071 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19074 void mm_fatal (char *string)
19081 long check = mail_expunge_full(NULL, "", 0);
19088 rm -f conftest.$ac_objext conftest$ac_exeext
19089 if { (ac_try="$ac_link"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_link") 2>conftest.er1
19097 grep -v '^ *+' conftest.er1 >conftest.err
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19101 (exit $ac_status); } && {
19102 test -z "$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19104 } && test -s conftest$ac_exeext &&
19105 $as_test_x conftest$ac_exeext; then
19106 ac_cv_imap_tk2006="yes"
19108 echo "$as_me: failed program was
:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19111 ac_cv_imap_tk2006="no
"
19115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19116 conftest$ac_exeext conftest.$ac_ext
19118 CPPFLAGS="${saved_cppflags}"
19119 LIBS="${saved_libs}"
19120 if test "${ac_cv_imap_tk}" = "no
"; then
19121 { echo "$as_me:$LINENO: result
: no
" >&5
19122 echo "${ECHO_T}no
" >&6; }
19123 if test "${switch_to_system_on_failure}" = "yes"; then
19124 IMAP_TK_DIR="system
"
19125 else #This means they specified a directory. Search for a package installation there too
19126 { echo "$as_me:$LINENO: checking
for system c-client library...
" >&5
19127 echo $ECHO_N "checking
for system c-client library......
$ECHO_C" >&6; }
19128 CPPFLAGS="${saved_cppflags}"
19129 LIBS="${saved_libs}"
19130 imap_include="-I${IMAP_TK_DIR}/include
"
19131 imap_ldflags="-L${IMAP_TK_DIR}/lib
"
19132 imap_libs="-lc-client"
19133 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19134 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
19135 cat >conftest.$ac_ext <<_ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 #include "c-client.h
"
19142 void mm_searched (MAILSTREAM *stream,unsigned long number)
19145 void mm_exists (MAILSTREAM *stream,unsigned long number)
19148 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19151 void mm_flags (MAILSTREAM *stream,unsigned long number)
19154 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19157 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19160 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19163 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19166 void mm_log (char *string,long errflg)
19169 void mm_dlog (char *string)
19172 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19175 void mm_critical (MAILSTREAM *stream)
19178 void mm_nocritical (MAILSTREAM *stream)
19181 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19184 void mm_fatal (char *string)
19191 MAILSTREAM *foo = mail_open(NULL, "", 0);
19198 rm -f conftest.$ac_objext conftest$ac_exeext
19199 if { (ac_try="$ac_link"
19200 case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_link") 2>conftest.er1
19207 grep -v '^ *+' conftest.er1 >conftest.err
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19211 (exit $ac_status); } && {
19212 test -z "$ac_c_werror_flag" ||
19213 test ! -s conftest.err
19214 } && test -s conftest$ac_exeext &&
19215 $as_test_x conftest$ac_exeext; then
19216 ac_cv_imap_tk="yes"
19218 echo "$as_me: failed program was
:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19226 conftest$ac_exeext conftest.$ac_ext
19227 if test "${ac_cv_imap_tk}" = "yes"; then
19228 cat >conftest.$ac_ext <<_ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 #include "c-client.h
"
19235 void mm_searched (MAILSTREAM *stream,unsigned long number)
19238 void mm_exists (MAILSTREAM *stream,unsigned long number)
19241 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19244 void mm_flags (MAILSTREAM *stream,unsigned long number)
19247 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19250 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19253 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19256 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19259 void mm_log (char *string,long errflg)
19262 void mm_dlog (char *string)
19265 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19268 void mm_critical (MAILSTREAM *stream)
19271 void mm_nocritical (MAILSTREAM *stream)
19274 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19277 void mm_fatal (char *string)
19284 long check = mail_expunge_full(NULL, "", 0);
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (ac_try="$ac_link"
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_link") 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); } && {
19305 test -z "$ac_c_werror_flag" ||
19306 test ! -s conftest.err
19307 } && test -s conftest$ac_exeext &&
19308 $as_test_x conftest$ac_exeext; then
19309 ac_cv_imap_tk2006="yes"
19311 echo "$as_me: failed program was
:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ac_cv_imap_tk2006="no
"
19318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19319 conftest$ac_exeext conftest.$ac_ext
19324 if test "${IMAP_TK_DIR}" = "system
"; then
19325 #We will enter here if user specified "system
" or if any of above checks failed
19326 { echo "$as_me:$LINENO: checking
for system c-client library...
" >&5
19327 echo $ECHO_N "checking
for system c-client library......
$ECHO_C" >&6; }
19328 CPPFLAGS="${saved_cppflags}"
19329 LIBS="${saved_libs}"
19331 imap_libs="-lc-client"
19332 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
19333 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19334 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19335 cat >conftest.$ac_ext <<_ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19342 #include <imap/c-client.h>
19343 void mm_searched (MAILSTREAM *stream,unsigned long number)
19346 void mm_exists (MAILSTREAM *stream,unsigned long number)
19349 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19352 void mm_flags (MAILSTREAM *stream,unsigned long number)
19355 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19358 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19361 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19364 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19367 void mm_log (char *string,long errflg)
19370 void mm_dlog (char *string)
19373 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19376 void mm_critical (MAILSTREAM *stream)
19379 void mm_nocritical (MAILSTREAM *stream)
19382 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19385 void mm_fatal (char *string)
19392 MAILSTREAM *foo = mail_open(NULL, "", 0);
19399 rm -f conftest.$ac_objext conftest$ac_exeext
19400 if { (ac_try="$ac_link"
19401 case "(($ac_try" in
19402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19403 *) ac_try_echo
=$ac_try;;
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_link") 2>conftest.er1
19408 grep -v '^ *+' conftest.er1
>conftest.err
19410 cat conftest.err
>&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } && {
19413 test -z "$ac_c_werror_flag" ||
19414 test ! -s conftest.err
19415 } && test -s conftest
$ac_exeext &&
19416 $as_test_x conftest
$ac_exeext; then
19417 ac_cv_imap_tk
="yes"
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.
$ac_ext >&5
19426 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19427 conftest
$ac_exeext conftest.
$ac_ext
19428 if test "${ac_cv_imap_tk}" = "yes"; then
19429 cat >conftest.
$ac_ext <<_ACEOF
19432 cat confdefs.h
>>conftest.
$ac_ext
19433 cat >>conftest.
$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19436 #include <imap/c-client.h>
19437 void mm_searched (MAILSTREAM *stream,unsigned long number)
19440 void mm_exists (MAILSTREAM *stream,unsigned long number)
19443 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19446 void mm_flags (MAILSTREAM *stream,unsigned long number)
19449 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19452 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19455 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19458 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19461 void mm_log (char *string,long errflg)
19464 void mm_dlog (char *string)
19467 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19470 void mm_critical (MAILSTREAM *stream)
19473 void mm_nocritical (MAILSTREAM *stream)
19476 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19479 void mm_fatal (char *string)
19486 long check = mail_expunge_full(NULL, "", 0);
19493 rm -f conftest.
$ac_objext conftest
$ac_exeext
19494 if { (ac_try
="$ac_link"
19495 case "(($ac_try" in
19496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_link") 2>conftest.er1
19502 grep -v '^ *+' conftest.er1 >conftest.err
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } && {
19507 test -z "$ac_c_werror_flag" ||
19508 test ! -s conftest.err
19509 } && test -s conftest$ac_exeext &&
19510 $as_test_x conftest$ac_exeext; then
19511 ac_cv_imap_tk2006="yes"
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 ac_cv_imap_tk2006="no"
19520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19521 conftest$ac_exeext conftest.$ac_ext
19522 else #looking in imap directory didn't work, try c-client
19524 imap_libs="-lc-client"
19525 imap_include="-DUSE_SYSTEM_CCLIENT"
19526 CPPFLAGS="${saved_cppflags}"
19527 LIBS="${saved_libs}"
19528 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19529 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19530 cat >conftest.
$ac_ext <<_ACEOF
19533 cat confdefs.h
>>conftest.
$ac_ext
19534 cat >>conftest.
$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19537 #include <c-client/c-client.h>
19538 void mm_searched (MAILSTREAM *stream,unsigned long number)
19541 void mm_exists (MAILSTREAM *stream,unsigned long number)
19544 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19547 void mm_flags (MAILSTREAM *stream,unsigned long number)
19550 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19553 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19556 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19559 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19562 void mm_log (char *string,long errflg)
19565 void mm_dlog (char *string)
19568 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19571 void mm_critical (MAILSTREAM *stream)
19574 void mm_nocritical (MAILSTREAM *stream)
19577 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19580 void mm_fatal (char *string)
19587 MAILSTREAM *foo = mail_open(NULL, "", 0);
19594 rm -f conftest.
$ac_objext conftest
$ac_exeext
19595 if { (ac_try
="$ac_link"
19596 case "(($ac_try" in
19597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601 (eval "$ac_link") 2>conftest.er1
19603 grep -v '^ *+' conftest.er1 >conftest.err
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } && {
19608 test -z "$ac_c_werror_flag" ||
19609 test ! -s conftest.err
19610 } && test -s conftest$ac_exeext &&
19611 $as_test_x conftest$ac_exeext; then
19612 ac_cv_imap_tk="yes"
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19622 conftest$ac_exeext conftest.$ac_ext
19623 if test "${ac_cv_imap_tk}" = "yes"; then
19624 cat >conftest.$ac_ext <<_ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19631 #include <c-client/c-client.h>
19632 void mm_searched (MAILSTREAM *stream,unsigned long number)
19635 void mm_exists (MAILSTREAM *stream,unsigned long number)
19638 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19641 void mm_flags (MAILSTREAM *stream,unsigned long number)
19644 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19647 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19650 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19653 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19656 void mm_log (char *string,long errflg)
19659 void mm_dlog (char *string)
19662 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19665 void mm_critical (MAILSTREAM *stream)
19668 void mm_nocritical (MAILSTREAM *stream)
19671 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19674 void mm_fatal (char *string)
19681 long check = mail_expunge_full(NULL, "", 0);
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19692 *) ac_try_echo
=$ac_try;;
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_link") 2>conftest.er1
19697 grep -v '^ *+' conftest.er1
>conftest.err
19699 cat conftest.err
>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } && {
19702 test -z "$ac_c_werror_flag" ||
19703 test ! -s conftest.err
19704 } && test -s conftest
$ac_exeext &&
19705 $as_test_x conftest
$ac_exeext; then
19706 ac_cv_imap_tk2006
="yes"
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.
$ac_ext >&5
19711 ac_cv_imap_tk2006
="no"
19715 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19716 conftest
$ac_exeext conftest.
$ac_ext
19720 if test "${ac_cv_imap_tk}" = "yes"; then
19721 { echo "$as_me:$LINENO: result: yes" >&5
19722 echo "${ECHO_T}yes" >&6; }
19723 IMAP_TK_LIB
="${imap_libs} "`echo ${imap_ldflags}`
19724 IMAP_TK_INCLUDE
="${imap_include}"
19727 cat >>confdefs.h
<<\_ACEOF
19728 #define HAVE_IMAP_TK 1
19731 if test "${ac_cv_imap_tk2006}" = "yes"; then
19733 cat >>confdefs.h
<<\_ACEOF
19734 #define HAVE_IMAP_TK2006 1
19738 elif test -n "${IMAP_TK_MANDATORY}"; then
19739 { echo "$as_me:$LINENO: result: no" >&5
19740 echo "${ECHO_T}no" >&6; }
19741 { echo "$as_me:$LINENO: ***" >&5
19742 echo "$as_me: ***" >&6;}
19743 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19744 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19745 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19746 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19747 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19748 echo "$as_me: *** including --without-imap." >&6;}
19751 { echo "$as_me:$LINENO: result: no" >&5
19752 echo "${ECHO_T}no" >&6; }
19754 CPPFLAGS
="${saved_cppflags}"
19755 LIBS
="${saved_libs}"
19758 # Needed by unixodbc
19760 if test "${USE_LTDL}" != "no"; then
19762 if test "x${LTDL_DIR}" != "x"; then
19763 if test -d ${LTDL_DIR}/lib
; then
19764 pbxlibdir
="-L${LTDL_DIR}/lib"
19766 pbxlibdir
="-L${LTDL_DIR}"
19769 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19770 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19771 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 ac_check_lib_save_LIBS
=$LIBS
19775 LIBS
="-lltdl ${pbxlibdir} $LIBS"
19776 cat >conftest.
$ac_ext <<_ACEOF
19779 cat confdefs.h
>>conftest.
$ac_ext
19780 cat >>conftest.
$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19783 /* Override any GCC internal prototype to avoid an error.
19784 Use char because int might match the return type of a GCC
19785 builtin and then its argument prototype would still apply. */
19793 return lt_dlinit ();
19798 rm -f conftest.
$ac_objext conftest
$ac_exeext
19799 if { (ac_try
="$ac_link"
19800 case "(($ac_try" in
19801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_link") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest$ac_exeext &&
19815 $as_test_x conftest$ac_exeext; then
19816 ac_cv_lib_ltdl_lt_dlinit=yes
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_cv_lib_ltdl_lt_dlinit=no
19824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19825 conftest$ac_exeext conftest.$ac_ext
19826 LIBS=$ac_check_lib_save_LIBS
19828 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
19829 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
19830 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
19837 if test "${AST_LTDL_FOUND}" = "yes"; then
19839 LTDL_HEADER_FOUND="1"
19840 if test "x${LTDL_DIR}" != "x"; then
19841 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
19842 LTDL_INCLUDE="-I${LTDL_DIR}/include"
19843 saved_cppflags="${CPPFLAGS}"
19844 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
19845 if test "xltdl.h" != "x" ; then
19846 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" |
$as_tr_sh`
19847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19848 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19849 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 ac_res=`eval echo '${'$as_ac_Header'}'`
19854 { echo "$as_me:$LINENO: result: $ac_res" >&5
19855 echo "${ECHO_T}$ac_res" >&6; }
19857 # Is the header compilable?
19858 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
19859 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
19860 cat >conftest.$ac_ext <<_ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 $ac_includes_default
19867 #include <${LTDL_DIR}/include/ltdl.h>
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19873 *) ac_try_echo
=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_compile") 2>conftest.er1
19878 grep -v '^ *+' conftest.er1
>conftest.err
19880 cat conftest.err
>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && {
19883 test -z "$ac_c_werror_flag" ||
19884 test ! -s conftest.err
19885 } && test -s conftest.
$ac_objext; then
19886 ac_header_compiler
=yes
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.
$ac_ext >&5
19891 ac_header_compiler
=no
19894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19896 echo "${ECHO_T}$ac_header_compiler" >&6; }
19898 # Is the header present?
19899 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
19900 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
19901 cat >conftest.
$ac_ext <<_ACEOF
19904 cat confdefs.h
>>conftest.
$ac_ext
19905 cat >>conftest.
$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19907 #include <${LTDL_DIR}/include/ltdl.h>
19909 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19910 case "(($ac_try" in
19911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19917 grep -v '^ *+' conftest.er1 >conftest.err
19919 cat conftest.err >&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } >/dev/null && {
19922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19925 ac_header_preproc=yes
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19930 ac_header_preproc=no
19933 rm -f conftest.err conftest.$ac_ext
19934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19935 echo "${ECHO_T}$ac_header_preproc" >&6; }
19937 # So? What about this header?
19938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19940 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19941 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19942 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
19943 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
19944 ac_header_preproc=yes
19947 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
19948 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
19950 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
19952 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19954 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
19956 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
19958 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
19960 ## ------------------------------- ##
19961 ## Report this to www.asterisk.org ##
19962 ## ------------------------------- ##
19964 ) | sed "s/^/$as_me: WARNING: /" >&2
19967 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19968 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 eval "$as_ac_Header=\$ac_header_preproc"
19974 ac_res=`eval echo '${'$as_ac_Header'}'`
19975 { echo "$as_me:$LINENO: result: $ac_res" >&5
19976 echo "${ECHO_T}$ac_res" >&6; }
19979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19980 LTDL_HEADER_FOUND=1
19982 LTDL_HEADER_FOUND=0
19987 CPPFLAGS="${saved_cppflags}"
19989 if test "xltdl.h" != "x" ; then
19990 if test "${ac_cv_header_ltdl_h+set}" = set; then
19991 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19992 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19993 if test "${ac_cv_header_ltdl_h+set}" = set; then
19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19996 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
19997 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19999 # Is the header compilable?
20000 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
20001 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008 $ac_includes_default
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20015 *) ac_try_echo
=$ac_try;;
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_compile") 2>conftest.er1
20020 grep -v '^ *+' conftest.er1
>conftest.err
20022 cat conftest.err
>&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } && {
20025 test -z "$ac_c_werror_flag" ||
20026 test ! -s conftest.err
20027 } && test -s conftest.
$ac_objext; then
20028 ac_header_compiler
=yes
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.
$ac_ext >&5
20033 ac_header_compiler
=no
20036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20038 echo "${ECHO_T}$ac_header_compiler" >&6; }
20040 # Is the header present?
20041 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
20042 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
20043 cat >conftest.
$ac_ext <<_ACEOF
20046 cat confdefs.h
>>conftest.
$ac_ext
20047 cat >>conftest.
$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20051 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20052 case "(($ac_try" in
20053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20059 grep -v '^ *+' conftest.er1 >conftest.err
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } >/dev/null && {
20064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20065 test ! -s conftest.err
20067 ac_header_preproc=yes
20069 echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20072 ac_header_preproc=no
20075 rm -f conftest.err conftest.$ac_ext
20076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20077 echo "${ECHO_T}$ac_header_preproc" >&6; }
20079 # So? What about this header?
20080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20082 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20083 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
20085 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
20086 ac_header_preproc=yes
20089 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
20090 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
20092 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
20094 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20096 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
20098 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
20100 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
20102 ## ------------------------------- ##
20103 ## Report this to www.asterisk.org ##
20104 ## ------------------------------- ##
20106 ) | sed "s/^/$as_me: WARNING: /" >&2
20109 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20110 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20111 if test "${ac_cv_header_ltdl_h+set}" = set; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20114 ac_cv_header_ltdl_h=$ac_header_preproc
20116 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20117 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20120 if test $ac_cv_header_ltdl_h = yes; then
20121 LTDL_HEADER_FOUND=1
20123 LTDL_HEADER_FOUND=0
20129 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
20130 if test -n "${LTDL_MANDATORY}" ;
20132 { echo "$as_me:$LINENO: ***" >&5
20133 echo "$as_me: ***" >&6;}
20134 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
20135 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
20136 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
20137 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
20138 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20139 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20148 cat >>confdefs.h <<_ACEOF
20149 #define HAVE_LTDL 1
20153 elif test -n "${LTDL_MANDATORY}";
20155 { echo "$as_me:$LINENO: ***" >&5
20156 echo "$as_me: ***" >&6;}
20157 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
20158 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
20159 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20160 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20161 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20162 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20169 ac_cpp='$CXXCPP $CPPFLAGS'
20170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20175 if test "${USE_KDE}" != "no"; then
20176 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
20177 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
20178 saved_libs="${LIBS}"
20179 saved_cppflags="${CPPFLAGS}"
20180 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
20181 if test -d ${KDE_DIR}/lib; then
20182 kdelibdir="${KDE_DIR}/lib"
20184 kdelibdir="${KDE_DIR}"
20186 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
20189 cat >conftest.$ac_ext <<_ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 #include "kcrash.h"
20199 KCrash::defaultCrashHandler(1);
20205 rm -f conftest.$ac_objext conftest$ac_exeext
20206 if { (ac_try="$ac_link"
20207 case "(($ac_try" in
20208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20209 *) ac_try_echo
=$ac_try;;
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_link") 2>conftest.er1
20214 grep -v '^ *+' conftest.er1
>conftest.err
20216 cat conftest.err
>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_cxx_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest
$ac_exeext &&
20222 $as_test_x conftest
$ac_exeext; then
20223 ac_cv_lib_kde_crash
="yes"
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.
$ac_ext >&5
20228 ac_cv_lib_kde_crash
="no"
20231 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20232 conftest
$ac_exeext conftest.
$ac_ext
20234 LIBS
="${saved_libs}"
20235 CPPFLAGS
="${saved_cppflags}"
20237 if test "${ac_cv_lib_kde_crash}" = "yes"; then
20238 { echo "$as_me:$LINENO: result: yes" >&5
20239 echo "${ECHO_T}yes" >&6; }
20240 KDE_LIB
="-lkdecore -lkdeui"
20241 if test "${KDE_DIR}" != ""; then
20242 KDE_LIB
="-L${kdelibdir} ${KDE_LIB}"
20243 KDE_INCLUDE
="-I${KDE_DIR}/include"
20247 cat >>confdefs.h
<<\_ACEOF
20248 #define HAVE_LIBKDE 1
20251 elif test -n "${KDE_MANDATORY}"; then
20252 { echo "$as_me:$LINENO: result: no" >&5
20253 echo "${ECHO_T}no" >&6; }
20254 { echo "$as_me:$LINENO: ***" >&5
20255 echo "$as_me: ***" >&6;}
20256 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
20257 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
20258 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20259 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20260 { echo "$as_me:$LINENO: *** including --without-kde." >&5
20261 echo "$as_me: *** including --without-kde." >&6;}
20264 { echo "$as_me:$LINENO: result: no" >&5
20265 echo "${ECHO_T}no" >&6; }
20268 if test "${PBX_KDE}" = 1; then
20269 if test -n "$ac_tool_prefix"; then
20270 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
20271 set dummy
${ac_tool_prefix}kdeinit
; ac_word
=$2
20272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20274 if test "${ac_cv_path_KDEINIT+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 ac_cv_path_KDEINIT
="$KDEINIT" # Let the user override the test with a path.
20282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20283 for as_dir
in $PATH
20286 test -z "$as_dir" && as_dir
=.
20287 for ac_exec_ext
in '' $ac_executable_extensions; do
20288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20289 ac_cv_path_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
20290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20300 KDEINIT
=$ac_cv_path_KDEINIT
20301 if test -n "$KDEINIT"; then
20302 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
20303 echo "${ECHO_T}$KDEINIT" >&6; }
20305 { echo "$as_me:$LINENO: result: no" >&5
20306 echo "${ECHO_T}no" >&6; }
20311 if test -z "$ac_cv_path_KDEINIT"; then
20312 ac_pt_KDEINIT
=$KDEINIT
20313 # Extract the first word of "kdeinit", so it can be a program name with args.
20314 set dummy kdeinit
; ac_word
=$2
20315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20317 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 case $ac_pt_KDEINIT in
20322 ac_cv_path_ac_pt_KDEINIT
="$ac_pt_KDEINIT" # Let the user override the test with a path.
20325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20326 for as_dir
in $PATH
20329 test -z "$as_dir" && as_dir
=.
20330 for ac_exec_ext
in '' $ac_executable_extensions; do
20331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20332 ac_cv_path_ac_pt_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
20333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20343 ac_pt_KDEINIT
=$ac_cv_path_ac_pt_KDEINIT
20344 if test -n "$ac_pt_KDEINIT"; then
20345 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
20346 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
20348 { echo "$as_me:$LINENO: result: no" >&5
20349 echo "${ECHO_T}no" >&6; }
20352 if test "x$ac_pt_KDEINIT" = x
; then
20355 case $cross_compiling:$ac_tool_warned in
20357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20358 whose name does not start with the host triplet. If you think this
20359 configuration is useful to you, please write to autoconf@gnu.org." >&5
20360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20361 whose name does not start with the host triplet. If you think this
20362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20363 ac_tool_warned
=yes ;;
20365 KDEINIT
=$ac_pt_KDEINIT
20368 KDEINIT
="$ac_cv_path_KDEINIT"
20371 if test ! x
"${KDEINIT}" = xNo
; then
20372 KDEDIR
=$
(${DIRNAME} ${KDEINIT})
20373 KDEDIR
=$
(${DIRNAME} ${KDEDIR})
20379 ac_cpp
='$CPP $CPPFLAGS'
20380 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20386 if test "${USE_MISDN}" != "no"; then
20388 if test "x${MISDN_DIR}" != "x"; then
20389 if test -d ${MISDN_DIR}/lib
; then
20390 pbxlibdir
="-L${MISDN_DIR}/lib"
20392 pbxlibdir
="-L${MISDN_DIR}"
20395 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
20396 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
20397 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20400 ac_check_lib_save_LIBS
=$LIBS
20401 LIBS
="-lmISDN ${pbxlibdir} $LIBS"
20402 cat >conftest.
$ac_ext <<_ACEOF
20405 cat confdefs.h
>>conftest.
$ac_ext
20406 cat >>conftest.
$ac_ext <<_ACEOF
20407 /* end confdefs.h. */
20409 /* Override any GCC internal prototype to avoid an error.
20410 Use char because int might match the return type of a GCC
20411 builtin and then its argument prototype would still apply. */
20415 char mISDN_open ();
20419 return mISDN_open ();
20424 rm -f conftest.
$ac_objext conftest
$ac_exeext
20425 if { (ac_try
="$ac_link"
20426 case "(($ac_try" in
20427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_link") 2>conftest.er1
20433 grep -v '^ *+' conftest.er1 >conftest.err
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } && {
20438 test -z "$ac_c_werror_flag" ||
20439 test ! -s conftest.err
20440 } && test -s conftest$ac_exeext &&
20441 $as_test_x conftest$ac_exeext; then
20442 ac_cv_lib_mISDN_mISDN_open=yes
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_cv_lib_mISDN_mISDN_open=no
20450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20451 conftest$ac_exeext conftest.$ac_ext
20452 LIBS=$ac_check_lib_save_LIBS
20454 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
20455 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
20456 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
20457 AST_MISDN_FOUND=yes
20463 if test "${AST_MISDN_FOUND}" = "yes"; then
20464 MISDN_LIB="-lmISDN "
20465 MISDN_HEADER_FOUND="1"
20466 if test "x${MISDN_DIR}" != "x"; then
20467 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
20468 MISDN_INCLUDE="-I${MISDN_DIR}/include"
20469 saved_cppflags="${CPPFLAGS}"
20470 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
20471 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20472 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" |
$as_tr_sh`
20473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20474 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20475 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 ac_res=`eval echo '${'$as_ac_Header'}'`
20480 { echo "$as_me:$LINENO: result: $ac_res" >&5
20481 echo "${ECHO_T}$ac_res" >&6; }
20483 # Is the header compilable?
20484 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
20485 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20486 cat >conftest.$ac_ext <<_ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20492 $ac_includes_default
20493 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20495 rm -f conftest.$ac_objext
20496 if { (ac_try="$ac_compile"
20497 case "(($ac_try" in
20498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20499 *) ac_try_echo
=$ac_try;;
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502 (eval "$ac_compile") 2>conftest.er1
20504 grep -v '^ *+' conftest.er1
>conftest.err
20506 cat conftest.err
>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } && {
20509 test -z "$ac_c_werror_flag" ||
20510 test ! -s conftest.err
20511 } && test -s conftest.
$ac_objext; then
20512 ac_header_compiler
=yes
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.
$ac_ext >&5
20517 ac_header_compiler
=no
20520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20522 echo "${ECHO_T}$ac_header_compiler" >&6; }
20524 # Is the header present?
20525 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
20526 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20527 cat >conftest.
$ac_ext <<_ACEOF
20530 cat confdefs.h
>>conftest.
$ac_ext
20531 cat >>conftest.
$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20535 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
20543 grep -v '^ *+' conftest.er1 >conftest.err
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } >/dev/null && {
20548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20549 test ! -s conftest.err
20551 ac_header_preproc=yes
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 ac_header_preproc=no
20559 rm -f conftest.err conftest.$ac_ext
20560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20561 echo "${ECHO_T}$ac_header_preproc" >&6; }
20563 # So? What about this header?
20564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20566 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20567 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20569 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20570 ac_header_preproc=yes
20573 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20574 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20576 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20578 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20580 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20582 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20584 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20586 ## ------------------------------- ##
20587 ## Report this to www.asterisk.org ##
20588 ## ------------------------------- ##
20590 ) | sed "s/^/$as_me: WARNING: /" >&2
20593 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20594 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20598 eval "$as_ac_Header=\$ac_header_preproc"
20600 ac_res=`eval echo '${'$as_ac_Header'}'`
20601 { echo "$as_me:$LINENO: result: $ac_res" >&5
20602 echo "${ECHO_T}$ac_res" >&6; }
20605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20606 MISDN_HEADER_FOUND=1
20608 MISDN_HEADER_FOUND=0
20613 CPPFLAGS="${saved_cppflags}"
20615 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20616 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20617 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20618 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20619 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20623 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20625 # Is the header compilable?
20626 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
20627 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20628 cat >conftest.$ac_ext <<_ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20634 $ac_includes_default
20635 #include <mISDNuser/mISDNlib.h>
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20641 *) ac_try_echo
=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_compile") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1
>conftest.err
20648 cat conftest.err
>&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest.
$ac_objext; then
20654 ac_header_compiler
=yes
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.
$ac_ext >&5
20659 ac_header_compiler
=no
20662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20664 echo "${ECHO_T}$ac_header_compiler" >&6; }
20666 # Is the header present?
20667 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20668 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20669 cat >conftest.
$ac_ext <<_ACEOF
20672 cat confdefs.h
>>conftest.
$ac_ext
20673 cat >>conftest.
$ac_ext <<_ACEOF
20674 /* end confdefs.h. */
20675 #include <mISDNuser/mISDNlib.h>
20677 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20678 case "(($ac_try" in
20679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20685 grep -v '^ *+' conftest.er1 >conftest.err
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } >/dev/null && {
20690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20691 test ! -s conftest.err
20693 ac_header_preproc=yes
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 ac_header_preproc=no
20701 rm -f conftest.err conftest.$ac_ext
20702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20703 echo "${ECHO_T}$ac_header_preproc" >&6; }
20705 # So? What about this header?
20706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20708 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20709 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20710 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20711 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20712 ac_header_preproc=yes
20715 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20716 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20717 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20718 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20719 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20720 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20722 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20724 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20726 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20728 ## ------------------------------- ##
20729 ## Report this to www.asterisk.org ##
20730 ## ------------------------------- ##
20732 ) | sed "s/^/$as_me: WARNING: /" >&2
20735 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20736 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20737 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20740 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
20742 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20743 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20746 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20747 MISDN_HEADER_FOUND=1
20749 MISDN_HEADER_FOUND=0
20755 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20756 if test -n "${MISDN_MANDATORY}" ;
20758 { echo "$as_me:$LINENO: ***" >&5
20759 echo "$as_me: ***" >&6;}
20760 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20761 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20762 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20763 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20764 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20765 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20774 cat >>confdefs.h <<_ACEOF
20775 #define HAVE_MISDN 1
20779 elif test -n "${MISDN_MANDATORY}";
20781 { echo "$as_me:$LINENO: ***" >&5
20782 echo "$as_me: ***" >&6;}
20783 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
20784 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
20785 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20786 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20787 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20788 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20794 if test "${PBX_MISDN}" = 1; then
20796 if test "${USE_ISDNNET}" != "no"; then
20798 if test "x${ISDNNET_DIR}" != "x"; then
20799 if test -d ${ISDNNET_DIR}/lib; then
20800 pbxlibdir="-L${ISDNNET_DIR}/lib"
20802 pbxlibdir="-L${ISDNNET_DIR}"
20805 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
20806 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
20807 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
20810 ac_check_lib_save_LIBS=$LIBS
20811 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
20812 cat >conftest.$ac_ext <<_ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20819 /* Override any GCC internal prototype to avoid an error.
20820 Use char because int might match the return type of a GCC
20821 builtin and then its argument prototype would still apply. */
20825 char init_manager ();
20829 return init_manager ();
20834 rm -f conftest.$ac_objext conftest$ac_exeext
20835 if { (ac_try="$ac_link"
20836 case "(($ac_try" in
20837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20838 *) ac_try_echo
=$ac_try;;
20840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841 (eval "$ac_link") 2>conftest.er1
20843 grep -v '^ *+' conftest.er1
>conftest.err
20845 cat conftest.err
>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } && {
20848 test -z "$ac_c_werror_flag" ||
20849 test ! -s conftest.err
20850 } && test -s conftest
$ac_exeext &&
20851 $as_test_x conftest
$ac_exeext; then
20852 ac_cv_lib_isdnnet_init_manager
=yes
20854 echo "$as_me: failed program was:" >&5
20855 sed 's/^/| /' conftest.
$ac_ext >&5
20857 ac_cv_lib_isdnnet_init_manager
=no
20860 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20861 conftest
$ac_exeext conftest.
$ac_ext
20862 LIBS
=$ac_check_lib_save_LIBS
20864 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20865 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20866 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20867 AST_ISDNNET_FOUND
=yes
20869 AST_ISDNNET_FOUND
=no
20873 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20874 ISDNNET_LIB
="-lisdnnet -lmISDN -lpthread"
20875 ISDNNET_HEADER_FOUND
="1"
20876 if test "x${ISDNNET_DIR}" != "x"; then
20877 ISDNNET_LIB
="${pbxlibdir} ${ISDNNET_LIB}"
20878 ISDNNET_INCLUDE
="-I${ISDNNET_DIR}/include"
20879 saved_cppflags
="${CPPFLAGS}"
20880 CPPFLAGS
="${CPPFLAGS} -I${ISDNNET_DIR}/include"
20881 if test "xmISDNuser/isdn_net.h" != "x" ; then
20882 as_ac_Header
=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
20883 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20884 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
20885 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20886 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20887 echo $ECHO_N "(cached) $ECHO_C" >&6
20889 ac_res
=`eval echo '${'$as_ac_Header'}'`
20890 { echo "$as_me:$LINENO: result: $ac_res" >&5
20891 echo "${ECHO_T}$ac_res" >&6; }
20893 # Is the header compilable?
20894 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
20895 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20896 cat >conftest.
$ac_ext <<_ACEOF
20899 cat confdefs.h
>>conftest.
$ac_ext
20900 cat >>conftest.
$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 $ac_includes_default
20903 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20905 rm -f conftest.
$ac_objext
20906 if { (ac_try
="$ac_compile"
20907 case "(($ac_try" in
20908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_compile") 2>conftest.er1
20914 grep -v '^ *+' conftest.er1 >conftest.err
20916 cat conftest.err >&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } && {
20919 test -z "$ac_c_werror_flag" ||
20920 test ! -s conftest.err
20921 } && test -s conftest.$ac_objext; then
20922 ac_header_compiler=yes
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20927 ac_header_compiler=no
20930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20932 echo "${ECHO_T}$ac_header_compiler" >&6; }
20934 # Is the header present?
20935 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
20936 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20937 cat >conftest.$ac_ext <<_ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20943 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20945 if { (ac_try="$ac_cpp conftest.$ac_ext"
20946 case "(($ac_try" in
20947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20948 *) ac_try_echo
=$ac_try;;
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20953 grep -v '^ *+' conftest.er1
>conftest.err
20955 cat conftest.err
>&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } >/dev
/null
&& {
20958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20959 test ! -s conftest.err
20961 ac_header_preproc
=yes
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.
$ac_ext >&5
20966 ac_header_preproc
=no
20969 rm -f conftest.err conftest.
$ac_ext
20970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20971 echo "${ECHO_T}$ac_header_preproc" >&6; }
20973 # So? What about this header?
20974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20976 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
20977 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20978 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
20979 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
20980 ac_header_preproc
=yes
20983 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
20984 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
20985 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
20986 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
20987 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
20988 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
20989 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
20990 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
20992 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
20993 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
20994 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
20996 ## ------------------------------- ##
20997 ## Report this to www.asterisk.org ##
20998 ## ------------------------------- ##
21000 ) |
sed "s/^/$as_me: WARNING: /" >&2
21003 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21004 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21005 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21008 eval "$as_ac_Header=\$ac_header_preproc"
21010 ac_res
=`eval echo '${'$as_ac_Header'}'`
21011 { echo "$as_me:$LINENO: result: $ac_res" >&5
21012 echo "${ECHO_T}$ac_res" >&6; }
21015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21016 ISDNNET_HEADER_FOUND
=1
21018 ISDNNET_HEADER_FOUND
=0
21023 CPPFLAGS
="${saved_cppflags}"
21025 if test "xmISDNuser/isdn_net.h" != "x" ; then
21026 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21027 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21028 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21029 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21033 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21035 # Is the header compilable?
21036 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
21037 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21038 cat >conftest.
$ac_ext <<_ACEOF
21041 cat confdefs.h
>>conftest.
$ac_ext
21042 cat >>conftest.
$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 $ac_includes_default
21045 #include <mISDNuser/isdn_net.h>
21047 rm -f conftest.
$ac_objext
21048 if { (ac_try
="$ac_compile"
21049 case "(($ac_try" in
21050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_compile") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest.$ac_objext; then
21064 ac_header_compiler=yes
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_header_compiler=no
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21074 echo "${ECHO_T}$ac_header_compiler" >&6; }
21076 # Is the header present?
21077 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
21078 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21079 cat >conftest.$ac_ext <<_ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h. */
21085 #include <mISDNuser/isdn_net.h>
21087 if { (ac_try="$ac_cpp conftest.$ac_ext"
21088 case "(($ac_try" in
21089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21090 *) ac_try_echo
=$ac_try;;
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21095 grep -v '^ *+' conftest.er1
>conftest.err
21097 cat conftest.err
>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } >/dev
/null
&& {
21100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21101 test ! -s conftest.err
21103 ac_header_preproc
=yes
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.
$ac_ext >&5
21108 ac_header_preproc
=no
21111 rm -f conftest.err conftest.
$ac_ext
21112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21113 echo "${ECHO_T}$ac_header_preproc" >&6; }
21115 # So? What about this header?
21116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21118 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21119 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21121 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21122 ac_header_preproc
=yes
21125 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21126 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21127 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21128 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21130 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21132 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21134 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21136 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21138 ## ------------------------------- ##
21139 ## Report this to www.asterisk.org ##
21140 ## ------------------------------- ##
21142 ) |
sed "s/^/$as_me: WARNING: /" >&2
21145 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21146 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21147 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21150 ac_cv_header_mISDNuser_isdn_net_h
=$ac_header_preproc
21152 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21153 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21156 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
21157 ISDNNET_HEADER_FOUND
=1
21159 ISDNNET_HEADER_FOUND
=0
21165 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
21166 if test -n "${ISDNNET_MANDATORY}" ;
21168 { echo "$as_me:$LINENO: ***" >&5
21169 echo "$as_me: ***" >&6;}
21170 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
21171 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
21172 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
21173 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
21174 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21175 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21184 cat >>confdefs.h
<<_ACEOF
21185 #define HAVE_ISDNNET 1
21189 elif test -n "${ISDNNET_MANDATORY}";
21191 { echo "$as_me:$LINENO: ***" >&5
21192 echo "$as_me: ***" >&6;}
21193 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
21194 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
21195 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21196 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21197 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21198 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21204 if test "${USE_SUPPSERV}" != "no"; then
21206 if test "x${SUPPSERV_DIR}" != "x"; then
21207 if test -d ${SUPPSERV_DIR}/lib
; then
21208 pbxlibdir
="-L${SUPPSERV_DIR}/lib"
21210 pbxlibdir
="-L${SUPPSERV_DIR}"
21213 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
21214 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
21215 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 ac_check_lib_save_LIBS
=$LIBS
21219 LIBS
="-lsuppserv ${pbxlibdir} $LIBS"
21220 cat >conftest.
$ac_ext <<_ACEOF
21223 cat confdefs.h
>>conftest.
$ac_ext
21224 cat >>conftest.
$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21227 /* Override any GCC internal prototype to avoid an error.
21228 Use char because int might match the return type of a GCC
21229 builtin and then its argument prototype would still apply. */
21237 return encodeFac ();
21242 rm -f conftest.
$ac_objext conftest
$ac_exeext
21243 if { (ac_try
="$ac_link"
21244 case "(($ac_try" in
21245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_link") 2>conftest.er1
21251 grep -v '^ *+' conftest.er1 >conftest.err
21253 cat conftest.err >&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest$ac_exeext &&
21259 $as_test_x conftest$ac_exeext; then
21260 ac_cv_lib_suppserv_encodeFac=yes
21262 echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21265 ac_cv_lib_suppserv_encodeFac=no
21268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21269 conftest$ac_exeext conftest.$ac_ext
21270 LIBS=$ac_check_lib_save_LIBS
21272 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
21273 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
21274 if test $ac_cv_lib_suppserv_encodeFac = yes; then
21275 AST_SUPPSERV_FOUND=yes
21277 AST_SUPPSERV_FOUND=no
21281 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
21282 SUPPSERV_LIB="-lsuppserv "
21283 SUPPSERV_HEADER_FOUND="1"
21284 if test "x${SUPPSERV_DIR}" != "x"; then
21285 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
21286 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
21287 saved_cppflags="${CPPFLAGS}"
21288 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
21289 if test "xmISDNuser/suppserv.h" != "x" ; then
21290 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" |
$as_tr_sh`
21291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21292 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21293 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21297 ac_res=`eval echo '${'$as_ac_Header'}'`
21298 { echo "$as_me:$LINENO: result: $ac_res" >&5
21299 echo "${ECHO_T}$ac_res" >&6; }
21301 # Is the header compilable?
21302 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
21303 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 $ac_includes_default
21311 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21313 rm -f conftest.$ac_objext
21314 if { (ac_try="$ac_compile"
21315 case "(($ac_try" in
21316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21317 *) ac_try_echo
=$ac_try;;
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_compile") 2>conftest.er1
21322 grep -v '^ *+' conftest.er1
>conftest.err
21324 cat conftest.err
>&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } && {
21327 test -z "$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21329 } && test -s conftest.
$ac_objext; then
21330 ac_header_compiler
=yes
21332 echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.
$ac_ext >&5
21335 ac_header_compiler
=no
21338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21340 echo "${ECHO_T}$ac_header_compiler" >&6; }
21342 # Is the header present?
21343 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
21344 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21345 cat >conftest.
$ac_ext <<_ACEOF
21348 cat confdefs.h
>>conftest.
$ac_ext
21349 cat >>conftest.
$ac_ext <<_ACEOF
21350 /* end confdefs.h. */
21351 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21353 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21354 case "(($ac_try" in
21355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21356 *) ac_try_echo=$ac_try;;
21358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21361 grep -v '^ *+' conftest.er1 >conftest.err
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } >/dev/null && {
21366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21367 test ! -s conftest.err
21369 ac_header_preproc=yes
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 ac_header_preproc=no
21377 rm -f conftest.err conftest.$ac_ext
21378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21379 echo "${ECHO_T}$ac_header_preproc" >&6; }
21381 # So? What about this header?
21382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21384 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21385 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21387 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21388 ac_header_preproc=yes
21391 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
21392 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21393 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21394 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21395 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21396 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21397 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21398 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21399 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21400 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21401 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21402 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21404 ## ------------------------------- ##
21405 ## Report this to www.asterisk.org ##
21406 ## ------------------------------- ##
21408 ) | sed "s/^/$as_me: WARNING: /" >&2
21411 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21412 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 eval "$as_ac_Header=\$ac_header_preproc"
21418 ac_res=`eval echo '${'$as_ac_Header'}'`
21419 { echo "$as_me:$LINENO: result: $ac_res" >&5
21420 echo "${ECHO_T}$ac_res" >&6; }
21423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21424 SUPPSERV_HEADER_FOUND=1
21426 SUPPSERV_HEADER_FOUND=0
21431 CPPFLAGS="${saved_cppflags}"
21433 if test "xmISDNuser/suppserv.h" != "x" ; then
21434 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21435 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21436 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21437 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21441 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21443 # Is the header compilable?
21444 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
21445 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21446 cat >conftest.$ac_ext <<_ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 $ac_includes_default
21453 #include <mISDNuser/suppserv.h>
21455 rm -f conftest.$ac_objext
21456 if { (ac_try="$ac_compile"
21457 case "(($ac_try" in
21458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21459 *) ac_try_echo
=$ac_try;;
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_compile") 2>conftest.er1
21464 grep -v '^ *+' conftest.er1
>conftest.err
21466 cat conftest.err
>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && {
21469 test -z "$ac_c_werror_flag" ||
21470 test ! -s conftest.err
21471 } && test -s conftest.
$ac_objext; then
21472 ac_header_compiler
=yes
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.
$ac_ext >&5
21477 ac_header_compiler
=no
21480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21482 echo "${ECHO_T}$ac_header_compiler" >&6; }
21484 # Is the header present?
21485 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
21486 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21487 cat >conftest.
$ac_ext <<_ACEOF
21490 cat confdefs.h
>>conftest.
$ac_ext
21491 cat >>conftest.
$ac_ext <<_ACEOF
21492 /* end confdefs.h. */
21493 #include <mISDNuser/suppserv.h>
21495 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21496 case "(($ac_try" in
21497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21503 grep -v '^ *+' conftest.er1 >conftest.err
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } >/dev/null && {
21508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21509 test ! -s conftest.err
21511 ac_header_preproc=yes
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21516 ac_header_preproc=no
21519 rm -f conftest.err conftest.$ac_ext
21520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21521 echo "${ECHO_T}$ac_header_preproc" >&6; }
21523 # So? What about this header?
21524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21526 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21527 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21528 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21529 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21530 ac_header_preproc=yes
21533 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
21534 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21536 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21537 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21538 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21540 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21542 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21544 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21546 ## ------------------------------- ##
21547 ## Report this to www.asterisk.org ##
21548 ## ------------------------------- ##
21550 ) | sed "s/^/$as_me: WARNING: /" >&2
21553 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21554 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21555 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21558 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
21560 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21561 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21564 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
21565 SUPPSERV_HEADER_FOUND=1
21567 SUPPSERV_HEADER_FOUND=0
21573 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
21574 if test -n "${SUPPSERV_MANDATORY}" ;
21576 { echo "$as_me:$LINENO: ***" >&5
21577 echo "$as_me: ***" >&6;}
21578 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
21579 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
21580 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
21581 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
21582 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21583 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21587 SUPPSERV_INCLUDE=""
21592 cat >>confdefs.h <<_ACEOF
21593 #define HAVE_SUPPSERV 1
21597 elif test -n "${SUPPSERV_MANDATORY}";
21599 { echo "$as_me:$LINENO: ***" >&5
21600 echo "$as_me: ***" >&6;}
21601 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
21602 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
21603 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21604 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21605 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21606 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21611 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21612 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21613 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21614 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21615 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21618 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21620 # Is the header compilable?
21621 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
21622 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
21623 cat >conftest.$ac_ext <<_ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21629 $ac_includes_default
21630 #include <linux/mISDNdsp.h>
21632 rm -f conftest.$ac_objext
21633 if { (ac_try="$ac_compile"
21634 case "(($ac_try" in
21635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21636 *) ac_try_echo
=$ac_try;;
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_compile") 2>conftest.er1
21641 grep -v '^ *+' conftest.er1
>conftest.err
21643 cat conftest.err
>&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } && {
21646 test -z "$ac_c_werror_flag" ||
21647 test ! -s conftest.err
21648 } && test -s conftest.
$ac_objext; then
21649 ac_header_compiler
=yes
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.
$ac_ext >&5
21654 ac_header_compiler
=no
21657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21659 echo "${ECHO_T}$ac_header_compiler" >&6; }
21661 # Is the header present?
21662 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
21663 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
21664 cat >conftest.
$ac_ext <<_ACEOF
21667 cat confdefs.h
>>conftest.
$ac_ext
21668 cat >>conftest.
$ac_ext <<_ACEOF
21669 /* end confdefs.h. */
21670 #include <linux/mISDNdsp.h>
21672 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21673 case "(($ac_try" in
21674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21680 grep -v '^ *+' conftest.er1 >conftest.err
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } >/dev/null && {
21685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21686 test ! -s conftest.err
21688 ac_header_preproc=yes
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21693 ac_header_preproc=no
21696 rm -f conftest.err conftest.$ac_ext
21697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21698 echo "${ECHO_T}$ac_header_preproc" >&6; }
21700 # So? What about this header?
21701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21703 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21704 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21705 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
21706 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
21707 ac_header_preproc=yes
21710 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
21711 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
21712 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
21713 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
21714 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
21715 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
21716 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
21717 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
21719 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
21721 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
21723 ## ------------------------------- ##
21724 ## Report this to www.asterisk.org ##
21725 ## ------------------------------- ##
21727 ) | sed "s/^/$as_me: WARNING: /" >&2
21730 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21731 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21732 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21733 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
21737 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21738 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21741 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
21743 cat >>confdefs.h <<_ACEOF
21744 #define MISDN_1_2 1
21753 if test "${USE_NBS}" != "no"; then
21755 if test "x${NBS_DIR}" != "x"; then
21756 if test -d ${NBS_DIR}/lib; then
21757 pbxlibdir="-L${NBS_DIR}/lib"
21759 pbxlibdir="-L${NBS_DIR}"
21762 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
21763 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
21764 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21767 ac_check_lib_save_LIBS=$LIBS
21768 LIBS="-lnbs ${pbxlibdir} $LIBS"
21769 cat >conftest.$ac_ext <<_ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h. */
21776 /* Override any GCC internal prototype to avoid an error.
21777 Use char because int might match the return type of a GCC
21778 builtin and then its argument prototype would still apply. */
21782 char nbs_connect ();
21786 return nbs_connect ();
21791 rm -f conftest.$ac_objext conftest$ac_exeext
21792 if { (ac_try="$ac_link"
21793 case "(($ac_try" in
21794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21795 *) ac_try_echo
=$ac_try;;
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_link") 2>conftest.er1
21800 grep -v '^ *+' conftest.er1
>conftest.err
21802 cat conftest.err
>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } && {
21805 test -z "$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 } && test -s conftest
$ac_exeext &&
21808 $as_test_x conftest
$ac_exeext; then
21809 ac_cv_lib_nbs_nbs_connect
=yes
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.
$ac_ext >&5
21814 ac_cv_lib_nbs_nbs_connect
=no
21817 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21818 conftest
$ac_exeext conftest.
$ac_ext
21819 LIBS
=$ac_check_lib_save_LIBS
21821 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
21822 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
21823 if test $ac_cv_lib_nbs_nbs_connect = yes; then
21830 if test "${AST_NBS_FOUND}" = "yes"; then
21832 NBS_HEADER_FOUND
="1"
21833 if test "x${NBS_DIR}" != "x"; then
21834 NBS_LIB
="${pbxlibdir} ${NBS_LIB}"
21835 NBS_INCLUDE
="-I${NBS_DIR}/include"
21836 saved_cppflags
="${CPPFLAGS}"
21837 CPPFLAGS
="${CPPFLAGS} -I${NBS_DIR}/include"
21838 if test "xnbs.h" != "x" ; then
21839 as_ac_Header
=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
21840 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21841 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21842 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21843 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 ac_res
=`eval echo '${'$as_ac_Header'}'`
21847 { echo "$as_me:$LINENO: result: $ac_res" >&5
21848 echo "${ECHO_T}$ac_res" >&6; }
21850 # Is the header compilable?
21851 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
21852 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
21853 cat >conftest.
$ac_ext <<_ACEOF
21856 cat confdefs.h
>>conftest.
$ac_ext
21857 cat >>conftest.
$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 $ac_includes_default
21860 #include <${NBS_DIR}/include/nbs.h>
21862 rm -f conftest.
$ac_objext
21863 if { (ac_try
="$ac_compile"
21864 case "(($ac_try" in
21865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21866 *) ac_try_echo=$ac_try;;
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869 (eval "$ac_compile") 2>conftest.er1
21871 grep -v '^ *+' conftest.er1 >conftest.err
21873 cat conftest.err >&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } && {
21876 test -z "$ac_c_werror_flag" ||
21877 test ! -s conftest.err
21878 } && test -s conftest.$ac_objext; then
21879 ac_header_compiler=yes
21881 echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21884 ac_header_compiler=no
21887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21889 echo "${ECHO_T}$ac_header_compiler" >&6; }
21891 # Is the header present?
21892 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
21893 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
21894 cat >conftest.$ac_ext <<_ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h. */
21900 #include <${NBS_DIR}/include/nbs.h>
21902 if { (ac_try="$ac_cpp conftest.$ac_ext"
21903 case "(($ac_try" in
21904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21905 *) ac_try_echo
=$ac_try;;
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21910 grep -v '^ *+' conftest.er1
>conftest.err
21912 cat conftest.err
>&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } >/dev
/null
&& {
21915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21916 test ! -s conftest.err
21918 ac_header_preproc
=yes
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.
$ac_ext >&5
21923 ac_header_preproc
=no
21926 rm -f conftest.err conftest.
$ac_ext
21927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21928 echo "${ECHO_T}$ac_header_preproc" >&6; }
21930 # So? What about this header?
21931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21933 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21934 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21935 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
21936 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
21937 ac_header_preproc
=yes
21940 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
21941 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
21943 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
21944 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
21945 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
21946 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21947 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21948 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
21949 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
21951 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
21953 ## ------------------------------- ##
21954 ## Report this to www.asterisk.org ##
21955 ## ------------------------------- ##
21957 ) |
sed "s/^/$as_me: WARNING: /" >&2
21960 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21961 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21962 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 eval "$as_ac_Header=\$ac_header_preproc"
21967 ac_res
=`eval echo '${'$as_ac_Header'}'`
21968 { echo "$as_me:$LINENO: result: $ac_res" >&5
21969 echo "${ECHO_T}$ac_res" >&6; }
21972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21980 CPPFLAGS
="${saved_cppflags}"
21982 if test "xnbs.h" != "x" ; then
21983 if test "${ac_cv_header_nbs_h+set}" = set; then
21984 { echo "$as_me:$LINENO: checking for nbs.h" >&5
21985 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
21986 if test "${ac_cv_header_nbs_h+set}" = set; then
21987 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
21990 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
21992 # Is the header compilable?
21993 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
21994 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
21995 cat >conftest.
$ac_ext <<_ACEOF
21998 cat confdefs.h
>>conftest.
$ac_ext
21999 cat >>conftest.
$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22004 rm -f conftest.
$ac_objext
22005 if { (ac_try
="$ac_compile"
22006 case "(($ac_try" in
22007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_compile") 2>conftest.er1
22013 grep -v '^ *+' conftest.er1 >conftest.err
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } && {
22018 test -z "$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22020 } && test -s conftest.$ac_objext; then
22021 ac_header_compiler=yes
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ac_header_compiler=no
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22031 echo "${ECHO_T}$ac_header_compiler" >&6; }
22033 # Is the header present?
22034 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
22035 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
22036 cat >conftest.$ac_ext <<_ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22044 if { (ac_try="$ac_cpp conftest.$ac_ext"
22045 case "(($ac_try" in
22046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22047 *) ac_try_echo
=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22052 grep -v '^ *+' conftest.er1
>conftest.err
22054 cat conftest.err
>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } >/dev
/null
&& {
22057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22060 ac_header_preproc
=yes
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.
$ac_ext >&5
22065 ac_header_preproc
=no
22068 rm -f conftest.err conftest.
$ac_ext
22069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22070 echo "${ECHO_T}$ac_header_preproc" >&6; }
22072 # So? What about this header?
22073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22075 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22076 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
22078 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
22079 ac_header_preproc
=yes
22082 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
22083 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
22085 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
22087 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22089 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
22091 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
22093 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
22095 ## ------------------------------- ##
22096 ## Report this to www.asterisk.org ##
22097 ## ------------------------------- ##
22099 ) |
sed "s/^/$as_me: WARNING: /" >&2
22102 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22103 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22104 if test "${ac_cv_header_nbs_h+set}" = set; then
22105 echo $ECHO_N "(cached) $ECHO_C" >&6
22107 ac_cv_header_nbs_h
=$ac_header_preproc
22109 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22110 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22113 if test $ac_cv_header_nbs_h = yes; then
22122 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
22123 if test -n "${NBS_MANDATORY}" ;
22125 { echo "$as_me:$LINENO: ***" >&5
22126 echo "$as_me: ***" >&6;}
22127 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
22128 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
22129 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
22130 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
22131 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22132 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22141 cat >>confdefs.h
<<_ACEOF
22146 elif test -n "${NBS_MANDATORY}";
22148 { echo "$as_me:$LINENO: ***" >&5
22149 echo "$as_me: ***" >&6;}
22150 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
22151 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
22152 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22153 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22154 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22155 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22162 if test "${USE_NCURSES}" != "no"; then
22164 if test "x${NCURSES_DIR}" != "x"; then
22165 if test -d ${NCURSES_DIR}/lib
; then
22166 pbxlibdir
="-L${NCURSES_DIR}/lib"
22168 pbxlibdir
="-L${NCURSES_DIR}"
22171 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
22172 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
22173 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
22174 echo $ECHO_N "(cached) $ECHO_C" >&6
22176 ac_check_lib_save_LIBS
=$LIBS
22177 LIBS
="-lncurses ${pbxlibdir} $LIBS"
22178 cat >conftest.
$ac_ext <<_ACEOF
22181 cat confdefs.h
>>conftest.
$ac_ext
22182 cat >>conftest.
$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22185 /* Override any GCC internal prototype to avoid an error.
22186 Use char because int might match the return type of a GCC
22187 builtin and then its argument prototype would still apply. */
22200 rm -f conftest.
$ac_objext conftest
$ac_exeext
22201 if { (ac_try
="$ac_link"
22202 case "(($ac_try" in
22203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207 (eval "$ac_link") 2>conftest.er1
22209 grep -v '^ *+' conftest.er1 >conftest.err
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } && {
22214 test -z "$ac_c_werror_flag" ||
22215 test ! -s conftest.err
22216 } && test -s conftest$ac_exeext &&
22217 $as_test_x conftest$ac_exeext; then
22218 ac_cv_lib_ncurses_initscr=yes
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 ac_cv_lib_ncurses_initscr=no
22226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22227 conftest$ac_exeext conftest.$ac_ext
22228 LIBS=$ac_check_lib_save_LIBS
22230 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
22231 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
22232 if test $ac_cv_lib_ncurses_initscr = yes; then
22233 AST_NCURSES_FOUND=yes
22235 AST_NCURSES_FOUND=no
22239 if test "${AST_NCURSES_FOUND}" = "yes"; then
22240 NCURSES_LIB="-lncurses "
22241 NCURSES_HEADER_FOUND="1"
22242 if test "x${NCURSES_DIR}" != "x"; then
22243 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
22244 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
22245 saved_cppflags="${CPPFLAGS}"
22246 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
22247 if test "xcurses.h" != "x" ; then
22248 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" |
$as_tr_sh`
22249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22250 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22251 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22255 ac_res=`eval echo '${'$as_ac_Header'}'`
22256 { echo "$as_me:$LINENO: result: $ac_res" >&5
22257 echo "${ECHO_T}$ac_res" >&6; }
22259 # Is the header compilable?
22260 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
22261 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
22262 cat >conftest.$ac_ext <<_ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h. */
22268 $ac_includes_default
22269 #include <${NCURSES_DIR}/include/curses.h>
22271 rm -f conftest.$ac_objext
22272 if { (ac_try="$ac_compile"
22273 case "(($ac_try" in
22274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22275 *) ac_try_echo
=$ac_try;;
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_compile") 2>conftest.er1
22280 grep -v '^ *+' conftest.er1
>conftest.err
22282 cat conftest.err
>&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } && {
22285 test -z "$ac_c_werror_flag" ||
22286 test ! -s conftest.err
22287 } && test -s conftest.
$ac_objext; then
22288 ac_header_compiler
=yes
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.
$ac_ext >&5
22293 ac_header_compiler
=no
22296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22298 echo "${ECHO_T}$ac_header_compiler" >&6; }
22300 # Is the header present?
22301 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
22302 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
22303 cat >conftest.
$ac_ext <<_ACEOF
22306 cat confdefs.h
>>conftest.
$ac_ext
22307 cat >>conftest.
$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 #include <${NCURSES_DIR}/include/curses.h>
22311 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22312 case "(($ac_try" in
22313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22314 *) ac_try_echo=$ac_try;;
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22319 grep -v '^ *+' conftest.er1 >conftest.err
22321 cat conftest.err >&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } >/dev/null && {
22324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22325 test ! -s conftest.err
22327 ac_header_preproc=yes
22329 echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22332 ac_header_preproc=no
22335 rm -f conftest.err conftest.$ac_ext
22336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22337 echo "${ECHO_T}$ac_header_preproc" >&6; }
22339 # So? What about this header?
22340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22342 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22343 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22344 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
22345 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
22346 ac_header_preproc=yes
22349 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
22350 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
22351 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
22352 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
22353 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
22354 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
22355 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
22356 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22357 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
22358 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
22359 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
22360 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
22362 ## ------------------------------- ##
22363 ## Report this to www.asterisk.org ##
22364 ## ------------------------------- ##
22366 ) | sed "s/^/$as_me: WARNING: /" >&2
22369 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22370 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 eval "$as_ac_Header=\$ac_header_preproc"
22376 ac_res=`eval echo '${'$as_ac_Header'}'`
22377 { echo "$as_me:$LINENO: result: $ac_res" >&5
22378 echo "${ECHO_T}$ac_res" >&6; }
22381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22382 NCURSES_HEADER_FOUND=1
22384 NCURSES_HEADER_FOUND=0
22389 CPPFLAGS="${saved_cppflags}"
22391 if test "xcurses.h" != "x" ; then
22392 if test "${ac_cv_header_curses_h+set}" = set; then
22393 { echo "$as_me:$LINENO: checking for curses.h" >&5
22394 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22395 if test "${ac_cv_header_curses_h+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22399 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22401 # Is the header compilable?
22402 { echo "$as_me:$LINENO: checking curses.h usability" >&5
22403 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
22404 cat >conftest.$ac_ext <<_ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22410 $ac_includes_default
22411 #include <curses.h>
22413 rm -f conftest.$ac_objext
22414 if { (ac_try="$ac_compile"
22415 case "(($ac_try" in
22416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22417 *) ac_try_echo
=$ac_try;;
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420 (eval "$ac_compile") 2>conftest.er1
22422 grep -v '^ *+' conftest.er1
>conftest.err
22424 cat conftest.err
>&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } && {
22427 test -z "$ac_c_werror_flag" ||
22428 test ! -s conftest.err
22429 } && test -s conftest.
$ac_objext; then
22430 ac_header_compiler
=yes
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.
$ac_ext >&5
22435 ac_header_compiler
=no
22438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22440 echo "${ECHO_T}$ac_header_compiler" >&6; }
22442 # Is the header present?
22443 { echo "$as_me:$LINENO: checking curses.h presence" >&5
22444 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
22445 cat >conftest.
$ac_ext <<_ACEOF
22448 cat confdefs.h
>>conftest.
$ac_ext
22449 cat >>conftest.
$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22451 #include <curses.h>
22453 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22454 case "(($ac_try" in
22455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22461 grep -v '^ *+' conftest.er1 >conftest.err
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } >/dev/null && {
22466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22469 ac_header_preproc=yes
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22474 ac_header_preproc=no
22477 rm -f conftest.err conftest.$ac_ext
22478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22479 echo "${ECHO_T}$ac_header_preproc" >&6; }
22481 # So? What about this header?
22482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22484 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22485 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22486 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
22487 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
22488 ac_header_preproc=yes
22491 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
22492 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
22493 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
22494 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
22495 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
22496 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
22497 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
22498 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22499 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
22500 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
22501 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
22502 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
22504 ## ------------------------------- ##
22505 ## Report this to www.asterisk.org ##
22506 ## ------------------------------- ##
22508 ) | sed "s/^/$as_me: WARNING: /" >&2
22511 { echo "$as_me:$LINENO: checking for curses.h" >&5
22512 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22513 if test "${ac_cv_header_curses_h+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22516 ac_cv_header_curses_h=$ac_header_preproc
22518 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22519 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22522 if test $ac_cv_header_curses_h = yes; then
22523 NCURSES_HEADER_FOUND=1
22525 NCURSES_HEADER_FOUND=0
22531 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
22532 if test -n "${NCURSES_MANDATORY}" ;
22534 { echo "$as_me:$LINENO: ***" >&5
22535 echo "$as_me: ***" >&6;}
22536 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
22537 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
22538 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
22539 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
22540 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22541 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22550 cat >>confdefs.h <<_ACEOF
22551 #define HAVE_NCURSES 1
22555 elif test -n "${NCURSES_MANDATORY}";
22557 { echo "$as_me:$LINENO: ***" >&5
22558 echo "$as_me: ***" >&6;}
22559 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
22560 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
22561 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22562 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22563 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22564 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22571 if test "${USE_NETSNMP}" != "no"; then
22572 if test "x${NETSNMP_DIR}" != "x"; then
22573 if test -n "$ac_tool_prefix"; then
22574 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22575 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22578 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22579 echo $ECHO_N "(cached) $ECHO_C" >&6
22581 case $NETSNMP_CONFIG in
22583 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22587 for as_dir in ${NETSNMP_DIR}/bin
22590 test -z "$as_dir" && as_dir=.
22591 for ac_exec_ext in '' $ac_executable_extensions; do
22592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22593 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22604 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22605 if test -n "$NETSNMP_CONFIG"; then
22606 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22607 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22609 { echo "$as_me:$LINENO: result: no" >&5
22610 echo "${ECHO_T}no" >&6; }
22615 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22616 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22617 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22618 set dummy net-snmp-config; ac_word=$2
22619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22621 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22624 case $ac_pt_NETSNMP_CONFIG in
22626 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22630 for as_dir in ${NETSNMP_DIR}/bin
22633 test -z "$as_dir" && as_dir=.
22634 for ac_exec_ext in '' $ac_executable_extensions; do
22635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22636 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22647 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22648 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22649 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22650 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22652 { echo "$as_me:$LINENO: result: no" >&5
22653 echo "${ECHO_T}no" >&6; }
22656 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22657 NETSNMP_CONFIG="No"
22659 case $cross_compiling:$ac_tool_warned in
22661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22662 whose name does not start with the host triplet. If you think this
22663 configuration is useful to you, please write to autoconf@gnu.org." >&5
22664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22665 whose name does not start with the host triplet. If you think this
22666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22667 ac_tool_warned=yes ;;
22669 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22672 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22675 if test x"${NETSNMP_CONFIG}" = xNo; then
22676 { echo "$as_me:$LINENO: ***" >&5
22677 echo "$as_me: ***" >&6;}
22678 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
22679 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
22680 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
22681 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
22682 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22683 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22684 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22685 echo "$as_me: *** including --without-netsnmp" >&6;}
22689 if test -n "$ac_tool_prefix"; then
22690 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22691 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22694 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22695 echo $ECHO_N "(cached) $ECHO_C" >&6
22697 case $NETSNMP_CONFIG in
22699 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22703 for as_dir in $PATH
22706 test -z "$as_dir" && as_dir=.
22707 for ac_exec_ext in '' $ac_executable_extensions; do
22708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22709 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22720 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22721 if test -n "$NETSNMP_CONFIG"; then
22722 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22723 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22725 { echo "$as_me:$LINENO: result: no" >&5
22726 echo "${ECHO_T}no" >&6; }
22731 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22732 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22733 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22734 set dummy net-snmp-config; ac_word=$2
22735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22737 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22738 echo $ECHO_N "(cached) $ECHO_C" >&6
22740 case $ac_pt_NETSNMP_CONFIG in
22742 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22746 for as_dir in $PATH
22749 test -z "$as_dir" && as_dir=.
22750 for ac_exec_ext in '' $ac_executable_extensions; do
22751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22752 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22763 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22764 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22765 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22766 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22768 { echo "$as_me:$LINENO: result: no" >&5
22769 echo "${ECHO_T}no" >&6; }
22772 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22773 NETSNMP_CONFIG="No"
22775 case $cross_compiling:$ac_tool_warned in
22777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22778 whose name does not start with the host triplet. If you think this
22779 configuration is useful to you, please write to autoconf@gnu.org." >&5
22780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22781 whose name does not start with the host triplet. If you think this
22782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22783 ac_tool_warned=yes ;;
22785 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22788 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22793 if test x"${NETSNMP_CONFIG}" != xNo; then
22794 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
22796 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
22797 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
22798 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22801 ac_check_lib_save_LIBS=$LIBS
22802 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
22803 cat >conftest.$ac_ext <<_ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22810 /* Override any GCC internal prototype to avoid an error.
22811 Use char because int might match the return type of a GCC
22812 builtin and then its argument prototype would still apply. */
22816 char snmp_register_callback ();
22820 return snmp_register_callback ();
22825 rm -f conftest.$ac_objext conftest$ac_exeext
22826 if { (ac_try="$ac_link"
22827 case "(($ac_try" in
22828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22829 *) ac_try_echo
=$ac_try;;
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_link") 2>conftest.er1
22834 grep -v '^ *+' conftest.er1
>conftest.err
22836 cat conftest.err
>&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && {
22839 test -z "$ac_c_werror_flag" ||
22840 test ! -s conftest.err
22841 } && test -s conftest
$ac_exeext &&
22842 $as_test_x conftest
$ac_exeext; then
22843 ac_cv_lib_netsnmp_snmp_register_callback
=yes
22845 echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.
$ac_ext >&5
22848 ac_cv_lib_netsnmp_snmp_register_callback
=no
22851 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22852 conftest
$ac_exeext conftest.
$ac_ext
22853 LIBS
=$ac_check_lib_save_LIBS
22855 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
22856 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
22857 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
22859 cat >>confdefs.h
<<_ACEOF
22860 #define HAVE_NETSNMP 1
22866 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
22867 NETSNMP_LIB
="${NETSNMP_libs}"
22869 elif test -n "${NETSNMP_MANDATORY}";
22871 { echo "$as_me:$LINENO: ***" >&5
22872 echo "$as_me: ***" >&6;}
22873 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22874 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22875 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22876 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22877 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22878 echo "$as_me: *** including --without-netsnmp" >&6;}
22881 elif test -n "${NETSNMP_MANDATORY}";
22883 { echo "$as_me:$LINENO: ***" >&5
22884 echo "$as_me: ***" >&6;}
22885 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22886 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22887 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22888 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22889 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22890 echo "$as_me: *** including --without-netsnmp" >&6;}
22895 if test "${USE_NEWT}" != "no"; then
22897 if test "x${NEWT_DIR}" != "x"; then
22898 if test -d ${NEWT_DIR}/lib
; then
22899 pbxlibdir
="-L${NEWT_DIR}/lib"
22901 pbxlibdir
="-L${NEWT_DIR}"
22904 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
22905 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
22906 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
22907 echo $ECHO_N "(cached) $ECHO_C" >&6
22909 ac_check_lib_save_LIBS
=$LIBS
22910 LIBS
="-lnewt ${pbxlibdir} $LIBS"
22911 cat >conftest.
$ac_ext <<_ACEOF
22914 cat confdefs.h
>>conftest.
$ac_ext
22915 cat >>conftest.
$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22918 /* Override any GCC internal prototype to avoid an error.
22919 Use char because int might match the return type of a GCC
22920 builtin and then its argument prototype would still apply. */
22928 return newtBell ();
22933 rm -f conftest.
$ac_objext conftest
$ac_exeext
22934 if { (ac_try
="$ac_link"
22935 case "(($ac_try" in
22936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_link") 2>conftest.er1
22942 grep -v '^ *+' conftest.er1 >conftest.err
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } && {
22947 test -z "$ac_c_werror_flag" ||
22948 test ! -s conftest.err
22949 } && test -s conftest$ac_exeext &&
22950 $as_test_x conftest$ac_exeext; then
22951 ac_cv_lib_newt_newtBell=yes
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956 ac_cv_lib_newt_newtBell=no
22959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22960 conftest$ac_exeext conftest.$ac_ext
22961 LIBS=$ac_check_lib_save_LIBS
22963 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
22964 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
22965 if test $ac_cv_lib_newt_newtBell = yes; then
22972 if test "${AST_NEWT_FOUND}" = "yes"; then
22974 NEWT_HEADER_FOUND="1"
22975 if test "x${NEWT_DIR}" != "x"; then
22976 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
22977 NEWT_INCLUDE="-I${NEWT_DIR}/include"
22978 saved_cppflags="${CPPFLAGS}"
22979 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
22980 if test "xnewt.h" != "x" ; then
22981 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" |
$as_tr_sh`
22982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22983 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
22984 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
22985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 ac_res=`eval echo '${'$as_ac_Header'}'`
22989 { echo "$as_me:$LINENO: result: $ac_res" >&5
22990 echo "${ECHO_T}$ac_res" >&6; }
22992 # Is the header compilable?
22993 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
22994 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
22995 cat >conftest.$ac_ext <<_ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h. */
23001 $ac_includes_default
23002 #include <${NEWT_DIR}/include/newt.h>
23004 rm -f conftest.$ac_objext
23005 if { (ac_try="$ac_compile"
23006 case "(($ac_try" in
23007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23008 *) ac_try_echo
=$ac_try;;
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_compile") 2>conftest.er1
23013 grep -v '^ *+' conftest.er1
>conftest.err
23015 cat conftest.err
>&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && {
23018 test -z "$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 } && test -s conftest.
$ac_objext; then
23021 ac_header_compiler
=yes
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.
$ac_ext >&5
23026 ac_header_compiler
=no
23029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23031 echo "${ECHO_T}$ac_header_compiler" >&6; }
23033 # Is the header present?
23034 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
23035 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
23036 cat >conftest.
$ac_ext <<_ACEOF
23039 cat confdefs.h
>>conftest.
$ac_ext
23040 cat >>conftest.
$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 #include <${NEWT_DIR}/include/newt.h>
23044 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23045 case "(($ac_try" in
23046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23047 *) ac_try_echo=$ac_try;;
23049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23052 grep -v '^ *+' conftest.er1 >conftest.err
23054 cat conftest.err >&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); } >/dev/null && {
23057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23058 test ! -s conftest.err
23060 ac_header_preproc=yes
23062 echo "$as_me: failed program was:" >&5
23063 sed 's/^/| /' conftest.$ac_ext >&5
23065 ac_header_preproc=no
23068 rm -f conftest.err conftest.$ac_ext
23069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23070 echo "${ECHO_T}$ac_header_preproc" >&6; }
23072 # So? What about this header?
23073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23075 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23076 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23077 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
23078 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
23079 ac_header_preproc=yes
23082 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
23083 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
23084 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
23085 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
23086 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
23087 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
23088 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
23089 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23090 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
23091 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
23092 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
23093 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
23095 ## ------------------------------- ##
23096 ## Report this to www.asterisk.org ##
23097 ## ------------------------------- ##
23099 ) | sed "s/^/$as_me: WARNING: /" >&2
23102 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23103 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23107 eval "$as_ac_Header=\$ac_header_preproc"
23109 ac_res=`eval echo '${'$as_ac_Header'}'`
23110 { echo "$as_me:$LINENO: result: $ac_res" >&5
23111 echo "${ECHO_T}$ac_res" >&6; }
23114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23115 NEWT_HEADER_FOUND=1
23117 NEWT_HEADER_FOUND=0
23122 CPPFLAGS="${saved_cppflags}"
23124 if test "xnewt.h" != "x" ; then
23125 if test "${ac_cv_header_newt_h+set}" = set; then
23126 { echo "$as_me:$LINENO: checking for newt.h" >&5
23127 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23128 if test "${ac_cv_header_newt_h+set}" = set; then
23129 echo $ECHO_N "(cached) $ECHO_C" >&6
23131 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23132 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23134 # Is the header compilable?
23135 { echo "$as_me:$LINENO: checking newt.h usability" >&5
23136 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
23137 cat >conftest.$ac_ext <<_ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 $ac_includes_default
23146 rm -f conftest.$ac_objext
23147 if { (ac_try="$ac_compile"
23148 case "(($ac_try" in
23149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23150 *) ac_try_echo
=$ac_try;;
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_compile") 2>conftest.er1
23155 grep -v '^ *+' conftest.er1
>conftest.err
23157 cat conftest.err
>&5
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); } && {
23160 test -z "$ac_c_werror_flag" ||
23161 test ! -s conftest.err
23162 } && test -s conftest.
$ac_objext; then
23163 ac_header_compiler
=yes
23165 echo "$as_me: failed program was:" >&5
23166 sed 's/^/| /' conftest.
$ac_ext >&5
23168 ac_header_compiler
=no
23171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23173 echo "${ECHO_T}$ac_header_compiler" >&6; }
23175 # Is the header present?
23176 { echo "$as_me:$LINENO: checking newt.h presence" >&5
23177 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
23178 cat >conftest.
$ac_ext <<_ACEOF
23181 cat confdefs.h
>>conftest.
$ac_ext
23182 cat >>conftest.
$ac_ext <<_ACEOF
23183 /* end confdefs.h. */
23186 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23187 case "(($ac_try" in
23188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23189 *) ac_try_echo=$ac_try;;
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23194 grep -v '^ *+' conftest.er1 >conftest.err
23196 cat conftest.err >&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } >/dev/null && {
23199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23200 test ! -s conftest.err
23202 ac_header_preproc=yes
23204 echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23207 ac_header_preproc=no
23210 rm -f conftest.err conftest.$ac_ext
23211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23212 echo "${ECHO_T}$ac_header_preproc" >&6; }
23214 # So? What about this header?
23215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23217 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23218 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23219 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
23220 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
23221 ac_header_preproc=yes
23224 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
23225 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
23226 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
23227 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
23228 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
23229 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
23230 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
23231 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23232 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
23233 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
23234 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
23235 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
23237 ## ------------------------------- ##
23238 ## Report this to www.asterisk.org ##
23239 ## ------------------------------- ##
23241 ) | sed "s/^/$as_me: WARNING: /" >&2
23244 { echo "$as_me:$LINENO: checking for newt.h" >&5
23245 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23246 if test "${ac_cv_header_newt_h+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
23249 ac_cv_header_newt_h=$ac_header_preproc
23251 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23252 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23255 if test $ac_cv_header_newt_h = yes; then
23256 NEWT_HEADER_FOUND=1
23258 NEWT_HEADER_FOUND=0
23264 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
23265 if test -n "${NEWT_MANDATORY}" ;
23267 { echo "$as_me:$LINENO: ***" >&5
23268 echo "$as_me: ***" >&6;}
23269 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
23270 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
23271 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
23272 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
23273 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23274 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23283 cat >>confdefs.h <<_ACEOF
23284 #define HAVE_NEWT 1
23288 elif test -n "${NEWT_MANDATORY}";
23290 { echo "$as_me:$LINENO: ***" >&5
23291 echo "$as_me: ***" >&6;}
23292 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
23293 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
23294 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23295 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23296 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23297 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23304 if test "${USE_UNIXODBC}" != "no"; then
23306 if test "x${UNIXODBC_DIR}" != "x"; then
23307 if test -d ${UNIXODBC_DIR}/lib; then
23308 pbxlibdir="-L${UNIXODBC_DIR}/lib"
23310 pbxlibdir="-L${UNIXODBC_DIR}"
23313 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
23314 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
23315 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
23318 ac_check_lib_save_LIBS=$LIBS
23319 LIBS="-lodbc ${pbxlibdir} $LIBS"
23320 cat >conftest.$ac_ext <<_ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23327 /* Override any GCC internal prototype to avoid an error.
23328 Use char because int might match the return type of a GCC
23329 builtin and then its argument prototype would still apply. */
23333 char SQLConnect ();
23337 return SQLConnect ();
23342 rm -f conftest.$ac_objext conftest$ac_exeext
23343 if { (ac_try="$ac_link"
23344 case "(($ac_try" in
23345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23346 *) ac_try_echo
=$ac_try;;
23348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23349 (eval "$ac_link") 2>conftest.er1
23351 grep -v '^ *+' conftest.er1
>conftest.err
23353 cat conftest.err
>&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); } && {
23356 test -z "$ac_c_werror_flag" ||
23357 test ! -s conftest.err
23358 } && test -s conftest
$ac_exeext &&
23359 $as_test_x conftest
$ac_exeext; then
23360 ac_cv_lib_odbc_SQLConnect
=yes
23362 echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.
$ac_ext >&5
23365 ac_cv_lib_odbc_SQLConnect
=no
23368 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23369 conftest
$ac_exeext conftest.
$ac_ext
23370 LIBS
=$ac_check_lib_save_LIBS
23372 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
23373 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
23374 if test $ac_cv_lib_odbc_SQLConnect = yes; then
23375 AST_UNIXODBC_FOUND
=yes
23377 AST_UNIXODBC_FOUND
=no
23381 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
23382 UNIXODBC_LIB
="-lodbc "
23383 UNIXODBC_HEADER_FOUND
="1"
23384 if test "x${UNIXODBC_DIR}" != "x"; then
23385 UNIXODBC_LIB
="${pbxlibdir} ${UNIXODBC_LIB}"
23386 UNIXODBC_INCLUDE
="-I${UNIXODBC_DIR}/include"
23387 saved_cppflags
="${CPPFLAGS}"
23388 CPPFLAGS
="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
23389 if test "xsql.h" != "x" ; then
23390 as_ac_Header
=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
23391 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23392 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23393 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23394 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23397 ac_res
=`eval echo '${'$as_ac_Header'}'`
23398 { echo "$as_me:$LINENO: result: $ac_res" >&5
23399 echo "${ECHO_T}$ac_res" >&6; }
23401 # Is the header compilable?
23402 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
23403 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
23404 cat >conftest.
$ac_ext <<_ACEOF
23407 cat confdefs.h
>>conftest.
$ac_ext
23408 cat >>conftest.
$ac_ext <<_ACEOF
23409 /* end confdefs.h. */
23410 $ac_includes_default
23411 #include <${UNIXODBC_DIR}/include/sql.h>
23413 rm -f conftest.
$ac_objext
23414 if { (ac_try
="$ac_compile"
23415 case "(($ac_try" in
23416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23417 *) ac_try_echo=$ac_try;;
23419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420 (eval "$ac_compile") 2>conftest.er1
23422 grep -v '^ *+' conftest.er1 >conftest.err
23424 cat conftest.err >&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); } && {
23427 test -z "$ac_c_werror_flag" ||
23428 test ! -s conftest.err
23429 } && test -s conftest.$ac_objext; then
23430 ac_header_compiler=yes
23432 echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23435 ac_header_compiler=no
23438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23440 echo "${ECHO_T}$ac_header_compiler" >&6; }
23442 # Is the header present?
23443 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
23444 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
23445 cat >conftest.$ac_ext <<_ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h. */
23451 #include <${UNIXODBC_DIR}/include/sql.h>
23453 if { (ac_try="$ac_cpp conftest.$ac_ext"
23454 case "(($ac_try" in
23455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23456 *) ac_try_echo
=$ac_try;;
23458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23461 grep -v '^ *+' conftest.er1
>conftest.err
23463 cat conftest.err
>&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); } >/dev
/null
&& {
23466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23467 test ! -s conftest.err
23469 ac_header_preproc
=yes
23471 echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.
$ac_ext >&5
23474 ac_header_preproc
=no
23477 rm -f conftest.err conftest.
$ac_ext
23478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23479 echo "${ECHO_T}$ac_header_preproc" >&6; }
23481 # So? What about this header?
23482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23484 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23485 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23486 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
23487 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
23488 ac_header_preproc
=yes
23491 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
23492 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
23493 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
23494 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
23495 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
23496 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
23497 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
23498 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23499 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
23500 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
23501 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
23502 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
23504 ## ------------------------------- ##
23505 ## Report this to www.asterisk.org ##
23506 ## ------------------------------- ##
23508 ) |
sed "s/^/$as_me: WARNING: /" >&2
23511 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23512 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23513 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23514 echo $ECHO_N "(cached) $ECHO_C" >&6
23516 eval "$as_ac_Header=\$ac_header_preproc"
23518 ac_res
=`eval echo '${'$as_ac_Header'}'`
23519 { echo "$as_me:$LINENO: result: $ac_res" >&5
23520 echo "${ECHO_T}$ac_res" >&6; }
23523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23524 UNIXODBC_HEADER_FOUND
=1
23526 UNIXODBC_HEADER_FOUND
=0
23531 CPPFLAGS
="${saved_cppflags}"
23533 if test "xsql.h" != "x" ; then
23534 if test "${ac_cv_header_sql_h+set}" = set; then
23535 { echo "$as_me:$LINENO: checking for sql.h" >&5
23536 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23537 if test "${ac_cv_header_sql_h+set}" = set; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23540 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23541 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23543 # Is the header compilable?
23544 { echo "$as_me:$LINENO: checking sql.h usability" >&5
23545 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
23546 cat >conftest.
$ac_ext <<_ACEOF
23549 cat confdefs.h
>>conftest.
$ac_ext
23550 cat >>conftest.
$ac_ext <<_ACEOF
23551 /* end confdefs.h. */
23552 $ac_includes_default
23555 rm -f conftest.
$ac_objext
23556 if { (ac_try
="$ac_compile"
23557 case "(($ac_try" in
23558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23559 *) ac_try_echo=$ac_try;;
23561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23562 (eval "$ac_compile") 2>conftest.er1
23564 grep -v '^ *+' conftest.er1 >conftest.err
23566 cat conftest.err >&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } && {
23569 test -z "$ac_c_werror_flag" ||
23570 test ! -s conftest.err
23571 } && test -s conftest.$ac_objext; then
23572 ac_header_compiler=yes
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23577 ac_header_compiler=no
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23582 echo "${ECHO_T}$ac_header_compiler" >&6; }
23584 # Is the header present?
23585 { echo "$as_me:$LINENO: checking sql.h presence" >&5
23586 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
23587 cat >conftest.$ac_ext <<_ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23595 if { (ac_try="$ac_cpp conftest.$ac_ext"
23596 case "(($ac_try" in
23597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23598 *) ac_try_echo
=$ac_try;;
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23603 grep -v '^ *+' conftest.er1
>conftest.err
23605 cat conftest.err
>&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } >/dev
/null
&& {
23608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23609 test ! -s conftest.err
23611 ac_header_preproc
=yes
23613 echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.
$ac_ext >&5
23616 ac_header_preproc
=no
23619 rm -f conftest.err conftest.
$ac_ext
23620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23621 echo "${ECHO_T}$ac_header_preproc" >&6; }
23623 # So? What about this header?
23624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23626 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23627 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23628 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
23629 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
23630 ac_header_preproc
=yes
23633 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
23634 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
23635 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
23636 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
23637 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
23638 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
23639 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
23640 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23641 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
23642 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
23643 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
23644 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
23646 ## ------------------------------- ##
23647 ## Report this to www.asterisk.org ##
23648 ## ------------------------------- ##
23650 ) |
sed "s/^/$as_me: WARNING: /" >&2
23653 { echo "$as_me:$LINENO: checking for sql.h" >&5
23654 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23655 if test "${ac_cv_header_sql_h+set}" = set; then
23656 echo $ECHO_N "(cached) $ECHO_C" >&6
23658 ac_cv_header_sql_h
=$ac_header_preproc
23660 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23661 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23664 if test $ac_cv_header_sql_h = yes; then
23665 UNIXODBC_HEADER_FOUND
=1
23667 UNIXODBC_HEADER_FOUND
=0
23673 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
23674 if test -n "${UNIXODBC_MANDATORY}" ;
23676 { echo "$as_me:$LINENO: ***" >&5
23677 echo "$as_me: ***" >&6;}
23678 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
23679 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
23680 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
23681 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
23682 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23683 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23687 UNIXODBC_INCLUDE
=""
23692 cat >>confdefs.h
<<_ACEOF
23693 #define HAVE_UNIXODBC 1
23697 elif test -n "${UNIXODBC_MANDATORY}";
23699 { echo "$as_me:$LINENO: ***" >&5
23700 echo "$as_me: ***" >&6;}
23701 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
23702 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
23703 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23704 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23705 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23706 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23713 if test "${USE_OGG}" != "no"; then
23715 if test "x${OGG_DIR}" != "x"; then
23716 if test -d ${OGG_DIR}/lib
; then
23717 pbxlibdir
="-L${OGG_DIR}/lib"
23719 pbxlibdir
="-L${OGG_DIR}"
23722 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
23723 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
23724 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23727 ac_check_lib_save_LIBS
=$LIBS
23728 LIBS
="-logg ${pbxlibdir} $LIBS"
23729 cat >conftest.
$ac_ext <<_ACEOF
23732 cat confdefs.h
>>conftest.
$ac_ext
23733 cat >>conftest.
$ac_ext <<_ACEOF
23734 /* end confdefs.h. */
23736 /* Override any GCC internal prototype to avoid an error.
23737 Use char because int might match the return type of a GCC
23738 builtin and then its argument prototype would still apply. */
23742 char ogg_sync_init ();
23746 return ogg_sync_init ();
23751 rm -f conftest.
$ac_objext conftest
$ac_exeext
23752 if { (ac_try
="$ac_link"
23753 case "(($ac_try" in
23754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23755 *) ac_try_echo=$ac_try;;
23757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23758 (eval "$ac_link") 2>conftest.er1
23760 grep -v '^ *+' conftest.er1 >conftest.err
23762 cat conftest.err >&5
23763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 (exit $ac_status); } && {
23765 test -z "$ac_c_werror_flag" ||
23766 test ! -s conftest.err
23767 } && test -s conftest$ac_exeext &&
23768 $as_test_x conftest$ac_exeext; then
23769 ac_cv_lib_ogg_ogg_sync_init=yes
23771 echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23774 ac_cv_lib_ogg_ogg_sync_init=no
23777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23778 conftest$ac_exeext conftest.$ac_ext
23779 LIBS=$ac_check_lib_save_LIBS
23781 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
23782 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
23783 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
23790 if test "${AST_OGG_FOUND}" = "yes"; then
23792 OGG_HEADER_FOUND="1"
23793 if test "x${OGG_DIR}" != "x"; then
23794 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
23795 OGG_INCLUDE="-I${OGG_DIR}/include"
23796 saved_cppflags="${CPPFLAGS}"
23797 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
23798 if test "x" != "x" ; then
23799 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" |
$as_tr_sh`
23800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23801 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23802 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 ac_res=`eval echo '${'$as_ac_Header'}'`
23807 { echo "$as_me:$LINENO: result: $ac_res" >&5
23808 echo "${ECHO_T}$ac_res" >&6; }
23810 # Is the header compilable?
23811 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
23812 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
23813 cat >conftest.$ac_ext <<_ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h. */
23819 $ac_includes_default
23820 #include <${OGG_DIR}/include/>
23822 rm -f conftest.$ac_objext
23823 if { (ac_try="$ac_compile"
23824 case "(($ac_try" in
23825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23826 *) ac_try_echo
=$ac_try;;
23828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23829 (eval "$ac_compile") 2>conftest.er1
23831 grep -v '^ *+' conftest.er1
>conftest.err
23833 cat conftest.err
>&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } && {
23836 test -z "$ac_c_werror_flag" ||
23837 test ! -s conftest.err
23838 } && test -s conftest.
$ac_objext; then
23839 ac_header_compiler
=yes
23841 echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.
$ac_ext >&5
23844 ac_header_compiler
=no
23847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23849 echo "${ECHO_T}$ac_header_compiler" >&6; }
23851 # Is the header present?
23852 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
23853 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
23854 cat >conftest.
$ac_ext <<_ACEOF
23857 cat confdefs.h
>>conftest.
$ac_ext
23858 cat >>conftest.
$ac_ext <<_ACEOF
23859 /* end confdefs.h. */
23860 #include <${OGG_DIR}/include/>
23862 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23863 case "(($ac_try" in
23864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23870 grep -v '^ *+' conftest.er1 >conftest.err
23872 cat conftest.err >&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); } >/dev/null && {
23875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23876 test ! -s conftest.err
23878 ac_header_preproc=yes
23880 echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23883 ac_header_preproc=no
23886 rm -f conftest.err conftest.$ac_ext
23887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23888 echo "${ECHO_T}$ac_header_preproc" >&6; }
23890 # So? What about this header?
23891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23893 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
23894 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
23895 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
23896 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
23897 ac_header_preproc=yes
23900 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
23901 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
23902 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
23903 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
23904 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
23905 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
23906 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
23907 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
23908 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
23909 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
23910 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
23911 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
23913 ## ------------------------------- ##
23914 ## Report this to www.asterisk.org ##
23915 ## ------------------------------- ##
23917 ) | sed "s/^/$as_me: WARNING: /" >&2
23920 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23921 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23923 echo $ECHO_N "(cached) $ECHO_C" >&6
23925 eval "$as_ac_Header=\$ac_header_preproc"
23927 ac_res=`eval echo '${'$as_ac_Header'}'`
23928 { echo "$as_me:$LINENO: result: $ac_res" >&5
23929 echo "${ECHO_T}$ac_res" >&6; }
23932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23940 CPPFLAGS="${saved_cppflags}"
23942 if test "x" != "x" ; then
23943 if test "${ac_cv_header_+set}" = set; then
23944 { echo "$as_me:$LINENO: checking for " >&5
23945 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23946 if test "${ac_cv_header_+set}" = set; then
23947 echo $ECHO_N "(cached) $ECHO_C" >&6
23949 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23950 echo "${ECHO_T}$ac_cv_header_" >&6; }
23952 # Is the header compilable?
23953 { echo "$as_me:$LINENO: checking usability" >&5
23954 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23955 cat >conftest.$ac_ext <<_ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h. */
23961 $ac_includes_default
23964 rm -f conftest.$ac_objext
23965 if { (ac_try="$ac_compile"
23966 case "(($ac_try" in
23967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23968 *) ac_try_echo
=$ac_try;;
23970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23971 (eval "$ac_compile") 2>conftest.er1
23973 grep -v '^ *+' conftest.er1
>conftest.err
23975 cat conftest.err
>&5
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); } && {
23978 test -z "$ac_c_werror_flag" ||
23979 test ! -s conftest.err
23980 } && test -s conftest.
$ac_objext; then
23981 ac_header_compiler
=yes
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.
$ac_ext >&5
23986 ac_header_compiler
=no
23989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23991 echo "${ECHO_T}$ac_header_compiler" >&6; }
23993 # Is the header present?
23994 { echo "$as_me:$LINENO: checking presence" >&5
23995 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23996 cat >conftest.
$ac_ext <<_ACEOF
23999 cat confdefs.h
>>conftest.
$ac_ext
24000 cat >>conftest.
$ac_ext <<_ACEOF
24001 /* end confdefs.h. */
24004 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24005 case "(($ac_try" in
24006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24007 *) ac_try_echo=$ac_try;;
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24012 grep -v '^ *+' conftest.er1 >conftest.err
24014 cat conftest.err >&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); } >/dev/null && {
24017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24018 test ! -s conftest.err
24020 ac_header_preproc=yes
24022 echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24025 ac_header_preproc=no
24028 rm -f conftest.err conftest.$ac_ext
24029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24030 echo "${ECHO_T}$ac_header_preproc" >&6; }
24032 # So? What about this header?
24033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24035 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24036 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24037 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24038 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24039 ac_header_preproc=yes
24042 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24043 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24044 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24045 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24046 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24047 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24048 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24049 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24050 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24051 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24052 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24053 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24055 ## ------------------------------- ##
24056 ## Report this to www.asterisk.org ##
24057 ## ------------------------------- ##
24059 ) | sed "s/^/$as_me: WARNING: /" >&2
24062 { echo "$as_me:$LINENO: checking for " >&5
24063 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24064 if test "${ac_cv_header_+set}" = set; then
24065 echo $ECHO_N "(cached) $ECHO_C" >&6
24067 ac_cv_header_=$ac_header_preproc
24069 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24070 echo "${ECHO_T}$ac_cv_header_" >&6; }
24073 if test $ac_cv_header_ = yes; then
24082 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
24083 if test -n "${OGG_MANDATORY}" ;
24085 { echo "$as_me:$LINENO: ***" >&5
24086 echo "$as_me: ***" >&6;}
24087 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
24088 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
24089 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
24090 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
24091 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24092 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24101 cat >>confdefs.h <<_ACEOF
24106 elif test -n "${OGG_MANDATORY}";
24108 { echo "$as_me:$LINENO: ***" >&5
24109 echo "$as_me: ***" >&6;}
24110 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
24111 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
24112 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24113 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24114 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24115 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24121 if test "${USE_OSS}" != "no"; then
24123 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24124 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24125 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24126 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24129 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24130 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24132 # Is the header compilable?
24133 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
24134 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
24135 cat >conftest.$ac_ext <<_ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24141 $ac_includes_default
24142 #include <linux/soundcard.h>
24144 rm -f conftest.$ac_objext
24145 if { (ac_try="$ac_compile"
24146 case "(($ac_try" in
24147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24148 *) ac_try_echo
=$ac_try;;
24150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24151 (eval "$ac_compile") 2>conftest.er1
24153 grep -v '^ *+' conftest.er1
>conftest.err
24155 cat conftest.err
>&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } && {
24158 test -z "$ac_c_werror_flag" ||
24159 test ! -s conftest.err
24160 } && test -s conftest.
$ac_objext; then
24161 ac_header_compiler
=yes
24163 echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.
$ac_ext >&5
24166 ac_header_compiler
=no
24169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24171 echo "${ECHO_T}$ac_header_compiler" >&6; }
24173 # Is the header present?
24174 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
24175 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
24176 cat >conftest.
$ac_ext <<_ACEOF
24179 cat confdefs.h
>>conftest.
$ac_ext
24180 cat >>conftest.
$ac_ext <<_ACEOF
24181 /* end confdefs.h. */
24182 #include <linux/soundcard.h>
24184 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24185 case "(($ac_try" in
24186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24187 *) ac_try_echo=$ac_try;;
24189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24192 grep -v '^ *+' conftest.er1 >conftest.err
24194 cat conftest.err >&5
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); } >/dev/null && {
24197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24198 test ! -s conftest.err
24200 ac_header_preproc=yes
24202 echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24205 ac_header_preproc=no
24208 rm -f conftest.err conftest.$ac_ext
24209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24210 echo "${ECHO_T}$ac_header_preproc" >&6; }
24212 # So? What about this header?
24213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24215 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24216 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24217 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
24218 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
24219 ac_header_preproc=yes
24222 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
24223 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
24224 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
24225 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
24226 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
24227 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24229 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
24231 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
24232 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
24233 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
24235 ## ------------------------------- ##
24236 ## Report this to www.asterisk.org ##
24237 ## ------------------------------- ##
24239 ) | sed "s/^/$as_me: WARNING: /" >&2
24242 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24243 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24244 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24245 echo $ECHO_N "(cached) $ECHO_C" >&6
24247 ac_cv_header_linux_soundcard_h=$ac_header_preproc
24249 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24250 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24253 if test $ac_cv_header_linux_soundcard_h = yes; then
24257 cat >>confdefs.h <<_ACEOF
24265 if test "$PBX_OSS" = "0"; then
24266 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24267 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24268 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24269 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24270 echo $ECHO_N "(cached) $ECHO_C" >&6
24272 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24273 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24275 # Is the header compilable?
24276 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
24277 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
24278 cat >conftest.$ac_ext <<_ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h. */
24284 $ac_includes_default
24285 #include <sys/soundcard.h>
24287 rm -f conftest.$ac_objext
24288 if { (ac_try="$ac_compile"
24289 case "(($ac_try" in
24290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24291 *) ac_try_echo
=$ac_try;;
24293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24294 (eval "$ac_compile") 2>conftest.er1
24296 grep -v '^ *+' conftest.er1
>conftest.err
24298 cat conftest.err
>&5
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); } && {
24301 test -z "$ac_c_werror_flag" ||
24302 test ! -s conftest.err
24303 } && test -s conftest.
$ac_objext; then
24304 ac_header_compiler
=yes
24306 echo "$as_me: failed program was:" >&5
24307 sed 's/^/| /' conftest.
$ac_ext >&5
24309 ac_header_compiler
=no
24312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24314 echo "${ECHO_T}$ac_header_compiler" >&6; }
24316 # Is the header present?
24317 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
24318 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
24319 cat >conftest.
$ac_ext <<_ACEOF
24322 cat confdefs.h
>>conftest.
$ac_ext
24323 cat >>conftest.
$ac_ext <<_ACEOF
24324 /* end confdefs.h. */
24325 #include <sys/soundcard.h>
24327 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24328 case "(($ac_try" in
24329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24330 *) ac_try_echo=$ac_try;;
24332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24335 grep -v '^ *+' conftest.er1 >conftest.err
24337 cat conftest.err >&5
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); } >/dev/null && {
24340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24341 test ! -s conftest.err
24343 ac_header_preproc=yes
24345 echo "$as_me: failed program was:" >&5
24346 sed 's/^/| /' conftest.$ac_ext >&5
24348 ac_header_preproc=no
24351 rm -f conftest.err conftest.$ac_ext
24352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24353 echo "${ECHO_T}$ac_header_preproc" >&6; }
24355 # So? What about this header?
24356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24358 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24359 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24360 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
24361 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
24362 ac_header_preproc=yes
24365 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
24366 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
24367 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
24368 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
24369 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
24370 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
24371 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24372 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24373 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
24374 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
24375 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
24376 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
24378 ## ------------------------------- ##
24379 ## Report this to www.asterisk.org ##
24380 ## ------------------------------- ##
24382 ) | sed "s/^/$as_me: WARNING: /" >&2
24385 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24386 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24387 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 ac_cv_header_sys_soundcard_h=$ac_header_preproc
24392 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24393 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24396 if test $ac_cv_header_sys_soundcard_h = yes; then
24400 cat >>confdefs.h <<_ACEOF
24409 if test "$PBX_OSS" = "0"; then
24411 if test "${USE_OSS}" != "no"; then
24413 if test "x${OSS_DIR}" != "x"; then
24414 if test -d ${OSS_DIR}/lib; then
24415 pbxlibdir="-L${OSS_DIR}/lib"
24417 pbxlibdir="-L${OSS_DIR}"
24420 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
24421 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
24422 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
24423 echo $ECHO_N "(cached) $ECHO_C" >&6
24425 ac_check_lib_save_LIBS=$LIBS
24426 LIBS="-lossaudio ${pbxlibdir} $LIBS"
24427 cat >conftest.$ac_ext <<_ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h. */
24434 /* Override any GCC internal prototype to avoid an error.
24435 Use char because int might match the return type of a GCC
24436 builtin and then its argument prototype would still apply. */
24440 char oss_ioctl_mixer ();
24444 return oss_ioctl_mixer ();
24449 rm -f conftest.$ac_objext conftest$ac_exeext
24450 if { (ac_try="$ac_link"
24451 case "(($ac_try" in
24452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24453 *) ac_try_echo
=$ac_try;;
24455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24456 (eval "$ac_link") 2>conftest.er1
24458 grep -v '^ *+' conftest.er1
>conftest.err
24460 cat conftest.err
>&5
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); } && {
24463 test -z "$ac_c_werror_flag" ||
24464 test ! -s conftest.err
24465 } && test -s conftest
$ac_exeext &&
24466 $as_test_x conftest
$ac_exeext; then
24467 ac_cv_lib_ossaudio_oss_ioctl_mixer
=yes
24469 echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.
$ac_ext >&5
24472 ac_cv_lib_ossaudio_oss_ioctl_mixer
=no
24475 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24476 conftest
$ac_exeext conftest.
$ac_ext
24477 LIBS
=$ac_check_lib_save_LIBS
24479 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
24480 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
24481 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
24488 if test "${AST_OSS_FOUND}" = "yes"; then
24489 OSS_LIB
="-lossaudio "
24490 OSS_HEADER_FOUND
="1"
24491 if test "x${OSS_DIR}" != "x"; then
24492 OSS_LIB
="${pbxlibdir} ${OSS_LIB}"
24493 OSS_INCLUDE
="-I${OSS_DIR}/include"
24494 saved_cppflags
="${CPPFLAGS}"
24495 CPPFLAGS
="${CPPFLAGS} -I${OSS_DIR}/include"
24496 if test "xsoundcard.h" != "x" ; then
24497 as_ac_Header
=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
24498 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24499 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24500 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24501 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24502 echo $ECHO_N "(cached) $ECHO_C" >&6
24504 ac_res
=`eval echo '${'$as_ac_Header'}'`
24505 { echo "$as_me:$LINENO: result: $ac_res" >&5
24506 echo "${ECHO_T}$ac_res" >&6; }
24508 # Is the header compilable?
24509 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
24510 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
24511 cat >conftest.
$ac_ext <<_ACEOF
24514 cat confdefs.h
>>conftest.
$ac_ext
24515 cat >>conftest.
$ac_ext <<_ACEOF
24516 /* end confdefs.h. */
24517 $ac_includes_default
24518 #include <${OSS_DIR}/include/soundcard.h>
24520 rm -f conftest.
$ac_objext
24521 if { (ac_try
="$ac_compile"
24522 case "(($ac_try" in
24523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24524 *) ac_try_echo=$ac_try;;
24526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24527 (eval "$ac_compile") 2>conftest.er1
24529 grep -v '^ *+' conftest.er1 >conftest.err
24531 cat conftest.err >&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } && {
24534 test -z "$ac_c_werror_flag" ||
24535 test ! -s conftest.err
24536 } && test -s conftest.$ac_objext; then
24537 ac_header_compiler=yes
24539 echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24542 ac_header_compiler=no
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24547 echo "${ECHO_T}$ac_header_compiler" >&6; }
24549 # Is the header present?
24550 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
24551 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
24552 cat >conftest.$ac_ext <<_ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558 #include <${OSS_DIR}/include/soundcard.h>
24560 if { (ac_try="$ac_cpp conftest.$ac_ext"
24561 case "(($ac_try" in
24562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24563 *) ac_try_echo
=$ac_try;;
24565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24568 grep -v '^ *+' conftest.er1
>conftest.err
24570 cat conftest.err
>&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); } >/dev
/null
&& {
24573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24574 test ! -s conftest.err
24576 ac_header_preproc
=yes
24578 echo "$as_me: failed program was:" >&5
24579 sed 's/^/| /' conftest.
$ac_ext >&5
24581 ac_header_preproc
=no
24584 rm -f conftest.err conftest.
$ac_ext
24585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24586 echo "${ECHO_T}$ac_header_preproc" >&6; }
24588 # So? What about this header?
24589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24591 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24592 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24593 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
24594 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
24595 ac_header_preproc
=yes
24598 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
24599 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
24600 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
24601 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
24602 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
24603 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
24604 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24605 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24606 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
24607 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
24608 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
24609 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
24611 ## ------------------------------- ##
24612 ## Report this to www.asterisk.org ##
24613 ## ------------------------------- ##
24615 ) |
sed "s/^/$as_me: WARNING: /" >&2
24618 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24619 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24620 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24621 echo $ECHO_N "(cached) $ECHO_C" >&6
24623 eval "$as_ac_Header=\$ac_header_preproc"
24625 ac_res
=`eval echo '${'$as_ac_Header'}'`
24626 { echo "$as_me:$LINENO: result: $ac_res" >&5
24627 echo "${ECHO_T}$ac_res" >&6; }
24630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24638 CPPFLAGS
="${saved_cppflags}"
24640 if test "xsoundcard.h" != "x" ; then
24641 if test "${ac_cv_header_soundcard_h+set}" = set; then
24642 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24643 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24644 if test "${ac_cv_header_soundcard_h+set}" = set; then
24645 echo $ECHO_N "(cached) $ECHO_C" >&6
24647 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24648 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24650 # Is the header compilable?
24651 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
24652 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
24653 cat >conftest.
$ac_ext <<_ACEOF
24656 cat confdefs.h
>>conftest.
$ac_ext
24657 cat >>conftest.
$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24659 $ac_includes_default
24660 #include <soundcard.h>
24662 rm -f conftest.
$ac_objext
24663 if { (ac_try
="$ac_compile"
24664 case "(($ac_try" in
24665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24666 *) ac_try_echo=$ac_try;;
24668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24669 (eval "$ac_compile") 2>conftest.er1
24671 grep -v '^ *+' conftest.er1 >conftest.err
24673 cat conftest.err >&5
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); } && {
24676 test -z "$ac_c_werror_flag" ||
24677 test ! -s conftest.err
24678 } && test -s conftest.$ac_objext; then
24679 ac_header_compiler=yes
24681 echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24684 ac_header_compiler=no
24687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24689 echo "${ECHO_T}$ac_header_compiler" >&6; }
24691 # Is the header present?
24692 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
24693 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
24694 cat >conftest.$ac_ext <<_ACEOF
24697 cat confdefs.h >>conftest.$ac_ext
24698 cat >>conftest.$ac_ext <<_ACEOF
24699 /* end confdefs.h. */
24700 #include <soundcard.h>
24702 if { (ac_try="$ac_cpp conftest.$ac_ext"
24703 case "(($ac_try" in
24704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24705 *) ac_try_echo
=$ac_try;;
24707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24710 grep -v '^ *+' conftest.er1
>conftest.err
24712 cat conftest.err
>&5
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } >/dev
/null
&& {
24715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24716 test ! -s conftest.err
24718 ac_header_preproc
=yes
24720 echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.
$ac_ext >&5
24723 ac_header_preproc
=no
24726 rm -f conftest.err conftest.
$ac_ext
24727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24728 echo "${ECHO_T}$ac_header_preproc" >&6; }
24730 # So? What about this header?
24731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24733 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24734 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24735 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
24736 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
24737 ac_header_preproc
=yes
24740 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
24741 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
24742 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
24743 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
24744 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
24745 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
24746 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24747 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24748 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
24749 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
24750 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
24751 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
24753 ## ------------------------------- ##
24754 ## Report this to www.asterisk.org ##
24755 ## ------------------------------- ##
24757 ) |
sed "s/^/$as_me: WARNING: /" >&2
24760 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24761 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24762 if test "${ac_cv_header_soundcard_h+set}" = set; then
24763 echo $ECHO_N "(cached) $ECHO_C" >&6
24765 ac_cv_header_soundcard_h
=$ac_header_preproc
24767 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24768 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24771 if test $ac_cv_header_soundcard_h = yes; then
24780 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
24781 if test -n "${OSS_MANDATORY}" ;
24783 { echo "$as_me:$LINENO: ***" >&5
24784 echo "$as_me: ***" >&6;}
24785 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
24786 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
24787 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
24788 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
24789 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24790 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24799 cat >>confdefs.h
<<_ACEOF
24804 elif test -n "${OSS_MANDATORY}";
24806 { echo "$as_me:$LINENO: ***" >&5
24807 echo "$as_me: ***" >&6;}
24808 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
24809 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
24810 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24811 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24812 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24813 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24822 if test "${USE_PGSQL}" != "no"; then
24823 if test "x${PGSQL_DIR}" != "x"; then
24824 if test -n "$ac_tool_prefix"; then
24825 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24826 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
24827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24829 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24834 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
24837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24838 for as_dir
in ${PGSQL_DIR}/bin
24841 test -z "$as_dir" && as_dir
=.
24842 for ac_exec_ext
in '' $ac_executable_extensions; do
24843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24844 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24855 PG_CONFIG
=$ac_cv_path_PG_CONFIG
24856 if test -n "$PG_CONFIG"; then
24857 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24858 echo "${ECHO_T}$PG_CONFIG" >&6; }
24860 { echo "$as_me:$LINENO: result: no" >&5
24861 echo "${ECHO_T}no" >&6; }
24866 if test -z "$ac_cv_path_PG_CONFIG"; then
24867 ac_pt_PG_CONFIG
=$PG_CONFIG
24868 # Extract the first word of "pg_config", so it can be a program name with args.
24869 set dummy pg_config
; ac_word
=$2
24870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24872 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24873 echo $ECHO_N "(cached) $ECHO_C" >&6
24875 case $ac_pt_PG_CONFIG in
24877 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24881 for as_dir
in ${PGSQL_DIR}/bin
24884 test -z "$as_dir" && as_dir
=.
24885 for ac_exec_ext
in '' $ac_executable_extensions; do
24886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24887 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24898 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
24899 if test -n "$ac_pt_PG_CONFIG"; then
24900 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
24901 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24903 { echo "$as_me:$LINENO: result: no" >&5
24904 echo "${ECHO_T}no" >&6; }
24907 if test "x$ac_pt_PG_CONFIG" = x
; then
24910 case $cross_compiling:$ac_tool_warned in
24912 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24913 whose name does not start with the host triplet. If you think this
24914 configuration is useful to you, please write to autoconf@gnu.org." >&5
24915 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24916 whose name does not start with the host triplet. If you think this
24917 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24918 ac_tool_warned
=yes ;;
24920 PG_CONFIG
=$ac_pt_PG_CONFIG
24923 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
24926 if test x
"${PG_CONFIG}" = xNo
; then
24927 { echo "$as_me:$LINENO: ***" >&5
24928 echo "$as_me: ***" >&6;}
24929 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
24930 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
24931 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
24932 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
24933 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24934 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24935 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24936 echo "$as_me: *** including --without-postgres" >&6;}
24940 if test -n "$ac_tool_prefix"; then
24941 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24942 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
24943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24945 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24950 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
24953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24954 for as_dir
in $PATH
24957 test -z "$as_dir" && as_dir
=.
24958 for ac_exec_ext
in '' $ac_executable_extensions; do
24959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24960 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24971 PG_CONFIG
=$ac_cv_path_PG_CONFIG
24972 if test -n "$PG_CONFIG"; then
24973 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24974 echo "${ECHO_T}$PG_CONFIG" >&6; }
24976 { echo "$as_me:$LINENO: result: no" >&5
24977 echo "${ECHO_T}no" >&6; }
24982 if test -z "$ac_cv_path_PG_CONFIG"; then
24983 ac_pt_PG_CONFIG
=$PG_CONFIG
24984 # Extract the first word of "pg_config", so it can be a program name with args.
24985 set dummy pg_config
; ac_word
=$2
24986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24988 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24989 echo $ECHO_N "(cached) $ECHO_C" >&6
24991 case $ac_pt_PG_CONFIG in
24993 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24997 for as_dir
in $PATH
25000 test -z "$as_dir" && as_dir
=.
25001 for ac_exec_ext
in '' $ac_executable_extensions; do
25002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25003 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25014 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
25015 if test -n "$ac_pt_PG_CONFIG"; then
25016 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25017 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25019 { echo "$as_me:$LINENO: result: no" >&5
25020 echo "${ECHO_T}no" >&6; }
25023 if test "x$ac_pt_PG_CONFIG" = x
; then
25026 case $cross_compiling:$ac_tool_warned in
25028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25029 whose name does not start with the host triplet. If you think this
25030 configuration is useful to you, please write to autoconf@gnu.org." >&5
25031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25032 whose name does not start with the host triplet. If you think this
25033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25034 ac_tool_warned
=yes ;;
25036 PG_CONFIG
=$ac_pt_PG_CONFIG
25039 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
25044 if test "${PG_CONFIG}" != No
; then
25045 PGSQL_libdir
=`${PG_CONFIG} --libdir`
25046 PGSQL_includedir
=`${PG_CONFIG} --includedir`
25048 if test "x$?" != "x0" ; then
25049 if test -n "${PGSQL_MANDATORY}" ; then
25050 { echo "$as_me:$LINENO: ***" >&5
25051 echo "$as_me: ***" >&6;}
25052 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25053 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25054 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25055 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25056 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25057 echo "$as_me: *** including --without-postgres" >&6;}
25061 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
25062 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
25063 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25066 ac_check_lib_save_LIBS
=$LIBS
25067 LIBS
="-lpq -L${PGSQL_libdir} -lz $LIBS"
25068 cat >conftest.
$ac_ext <<_ACEOF
25071 cat confdefs.h
>>conftest.
$ac_ext
25072 cat >>conftest.
$ac_ext <<_ACEOF
25073 /* end confdefs.h. */
25075 /* Override any GCC internal prototype to avoid an error.
25076 Use char because int might match the return type of a GCC
25077 builtin and then its argument prototype would still apply. */
25081 char PQescapeStringConn ();
25085 return PQescapeStringConn ();
25090 rm -f conftest.
$ac_objext conftest
$ac_exeext
25091 if { (ac_try
="$ac_link"
25092 case "(($ac_try" in
25093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25094 *) ac_try_echo=$ac_try;;
25096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25097 (eval "$ac_link") 2>conftest.er1
25099 grep -v '^ *+' conftest.er1 >conftest.err
25101 cat conftest.err >&5
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } && {
25104 test -z "$ac_c_werror_flag" ||
25105 test ! -s conftest.err
25106 } && test -s conftest$ac_exeext &&
25107 $as_test_x conftest$ac_exeext; then
25108 ac_cv_lib_pq_PQescapeStringConn=yes
25110 echo "$as_me: failed program was:" >&5
25111 sed 's/^/| /' conftest.$ac_ext >&5
25113 ac_cv_lib_pq_PQescapeStringConn=no
25116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25117 conftest$ac_exeext conftest.$ac_ext
25118 LIBS=$ac_check_lib_save_LIBS
25120 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
25121 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
25122 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
25124 cat >>confdefs.h <<_ACEOF
25125 #define HAVE_PGSQL 1
25131 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
25132 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
25133 PGSQL_INCLUDE="-I${PGSQL_includedir}"
25135 elif test -n "${PGSQL_MANDATORY}";
25137 { echo "$as_me:$LINENO: ***" >&5
25138 echo "$as_me: ***" >&6;}
25139 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25140 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25141 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25142 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25143 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25144 echo "$as_me: *** including --without-postgres" >&6;}
25148 elif test -n "${PGSQL_MANDATORY}";
25150 { echo "$as_me:$LINENO: ***" >&5
25151 echo "$as_me: ***" >&6;}
25152 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25153 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25154 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25155 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25156 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25157 echo "$as_me: *** including --without-postgres" >&6;}
25162 if test "${USE_POPT}" != "no"; then
25164 if test "x${POPT_DIR}" != "x"; then
25165 if test -d ${POPT_DIR}/lib; then
25166 pbxlibdir="-L${POPT_DIR}/lib"
25168 pbxlibdir="-L${POPT_DIR}"
25171 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
25172 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
25173 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
25174 echo $ECHO_N "(cached) $ECHO_C" >&6
25176 ac_check_lib_save_LIBS=$LIBS
25177 LIBS="-lpopt ${pbxlibdir} $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 poptStrerror ();
25195 return poptStrerror ();
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 test -z "$ac_c_werror_flag" ||
25215 test ! -s conftest.err
25216 } && test -s conftest
$ac_exeext &&
25217 $as_test_x conftest
$ac_exeext; then
25218 ac_cv_lib_popt_poptStrerror
=yes
25220 echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.
$ac_ext >&5
25223 ac_cv_lib_popt_poptStrerror
=no
25226 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25227 conftest
$ac_exeext conftest.
$ac_ext
25228 LIBS
=$ac_check_lib_save_LIBS
25230 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
25231 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
25232 if test $ac_cv_lib_popt_poptStrerror = yes; then
25239 if test "${AST_POPT_FOUND}" = "yes"; then
25241 POPT_HEADER_FOUND
="1"
25242 if test "x${POPT_DIR}" != "x"; then
25243 POPT_LIB
="${pbxlibdir} ${POPT_LIB}"
25244 POPT_INCLUDE
="-I${POPT_DIR}/include"
25245 saved_cppflags
="${CPPFLAGS}"
25246 CPPFLAGS
="${CPPFLAGS} -I${POPT_DIR}/include"
25247 if test "xpopt.h" != "x" ; then
25248 as_ac_Header
=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
25249 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25250 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25251 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25252 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25253 echo $ECHO_N "(cached) $ECHO_C" >&6
25255 ac_res
=`eval echo '${'$as_ac_Header'}'`
25256 { echo "$as_me:$LINENO: result: $ac_res" >&5
25257 echo "${ECHO_T}$ac_res" >&6; }
25259 # Is the header compilable?
25260 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
25261 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
25262 cat >conftest.
$ac_ext <<_ACEOF
25265 cat confdefs.h
>>conftest.
$ac_ext
25266 cat >>conftest.
$ac_ext <<_ACEOF
25267 /* end confdefs.h. */
25268 $ac_includes_default
25269 #include <${POPT_DIR}/include/popt.h>
25271 rm -f conftest.
$ac_objext
25272 if { (ac_try
="$ac_compile"
25273 case "(($ac_try" in
25274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278 (eval "$ac_compile") 2>conftest.er1
25280 grep -v '^ *+' conftest.er1 >conftest.err
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } && {
25285 test -z "$ac_c_werror_flag" ||
25286 test ! -s conftest.err
25287 } && test -s conftest.$ac_objext; then
25288 ac_header_compiler=yes
25290 echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25293 ac_header_compiler=no
25296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25298 echo "${ECHO_T}$ac_header_compiler" >&6; }
25300 # Is the header present?
25301 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
25302 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
25303 cat >conftest.$ac_ext <<_ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25309 #include <${POPT_DIR}/include/popt.h>
25311 if { (ac_try="$ac_cpp conftest.$ac_ext"
25312 case "(($ac_try" in
25313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25314 *) ac_try_echo
=$ac_try;;
25316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25319 grep -v '^ *+' conftest.er1
>conftest.err
25321 cat conftest.err
>&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } >/dev
/null
&& {
25324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25325 test ! -s conftest.err
25327 ac_header_preproc
=yes
25329 echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.
$ac_ext >&5
25332 ac_header_preproc
=no
25335 rm -f conftest.err conftest.
$ac_ext
25336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25337 echo "${ECHO_T}$ac_header_preproc" >&6; }
25339 # So? What about this header?
25340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25342 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25343 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25344 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
25345 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
25346 ac_header_preproc
=yes
25349 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
25350 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
25351 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
25352 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
25353 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
25354 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
25355 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
25356 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25357 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
25358 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
25359 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
25360 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
25362 ## ------------------------------- ##
25363 ## Report this to www.asterisk.org ##
25364 ## ------------------------------- ##
25366 ) |
sed "s/^/$as_me: WARNING: /" >&2
25369 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25370 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25371 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25372 echo $ECHO_N "(cached) $ECHO_C" >&6
25374 eval "$as_ac_Header=\$ac_header_preproc"
25376 ac_res
=`eval echo '${'$as_ac_Header'}'`
25377 { echo "$as_me:$LINENO: result: $ac_res" >&5
25378 echo "${ECHO_T}$ac_res" >&6; }
25381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25382 POPT_HEADER_FOUND
=1
25384 POPT_HEADER_FOUND
=0
25389 CPPFLAGS
="${saved_cppflags}"
25391 if test "xpopt.h" != "x" ; then
25392 if test "${ac_cv_header_popt_h+set}" = set; then
25393 { echo "$as_me:$LINENO: checking for popt.h" >&5
25394 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25395 if test "${ac_cv_header_popt_h+set}" = set; then
25396 echo $ECHO_N "(cached) $ECHO_C" >&6
25398 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25399 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25401 # Is the header compilable?
25402 { echo "$as_me:$LINENO: checking popt.h usability" >&5
25403 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
25404 cat >conftest.
$ac_ext <<_ACEOF
25407 cat confdefs.h
>>conftest.
$ac_ext
25408 cat >>conftest.
$ac_ext <<_ACEOF
25409 /* end confdefs.h. */
25410 $ac_includes_default
25413 rm -f conftest.
$ac_objext
25414 if { (ac_try
="$ac_compile"
25415 case "(($ac_try" in
25416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25417 *) ac_try_echo=$ac_try;;
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420 (eval "$ac_compile") 2>conftest.er1
25422 grep -v '^ *+' conftest.er1 >conftest.err
25424 cat conftest.err >&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } && {
25427 test -z "$ac_c_werror_flag" ||
25428 test ! -s conftest.err
25429 } && test -s conftest.$ac_objext; then
25430 ac_header_compiler=yes
25432 echo "$as_me: failed program was:" >&5
25433 sed 's/^/| /' conftest.$ac_ext >&5
25435 ac_header_compiler=no
25438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25440 echo "${ECHO_T}$ac_header_compiler" >&6; }
25442 # Is the header present?
25443 { echo "$as_me:$LINENO: checking popt.h presence" >&5
25444 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
25445 cat >conftest.$ac_ext <<_ACEOF
25448 cat confdefs.h >>conftest.$ac_ext
25449 cat >>conftest.$ac_ext <<_ACEOF
25450 /* end confdefs.h. */
25453 if { (ac_try="$ac_cpp conftest.$ac_ext"
25454 case "(($ac_try" in
25455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25456 *) ac_try_echo
=$ac_try;;
25458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25461 grep -v '^ *+' conftest.er1
>conftest.err
25463 cat conftest.err
>&5
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); } >/dev
/null
&& {
25466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25467 test ! -s conftest.err
25469 ac_header_preproc
=yes
25471 echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.
$ac_ext >&5
25474 ac_header_preproc
=no
25477 rm -f conftest.err conftest.
$ac_ext
25478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25479 echo "${ECHO_T}$ac_header_preproc" >&6; }
25481 # So? What about this header?
25482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25484 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25485 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25486 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
25487 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
25488 ac_header_preproc
=yes
25491 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
25492 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
25493 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
25494 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
25495 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
25496 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
25497 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
25498 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25499 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
25500 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
25501 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
25502 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
25504 ## ------------------------------- ##
25505 ## Report this to www.asterisk.org ##
25506 ## ------------------------------- ##
25508 ) |
sed "s/^/$as_me: WARNING: /" >&2
25511 { echo "$as_me:$LINENO: checking for popt.h" >&5
25512 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25513 if test "${ac_cv_header_popt_h+set}" = set; then
25514 echo $ECHO_N "(cached) $ECHO_C" >&6
25516 ac_cv_header_popt_h
=$ac_header_preproc
25518 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25519 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25522 if test $ac_cv_header_popt_h = yes; then
25523 POPT_HEADER_FOUND
=1
25525 POPT_HEADER_FOUND
=0
25531 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
25532 if test -n "${POPT_MANDATORY}" ;
25534 { echo "$as_me:$LINENO: ***" >&5
25535 echo "$as_me: ***" >&6;}
25536 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
25537 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
25538 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
25539 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
25540 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25541 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25550 cat >>confdefs.h
<<_ACEOF
25551 #define HAVE_POPT 1
25555 elif test -n "${POPT_MANDATORY}";
25557 { echo "$as_me:$LINENO: ***" >&5
25558 echo "$as_me: ***" >&6;}
25559 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
25560 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
25561 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25562 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25563 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25564 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25571 if test "${USE_PRI}" != "no"; then
25573 if test "x${PRI_DIR}" != "x"; then
25574 if test -d ${PRI_DIR}/lib
; then
25575 pbxlibdir
="-L${PRI_DIR}/lib"
25577 pbxlibdir
="-L${PRI_DIR}"
25580 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
25581 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
25582 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
25583 echo $ECHO_N "(cached) $ECHO_C" >&6
25585 ac_check_lib_save_LIBS
=$LIBS
25586 LIBS
="-lpri ${pbxlibdir} $LIBS"
25587 cat >conftest.
$ac_ext <<_ACEOF
25590 cat confdefs.h
>>conftest.
$ac_ext
25591 cat >>conftest.
$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25594 /* Override any GCC internal prototype to avoid an error.
25595 Use char because int might match the return type of a GCC
25596 builtin and then its argument prototype would still apply. */
25600 char pri_keypad_facility ();
25604 return pri_keypad_facility ();
25609 rm -f conftest.
$ac_objext conftest
$ac_exeext
25610 if { (ac_try
="$ac_link"
25611 case "(($ac_try" in
25612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25613 *) ac_try_echo=$ac_try;;
25615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25616 (eval "$ac_link") 2>conftest.er1
25618 grep -v '^ *+' conftest.er1 >conftest.err
25620 cat conftest.err >&5
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); } && {
25623 test -z "$ac_c_werror_flag" ||
25624 test ! -s conftest.err
25625 } && test -s conftest$ac_exeext &&
25626 $as_test_x conftest$ac_exeext; then
25627 ac_cv_lib_pri_pri_keypad_facility=yes
25629 echo "$as_me: failed program was:" >&5
25630 sed 's/^/| /' conftest.$ac_ext >&5
25632 ac_cv_lib_pri_pri_keypad_facility=no
25635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25636 conftest$ac_exeext conftest.$ac_ext
25637 LIBS=$ac_check_lib_save_LIBS
25639 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
25640 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
25641 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
25648 if test "${AST_PRI_FOUND}" = "yes"; then
25650 PRI_HEADER_FOUND="1"
25651 if test "x${PRI_DIR}" != "x"; then
25652 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
25653 PRI_INCLUDE="-I${PRI_DIR}/include"
25654 saved_cppflags="${CPPFLAGS}"
25655 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
25656 if test "xlibpri.h" != "x" ; then
25657 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" |
$as_tr_sh`
25658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25659 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25660 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25664 ac_res=`eval echo '${'$as_ac_Header'}'`
25665 { echo "$as_me:$LINENO: result: $ac_res" >&5
25666 echo "${ECHO_T}$ac_res" >&6; }
25668 # Is the header compilable?
25669 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
25670 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
25671 cat >conftest.$ac_ext <<_ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25677 $ac_includes_default
25678 #include <${PRI_DIR}/include/libpri.h>
25680 rm -f conftest.$ac_objext
25681 if { (ac_try="$ac_compile"
25682 case "(($ac_try" in
25683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25684 *) ac_try_echo
=$ac_try;;
25686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25687 (eval "$ac_compile") 2>conftest.er1
25689 grep -v '^ *+' conftest.er1
>conftest.err
25691 cat conftest.err
>&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } && {
25694 test -z "$ac_c_werror_flag" ||
25695 test ! -s conftest.err
25696 } && test -s conftest.
$ac_objext; then
25697 ac_header_compiler
=yes
25699 echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.
$ac_ext >&5
25702 ac_header_compiler
=no
25705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25707 echo "${ECHO_T}$ac_header_compiler" >&6; }
25709 # Is the header present?
25710 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
25711 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
25712 cat >conftest.
$ac_ext <<_ACEOF
25715 cat confdefs.h
>>conftest.
$ac_ext
25716 cat >>conftest.
$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 #include <${PRI_DIR}/include/libpri.h>
25720 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25721 case "(($ac_try" in
25722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25723 *) ac_try_echo=$ac_try;;
25725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25728 grep -v '^ *+' conftest.er1 >conftest.err
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } >/dev/null && {
25733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25734 test ! -s conftest.err
25736 ac_header_preproc=yes
25738 echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25741 ac_header_preproc=no
25744 rm -f conftest.err conftest.$ac_ext
25745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25746 echo "${ECHO_T}$ac_header_preproc" >&6; }
25748 # So? What about this header?
25749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25751 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25752 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25753 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
25754 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
25755 ac_header_preproc=yes
25758 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
25759 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
25760 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
25761 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
25762 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
25763 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
25764 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25765 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25766 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
25767 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
25768 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
25769 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
25771 ## ------------------------------- ##
25772 ## Report this to www.asterisk.org ##
25773 ## ------------------------------- ##
25775 ) | sed "s/^/$as_me: WARNING: /" >&2
25778 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25779 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25781 echo $ECHO_N "(cached) $ECHO_C" >&6
25783 eval "$as_ac_Header=\$ac_header_preproc"
25785 ac_res=`eval echo '${'$as_ac_Header'}'`
25786 { echo "$as_me:$LINENO: result: $ac_res" >&5
25787 echo "${ECHO_T}$ac_res" >&6; }
25790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25798 CPPFLAGS="${saved_cppflags}"
25800 if test "xlibpri.h" != "x" ; then
25801 if test "${ac_cv_header_libpri_h+set}" = set; then
25802 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25803 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25804 if test "${ac_cv_header_libpri_h+set}" = set; then
25805 echo $ECHO_N "(cached) $ECHO_C" >&6
25807 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25808 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25810 # Is the header compilable?
25811 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
25812 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
25813 cat >conftest.$ac_ext <<_ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 $ac_includes_default
25820 #include <libpri.h>
25822 rm -f conftest.$ac_objext
25823 if { (ac_try="$ac_compile"
25824 case "(($ac_try" in
25825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25826 *) ac_try_echo
=$ac_try;;
25828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25829 (eval "$ac_compile") 2>conftest.er1
25831 grep -v '^ *+' conftest.er1
>conftest.err
25833 cat conftest.err
>&5
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); } && {
25836 test -z "$ac_c_werror_flag" ||
25837 test ! -s conftest.err
25838 } && test -s conftest.
$ac_objext; then
25839 ac_header_compiler
=yes
25841 echo "$as_me: failed program was:" >&5
25842 sed 's/^/| /' conftest.
$ac_ext >&5
25844 ac_header_compiler
=no
25847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25849 echo "${ECHO_T}$ac_header_compiler" >&6; }
25851 # Is the header present?
25852 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
25853 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
25854 cat >conftest.
$ac_ext <<_ACEOF
25857 cat confdefs.h
>>conftest.
$ac_ext
25858 cat >>conftest.
$ac_ext <<_ACEOF
25859 /* end confdefs.h. */
25860 #include <libpri.h>
25862 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25863 case "(($ac_try" in
25864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25865 *) ac_try_echo=$ac_try;;
25867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25870 grep -v '^ *+' conftest.er1 >conftest.err
25872 cat conftest.err >&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); } >/dev/null && {
25875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25876 test ! -s conftest.err
25878 ac_header_preproc=yes
25880 echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25883 ac_header_preproc=no
25886 rm -f conftest.err conftest.$ac_ext
25887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25888 echo "${ECHO_T}$ac_header_preproc" >&6; }
25890 # So? What about this header?
25891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25893 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25894 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25895 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
25896 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
25897 ac_header_preproc=yes
25900 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
25901 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
25902 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
25903 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
25904 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
25905 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
25906 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25907 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25908 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
25909 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
25910 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
25911 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
25913 ## ------------------------------- ##
25914 ## Report this to www.asterisk.org ##
25915 ## ------------------------------- ##
25917 ) | sed "s/^/$as_me: WARNING: /" >&2
25920 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25921 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25922 if test "${ac_cv_header_libpri_h+set}" = set; then
25923 echo $ECHO_N "(cached) $ECHO_C" >&6
25925 ac_cv_header_libpri_h=$ac_header_preproc
25927 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25928 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25931 if test $ac_cv_header_libpri_h = yes; then
25940 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
25941 if test -n "${PRI_MANDATORY}" ;
25943 { echo "$as_me:$LINENO: ***" >&5
25944 echo "$as_me: ***" >&6;}
25945 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
25946 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
25947 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
25948 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
25949 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25950 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25959 cat >>confdefs.h <<_ACEOF
25964 elif test -n "${PRI_MANDATORY}";
25966 { echo "$as_me:$LINENO: ***" >&5
25967 echo "$as_me: ***" >&6;}
25968 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
25969 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
25970 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25971 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25972 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25973 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25979 if test "${USE_PWLIB}" != "no"; then
25980 if test -n "${PWLIB_DIR}"; then
25981 PWLIBDIR="${PWLIB_DIR}"
25988 ac_cpp='$CXXCPP $CPPFLAGS'
25989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25993 if test "${PWLIBDIR:-unset}" != "unset" ; then
25994 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" |
$as_tr_sh`
25995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25996 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
25997 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
25998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 ac_res=`eval echo '${'$as_ac_Header'}'`
26002 { echo "$as_me:$LINENO: result: $ac_res" >&5
26003 echo "${ECHO_T}$ac_res" >&6; }
26005 # Is the header compilable?
26006 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
26007 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
26008 cat >conftest.$ac_ext <<_ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 $ac_includes_default
26015 #include <${PWLIBDIR}/version.h>
26017 rm -f conftest.$ac_objext
26018 if { (ac_try="$ac_compile"
26019 case "(($ac_try" in
26020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26021 *) ac_try_echo
=$ac_try;;
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024 (eval "$ac_compile") 2>conftest.er1
26026 grep -v '^ *+' conftest.er1
>conftest.err
26028 cat conftest.err
>&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } && {
26031 test -z "$ac_cxx_werror_flag" ||
26032 test ! -s conftest.err
26033 } && test -s conftest.
$ac_objext; then
26034 ac_header_compiler
=yes
26036 echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.
$ac_ext >&5
26039 ac_header_compiler
=no
26042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26044 echo "${ECHO_T}$ac_header_compiler" >&6; }
26046 # Is the header present?
26047 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
26048 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
26049 cat >conftest.
$ac_ext <<_ACEOF
26052 cat confdefs.h
>>conftest.
$ac_ext
26053 cat >>conftest.
$ac_ext <<_ACEOF
26054 /* end confdefs.h. */
26055 #include <${PWLIBDIR}/version.h>
26057 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26058 case "(($ac_try" in
26059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26060 *) ac_try_echo=$ac_try;;
26062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26065 grep -v '^ *+' conftest.er1 >conftest.err
26067 cat conftest.err >&5
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } >/dev/null && {
26070 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26071 test ! -s conftest.err
26073 ac_header_preproc=yes
26075 echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26078 ac_header_preproc=no
26081 rm -f conftest.err conftest.$ac_ext
26082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26083 echo "${ECHO_T}$ac_header_preproc" >&6; }
26085 # So? What about this header?
26086 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26088 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26089 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26090 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
26091 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
26092 ac_header_preproc=yes
26095 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
26096 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
26097 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
26098 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
26099 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
26100 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
26101 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26102 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26103 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
26104 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
26105 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
26106 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
26108 ## ------------------------------- ##
26109 ## Report this to www.asterisk.org ##
26110 ## ------------------------------- ##
26112 ) | sed "s/^/$as_me: WARNING: /" >&2
26115 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26116 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26118 echo $ECHO_N "(cached) $ECHO_C" >&6
26120 eval "$as_ac_Header=\$ac_header_preproc"
26122 ac_res=`eval echo '${'$as_ac_Header'}'`
26123 { echo "$as_me:$LINENO: result: $ac_res" >&5
26124 echo "${ECHO_T}$ac_res" >&6; }
26127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26133 if test "${HAS_PWLIB:-unset}" = "unset" ; then
26134 if test "${OPENH323DIR:-unset}" != "unset"; then
26135 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" |
$as_tr_sh`
26136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26137 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26138 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26140 echo $ECHO_N "(cached) $ECHO_C" >&6
26142 ac_res=`eval echo '${'$as_ac_Header'}'`
26143 { echo "$as_me:$LINENO: result: $ac_res" >&5
26144 echo "${ECHO_T}$ac_res" >&6; }
26146 # Is the header compilable?
26147 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
26148 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
26149 cat >conftest.$ac_ext <<_ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h. */
26155 $ac_includes_default
26156 #include <${OPENH323DIR}/../pwlib/version.h>
26158 rm -f conftest.$ac_objext
26159 if { (ac_try="$ac_compile"
26160 case "(($ac_try" in
26161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26162 *) ac_try_echo
=$ac_try;;
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165 (eval "$ac_compile") 2>conftest.er1
26167 grep -v '^ *+' conftest.er1
>conftest.err
26169 cat conftest.err
>&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); } && {
26172 test -z "$ac_cxx_werror_flag" ||
26173 test ! -s conftest.err
26174 } && test -s conftest.
$ac_objext; then
26175 ac_header_compiler
=yes
26177 echo "$as_me: failed program was:" >&5
26178 sed 's/^/| /' conftest.
$ac_ext >&5
26180 ac_header_compiler
=no
26183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26185 echo "${ECHO_T}$ac_header_compiler" >&6; }
26187 # Is the header present?
26188 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
26189 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
26190 cat >conftest.
$ac_ext <<_ACEOF
26193 cat confdefs.h
>>conftest.
$ac_ext
26194 cat >>conftest.
$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26196 #include <${OPENH323DIR}/../pwlib/version.h>
26198 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26199 case "(($ac_try" in
26200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26201 *) ac_try_echo=$ac_try;;
26203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26206 grep -v '^ *+' conftest.er1 >conftest.err
26208 cat conftest.err >&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } >/dev/null && {
26211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26212 test ! -s conftest.err
26214 ac_header_preproc=yes
26216 echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26219 ac_header_preproc=no
26222 rm -f conftest.err conftest.$ac_ext
26223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26224 echo "${ECHO_T}$ac_header_preproc" >&6; }
26226 # So? What about this header?
26227 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26229 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26230 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26231 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
26232 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
26233 ac_header_preproc=yes
26236 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
26237 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
26238 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
26239 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
26240 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
26241 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
26242 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
26243 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26244 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
26245 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
26246 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
26247 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
26249 ## ------------------------------- ##
26250 ## Report this to www.asterisk.org ##
26251 ## ------------------------------- ##
26253 ) | sed "s/^/$as_me: WARNING: /" >&2
26256 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26257 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26259 echo $ECHO_N "(cached) $ECHO_C" >&6
26261 eval "$as_ac_Header=\$ac_header_preproc"
26263 ac_res=`eval echo '${'$as_ac_Header'}'`
26264 { echo "$as_me:$LINENO: result: $ac_res" >&5
26265 echo "${ECHO_T}$ac_res" >&6; }
26268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26274 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26275 PWLIBDIR="${OPENH323DIR}/../pwlib"
26277 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" |
$as_tr_sh`
26278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26279 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26280 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26282 echo $ECHO_N "(cached) $ECHO_C" >&6
26284 ac_res=`eval echo '${'$as_ac_Header'}'`
26285 { echo "$as_me:$LINENO: result: $ac_res" >&5
26286 echo "${ECHO_T}$ac_res" >&6; }
26288 # Is the header compilable?
26289 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
26290 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
26291 cat >conftest.$ac_ext <<_ACEOF
26294 cat confdefs.h >>conftest.$ac_ext
26295 cat >>conftest.$ac_ext <<_ACEOF
26296 /* end confdefs.h. */
26297 $ac_includes_default
26298 #include <${HOME}/pwlib/include/ptlib.h>
26300 rm -f conftest.$ac_objext
26301 if { (ac_try="$ac_compile"
26302 case "(($ac_try" in
26303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26304 *) ac_try_echo
=$ac_try;;
26306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26307 (eval "$ac_compile") 2>conftest.er1
26309 grep -v '^ *+' conftest.er1
>conftest.err
26311 cat conftest.err
>&5
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } && {
26314 test -z "$ac_cxx_werror_flag" ||
26315 test ! -s conftest.err
26316 } && test -s conftest.
$ac_objext; then
26317 ac_header_compiler
=yes
26319 echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.
$ac_ext >&5
26322 ac_header_compiler
=no
26325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26327 echo "${ECHO_T}$ac_header_compiler" >&6; }
26329 # Is the header present?
26330 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
26331 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
26332 cat >conftest.
$ac_ext <<_ACEOF
26335 cat confdefs.h
>>conftest.
$ac_ext
26336 cat >>conftest.
$ac_ext <<_ACEOF
26337 /* end confdefs.h. */
26338 #include <${HOME}/pwlib/include/ptlib.h>
26340 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26341 case "(($ac_try" in
26342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26343 *) ac_try_echo=$ac_try;;
26345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26348 grep -v '^ *+' conftest.er1 >conftest.err
26350 cat conftest.err >&5
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } >/dev/null && {
26353 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26354 test ! -s conftest.err
26356 ac_header_preproc=yes
26358 echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26361 ac_header_preproc=no
26364 rm -f conftest.err conftest.$ac_ext
26365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26366 echo "${ECHO_T}$ac_header_preproc" >&6; }
26368 # So? What about this header?
26369 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26371 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26372 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
26374 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
26375 ac_header_preproc=yes
26378 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
26379 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
26381 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
26383 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26385 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
26387 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
26389 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26391 ## ------------------------------- ##
26392 ## Report this to www.asterisk.org ##
26393 ## ------------------------------- ##
26395 ) | sed "s/^/$as_me: WARNING: /" >&2
26398 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26399 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26401 echo $ECHO_N "(cached) $ECHO_C" >&6
26403 eval "$as_ac_Header=\$ac_header_preproc"
26405 ac_res=`eval echo '${'$as_ac_Header'}'`
26406 { echo "$as_me:$LINENO: result: $ac_res" >&5
26407 echo "${ECHO_T}$ac_res" >&6; }
26410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26415 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26416 PWLIBDIR="${HOME}/pwlib"
26418 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26419 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26420 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26421 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26422 echo $ECHO_N "(cached) $ECHO_C" >&6
26424 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26425 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26427 # Is the header compilable?
26428 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
26429 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
26430 cat >conftest.$ac_ext <<_ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h. */
26436 $ac_includes_default
26437 #include </usr/local/include/ptlib.h>
26439 rm -f conftest.$ac_objext
26440 if { (ac_try="$ac_compile"
26441 case "(($ac_try" in
26442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26443 *) ac_try_echo
=$ac_try;;
26445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26446 (eval "$ac_compile") 2>conftest.er1
26448 grep -v '^ *+' conftest.er1
>conftest.err
26450 cat conftest.err
>&5
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); } && {
26453 test -z "$ac_cxx_werror_flag" ||
26454 test ! -s conftest.err
26455 } && test -s conftest.
$ac_objext; then
26456 ac_header_compiler
=yes
26458 echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.
$ac_ext >&5
26461 ac_header_compiler
=no
26464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26466 echo "${ECHO_T}$ac_header_compiler" >&6; }
26468 # Is the header present?
26469 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
26470 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
26471 cat >conftest.
$ac_ext <<_ACEOF
26474 cat confdefs.h
>>conftest.
$ac_ext
26475 cat >>conftest.
$ac_ext <<_ACEOF
26476 /* end confdefs.h. */
26477 #include </usr/local/include/ptlib.h>
26479 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26480 case "(($ac_try" in
26481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26482 *) ac_try_echo=$ac_try;;
26484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26487 grep -v '^ *+' conftest.er1 >conftest.err
26489 cat conftest.err >&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); } >/dev/null && {
26492 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26493 test ! -s conftest.err
26495 ac_header_preproc=yes
26497 echo "$as_me: failed program was:" >&5
26498 sed 's/^/| /' conftest.$ac_ext >&5
26500 ac_header_preproc=no
26503 rm -f conftest.err conftest.$ac_ext
26504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26505 echo "${ECHO_T}$ac_header_preproc" >&6; }
26507 # So? What about this header?
26508 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26510 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26511 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26512 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
26513 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
26514 ac_header_preproc=yes
26517 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
26518 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
26519 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
26520 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26521 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
26522 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
26523 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26524 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
26526 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
26528 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26530 ## ------------------------------- ##
26531 ## Report this to www.asterisk.org ##
26532 ## ------------------------------- ##
26534 ) | sed "s/^/$as_me: WARNING: /" >&2
26537 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26538 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26539 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26540 echo $ECHO_N "(cached) $ECHO_C" >&6
26542 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
26544 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26545 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26548 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
26553 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26554 # Extract the first word of "ptlib-config", so it can be a program name with args.
26555 set dummy ptlib-config; ac_word=$2
26556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26558 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26559 echo $ECHO_N "(cached) $ECHO_C" >&6
26561 case $PTLIB_CONFIG in
26563 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26567 for as_dir in /usr/local/bin
26570 test -z "$as_dir" && as_dir=.
26571 for ac_exec_ext in '' $ac_executable_extensions; do
26572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26573 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26584 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26585 if test -n "$PTLIB_CONFIG"; then
26586 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26587 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26589 { echo "$as_me:$LINENO: result: no" >&5
26590 echo "${ECHO_T}no" >&6; }
26594 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
26595 # Extract the first word of "ptlib-config", so it can be a program name with args.
26596 set dummy ptlib-config; ac_word=$2
26597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26599 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26602 case $PTLIB_CONFIG in
26604 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26608 for as_dir in /usr/local/share/pwlib/make
26611 test -z "$as_dir" && as_dir=.
26612 for ac_exec_ext in '' $ac_executable_extensions; do
26613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26614 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26625 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26626 if test -n "$PTLIB_CONFIG"; then
26627 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26628 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26630 { echo "$as_me:$LINENO: result: no" >&5
26631 echo "${ECHO_T}no" >&6; }
26636 PWLIB_INCDIR="/usr/local/include"
26637 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
26638 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26639 if test "x$LIB64" != "x"; then
26640 PWLIB_LIBDIR="/usr/local/lib64"
26642 PWLIB_LIBDIR="/usr/local/lib"
26645 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
26646 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
26648 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26649 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
26650 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
26651 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26654 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
26655 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
26657 # Is the header compilable?
26658 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
26659 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
26660 cat >conftest.$ac_ext <<_ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26666 $ac_includes_default
26667 #include </usr/include/ptlib.h>
26669 rm -f conftest.$ac_objext
26670 if { (ac_try="$ac_compile"
26671 case "(($ac_try" in
26672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26673 *) ac_try_echo
=$ac_try;;
26675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26676 (eval "$ac_compile") 2>conftest.er1
26678 grep -v '^ *+' conftest.er1
>conftest.err
26680 cat conftest.err
>&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } && {
26683 test -z "$ac_cxx_werror_flag" ||
26684 test ! -s conftest.err
26685 } && test -s conftest.
$ac_objext; then
26686 ac_header_compiler
=yes
26688 echo "$as_me: failed program was:" >&5
26689 sed 's/^/| /' conftest.
$ac_ext >&5
26691 ac_header_compiler
=no
26694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26696 echo "${ECHO_T}$ac_header_compiler" >&6; }
26698 # Is the header present?
26699 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
26700 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
26701 cat >conftest.
$ac_ext <<_ACEOF
26704 cat confdefs.h
>>conftest.
$ac_ext
26705 cat >>conftest.
$ac_ext <<_ACEOF
26706 /* end confdefs.h. */
26707 #include </usr/include/ptlib.h>
26709 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26710 case "(($ac_try" in
26711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26712 *) ac_try_echo=$ac_try;;
26714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26717 grep -v '^ *+' conftest.er1 >conftest.err
26719 cat conftest.err >&5
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); } >/dev/null && {
26722 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26723 test ! -s conftest.err
26725 ac_header_preproc=yes
26727 echo "$as_me: failed program was:" >&5
26728 sed 's/^/| /' conftest.$ac_ext >&5
26730 ac_header_preproc=no
26733 rm -f conftest.err conftest.$ac_ext
26734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26735 echo "${ECHO_T}$ac_header_preproc" >&6; }
26737 # So? What about this header?
26738 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26740 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26741 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26742 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
26743 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
26744 ac_header_preproc=yes
26747 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
26748 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
26749 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
26750 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26751 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
26752 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
26753 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26754 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26755 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
26756 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26757 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
26758 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26760 ## ------------------------------- ##
26761 ## Report this to www.asterisk.org ##
26762 ## ------------------------------- ##
26764 ) | sed "s/^/$as_me: WARNING: /" >&2
26767 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
26768 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
26769 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26770 echo $ECHO_N "(cached) $ECHO_C" >&6
26772 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
26774 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
26775 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
26778 if test $ac_cv_header__usr_include_ptlib_h = yes; then
26783 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26784 # Extract the first word of "ptlib-config", so it can be a program name with args.
26785 set dummy ptlib-config; ac_word=$2
26786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26788 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26789 echo $ECHO_N "(cached) $ECHO_C" >&6
26791 case $PTLIB_CONFIG in
26793 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26797 for as_dir in /usr/share/pwlib/make
26800 test -z "$as_dir" && as_dir=.
26801 for ac_exec_ext in '' $ac_executable_extensions; do
26802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26803 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26814 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26815 if test -n "$PTLIB_CONFIG"; then
26816 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26817 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26819 { echo "$as_me:$LINENO: result: no" >&5
26820 echo "${ECHO_T}no" >&6; }
26824 PWLIB_INCDIR="/usr/include"
26825 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
26826 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26827 if test "x$LIB64" != "x"; then
26828 PWLIB_LIBDIR="/usr/lib64"
26830 PWLIB_LIBDIR="/usr/lib"
26833 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
26834 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
26841 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
26842 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
26846 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26847 if test "${PWLIBDIR:-unset}" = "unset" ; then
26848 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
26849 PWLIBDIR=`$PTLIB_CONFIG --prefix`
26851 echo "Cannot find ptlib-config - please install and try again"
26856 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
26857 PWLIBDIR="/usr/share/pwlib"
26858 PWLIB_INCDIR="/usr/include"
26859 if test "x$LIB64" != "x"; then
26860 PWLIB_LIBDIR="/usr/lib64"
26862 PWLIB_LIBDIR="/usr/lib"
26865 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
26866 PWLIBDIR="/usr/local/share/pwlib"
26867 PWLIB_INCDIR="/usr/local/include"
26868 if test "x$LIB64" != "x"; then
26869 PWLIB_LIBDIR="/usr/local/lib64"
26871 PWLIB_LIBDIR="/usr/local/lib"
26875 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
26876 PWLIB_INCDIR="${PWLIBDIR}/include"
26878 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26879 PWLIB_LIBDIR="${PWLIBDIR}/lib"
26887 ac_cpp='$CPP $CPPFLAGS'
26888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26894 if test "${HAS_PWLIB:-unset}" != "unset"; then
26895 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut
-f2 -d ' ' |
sed -e 's/"//g'`
26896 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut
-f1 -d.
`
26897 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut
-f2 -d.
`
26898 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut
-f3 -d.
`
26899 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
26900 let PWLIB_REQ=1*10000+9*100+2
26902 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
26903 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
26904 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
26905 { echo "$as_me:$LINENO: result: no" >&5
26906 echo "${ECHO_T}no" >&6; }
26909 { echo "$as_me:$LINENO: result: yes" >&5
26910 echo "${ECHO_T}yes" >&6; }
26915 if test "${HAS_PWLIB:-unset}" != "unset"; then
26919 linux*) PWLIB_OSTYPE=linux ;
26921 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
26923 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
26924 ENDLDLIBS="-lossaudio" ;
26926 netbsd* ) PWLIB_OSTYPE=NetBSD ;
26927 ENDLDLIBS="-lossaudio" ;
26929 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
26931 darwin* ) PWLIB_OSTYPE=Darwin ;
26933 beos*) PWLIB_OSTYPE=beos ;
26934 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
26936 cygwin*) PWLIB_OSTYPE=cygwin ;
26938 mingw*) PWLIB_OSTYPE=mingw ;
26939 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
26940 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
26942 * ) PWLIB_OSTYPE="$host_os" ;
26943 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
26944 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
26949 case "$host_cpu" in
26950 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
26953 x86_64) PWLIB_MACHTYPE=x86_64 ;
26958 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
26962 sparc ) PWLIB_MACHTYPE=sparc ;
26965 powerpc ) PWLIB_MACHTYPE=ppc ;
26968 ppc ) PWLIB_MACHTYPE=ppc ;
26971 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
26976 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
26981 ia64) PWLIB_MACHTYPE=ia64 ;
26985 s390x) PWLIB_MACHTYPE=s390x ;
26990 s390) PWLIB_MACHTYPE=s390 ;
26993 * ) PWLIB_MACHTYPE="$host_cpu";
26994 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
26995 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
26998 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
27003 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
27006 if test "${HAS_PWLIB:-unset}" != "unset"; then
27007 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
27008 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
27010 saved_cppflags="${CPPFLAGS}"
27011 saved_libs="${LIBS}"
27012 if test "${PWLIB_LIB:-unset}" != "unset"; then
27013 LIBS="${LIBS} ${PWLIB_LIB} "
27015 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
27017 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
27020 ac_cpp='$CXXCPP $CPPFLAGS'
27021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27026 cat >conftest.$ac_ext <<_ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h. */
27036 BOOL q = PTime::IsDaylightSavings();
27041 rm -f conftest.$ac_objext conftest$ac_exeext
27042 if { (ac_try="$ac_link"
27043 case "(($ac_try" in
27044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27045 *) ac_try_echo
=$ac_try;;
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048 (eval "$ac_link") 2>conftest.er1
27050 grep -v '^ *+' conftest.er1
>conftest.err
27052 cat conftest.err
>&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); } && {
27055 test -z "$ac_cxx_werror_flag" ||
27056 test ! -s conftest.err
27057 } && test -s conftest
$ac_exeext &&
27058 $as_test_x conftest
$ac_exeext; then
27059 { echo "$as_me:$LINENO: result: yes" >&5
27060 echo "${ECHO_T}yes" >&6; }
27061 ac_cv_lib_PWLIB
="yes"
27064 echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.
$ac_ext >&5
27067 { echo "$as_me:$LINENO: result: no" >&5
27068 echo "${ECHO_T}no" >&6; }
27069 ac_cv_lib_PWLIB
="no"
27074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27075 conftest
$ac_exeext conftest.
$ac_ext
27078 ac_cpp
='$CPP $CPPFLAGS'
27079 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27080 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27081 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27084 LIBS
="${saved_libs}"
27085 CPPFLAGS
="${saved_cppflags}"
27087 if test "${ac_cv_lib_PWLIB}" = "yes"; then
27088 if test "${PWLIB_LIB:-undef}" = "undef"; then
27089 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
27090 PWLIB_LIB
="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
27092 PWLIB_LIB
="-l${PLATFORM_PWLIB}"
27095 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
27096 PWLIB_INCLUDE
="-I${PWLIB_INCDIR}"
27100 cat >>confdefs.h
<<\_ACEOF
27101 #define HAVE_PWLIB 1
27110 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
27111 { echo "$as_me:$LINENO: ***" >&5
27112 echo "$as_me: ***" >&6;}
27113 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
27114 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
27115 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27116 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27117 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
27118 echo "$as_me: *** including --without-pwlib" >&6;}
27122 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
27123 if test -n "${OPENH323_DIR}"; then
27124 OPENH323DIR
="${OPENH323_DIR}"
27130 ac_cpp
='$CXXCPP $CPPFLAGS'
27131 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27132 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27133 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
27135 if test "${OPENH323DIR:-unset}" != "unset" ; then
27136 as_ac_Header
=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
27137 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27138 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27139 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27140 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27141 echo $ECHO_N "(cached) $ECHO_C" >&6
27143 ac_res
=`eval echo '${'$as_ac_Header'}'`
27144 { echo "$as_me:$LINENO: result: $ac_res" >&5
27145 echo "${ECHO_T}$ac_res" >&6; }
27147 # Is the header compilable?
27148 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
27149 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
27150 cat >conftest.
$ac_ext <<_ACEOF
27153 cat confdefs.h
>>conftest.
$ac_ext
27154 cat >>conftest.
$ac_ext <<_ACEOF
27155 /* end confdefs.h. */
27156 $ac_includes_default
27157 #include <${OPENH323DIR}/version.h>
27159 rm -f conftest.
$ac_objext
27160 if { (ac_try
="$ac_compile"
27161 case "(($ac_try" in
27162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166 (eval "$ac_compile") 2>conftest.er1
27168 grep -v '^ *+' conftest.er1 >conftest.err
27170 cat conftest.err >&5
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); } && {
27173 test -z "$ac_cxx_werror_flag" ||
27174 test ! -s conftest.err
27175 } && test -s conftest.$ac_objext; then
27176 ac_header_compiler=yes
27178 echo "$as_me: failed program was:" >&5
27179 sed 's/^/| /' conftest.$ac_ext >&5
27181 ac_header_compiler=no
27184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27186 echo "${ECHO_T}$ac_header_compiler" >&6; }
27188 # Is the header present?
27189 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
27190 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
27191 cat >conftest.$ac_ext <<_ACEOF
27194 cat confdefs.h >>conftest.$ac_ext
27195 cat >>conftest.$ac_ext <<_ACEOF
27196 /* end confdefs.h. */
27197 #include <${OPENH323DIR}/version.h>
27199 if { (ac_try="$ac_cpp conftest.$ac_ext"
27200 case "(($ac_try" in
27201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27202 *) ac_try_echo
=$ac_try;;
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27207 grep -v '^ *+' conftest.er1
>conftest.err
27209 cat conftest.err
>&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); } >/dev
/null
&& {
27212 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27213 test ! -s conftest.err
27215 ac_header_preproc
=yes
27217 echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.
$ac_ext >&5
27220 ac_header_preproc
=no
27223 rm -f conftest.err conftest.
$ac_ext
27224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27225 echo "${ECHO_T}$ac_header_preproc" >&6; }
27227 # So? What about this header?
27228 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27230 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27231 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27232 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
27233 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
27234 ac_header_preproc
=yes
27237 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
27238 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
27239 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
27240 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
27241 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
27242 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
27243 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
27244 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27245 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
27246 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
27247 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
27248 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
27250 ## ------------------------------- ##
27251 ## Report this to www.asterisk.org ##
27252 ## ------------------------------- ##
27254 ) |
sed "s/^/$as_me: WARNING: /" >&2
27257 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27258 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27259 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27262 eval "$as_ac_Header=\$ac_header_preproc"
27264 ac_res
=`eval echo '${'$as_ac_Header'}'`
27265 { echo "$as_me:$LINENO: result: $ac_res" >&5
27266 echo "${ECHO_T}$ac_res" >&6; }
27269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27275 if test "${HAS_OPENH323:-unset}" = "unset" ; then
27276 as_ac_Header
=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
27277 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27278 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27279 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27280 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27281 echo $ECHO_N "(cached) $ECHO_C" >&6
27283 ac_res
=`eval echo '${'$as_ac_Header'}'`
27284 { echo "$as_me:$LINENO: result: $ac_res" >&5
27285 echo "${ECHO_T}$ac_res" >&6; }
27287 # Is the header compilable?
27288 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
27289 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
27290 cat >conftest.
$ac_ext <<_ACEOF
27293 cat confdefs.h
>>conftest.
$ac_ext
27294 cat >>conftest.
$ac_ext <<_ACEOF
27295 /* end confdefs.h. */
27296 $ac_includes_default
27297 #include <${PWLIBDIR}/../openh323/version.h>
27299 rm -f conftest.
$ac_objext
27300 if { (ac_try
="$ac_compile"
27301 case "(($ac_try" in
27302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_compile") 2>conftest.er1
27308 grep -v '^ *+' conftest.er1 >conftest.err
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } && {
27313 test -z "$ac_cxx_werror_flag" ||
27314 test ! -s conftest.err
27315 } && test -s conftest.$ac_objext; then
27316 ac_header_compiler=yes
27318 echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27321 ac_header_compiler=no
27324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27326 echo "${ECHO_T}$ac_header_compiler" >&6; }
27328 # Is the header present?
27329 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
27330 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
27331 cat >conftest.$ac_ext <<_ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h. */
27337 #include <${PWLIBDIR}/../openh323/version.h>
27339 if { (ac_try="$ac_cpp conftest.$ac_ext"
27340 case "(($ac_try" in
27341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27342 *) ac_try_echo
=$ac_try;;
27344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27347 grep -v '^ *+' conftest.er1
>conftest.err
27349 cat conftest.err
>&5
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); } >/dev
/null
&& {
27352 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27353 test ! -s conftest.err
27355 ac_header_preproc
=yes
27357 echo "$as_me: failed program was:" >&5
27358 sed 's/^/| /' conftest.
$ac_ext >&5
27360 ac_header_preproc
=no
27363 rm -f conftest.err conftest.
$ac_ext
27364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27365 echo "${ECHO_T}$ac_header_preproc" >&6; }
27367 # So? What about this header?
27368 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27370 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27371 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27372 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
27373 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
27374 ac_header_preproc
=yes
27377 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
27378 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
27379 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
27380 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
27381 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
27382 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
27383 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
27384 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27385 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
27386 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
27387 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
27388 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
27390 ## ------------------------------- ##
27391 ## Report this to www.asterisk.org ##
27392 ## ------------------------------- ##
27394 ) |
sed "s/^/$as_me: WARNING: /" >&2
27397 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27398 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27399 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27400 echo $ECHO_N "(cached) $ECHO_C" >&6
27402 eval "$as_ac_Header=\$ac_header_preproc"
27404 ac_res
=`eval echo '${'$as_ac_Header'}'`
27405 { echo "$as_me:$LINENO: result: $ac_res" >&5
27406 echo "${ECHO_T}$ac_res" >&6; }
27409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27410 OPENH323DIR
="${PWLIBDIR}/../openh323"; HAS_OPENH323
=1
27414 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27415 OPENH323DIR
="${PWLIBDIR}/../openh323"
27416 saved_cppflags
="${CPPFLAGS}"
27417 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
27418 as_ac_Header
=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
27419 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
27420 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
27421 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27422 echo $ECHO_N "(cached) $ECHO_C" >&6
27424 cat >conftest.
$ac_ext <<_ACEOF
27427 cat confdefs.h
>>conftest.
$ac_ext
27428 cat >>conftest.
$ac_ext <<_ACEOF
27429 /* end confdefs.h. */
27432 #include <${OPENH323DIR}/include/h323.h>
27434 rm -f conftest.
$ac_objext
27435 if { (ac_try
="$ac_compile"
27436 case "(($ac_try" in
27437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27438 *) ac_try_echo=$ac_try;;
27440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27441 (eval "$ac_compile") 2>conftest.er1
27443 grep -v '^ *+' conftest.er1 >conftest.err
27445 cat conftest.err >&5
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); } && {
27448 test -z "$ac_cxx_werror_flag" ||
27449 test ! -s conftest.err
27450 } && test -s conftest.$ac_objext; then
27451 eval "$as_ac_Header=yes"
27453 echo "$as_me: failed program was:" >&5
27454 sed 's/^/| /' conftest.$ac_ext >&5
27456 eval "$as_ac_Header=no"
27459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27461 ac_res=`eval echo '${'$as_ac_Header'}'`
27462 { echo "$as_me:$LINENO: result: $ac_res" >&5
27463 echo "${ECHO_T}$ac_res" >&6; }
27464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27467 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
27471 CPPFLAGS="${saved_cppflags}"
27473 saved_cppflags="${CPPFLAGS}"
27474 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
27475 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" |
$as_tr_sh`
27476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27477 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27478 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27480 echo $ECHO_N "(cached) $ECHO_C" >&6
27482 ac_res=`eval echo '${'$as_ac_Header'}'`
27483 { echo "$as_me:$LINENO: result: $ac_res" >&5
27484 echo "${ECHO_T}$ac_res" >&6; }
27486 # Is the header compilable?
27487 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
27488 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
27489 cat >conftest.$ac_ext <<_ACEOF
27492 cat confdefs.h >>conftest.$ac_ext
27493 cat >>conftest.$ac_ext <<_ACEOF
27494 /* end confdefs.h. */
27495 $ac_includes_default
27496 #include <${HOME}/openh323/include/h323.h>
27498 rm -f conftest.$ac_objext
27499 if { (ac_try="$ac_compile"
27500 case "(($ac_try" in
27501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27502 *) ac_try_echo
=$ac_try;;
27504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27505 (eval "$ac_compile") 2>conftest.er1
27507 grep -v '^ *+' conftest.er1
>conftest.err
27509 cat conftest.err
>&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } && {
27512 test -z "$ac_cxx_werror_flag" ||
27513 test ! -s conftest.err
27514 } && test -s conftest.
$ac_objext; then
27515 ac_header_compiler
=yes
27517 echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.
$ac_ext >&5
27520 ac_header_compiler
=no
27523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27525 echo "${ECHO_T}$ac_header_compiler" >&6; }
27527 # Is the header present?
27528 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
27529 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
27530 cat >conftest.
$ac_ext <<_ACEOF
27533 cat confdefs.h
>>conftest.
$ac_ext
27534 cat >>conftest.
$ac_ext <<_ACEOF
27535 /* end confdefs.h. */
27536 #include <${HOME}/openh323/include/h323.h>
27538 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27539 case "(($ac_try" in
27540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27541 *) ac_try_echo=$ac_try;;
27543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27546 grep -v '^ *+' conftest.er1 >conftest.err
27548 cat conftest.err >&5
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); } >/dev/null && {
27551 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27552 test ! -s conftest.err
27554 ac_header_preproc=yes
27556 echo "$as_me: failed program was:" >&5
27557 sed 's/^/| /' conftest.$ac_ext >&5
27559 ac_header_preproc=no
27562 rm -f conftest.err conftest.$ac_ext
27563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27564 echo "${ECHO_T}$ac_header_preproc" >&6; }
27566 # So? What about this header?
27567 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27569 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27570 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27571 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
27572 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
27573 ac_header_preproc=yes
27576 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
27577 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
27578 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
27579 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
27580 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
27581 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
27582 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
27583 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27584 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
27585 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
27586 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
27587 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
27589 ## ------------------------------- ##
27590 ## Report this to www.asterisk.org ##
27591 ## ------------------------------- ##
27593 ) | sed "s/^/$as_me: WARNING: /" >&2
27596 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27597 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27599 echo $ECHO_N "(cached) $ECHO_C" >&6
27601 eval "$as_ac_Header=\$ac_header_preproc"
27603 ac_res=`eval echo '${'$as_ac_Header'}'`
27604 { echo "$as_me:$LINENO: result: $ac_res" >&5
27605 echo "${ECHO_T}$ac_res" >&6; }
27608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27613 CPPFLAGS="${saved_cppflags}"
27614 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27615 OPENH323DIR="${HOME}/openh323"
27617 saved_cppflags="${CPPFLAGS}"
27618 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
27619 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27620 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
27621 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
27622 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27623 echo $ECHO_N "(cached) $ECHO_C" >&6
27625 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
27626 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
27628 # Is the header compilable?
27629 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
27630 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
27631 cat >conftest.$ac_ext <<_ACEOF
27634 cat confdefs.h >>conftest.$ac_ext
27635 cat >>conftest.$ac_ext <<_ACEOF
27636 /* end confdefs.h. */
27637 $ac_includes_default
27638 #include </usr/local/include/openh323/h323.h>
27640 rm -f conftest.$ac_objext
27641 if { (ac_try="$ac_compile"
27642 case "(($ac_try" in
27643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27644 *) ac_try_echo
=$ac_try;;
27646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647 (eval "$ac_compile") 2>conftest.er1
27649 grep -v '^ *+' conftest.er1
>conftest.err
27651 cat conftest.err
>&5
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); } && {
27654 test -z "$ac_cxx_werror_flag" ||
27655 test ! -s conftest.err
27656 } && test -s conftest.
$ac_objext; then
27657 ac_header_compiler
=yes
27659 echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.
$ac_ext >&5
27662 ac_header_compiler
=no
27665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27667 echo "${ECHO_T}$ac_header_compiler" >&6; }
27669 # Is the header present?
27670 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
27671 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
27672 cat >conftest.
$ac_ext <<_ACEOF
27675 cat confdefs.h
>>conftest.
$ac_ext
27676 cat >>conftest.
$ac_ext <<_ACEOF
27677 /* end confdefs.h. */
27678 #include </usr/local/include/openh323/h323.h>
27680 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27681 case "(($ac_try" in
27682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27683 *) ac_try_echo=$ac_try;;
27685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27688 grep -v '^ *+' conftest.er1 >conftest.err
27690 cat conftest.err >&5
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); } >/dev/null && {
27693 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27694 test ! -s conftest.err
27696 ac_header_preproc=yes
27698 echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27701 ac_header_preproc=no
27704 rm -f conftest.err conftest.$ac_ext
27705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27706 echo "${ECHO_T}$ac_header_preproc" >&6; }
27708 # So? What about this header?
27709 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27711 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27712 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27713 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
27714 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
27715 ac_header_preproc=yes
27718 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
27719 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
27720 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
27721 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
27722 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
27723 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
27724 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
27725 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27726 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
27727 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
27728 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
27729 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
27731 ## ------------------------------- ##
27732 ## Report this to www.asterisk.org ##
27733 ## ------------------------------- ##
27735 ) | sed "s/^/$as_me: WARNING: /" >&2
27738 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
27739 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
27740 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27741 echo $ECHO_N "(cached) $ECHO_C" >&6
27743 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
27745 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
27746 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
27749 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
27754 CPPFLAGS="${saved_cppflags}"
27755 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27756 OPENH323DIR="/usr/local/share/openh323"
27757 OPENH323_INCDIR="/usr/local/include/openh323"
27758 if test "x$LIB64" != "x"; then
27759 OPENH323_LIBDIR="/usr/local/lib64"
27761 OPENH323_LIBDIR="/usr/local/lib"
27764 saved_cppflags="${CPPFLAGS}"
27765 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
27766 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
27767 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
27768 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
27769 echo $ECHO_N "(cached) $ECHO_C" >&6
27771 cat >conftest.$ac_ext <<_ACEOF
27774 cat confdefs.h >>conftest.$ac_ext
27775 cat >>conftest.$ac_ext <<_ACEOF
27776 /* end confdefs.h. */
27779 #include </usr/include/openh323/h323.h>
27781 rm -f conftest.$ac_objext
27782 if { (ac_try="$ac_compile"
27783 case "(($ac_try" in
27784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27785 *) ac_try_echo
=$ac_try;;
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_compile") 2>conftest.er1
27790 grep -v '^ *+' conftest.er1
>conftest.err
27792 cat conftest.err
>&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); } && {
27795 test -z "$ac_cxx_werror_flag" ||
27796 test ! -s conftest.err
27797 } && test -s conftest.
$ac_objext; then
27798 ac_cv_header__usr_include_openh323_h323_h
=yes
27800 echo "$as_me: failed program was:" >&5
27801 sed 's/^/| /' conftest.
$ac_ext >&5
27803 ac_cv_header__usr_include_openh323_h323_h
=no
27806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27808 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
27809 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
27810 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
27815 CPPFLAGS
="${saved_cppflags}"
27816 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27817 OPENH323DIR
="/usr/share/openh323"
27818 OPENH323_INCDIR
="/usr/include/openh323"
27819 if test "x$LIB64" != "x"; then
27820 OPENH323_LIBDIR
="/usr/lib64"
27822 OPENH323_LIBDIR
="/usr/lib"
27830 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27831 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
27832 OPENH323_INCDIR
="${OPENH323DIR}/include"
27834 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
27835 OPENH323_LIBDIR
="${OPENH323DIR}/lib"
27838 OPENH323_LIBDIR
="`cd ${OPENH323_LIBDIR}; pwd`"
27839 OPENH323_INCDIR
="`cd ${OPENH323_INCDIR}; pwd`"
27840 OPENH323DIR
="`cd ${OPENH323DIR}; pwd`"
27847 ac_cpp
='$CPP $CPPFLAGS'
27848 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27849 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27850 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27854 if test "${HAS_OPENH323:-unset}" != "unset"; then
27855 OPENH323_VERSION
=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
27856 OPENH323_MAJOR_VERSION
=`echo ${OPENH323_VERSION} | cut -f1 -d.`
27857 OPENH323_MINOR_VERSION
=`echo ${OPENH323_VERSION} | cut -f2 -d.`
27858 OPENH323_BUILD_NUMBER
=`echo ${OPENH323_VERSION} | cut -f3 -d.`
27859 let OPENH323_VER
=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
27860 let OPENH323_REQ
=1*10000+17*100+3
27862 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
27863 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
27864 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
27865 { echo "$as_me:$LINENO: result: no" >&5
27866 echo "${ECHO_T}no" >&6; }
27869 { echo "$as_me:$LINENO: result: yes" >&5
27870 echo "${ECHO_T}yes" >&6; }
27875 if test "${HAS_OPENH323:-unset}" != "unset"; then
27876 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
27877 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
27879 prefixes
="h323_${PWLIB_PLATFORM}_ h323_ openh323"
27880 for pfx
in $prefixes; do
27881 files
=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
27883 if test -n "$files"; then
27884 for f
in $files; do
27885 if test -f $f -a ! -L $f; then
27886 libfile
=`basename $f`
27891 if test -n "$libfile"; then
27892 OPENH323_PREFIX
=$pfx
27896 if test "${libfile:-unset}" != "unset"; then
27897 OPENH323_SUFFIX
=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
27899 case "${OPENH323_SUFFIX}" in
27901 OPENH323_BUILD
="notrace";;
27903 OPENH323_BUILD
="opt";;
27905 OPENH323_BUILD
="debug";;
27907 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
27908 notrace
=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
27909 if test "x$notrace" = "x"; then
27912 if test "$notrace" -ne 0; then
27913 OPENH323_BUILD
="notrace"
27915 OPENH323_BUILD
="opt"
27917 OPENH323_LIB
="-l${OPENH323_PREFIX}"
27919 OPENH323_BUILD
="notrace"
27923 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
27924 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
27930 PLATFORM_OPENH323="h323_
${PWLIB_PLATFORM}_
${OPENH323_SUFFIX}"
27932 if test "${HAS_OPENH323:-unset}" != "unset"; then
27933 { echo "$as_me:$LINENO: checking OpenH323 installation validity
" >&5
27934 echo $ECHO_N "checking OpenH323 installation validity...
$ECHO_C" >&6; }
27936 saved_cppflags="${CPPFLAGS}"
27937 saved_libs="${LIBS}"
27938 if test "${OPENH323_LIB:-unset}" != "unset"; then
27939 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
27941 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
27943 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
27946 ac_cpp='$CXXCPP $CPPFLAGS'
27947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27952 cat >conftest.$ac_ext <<_ACEOF
27955 cat confdefs.h >>conftest.$ac_ext
27956 cat >>conftest.$ac_ext <<_ACEOF
27957 /* end confdefs.h. */
27960 #include "h323ep.h
"
27964 H323EndPoint ep = H323EndPoint();
27969 rm -f conftest.$ac_objext conftest$ac_exeext
27970 if { (ac_try="$ac_link"
27971 case "(($ac_try" in
27972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973 *) ac_try_echo=$ac_try;;
27975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27976 (eval "$ac_link") 2>conftest.er1
27978 grep -v '^ *+' conftest.er1 >conftest.err
27980 cat conftest.err >&5
27981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27982 (exit $ac_status); } && {
27983 test -z "$ac_cxx_werror_flag" ||
27984 test ! -s conftest.err
27985 } && test -s conftest$ac_exeext &&
27986 $as_test_x conftest$ac_exeext; then
27987 { echo "$as_me:$LINENO: result
: yes" >&5
27988 echo "${ECHO_T}yes" >&6; }
27989 ac_cv_lib_OPENH323="yes"
27992 echo "$as_me: failed program was
:" >&5
27993 sed 's/^/| /' conftest.$ac_ext >&5
27995 { echo "$as_me:$LINENO: result
: no
" >&5
27996 echo "${ECHO_T}no
" >&6; }
27997 ac_cv_lib_OPENH323="no
"
28002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28003 conftest$ac_exeext conftest.$ac_ext
28006 ac_cpp='$CPP $CPPFLAGS'
28007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28012 LIBS="${saved_libs}"
28013 CPPFLAGS="${saved_cppflags}"
28015 if test "${ac_cv_lib_OPENH323}" = "yes"; then
28016 if test "${OPENH323_LIB:-undef}" = "undef
"; then
28017 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr
/lib
"; then
28018 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
28020 OPENH323_LIB="-l${PLATFORM_OPENH323}"
28023 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr
/include
"; then
28024 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
28028 cat >>confdefs.h <<\_ACEOF
28029 #define HAVE_OPENH323 1
28036 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
28037 { echo "$as_me:$LINENO: ***" >&5
28038 echo "$as_me: ***" >&6;}
28039 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken.
" >&5
28040 echo "$as_me: *** The OPENH323 installation on this system appears to be broken.
" >&6;}
28041 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
28042 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
28043 { echo "$as_me:$LINENO: *** including
--without-h323" >&5
28044 echo "$as_me: *** including
--without-h323" >&6;}
28049 if test "${USE_RADIUS}" != "no
"; then
28051 if test "x
${RADIUS_DIR}" != "x
"; then
28052 if test -d ${RADIUS_DIR}/lib; then
28053 pbxlibdir="-L${RADIUS_DIR}/lib
"
28055 pbxlibdir="-L${RADIUS_DIR}"
28058 { echo "$as_me:$LINENO: checking
for rc_read_config
in -lradiusclient-ng" >&5
28059 echo $ECHO_N "checking
for rc_read_config
in -lradiusclient-ng...
$ECHO_C" >&6; }
28060 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
28061 echo $ECHO_N "(cached
) $ECHO_C" >&6
28063 ac_check_lib_save_LIBS=$LIBS
28064 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
28065 cat >conftest.$ac_ext <<_ACEOF
28068 cat confdefs.h >>conftest.$ac_ext
28069 cat >>conftest.$ac_ext <<_ACEOF
28070 /* end confdefs.h. */
28072 /* Override any GCC internal prototype to avoid an error.
28073 Use char because int might match the return type of a GCC
28074 builtin and then its argument prototype would still apply. */
28078 char rc_read_config ();
28082 return rc_read_config ();
28087 rm -f conftest.$ac_objext conftest$ac_exeext
28088 if { (ac_try="$ac_link"
28089 case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28094 (eval "$ac_link") 2>conftest.er1
28096 grep -v '^ *+' conftest.er1 >conftest.err
28098 cat conftest.err >&5
28099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28100 (exit $ac_status); } && {
28101 test -z "$ac_c_werror_flag" ||
28102 test ! -s conftest.err
28103 } && test -s conftest$ac_exeext &&
28104 $as_test_x conftest$ac_exeext; then
28105 ac_cv_lib_radiusclient_ng_rc_read_config=yes
28107 echo "$as_me: failed program was
:" >&5
28108 sed 's/^/| /' conftest.$ac_ext >&5
28110 ac_cv_lib_radiusclient_ng_rc_read_config=no
28113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28114 conftest$ac_exeext conftest.$ac_ext
28115 LIBS=$ac_check_lib_save_LIBS
28117 { echo "$as_me:$LINENO: result
: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
28118 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
28119 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
28120 AST_RADIUS_FOUND=yes
28122 AST_RADIUS_FOUND=no
28126 if test "${AST_RADIUS_FOUND}" = "yes"; then
28127 RADIUS_LIB="-lradiusclient-ng "
28128 RADIUS_HEADER_FOUND="1"
28129 if test "x
${RADIUS_DIR}" != "x
"; then
28130 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
28131 RADIUS_INCLUDE="-I${RADIUS_DIR}/include
"
28132 saved_cppflags="${CPPFLAGS}"
28133 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include
"
28134 if test "xradiusclient-ng.h
" != "x
" ; then
28135 as_ac_Header=`echo "ac_cv_header_
${RADIUS_DIR}/include
/radiusclient-ng.h
" | $as_tr_sh`
28136 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28137 { echo "$as_me:$LINENO: checking
for ${RADIUS_DIR}/include
/radiusclient-ng.h
" >&5
28138 echo $ECHO_N "checking
for ${RADIUS_DIR}/include
/radiusclient-ng.h...
$ECHO_C" >&6; }
28139 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28140 echo $ECHO_N "(cached
) $ECHO_C" >&6
28142 ac_res=`eval echo '${'$as_ac_Header'}'`
28143 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28144 echo "${ECHO_T}$ac_res" >&6; }
28146 # Is the header compilable?
28147 { echo "$as_me:$LINENO: checking
${RADIUS_DIR}/include
/radiusclient-ng.h usability
" >&5
28148 echo $ECHO_N "checking
${RADIUS_DIR}/include
/radiusclient-ng.h usability...
$ECHO_C" >&6; }
28149 cat >conftest.$ac_ext <<_ACEOF
28152 cat confdefs.h >>conftest.$ac_ext
28153 cat >>conftest.$ac_ext <<_ACEOF
28154 /* end confdefs.h. */
28155 $ac_includes_default
28156 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28158 rm -f conftest.$ac_objext
28159 if { (ac_try="$ac_compile"
28160 case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_compile") 2>conftest.er1
28167 grep -v '^ *+' conftest.er1 >conftest.err
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28171 (exit $ac_status); } && {
28172 test -z "$ac_c_werror_flag" ||
28173 test ! -s conftest.err
28174 } && test -s conftest.$ac_objext; then
28175 ac_header_compiler=yes
28177 echo "$as_me: failed program was
:" >&5
28178 sed 's/^/| /' conftest.$ac_ext >&5
28180 ac_header_compiler=no
28183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28184 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28185 echo "${ECHO_T}$ac_header_compiler" >&6; }
28187 # Is the header present?
28188 { echo "$as_me:$LINENO: checking
${RADIUS_DIR}/include
/radiusclient-ng.h presence
" >&5
28189 echo $ECHO_N "checking
${RADIUS_DIR}/include
/radiusclient-ng.h presence...
$ECHO_C" >&6; }
28190 cat >conftest.$ac_ext <<_ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h. */
28196 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28198 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28199 case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28206 grep -v '^ *+' conftest.er1 >conftest.err
28208 cat conftest.err >&5
28209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28210 (exit $ac_status); } >/dev/null && {
28211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28212 test ! -s conftest.err
28214 ac_header_preproc=yes
28216 echo "$as_me: failed program was
:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28219 ac_header_preproc=no
28222 rm -f conftest.err conftest.$ac_ext
28223 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28224 echo "${ECHO_T}$ac_header_preproc" >&6; }
28226 # So? What about this header?
28227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28229 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28230 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28231 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: proceeding with the compiler
's result" >&5
28232 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result
" >&2;}
28233 ac_header_preproc=yes
28236 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: present but cannot be compiled
" >&5
28237 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: present but cannot be compiled
" >&2;}
28238 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: check
for missing prerequisite headers?
" >&5
28239 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: check
for missing prerequisite headers?
" >&2;}
28240 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: see the Autoconf documentation
" >&5
28241 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: see the Autoconf documentation
" >&2;}
28242 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28243 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28244 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: proceeding with the preprocessor
's result" >&5
28245 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result
" >&2;}
28246 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: in the future
, the compiler will take precedence
" >&5
28247 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: in the future
, the compiler will take precedence
" >&2;}
28249 ## ------------------------------- ##
28250 ## Report this to www.asterisk.org ##
28251 ## ------------------------------- ##
28253 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28256 { echo "$as_me:$LINENO: checking
for ${RADIUS_DIR}/include
/radiusclient-ng.h
" >&5
28257 echo $ECHO_N "checking
for ${RADIUS_DIR}/include
/radiusclient-ng.h...
$ECHO_C" >&6; }
28258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28259 echo $ECHO_N "(cached
) $ECHO_C" >&6
28261 eval "$as_ac_Header=\
$ac_header_preproc"
28263 ac_res=`eval echo '${'$as_ac_Header'}'`
28264 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28265 echo "${ECHO_T}$ac_res" >&6; }
28268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28269 RADIUS_HEADER_FOUND=1
28271 RADIUS_HEADER_FOUND=0
28276 CPPFLAGS="${saved_cppflags}"
28278 if test "xradiusclient-ng.h
" != "x
" ; then
28279 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28280 { echo "$as_me:$LINENO: checking
for radiusclient-ng.h
" >&5
28281 echo $ECHO_N "checking
for radiusclient-ng.h...
$ECHO_C" >&6; }
28282 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28283 echo $ECHO_N "(cached
) $ECHO_C" >&6
28285 { echo "$as_me:$LINENO: result
: $ac_cv_header_radiusclient_ng_h" >&5
28286 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28288 # Is the header compilable?
28289 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability
" >&5
28290 echo $ECHO_N "checking radiusclient-ng.h usability...
$ECHO_C" >&6; }
28291 cat >conftest.$ac_ext <<_ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h. */
28297 $ac_includes_default
28298 #include <radiusclient-ng.h>
28300 rm -f conftest.$ac_objext
28301 if { (ac_try="$ac_compile"
28302 case "(($ac_try" in
28303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_compile") 2>conftest.er1
28309 grep -v '^ *+' conftest.er1 >conftest.err
28311 cat conftest.err >&5
28312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28313 (exit $ac_status); } && {
28314 test -z "$ac_c_werror_flag" ||
28315 test ! -s conftest.err
28316 } && test -s conftest.$ac_objext; then
28317 ac_header_compiler=yes
28319 echo "$as_me: failed program was
:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28322 ac_header_compiler=no
28325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28326 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28327 echo "${ECHO_T}$ac_header_compiler" >&6; }
28329 # Is the header present?
28330 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence
" >&5
28331 echo $ECHO_N "checking radiusclient-ng.h presence...
$ECHO_C" >&6; }
28332 cat >conftest.$ac_ext <<_ACEOF
28335 cat confdefs.h >>conftest.$ac_ext
28336 cat >>conftest.$ac_ext <<_ACEOF
28337 /* end confdefs.h. */
28338 #include <radiusclient-ng.h>
28340 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28341 case "(($ac_try" in
28342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343 *) ac_try_echo=$ac_try;;
28345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28346 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28348 grep -v '^ *+' conftest.er1 >conftest.err
28350 cat conftest.err >&5
28351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28352 (exit $ac_status); } >/dev/null && {
28353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28354 test ! -s conftest.err
28356 ac_header_preproc=yes
28358 echo "$as_me: failed program was
:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28361 ac_header_preproc=no
28364 rm -f conftest.err conftest.$ac_ext
28365 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28366 echo "${ECHO_T}$ac_header_preproc" >&6; }
28368 # So? What about this header?
28369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28371 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28372 echo "$as_me: WARNING
: radiusclient-ng.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28373 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: proceeding with the compiler
's result" >&5
28374 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result
" >&2;}
28375 ac_header_preproc=yes
28378 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: present but cannot be compiled
" >&5
28379 echo "$as_me: WARNING
: radiusclient-ng.h
: present but cannot be compiled
" >&2;}
28380 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: check
for missing prerequisite headers?
" >&5
28381 echo "$as_me: WARNING
: radiusclient-ng.h
: check
for missing prerequisite headers?
" >&2;}
28382 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: see the Autoconf documentation
" >&5
28383 echo "$as_me: WARNING
: radiusclient-ng.h
: see the Autoconf documentation
" >&2;}
28384 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28385 echo "$as_me: WARNING
: radiusclient-ng.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28386 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: proceeding with the preprocessor
's result" >&5
28387 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result
" >&2;}
28388 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: in the future
, the compiler will take precedence
" >&5
28389 echo "$as_me: WARNING
: radiusclient-ng.h
: in the future
, the compiler will take precedence
" >&2;}
28391 ## ------------------------------- ##
28392 ## Report this to www.asterisk.org ##
28393 ## ------------------------------- ##
28395 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28398 { echo "$as_me:$LINENO: checking
for radiusclient-ng.h
" >&5
28399 echo $ECHO_N "checking
for radiusclient-ng.h...
$ECHO_C" >&6; }
28400 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28401 echo $ECHO_N "(cached
) $ECHO_C" >&6
28403 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
28405 { echo "$as_me:$LINENO: result
: $ac_cv_header_radiusclient_ng_h" >&5
28406 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28409 if test $ac_cv_header_radiusclient_ng_h = yes; then
28410 RADIUS_HEADER_FOUND=1
28412 RADIUS_HEADER_FOUND=0
28418 if test "x
${RADIUS_HEADER_FOUND}" = "x0
" ; then
28419 if test -n "${RADIUS_MANDATORY}" ;
28421 { echo "$as_me:$LINENO: ***" >&5
28422 echo "$as_me: ***" >&6;}
28423 { echo "$as_me:$LINENO: *** It appears that you
do not have the radiusclient-ng development package installed.
" >&5
28424 echo "$as_me: *** It appears that you
do not have the radiusclient-ng development package installed.
" >&6;}
28425 { echo "$as_me:$LINENO: *** Please
install it to include
${RADIUS_DESCRIP} support
, or re-run configure
" >&5
28426 echo "$as_me: *** Please
install it to include
${RADIUS_DESCRIP} support
, or re-run configure
" >&6;}
28427 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${RADIUS_OPTION}" >&5
28428 echo "$as_me: *** without explicitly specifying
--with-${RADIUS_OPTION}" >&6;}
28437 cat >>confdefs.h <<_ACEOF
28438 #define HAVE_RADIUS 1
28442 elif test -n "${RADIUS_MANDATORY}";
28444 { echo "$as_me:$LINENO: ***" >&5
28445 echo "$as_me: ***" >&6;}
28446 { echo "$as_me:$LINENO: *** The
${RADIUS_DESCRIP} installation on this system appears to be broken.
" >&5
28447 echo "$as_me: *** The
${RADIUS_DESCRIP} installation on this system appears to be broken.
" >&6;}
28448 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
28449 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
28450 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${RADIUS_OPTION}" >&5
28451 echo "$as_me: *** without explicitly specifying
--with-${RADIUS_OPTION}" >&6;}
28458 if test "${USE_SPEEX}" != "no
"; then
28460 if test "x
${SPEEX_DIR}" != "x
"; then
28461 if test -d ${SPEEX_DIR}/lib; then
28462 pbxlibdir="-L${SPEEX_DIR}/lib
"
28464 pbxlibdir="-L${SPEEX_DIR}"
28467 { echo "$as_me:$LINENO: checking
for speex_encode
in -lspeex" >&5
28468 echo $ECHO_N "checking
for speex_encode
in -lspeex...
$ECHO_C" >&6; }
28469 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
28470 echo $ECHO_N "(cached
) $ECHO_C" >&6
28472 ac_check_lib_save_LIBS=$LIBS
28473 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
28474 cat >conftest.$ac_ext <<_ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28481 /* Override any GCC internal prototype to avoid an error.
28482 Use char because int might match the return type of a GCC
28483 builtin and then its argument prototype would still apply. */
28487 char speex_encode ();
28491 return speex_encode ();
28496 rm -f conftest.$ac_objext conftest$ac_exeext
28497 if { (ac_try="$ac_link"
28498 case "(($ac_try" in
28499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500 *) ac_try_echo=$ac_try;;
28502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28503 (eval "$ac_link") 2>conftest.er1
28505 grep -v '^ *+' conftest.er1 >conftest.err
28507 cat conftest.err >&5
28508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28509 (exit $ac_status); } && {
28510 test -z "$ac_c_werror_flag" ||
28511 test ! -s conftest.err
28512 } && test -s conftest$ac_exeext &&
28513 $as_test_x conftest$ac_exeext; then
28514 ac_cv_lib_speex_speex_encode=yes
28516 echo "$as_me: failed program was
:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28519 ac_cv_lib_speex_speex_encode=no
28522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28523 conftest$ac_exeext conftest.$ac_ext
28524 LIBS=$ac_check_lib_save_LIBS
28526 { echo "$as_me:$LINENO: result
: $ac_cv_lib_speex_speex_encode" >&5
28527 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
28528 if test $ac_cv_lib_speex_speex_encode = yes; then
28529 AST_SPEEX_FOUND=yes
28535 if test "${AST_SPEEX_FOUND}" = "yes"; then
28536 SPEEX_LIB="-lspeex -lm"
28537 SPEEX_HEADER_FOUND="1"
28538 if test "x
${SPEEX_DIR}" != "x
"; then
28539 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
28540 SPEEX_INCLUDE="-I${SPEEX_DIR}/include
"
28541 saved_cppflags="${CPPFLAGS}"
28542 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include
"
28543 if test "xspeex
/speex.h
" != "x
" ; then
28544 as_ac_Header=`echo "ac_cv_header_
${SPEEX_DIR}/include
/speex
/speex.h
" | $as_tr_sh`
28545 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28546 { echo "$as_me:$LINENO: checking
for ${SPEEX_DIR}/include
/speex
/speex.h
" >&5
28547 echo $ECHO_N "checking
for ${SPEEX_DIR}/include
/speex
/speex.h...
$ECHO_C" >&6; }
28548 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28549 echo $ECHO_N "(cached
) $ECHO_C" >&6
28551 ac_res=`eval echo '${'$as_ac_Header'}'`
28552 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28553 echo "${ECHO_T}$ac_res" >&6; }
28555 # Is the header compilable?
28556 { echo "$as_me:$LINENO: checking
${SPEEX_DIR}/include
/speex
/speex.h usability
" >&5
28557 echo $ECHO_N "checking
${SPEEX_DIR}/include
/speex
/speex.h usability...
$ECHO_C" >&6; }
28558 cat >conftest.$ac_ext <<_ACEOF
28561 cat confdefs.h >>conftest.$ac_ext
28562 cat >>conftest.$ac_ext <<_ACEOF
28563 /* end confdefs.h. */
28564 $ac_includes_default
28565 #include <${SPEEX_DIR}/include/speex/speex.h>
28567 rm -f conftest.$ac_objext
28568 if { (ac_try="$ac_compile"
28569 case "(($ac_try" in
28570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28571 *) ac_try_echo=$ac_try;;
28573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28574 (eval "$ac_compile") 2>conftest.er1
28576 grep -v '^ *+' conftest.er1 >conftest.err
28578 cat conftest.err >&5
28579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28580 (exit $ac_status); } && {
28581 test -z "$ac_c_werror_flag" ||
28582 test ! -s conftest.err
28583 } && test -s conftest.$ac_objext; then
28584 ac_header_compiler=yes
28586 echo "$as_me: failed program was
:" >&5
28587 sed 's/^/| /' conftest.$ac_ext >&5
28589 ac_header_compiler=no
28592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28593 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28594 echo "${ECHO_T}$ac_header_compiler" >&6; }
28596 # Is the header present?
28597 { echo "$as_me:$LINENO: checking
${SPEEX_DIR}/include
/speex
/speex.h presence
" >&5
28598 echo $ECHO_N "checking
${SPEEX_DIR}/include
/speex
/speex.h presence...
$ECHO_C" >&6; }
28599 cat >conftest.$ac_ext <<_ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h. */
28605 #include <${SPEEX_DIR}/include/speex/speex.h>
28607 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28608 case "(($ac_try" in
28609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610 *) ac_try_echo=$ac_try;;
28612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28613 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28615 grep -v '^ *+' conftest.er1 >conftest.err
28617 cat conftest.err >&5
28618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28619 (exit $ac_status); } >/dev/null && {
28620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28621 test ! -s conftest.err
28623 ac_header_preproc=yes
28625 echo "$as_me: failed program was
:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28628 ac_header_preproc=no
28631 rm -f conftest.err conftest.$ac_ext
28632 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28633 echo "${ECHO_T}$ac_header_preproc" >&6; }
28635 # So? What about this header?
28636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28638 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28639 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28640 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: proceeding with the compiler
's result" >&5
28641 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result
" >&2;}
28642 ac_header_preproc=yes
28645 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: present but cannot be compiled
" >&5
28646 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: present but cannot be compiled
" >&2;}
28647 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: check
for missing prerequisite headers?
" >&5
28648 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: check
for missing prerequisite headers?
" >&2;}
28649 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: see the Autoconf documentation
" >&5
28650 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: see the Autoconf documentation
" >&2;}
28651 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28652 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28653 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: proceeding with the preprocessor
's result" >&5
28654 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result
" >&2;}
28655 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: in the future
, the compiler will take precedence
" >&5
28656 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: in the future
, the compiler will take precedence
" >&2;}
28658 ## ------------------------------- ##
28659 ## Report this to www.asterisk.org ##
28660 ## ------------------------------- ##
28662 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28665 { echo "$as_me:$LINENO: checking
for ${SPEEX_DIR}/include
/speex
/speex.h
" >&5
28666 echo $ECHO_N "checking
for ${SPEEX_DIR}/include
/speex
/speex.h...
$ECHO_C" >&6; }
28667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28668 echo $ECHO_N "(cached
) $ECHO_C" >&6
28670 eval "$as_ac_Header=\
$ac_header_preproc"
28672 ac_res=`eval echo '${'$as_ac_Header'}'`
28673 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28674 echo "${ECHO_T}$ac_res" >&6; }
28677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28678 SPEEX_HEADER_FOUND=1
28680 SPEEX_HEADER_FOUND=0
28685 CPPFLAGS="${saved_cppflags}"
28687 if test "xspeex
/speex.h
" != "x
" ; then
28688 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28689 { echo "$as_me:$LINENO: checking
for speex
/speex.h
" >&5
28690 echo $ECHO_N "checking
for speex
/speex.h...
$ECHO_C" >&6; }
28691 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28692 echo $ECHO_N "(cached
) $ECHO_C" >&6
28694 { echo "$as_me:$LINENO: result
: $ac_cv_header_speex_speex_h" >&5
28695 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28697 # Is the header compilable?
28698 { echo "$as_me:$LINENO: checking speex
/speex.h usability
" >&5
28699 echo $ECHO_N "checking speex
/speex.h usability...
$ECHO_C" >&6; }
28700 cat >conftest.$ac_ext <<_ACEOF
28703 cat confdefs.h >>conftest.$ac_ext
28704 cat >>conftest.$ac_ext <<_ACEOF
28705 /* end confdefs.h. */
28706 $ac_includes_default
28707 #include <speex/speex.h>
28709 rm -f conftest.$ac_objext
28710 if { (ac_try="$ac_compile"
28711 case "(($ac_try" in
28712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28713 *) ac_try_echo=$ac_try;;
28715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28716 (eval "$ac_compile") 2>conftest.er1
28718 grep -v '^ *+' conftest.er1 >conftest.err
28720 cat conftest.err >&5
28721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28722 (exit $ac_status); } && {
28723 test -z "$ac_c_werror_flag" ||
28724 test ! -s conftest.err
28725 } && test -s conftest.$ac_objext; then
28726 ac_header_compiler=yes
28728 echo "$as_me: failed program was
:" >&5
28729 sed 's/^/| /' conftest.$ac_ext >&5
28731 ac_header_compiler=no
28734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28735 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28736 echo "${ECHO_T}$ac_header_compiler" >&6; }
28738 # Is the header present?
28739 { echo "$as_me:$LINENO: checking speex
/speex.h presence
" >&5
28740 echo $ECHO_N "checking speex
/speex.h presence...
$ECHO_C" >&6; }
28741 cat >conftest.$ac_ext <<_ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h. */
28747 #include <speex/speex.h>
28749 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28750 case "(($ac_try" in
28751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28752 *) ac_try_echo=$ac_try;;
28754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28755 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28757 grep -v '^ *+' conftest.er1 >conftest.err
28759 cat conftest.err >&5
28760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28761 (exit $ac_status); } >/dev/null && {
28762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28763 test ! -s conftest.err
28765 ac_header_preproc=yes
28767 echo "$as_me: failed program was
:" >&5
28768 sed 's/^/| /' conftest.$ac_ext >&5
28770 ac_header_preproc=no
28773 rm -f conftest.err conftest.$ac_ext
28774 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28775 echo "${ECHO_T}$ac_header_preproc" >&6; }
28777 # So? What about this header?
28778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28780 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28781 echo "$as_me: WARNING
: speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28782 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: proceeding with the compiler
's result" >&5
28783 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result
" >&2;}
28784 ac_header_preproc=yes
28787 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: present but cannot be compiled
" >&5
28788 echo "$as_me: WARNING
: speex
/speex.h
: present but cannot be compiled
" >&2;}
28789 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: check
for missing prerequisite headers?
" >&5
28790 echo "$as_me: WARNING
: speex
/speex.h
: check
for missing prerequisite headers?
" >&2;}
28791 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: see the Autoconf documentation
" >&5
28792 echo "$as_me: WARNING
: speex
/speex.h
: see the Autoconf documentation
" >&2;}
28793 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28794 echo "$as_me: WARNING
: speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28795 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: proceeding with the preprocessor
's result" >&5
28796 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result
" >&2;}
28797 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: in the future
, the compiler will take precedence
" >&5
28798 echo "$as_me: WARNING
: speex
/speex.h
: in the future
, the compiler will take precedence
" >&2;}
28800 ## ------------------------------- ##
28801 ## Report this to www.asterisk.org ##
28802 ## ------------------------------- ##
28804 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28807 { echo "$as_me:$LINENO: checking
for speex
/speex.h
" >&5
28808 echo $ECHO_N "checking
for speex
/speex.h...
$ECHO_C" >&6; }
28809 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28810 echo $ECHO_N "(cached
) $ECHO_C" >&6
28812 ac_cv_header_speex_speex_h=$ac_header_preproc
28814 { echo "$as_me:$LINENO: result
: $ac_cv_header_speex_speex_h" >&5
28815 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28818 if test $ac_cv_header_speex_speex_h = yes; then
28819 SPEEX_HEADER_FOUND=1
28821 SPEEX_HEADER_FOUND=0
28827 if test "x
${SPEEX_HEADER_FOUND}" = "x0
" ; then
28828 if test -n "${SPEEX_MANDATORY}" ;
28830 { echo "$as_me:$LINENO: ***" >&5
28831 echo "$as_me: ***" >&6;}
28832 { echo "$as_me:$LINENO: *** It appears that you
do not have the speex development package installed.
" >&5
28833 echo "$as_me: *** It appears that you
do not have the speex development package installed.
" >&6;}
28834 { echo "$as_me:$LINENO: *** Please
install it to include
${SPEEX_DESCRIP} support
, or re-run configure
" >&5
28835 echo "$as_me: *** Please
install it to include
${SPEEX_DESCRIP} support
, or re-run configure
" >&6;}
28836 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SPEEX_OPTION}" >&5
28837 echo "$as_me: *** without explicitly specifying
--with-${SPEEX_OPTION}" >&6;}
28846 cat >>confdefs.h <<_ACEOF
28847 #define HAVE_SPEEX 1
28851 elif test -n "${SPEEX_MANDATORY}";
28853 { echo "$as_me:$LINENO: ***" >&5
28854 echo "$as_me: ***" >&6;}
28855 { echo "$as_me:$LINENO: *** The
${SPEEX_DESCRIP} installation on this system appears to be broken.
" >&5
28856 echo "$as_me: *** The
${SPEEX_DESCRIP} installation on this system appears to be broken.
" >&6;}
28857 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
28858 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
28859 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SPEEX_OPTION}" >&5
28860 echo "$as_me: *** without explicitly specifying
--with-${SPEEX_OPTION}" >&6;}
28867 if test "${USE_SPEEXDSP}" != "no
"; then
28869 if test "x
${SPEEXDSP_DIR}" != "x
"; then
28870 if test -d ${SPEEXDSP_DIR}/lib; then
28871 pbxlibdir="-L${SPEEXDSP_DIR}/lib
"
28873 pbxlibdir="-L${SPEEXDSP_DIR}"
28876 { echo "$as_me:$LINENO: checking
for speex_preprocess_ctl
in -lspeexdsp" >&5
28877 echo $ECHO_N "checking
for speex_preprocess_ctl
in -lspeexdsp...
$ECHO_C" >&6; }
28878 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
28879 echo $ECHO_N "(cached
) $ECHO_C" >&6
28881 ac_check_lib_save_LIBS=$LIBS
28882 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
28883 cat >conftest.$ac_ext <<_ACEOF
28886 cat confdefs.h >>conftest.$ac_ext
28887 cat >>conftest.$ac_ext <<_ACEOF
28888 /* end confdefs.h. */
28890 /* Override any GCC internal prototype to avoid an error.
28891 Use char because int might match the return type of a GCC
28892 builtin and then its argument prototype would still apply. */
28896 char speex_preprocess_ctl ();
28900 return speex_preprocess_ctl ();
28905 rm -f conftest.$ac_objext conftest$ac_exeext
28906 if { (ac_try="$ac_link"
28907 case "(($ac_try" in
28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909 *) ac_try_echo=$ac_try;;
28911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28912 (eval "$ac_link") 2>conftest.er1
28914 grep -v '^ *+' conftest.er1 >conftest.err
28916 cat conftest.err >&5
28917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28918 (exit $ac_status); } && {
28919 test -z "$ac_c_werror_flag" ||
28920 test ! -s conftest.err
28921 } && test -s conftest$ac_exeext &&
28922 $as_test_x conftest$ac_exeext; then
28923 ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
28925 echo "$as_me: failed program was
:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28928 ac_cv_lib_speexdsp_speex_preprocess_ctl=no
28931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28932 conftest$ac_exeext conftest.$ac_ext
28933 LIBS=$ac_check_lib_save_LIBS
28935 { echo "$as_me:$LINENO: result
: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
28936 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
28937 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
28938 AST_SPEEXDSP_FOUND=yes
28940 AST_SPEEXDSP_FOUND=no
28944 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
28945 SPEEXDSP_LIB="-lspeexdsp -lm"
28946 SPEEXDSP_HEADER_FOUND="1"
28947 if test "x
${SPEEXDSP_DIR}" != "x
"; then
28948 SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}"
28949 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include
"
28950 saved_cppflags="${CPPFLAGS}"
28951 CPPFLAGS="${CPPFLAGS} -I${SPEEXDSP_DIR}/include
"
28952 if test "xspeex
/speex.h
" != "x
" ; then
28953 as_ac_Header=`echo "ac_cv_header_
${SPEEXDSP_DIR}/include
/speex
/speex.h
" | $as_tr_sh`
28954 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28955 { echo "$as_me:$LINENO: checking
for ${SPEEXDSP_DIR}/include
/speex
/speex.h
" >&5
28956 echo $ECHO_N "checking
for ${SPEEXDSP_DIR}/include
/speex
/speex.h...
$ECHO_C" >&6; }
28957 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28958 echo $ECHO_N "(cached
) $ECHO_C" >&6
28960 ac_res=`eval echo '${'$as_ac_Header'}'`
28961 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28962 echo "${ECHO_T}$ac_res" >&6; }
28964 # Is the header compilable?
28965 { echo "$as_me:$LINENO: checking
${SPEEXDSP_DIR}/include
/speex
/speex.h usability
" >&5
28966 echo $ECHO_N "checking
${SPEEXDSP_DIR}/include
/speex
/speex.h usability...
$ECHO_C" >&6; }
28967 cat >conftest.$ac_ext <<_ACEOF
28970 cat confdefs.h >>conftest.$ac_ext
28971 cat >>conftest.$ac_ext <<_ACEOF
28972 /* end confdefs.h. */
28973 $ac_includes_default
28974 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
28976 rm -f conftest.$ac_objext
28977 if { (ac_try="$ac_compile"
28978 case "(($ac_try" in
28979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28980 *) ac_try_echo=$ac_try;;
28982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28983 (eval "$ac_compile") 2>conftest.er1
28985 grep -v '^ *+' conftest.er1 >conftest.err
28987 cat conftest.err >&5
28988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28989 (exit $ac_status); } && {
28990 test -z "$ac_c_werror_flag" ||
28991 test ! -s conftest.err
28992 } && test -s conftest.$ac_objext; then
28993 ac_header_compiler=yes
28995 echo "$as_me: failed program was
:" >&5
28996 sed 's/^/| /' conftest.$ac_ext >&5
28998 ac_header_compiler=no
29001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29002 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29003 echo "${ECHO_T}$ac_header_compiler" >&6; }
29005 # Is the header present?
29006 { echo "$as_me:$LINENO: checking
${SPEEXDSP_DIR}/include
/speex
/speex.h presence
" >&5
29007 echo $ECHO_N "checking
${SPEEXDSP_DIR}/include
/speex
/speex.h presence...
$ECHO_C" >&6; }
29008 cat >conftest.$ac_ext <<_ACEOF
29011 cat confdefs.h >>conftest.$ac_ext
29012 cat >>conftest.$ac_ext <<_ACEOF
29013 /* end confdefs.h. */
29014 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29016 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29017 case "(($ac_try" in
29018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29019 *) ac_try_echo=$ac_try;;
29021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29022 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29024 grep -v '^ *+' conftest.er1 >conftest.err
29026 cat conftest.err >&5
29027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29028 (exit $ac_status); } >/dev/null && {
29029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29030 test ! -s conftest.err
29032 ac_header_preproc=yes
29034 echo "$as_me: failed program was
:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29037 ac_header_preproc=no
29040 rm -f conftest.err conftest.$ac_ext
29041 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29042 echo "${ECHO_T}$ac_header_preproc" >&6; }
29044 # So? What about this header?
29045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29047 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29048 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29049 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: proceeding with the compiler
's result" >&5
29050 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result
" >&2;}
29051 ac_header_preproc=yes
29054 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: present but cannot be compiled
" >&5
29055 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: present but cannot be compiled
" >&2;}
29056 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: check
for missing prerequisite headers?
" >&5
29057 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: check
for missing prerequisite headers?
" >&2;}
29058 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: see the Autoconf documentation
" >&5
29059 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: see the Autoconf documentation
" >&2;}
29060 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29061 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29062 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: proceeding with the preprocessor
's result" >&5
29063 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result
" >&2;}
29064 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: in the future
, the compiler will take precedence
" >&5
29065 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: in the future
, the compiler will take precedence
" >&2;}
29067 ## ------------------------------- ##
29068 ## Report this to www.asterisk.org ##
29069 ## ------------------------------- ##
29071 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29074 { echo "$as_me:$LINENO: checking
for ${SPEEXDSP_DIR}/include
/speex
/speex.h
" >&5
29075 echo $ECHO_N "checking
for ${SPEEXDSP_DIR}/include
/speex
/speex.h...
$ECHO_C" >&6; }
29076 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29077 echo $ECHO_N "(cached
) $ECHO_C" >&6
29079 eval "$as_ac_Header=\
$ac_header_preproc"
29081 ac_res=`eval echo '${'$as_ac_Header'}'`
29082 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29083 echo "${ECHO_T}$ac_res" >&6; }
29086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29087 SPEEXDSP_HEADER_FOUND=1
29089 SPEEXDSP_HEADER_FOUND=0
29094 CPPFLAGS="${saved_cppflags}"
29096 if test "xspeex
/speex.h
" != "x
" ; then
29097 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29098 { echo "$as_me:$LINENO: checking
for speex
/speex.h
" >&5
29099 echo $ECHO_N "checking
for speex
/speex.h...
$ECHO_C" >&6; }
29100 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29101 echo $ECHO_N "(cached
) $ECHO_C" >&6
29103 { echo "$as_me:$LINENO: result
: $ac_cv_header_speex_speex_h" >&5
29104 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29106 # Is the header compilable?
29107 { echo "$as_me:$LINENO: checking speex
/speex.h usability
" >&5
29108 echo $ECHO_N "checking speex
/speex.h usability...
$ECHO_C" >&6; }
29109 cat >conftest.$ac_ext <<_ACEOF
29112 cat confdefs.h >>conftest.$ac_ext
29113 cat >>conftest.$ac_ext <<_ACEOF
29114 /* end confdefs.h. */
29115 $ac_includes_default
29116 #include <speex/speex.h>
29118 rm -f conftest.$ac_objext
29119 if { (ac_try="$ac_compile"
29120 case "(($ac_try" in
29121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29122 *) ac_try_echo=$ac_try;;
29124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29125 (eval "$ac_compile") 2>conftest.er1
29127 grep -v '^ *+' conftest.er1 >conftest.err
29129 cat conftest.err >&5
29130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29131 (exit $ac_status); } && {
29132 test -z "$ac_c_werror_flag" ||
29133 test ! -s conftest.err
29134 } && test -s conftest.$ac_objext; then
29135 ac_header_compiler=yes
29137 echo "$as_me: failed program was
:" >&5
29138 sed 's/^/| /' conftest.$ac_ext >&5
29140 ac_header_compiler=no
29143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29144 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29145 echo "${ECHO_T}$ac_header_compiler" >&6; }
29147 # Is the header present?
29148 { echo "$as_me:$LINENO: checking speex
/speex.h presence
" >&5
29149 echo $ECHO_N "checking speex
/speex.h presence...
$ECHO_C" >&6; }
29150 cat >conftest.$ac_ext <<_ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h. */
29156 #include <speex/speex.h>
29158 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29159 case "(($ac_try" in
29160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161 *) ac_try_echo=$ac_try;;
29163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29164 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29166 grep -v '^ *+' conftest.er1 >conftest.err
29168 cat conftest.err >&5
29169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29170 (exit $ac_status); } >/dev/null && {
29171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29172 test ! -s conftest.err
29174 ac_header_preproc=yes
29176 echo "$as_me: failed program was
:" >&5
29177 sed 's/^/| /' conftest.$ac_ext >&5
29179 ac_header_preproc=no
29182 rm -f conftest.err conftest.$ac_ext
29183 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29184 echo "${ECHO_T}$ac_header_preproc" >&6; }
29186 # So? What about this header?
29187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29189 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29190 echo "$as_me: WARNING
: speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29191 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: proceeding with the compiler
's result" >&5
29192 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result
" >&2;}
29193 ac_header_preproc=yes
29196 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: present but cannot be compiled
" >&5
29197 echo "$as_me: WARNING
: speex
/speex.h
: present but cannot be compiled
" >&2;}
29198 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: check
for missing prerequisite headers?
" >&5
29199 echo "$as_me: WARNING
: speex
/speex.h
: check
for missing prerequisite headers?
" >&2;}
29200 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: see the Autoconf documentation
" >&5
29201 echo "$as_me: WARNING
: speex
/speex.h
: see the Autoconf documentation
" >&2;}
29202 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29203 echo "$as_me: WARNING
: speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29204 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: proceeding with the preprocessor
's result" >&5
29205 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result
" >&2;}
29206 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: in the future
, the compiler will take precedence
" >&5
29207 echo "$as_me: WARNING
: speex
/speex.h
: in the future
, the compiler will take precedence
" >&2;}
29209 ## ------------------------------- ##
29210 ## Report this to www.asterisk.org ##
29211 ## ------------------------------- ##
29213 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29216 { echo "$as_me:$LINENO: checking
for speex
/speex.h
" >&5
29217 echo $ECHO_N "checking
for speex
/speex.h...
$ECHO_C" >&6; }
29218 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29219 echo $ECHO_N "(cached
) $ECHO_C" >&6
29221 ac_cv_header_speex_speex_h=$ac_header_preproc
29223 { echo "$as_me:$LINENO: result
: $ac_cv_header_speex_speex_h" >&5
29224 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29227 if test $ac_cv_header_speex_speex_h = yes; then
29228 SPEEXDSP_HEADER_FOUND=1
29230 SPEEXDSP_HEADER_FOUND=0
29236 if test "x
${SPEEXDSP_HEADER_FOUND}" = "x0
" ; then
29237 if test -n "${SPEEXDSP_MANDATORY}" ;
29239 { echo "$as_me:$LINENO: ***" >&5
29240 echo "$as_me: ***" >&6;}
29241 { echo "$as_me:$LINENO: *** It appears that you
do not have the speexdsp development package installed.
" >&5
29242 echo "$as_me: *** It appears that you
do not have the speexdsp development package installed.
" >&6;}
29243 { echo "$as_me:$LINENO: *** Please
install it to include
${SPEEXDSP_DESCRIP} support
, or re-run configure
" >&5
29244 echo "$as_me: *** Please
install it to include
${SPEEXDSP_DESCRIP} support
, or re-run configure
" >&6;}
29245 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SPEEXDSP_OPTION}" >&5
29246 echo "$as_me: *** without explicitly specifying
--with-${SPEEXDSP_OPTION}" >&6;}
29250 SPEEXDSP_INCLUDE=""
29255 cat >>confdefs.h <<_ACEOF
29256 #define HAVE_SPEEXDSP 1
29260 elif test -n "${SPEEXDSP_MANDATORY}";
29262 { echo "$as_me:$LINENO: ***" >&5
29263 echo "$as_me: ***" >&6;}
29264 { echo "$as_me:$LINENO: *** The
${SPEEXDSP_DESCRIP} installation on this system appears to be broken.
" >&5
29265 echo "$as_me: *** The
${SPEEXDSP_DESCRIP} installation on this system appears to be broken.
" >&6;}
29266 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
29267 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
29268 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SPEEXDSP_OPTION}" >&5
29269 echo "$as_me: *** without explicitly specifying
--with-${SPEEXDSP_OPTION}" >&6;}
29276 if test "${USE_SQLITE}" != "no
"; then
29278 if test "x
${SQLITE_DIR}" != "x
"; then
29279 if test -d ${SQLITE_DIR}/lib; then
29280 pbxlibdir="-L${SQLITE_DIR}/lib
"
29282 pbxlibdir="-L${SQLITE_DIR}"
29285 { echo "$as_me:$LINENO: checking
for sqlite_exec
in -lsqlite" >&5
29286 echo $ECHO_N "checking
for sqlite_exec
in -lsqlite...
$ECHO_C" >&6; }
29287 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
29288 echo $ECHO_N "(cached
) $ECHO_C" >&6
29290 ac_check_lib_save_LIBS=$LIBS
29291 LIBS="-lsqlite ${pbxlibdir} $LIBS"
29292 cat >conftest.$ac_ext <<_ACEOF
29295 cat confdefs.h >>conftest.$ac_ext
29296 cat >>conftest.$ac_ext <<_ACEOF
29297 /* end confdefs.h. */
29299 /* Override any GCC internal prototype to avoid an error.
29300 Use char because int might match the return type of a GCC
29301 builtin and then its argument prototype would still apply. */
29305 char sqlite_exec ();
29309 return sqlite_exec ();
29314 rm -f conftest.$ac_objext conftest$ac_exeext
29315 if { (ac_try="$ac_link"
29316 case "(($ac_try" in
29317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29318 *) ac_try_echo=$ac_try;;
29320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29321 (eval "$ac_link") 2>conftest.er1
29323 grep -v '^ *+' conftest.er1 >conftest.err
29325 cat conftest.err >&5
29326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29327 (exit $ac_status); } && {
29328 test -z "$ac_c_werror_flag" ||
29329 test ! -s conftest.err
29330 } && test -s conftest$ac_exeext &&
29331 $as_test_x conftest$ac_exeext; then
29332 ac_cv_lib_sqlite_sqlite_exec=yes
29334 echo "$as_me: failed program was
:" >&5
29335 sed 's/^/| /' conftest.$ac_ext >&5
29337 ac_cv_lib_sqlite_sqlite_exec=no
29340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29341 conftest$ac_exeext conftest.$ac_ext
29342 LIBS=$ac_check_lib_save_LIBS
29344 { echo "$as_me:$LINENO: result
: $ac_cv_lib_sqlite_sqlite_exec" >&5
29345 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
29346 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
29347 AST_SQLITE_FOUND=yes
29349 AST_SQLITE_FOUND=no
29353 if test "${AST_SQLITE_FOUND}" = "yes"; then
29354 SQLITE_LIB="-lsqlite "
29355 SQLITE_HEADER_FOUND="1"
29356 if test "x
${SQLITE_DIR}" != "x
"; then
29357 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
29358 SQLITE_INCLUDE="-I${SQLITE_DIR}/include
"
29359 saved_cppflags="${CPPFLAGS}"
29360 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include
"
29361 if test "xsqlite.h
" != "x
" ; then
29362 as_ac_Header=`echo "ac_cv_header_
${SQLITE_DIR}/include
/sqlite.h
" | $as_tr_sh`
29363 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29364 { echo "$as_me:$LINENO: checking
for ${SQLITE_DIR}/include
/sqlite.h
" >&5
29365 echo $ECHO_N "checking
for ${SQLITE_DIR}/include
/sqlite.h...
$ECHO_C" >&6; }
29366 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29367 echo $ECHO_N "(cached
) $ECHO_C" >&6
29369 ac_res=`eval echo '${'$as_ac_Header'}'`
29370 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29371 echo "${ECHO_T}$ac_res" >&6; }
29373 # Is the header compilable?
29374 { echo "$as_me:$LINENO: checking
${SQLITE_DIR}/include
/sqlite.h usability
" >&5
29375 echo $ECHO_N "checking
${SQLITE_DIR}/include
/sqlite.h usability...
$ECHO_C" >&6; }
29376 cat >conftest.$ac_ext <<_ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h. */
29382 $ac_includes_default
29383 #include <${SQLITE_DIR}/include/sqlite.h>
29385 rm -f conftest.$ac_objext
29386 if { (ac_try="$ac_compile"
29387 case "(($ac_try" in
29388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389 *) ac_try_echo=$ac_try;;
29391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29392 (eval "$ac_compile") 2>conftest.er1
29394 grep -v '^ *+' conftest.er1 >conftest.err
29396 cat conftest.err >&5
29397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29398 (exit $ac_status); } && {
29399 test -z "$ac_c_werror_flag" ||
29400 test ! -s conftest.err
29401 } && test -s conftest.$ac_objext; then
29402 ac_header_compiler=yes
29404 echo "$as_me: failed program was
:" >&5
29405 sed 's/^/| /' conftest.$ac_ext >&5
29407 ac_header_compiler=no
29410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29411 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29412 echo "${ECHO_T}$ac_header_compiler" >&6; }
29414 # Is the header present?
29415 { echo "$as_me:$LINENO: checking
${SQLITE_DIR}/include
/sqlite.h presence
" >&5
29416 echo $ECHO_N "checking
${SQLITE_DIR}/include
/sqlite.h presence...
$ECHO_C" >&6; }
29417 cat >conftest.$ac_ext <<_ACEOF
29420 cat confdefs.h >>conftest.$ac_ext
29421 cat >>conftest.$ac_ext <<_ACEOF
29422 /* end confdefs.h. */
29423 #include <${SQLITE_DIR}/include/sqlite.h>
29425 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29426 case "(($ac_try" in
29427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428 *) ac_try_echo=$ac_try;;
29430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29431 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29433 grep -v '^ *+' conftest.er1 >conftest.err
29435 cat conftest.err >&5
29436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29437 (exit $ac_status); } >/dev/null && {
29438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29439 test ! -s conftest.err
29441 ac_header_preproc=yes
29443 echo "$as_me: failed program was
:" >&5
29444 sed 's/^/| /' conftest.$ac_ext >&5
29446 ac_header_preproc=no
29449 rm -f conftest.err conftest.$ac_ext
29450 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29451 echo "${ECHO_T}$ac_header_preproc" >&6; }
29453 # So? What about this header?
29454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29456 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29457 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29458 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: proceeding with the compiler
's result" >&5
29459 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result
" >&2;}
29460 ac_header_preproc=yes
29463 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: present but cannot be compiled
" >&5
29464 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: present but cannot be compiled
" >&2;}
29465 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: check
for missing prerequisite headers?
" >&5
29466 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: check
for missing prerequisite headers?
" >&2;}
29467 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: see the Autoconf documentation
" >&5
29468 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: see the Autoconf documentation
" >&2;}
29469 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29470 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29471 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: proceeding with the preprocessor
's result" >&5
29472 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result
" >&2;}
29473 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: in the future
, the compiler will take precedence
" >&5
29474 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: in the future
, the compiler will take precedence
" >&2;}
29476 ## ------------------------------- ##
29477 ## Report this to www.asterisk.org ##
29478 ## ------------------------------- ##
29480 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29483 { echo "$as_me:$LINENO: checking
for ${SQLITE_DIR}/include
/sqlite.h
" >&5
29484 echo $ECHO_N "checking
for ${SQLITE_DIR}/include
/sqlite.h...
$ECHO_C" >&6; }
29485 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29486 echo $ECHO_N "(cached
) $ECHO_C" >&6
29488 eval "$as_ac_Header=\
$ac_header_preproc"
29490 ac_res=`eval echo '${'$as_ac_Header'}'`
29491 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29492 echo "${ECHO_T}$ac_res" >&6; }
29495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29496 SQLITE_HEADER_FOUND=1
29498 SQLITE_HEADER_FOUND=0
29503 CPPFLAGS="${saved_cppflags}"
29505 if test "xsqlite.h
" != "x
" ; then
29506 if test "${ac_cv_header_sqlite_h+set}" = set; then
29507 { echo "$as_me:$LINENO: checking
for sqlite.h
" >&5
29508 echo $ECHO_N "checking
for sqlite.h...
$ECHO_C" >&6; }
29509 if test "${ac_cv_header_sqlite_h+set}" = set; then
29510 echo $ECHO_N "(cached
) $ECHO_C" >&6
29512 { echo "$as_me:$LINENO: result
: $ac_cv_header_sqlite_h" >&5
29513 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
29515 # Is the header compilable?
29516 { echo "$as_me:$LINENO: checking sqlite.h usability
" >&5
29517 echo $ECHO_N "checking sqlite.h usability...
$ECHO_C" >&6; }
29518 cat >conftest.$ac_ext <<_ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h. */
29524 $ac_includes_default
29525 #include <sqlite.h>
29527 rm -f conftest.$ac_objext
29528 if { (ac_try="$ac_compile"
29529 case "(($ac_try" in
29530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29531 *) ac_try_echo=$ac_try;;
29533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29534 (eval "$ac_compile") 2>conftest.er1
29536 grep -v '^ *+' conftest.er1 >conftest.err
29538 cat conftest.err >&5
29539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29540 (exit $ac_status); } && {
29541 test -z "$ac_c_werror_flag" ||
29542 test ! -s conftest.err
29543 } && test -s conftest.$ac_objext; then
29544 ac_header_compiler=yes
29546 echo "$as_me: failed program was
:" >&5
29547 sed 's/^/| /' conftest.$ac_ext >&5
29549 ac_header_compiler=no
29552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29553 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29554 echo "${ECHO_T}$ac_header_compiler" >&6; }
29556 # Is the header present?
29557 { echo "$as_me:$LINENO: checking sqlite.h presence
" >&5
29558 echo $ECHO_N "checking sqlite.h presence...
$ECHO_C" >&6; }
29559 cat >conftest.$ac_ext <<_ACEOF
29562 cat confdefs.h >>conftest.$ac_ext
29563 cat >>conftest.$ac_ext <<_ACEOF
29564 /* end confdefs.h. */
29565 #include <sqlite.h>
29567 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29568 case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29575 grep -v '^ *+' conftest.er1 >conftest.err
29577 cat conftest.err >&5
29578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29579 (exit $ac_status); } >/dev/null && {
29580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29581 test ! -s conftest.err
29583 ac_header_preproc=yes
29585 echo "$as_me: failed program was
:" >&5
29586 sed 's/^/| /' conftest.$ac_ext >&5
29588 ac_header_preproc=no
29591 rm -f conftest.err conftest.$ac_ext
29592 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29593 echo "${ECHO_T}$ac_header_preproc" >&6; }
29595 # So? What about this header?
29596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29598 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29599 echo "$as_me: WARNING
: sqlite.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29600 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: proceeding with the compiler
's result" >&5
29601 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result
" >&2;}
29602 ac_header_preproc=yes
29605 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: present but cannot be compiled
" >&5
29606 echo "$as_me: WARNING
: sqlite.h
: present but cannot be compiled
" >&2;}
29607 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: check
for missing prerequisite headers?
" >&5
29608 echo "$as_me: WARNING
: sqlite.h
: check
for missing prerequisite headers?
" >&2;}
29609 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: see the Autoconf documentation
" >&5
29610 echo "$as_me: WARNING
: sqlite.h
: see the Autoconf documentation
" >&2;}
29611 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29612 echo "$as_me: WARNING
: sqlite.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29613 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: proceeding with the preprocessor
's result" >&5
29614 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result
" >&2;}
29615 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: in the future
, the compiler will take precedence
" >&5
29616 echo "$as_me: WARNING
: sqlite.h
: in the future
, the compiler will take precedence
" >&2;}
29618 ## ------------------------------- ##
29619 ## Report this to www.asterisk.org ##
29620 ## ------------------------------- ##
29622 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29625 { echo "$as_me:$LINENO: checking
for sqlite.h
" >&5
29626 echo $ECHO_N "checking
for sqlite.h...
$ECHO_C" >&6; }
29627 if test "${ac_cv_header_sqlite_h+set}" = set; then
29628 echo $ECHO_N "(cached
) $ECHO_C" >&6
29630 ac_cv_header_sqlite_h=$ac_header_preproc
29632 { echo "$as_me:$LINENO: result
: $ac_cv_header_sqlite_h" >&5
29633 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
29636 if test $ac_cv_header_sqlite_h = yes; then
29637 SQLITE_HEADER_FOUND=1
29639 SQLITE_HEADER_FOUND=0
29645 if test "x
${SQLITE_HEADER_FOUND}" = "x0
" ; then
29646 if test -n "${SQLITE_MANDATORY}" ;
29648 { echo "$as_me:$LINENO: ***" >&5
29649 echo "$as_me: ***" >&6;}
29650 { echo "$as_me:$LINENO: *** It appears that you
do not have the sqlite development package installed.
" >&5
29651 echo "$as_me: *** It appears that you
do not have the sqlite development package installed.
" >&6;}
29652 { echo "$as_me:$LINENO: *** Please
install it to include
${SQLITE_DESCRIP} support
, or re-run configure
" >&5
29653 echo "$as_me: *** Please
install it to include
${SQLITE_DESCRIP} support
, or re-run configure
" >&6;}
29654 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SQLITE_OPTION}" >&5
29655 echo "$as_me: *** without explicitly specifying
--with-${SQLITE_OPTION}" >&6;}
29664 cat >>confdefs.h <<_ACEOF
29665 #define HAVE_SQLITE 1
29669 elif test -n "${SQLITE_MANDATORY}";
29671 { echo "$as_me:$LINENO: ***" >&5
29672 echo "$as_me: ***" >&6;}
29673 { echo "$as_me:$LINENO: *** The
${SQLITE_DESCRIP} installation on this system appears to be broken.
" >&5
29674 echo "$as_me: *** The
${SQLITE_DESCRIP} installation on this system appears to be broken.
" >&6;}
29675 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
29676 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
29677 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SQLITE_OPTION}" >&5
29678 echo "$as_me: *** without explicitly specifying
--with-${SQLITE_OPTION}" >&6;}
29685 if test "${USE_OPENSSL}" != "no
"; then
29687 if test "x
${OPENSSL_DIR}" != "x
"; then
29688 if test -d ${OPENSSL_DIR}/lib; then
29689 pbxlibdir="-L${OPENSSL_DIR}/lib
"
29691 pbxlibdir="-L${OPENSSL_DIR}"
29694 { echo "$as_me:$LINENO: checking
for ssl2_connect
in -lssl" >&5
29695 echo $ECHO_N "checking
for ssl2_connect
in -lssl...
$ECHO_C" >&6; }
29696 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
29697 echo $ECHO_N "(cached
) $ECHO_C" >&6
29699 ac_check_lib_save_LIBS=$LIBS
29700 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
29701 cat >conftest.$ac_ext <<_ACEOF
29704 cat confdefs.h >>conftest.$ac_ext
29705 cat >>conftest.$ac_ext <<_ACEOF
29706 /* end confdefs.h. */
29708 /* Override any GCC internal prototype to avoid an error.
29709 Use char because int might match the return type of a GCC
29710 builtin and then its argument prototype would still apply. */
29714 char ssl2_connect ();
29718 return ssl2_connect ();
29723 rm -f conftest.$ac_objext conftest$ac_exeext
29724 if { (ac_try="$ac_link"
29725 case "(($ac_try" in
29726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29727 *) ac_try_echo=$ac_try;;
29729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29730 (eval "$ac_link") 2>conftest.er1
29732 grep -v '^ *+' conftest.er1 >conftest.err
29734 cat conftest.err >&5
29735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29736 (exit $ac_status); } && {
29737 test -z "$ac_c_werror_flag" ||
29738 test ! -s conftest.err
29739 } && test -s conftest$ac_exeext &&
29740 $as_test_x conftest$ac_exeext; then
29741 ac_cv_lib_ssl_ssl2_connect=yes
29743 echo "$as_me: failed program was
:" >&5
29744 sed 's/^/| /' conftest.$ac_ext >&5
29746 ac_cv_lib_ssl_ssl2_connect=no
29749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29750 conftest$ac_exeext conftest.$ac_ext
29751 LIBS=$ac_check_lib_save_LIBS
29753 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ssl_ssl2_connect" >&5
29754 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
29755 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
29756 AST_OPENSSL_FOUND=yes
29758 AST_OPENSSL_FOUND=no
29762 if test "${AST_OPENSSL_FOUND}" = "yes"; then
29763 OPENSSL_LIB="-lssl -lcrypto"
29764 OPENSSL_HEADER_FOUND="1"
29765 if test "x
${OPENSSL_DIR}" != "x
"; then
29766 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
29767 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include
"
29768 saved_cppflags="${CPPFLAGS}"
29769 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include
"
29770 if test "xopenssl
/ssl.h
" != "x
" ; then
29771 as_ac_Header=`echo "ac_cv_header_
${OPENSSL_DIR}/include
/openssl
/ssl.h
" | $as_tr_sh`
29772 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29773 { echo "$as_me:$LINENO: checking
for ${OPENSSL_DIR}/include
/openssl
/ssl.h
" >&5
29774 echo $ECHO_N "checking
for ${OPENSSL_DIR}/include
/openssl
/ssl.h...
$ECHO_C" >&6; }
29775 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29776 echo $ECHO_N "(cached
) $ECHO_C" >&6
29778 ac_res=`eval echo '${'$as_ac_Header'}'`
29779 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29780 echo "${ECHO_T}$ac_res" >&6; }
29782 # Is the header compilable?
29783 { echo "$as_me:$LINENO: checking
${OPENSSL_DIR}/include
/openssl
/ssl.h usability
" >&5
29784 echo $ECHO_N "checking
${OPENSSL_DIR}/include
/openssl
/ssl.h usability...
$ECHO_C" >&6; }
29785 cat >conftest.$ac_ext <<_ACEOF
29788 cat confdefs.h >>conftest.$ac_ext
29789 cat >>conftest.$ac_ext <<_ACEOF
29790 /* end confdefs.h. */
29791 $ac_includes_default
29792 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
29794 rm -f conftest.$ac_objext
29795 if { (ac_try="$ac_compile"
29796 case "(($ac_try" in
29797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798 *) ac_try_echo=$ac_try;;
29800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29801 (eval "$ac_compile") 2>conftest.er1
29803 grep -v '^ *+' conftest.er1 >conftest.err
29805 cat conftest.err >&5
29806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29807 (exit $ac_status); } && {
29808 test -z "$ac_c_werror_flag" ||
29809 test ! -s conftest.err
29810 } && test -s conftest.$ac_objext; then
29811 ac_header_compiler=yes
29813 echo "$as_me: failed program was
:" >&5
29814 sed 's/^/| /' conftest.$ac_ext >&5
29816 ac_header_compiler=no
29819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29820 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29821 echo "${ECHO_T}$ac_header_compiler" >&6; }
29823 # Is the header present?
29824 { echo "$as_me:$LINENO: checking
${OPENSSL_DIR}/include
/openssl
/ssl.h presence
" >&5
29825 echo $ECHO_N "checking
${OPENSSL_DIR}/include
/openssl
/ssl.h presence...
$ECHO_C" >&6; }
29826 cat >conftest.$ac_ext <<_ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h. */
29832 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
29834 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29835 case "(($ac_try" in
29836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29837 *) ac_try_echo=$ac_try;;
29839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29840 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29842 grep -v '^ *+' conftest.er1 >conftest.err
29844 cat conftest.err >&5
29845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29846 (exit $ac_status); } >/dev/null && {
29847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29848 test ! -s conftest.err
29850 ac_header_preproc=yes
29852 echo "$as_me: failed program was
:" >&5
29853 sed 's/^/| /' conftest.$ac_ext >&5
29855 ac_header_preproc=no
29858 rm -f conftest.err conftest.$ac_ext
29859 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29860 echo "${ECHO_T}$ac_header_preproc" >&6; }
29862 # So? What about this header?
29863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29865 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29866 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29867 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: proceeding with the compiler
's result" >&5
29868 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result
" >&2;}
29869 ac_header_preproc=yes
29872 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: present but cannot be compiled
" >&5
29873 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: present but cannot be compiled
" >&2;}
29874 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: check
for missing prerequisite headers?
" >&5
29875 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: check
for missing prerequisite headers?
" >&2;}
29876 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: see the Autoconf documentation
" >&5
29877 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: see the Autoconf documentation
" >&2;}
29878 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29879 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29880 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: proceeding with the preprocessor
's result" >&5
29881 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result
" >&2;}
29882 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: in the future
, the compiler will take precedence
" >&5
29883 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: in the future
, the compiler will take precedence
" >&2;}
29885 ## ------------------------------- ##
29886 ## Report this to www.asterisk.org ##
29887 ## ------------------------------- ##
29889 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29892 { echo "$as_me:$LINENO: checking
for ${OPENSSL_DIR}/include
/openssl
/ssl.h
" >&5
29893 echo $ECHO_N "checking
for ${OPENSSL_DIR}/include
/openssl
/ssl.h...
$ECHO_C" >&6; }
29894 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29895 echo $ECHO_N "(cached
) $ECHO_C" >&6
29897 eval "$as_ac_Header=\
$ac_header_preproc"
29899 ac_res=`eval echo '${'$as_ac_Header'}'`
29900 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29901 echo "${ECHO_T}$ac_res" >&6; }
29904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29905 OPENSSL_HEADER_FOUND=1
29907 OPENSSL_HEADER_FOUND=0
29912 CPPFLAGS="${saved_cppflags}"
29914 if test "xopenssl
/ssl.h
" != "x
" ; then
29915 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
29916 { echo "$as_me:$LINENO: checking
for openssl
/ssl.h
" >&5
29917 echo $ECHO_N "checking
for openssl
/ssl.h...
$ECHO_C" >&6; }
29918 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
29919 echo $ECHO_N "(cached
) $ECHO_C" >&6
29921 { echo "$as_me:$LINENO: result
: $ac_cv_header_openssl_ssl_h" >&5
29922 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
29924 # Is the header compilable?
29925 { echo "$as_me:$LINENO: checking openssl
/ssl.h usability
" >&5
29926 echo $ECHO_N "checking openssl
/ssl.h usability...
$ECHO_C" >&6; }
29927 cat >conftest.$ac_ext <<_ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h. */
29933 $ac_includes_default
29934 #include <openssl/ssl.h>
29936 rm -f conftest.$ac_objext
29937 if { (ac_try="$ac_compile"
29938 case "(($ac_try" in
29939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940 *) ac_try_echo=$ac_try;;
29942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29943 (eval "$ac_compile") 2>conftest.er1
29945 grep -v '^ *+' conftest.er1 >conftest.err
29947 cat conftest.err >&5
29948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29949 (exit $ac_status); } && {
29950 test -z "$ac_c_werror_flag" ||
29951 test ! -s conftest.err
29952 } && test -s conftest.$ac_objext; then
29953 ac_header_compiler=yes
29955 echo "$as_me: failed program was
:" >&5
29956 sed 's/^/| /' conftest.$ac_ext >&5
29958 ac_header_compiler=no
29961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29962 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29963 echo "${ECHO_T}$ac_header_compiler" >&6; }
29965 # Is the header present?
29966 { echo "$as_me:$LINENO: checking openssl
/ssl.h presence
" >&5
29967 echo $ECHO_N "checking openssl
/ssl.h presence...
$ECHO_C" >&6; }
29968 cat >conftest.$ac_ext <<_ACEOF
29971 cat confdefs.h >>conftest.$ac_ext
29972 cat >>conftest.$ac_ext <<_ACEOF
29973 /* end confdefs.h. */
29974 #include <openssl/ssl.h>
29976 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29977 case "(($ac_try" in
29978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29979 *) ac_try_echo=$ac_try;;
29981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29982 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29984 grep -v '^ *+' conftest.er1 >conftest.err
29986 cat conftest.err >&5
29987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29988 (exit $ac_status); } >/dev/null && {
29989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29990 test ! -s conftest.err
29992 ac_header_preproc=yes
29994 echo "$as_me: failed program was
:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29997 ac_header_preproc=no
30000 rm -f conftest.err conftest.$ac_ext
30001 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
30002 echo "${ECHO_T}$ac_header_preproc" >&6; }
30004 # So? What about this header?
30005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30007 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
30008 echo "$as_me: WARNING
: openssl
/ssl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
30009 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: proceeding with the compiler
's result" >&5
30010 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result
" >&2;}
30011 ac_header_preproc=yes
30014 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: present but cannot be compiled
" >&5
30015 echo "$as_me: WARNING
: openssl
/ssl.h
: present but cannot be compiled
" >&2;}
30016 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: check
for missing prerequisite headers?
" >&5
30017 echo "$as_me: WARNING
: openssl
/ssl.h
: check
for missing prerequisite headers?
" >&2;}
30018 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: see the Autoconf documentation
" >&5
30019 echo "$as_me: WARNING
: openssl
/ssl.h
: see the Autoconf documentation
" >&2;}
30020 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: section
\"Present But Cannot Be Compiled
\"" >&5
30021 echo "$as_me: WARNING
: openssl
/ssl.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
30022 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: proceeding with the preprocessor
's result" >&5
30023 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result
" >&2;}
30024 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: in the future
, the compiler will take precedence
" >&5
30025 echo "$as_me: WARNING
: openssl
/ssl.h
: in the future
, the compiler will take precedence
" >&2;}
30027 ## ------------------------------- ##
30028 ## Report this to www.asterisk.org ##
30029 ## ------------------------------- ##
30031 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
30034 { echo "$as_me:$LINENO: checking
for openssl
/ssl.h
" >&5
30035 echo $ECHO_N "checking
for openssl
/ssl.h...
$ECHO_C" >&6; }
30036 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30037 echo $ECHO_N "(cached
) $ECHO_C" >&6
30039 ac_cv_header_openssl_ssl_h=$ac_header_preproc
30041 { echo "$as_me:$LINENO: result
: $ac_cv_header_openssl_ssl_h" >&5
30042 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30045 if test $ac_cv_header_openssl_ssl_h = yes; then
30046 OPENSSL_HEADER_FOUND=1
30048 OPENSSL_HEADER_FOUND=0
30054 if test "x
${OPENSSL_HEADER_FOUND}" = "x0
" ; then
30055 if test -n "${OPENSSL_MANDATORY}" ;
30057 { echo "$as_me:$LINENO: ***" >&5
30058 echo "$as_me: ***" >&6;}
30059 { echo "$as_me:$LINENO: *** It appears that you
do not have the ssl development package installed.
" >&5
30060 echo "$as_me: *** It appears that you
do not have the ssl development package installed.
" >&6;}
30061 { echo "$as_me:$LINENO: *** Please
install it to include
${OPENSSL_DESCRIP} support
, or re-run configure
" >&5
30062 echo "$as_me: *** Please
install it to include
${OPENSSL_DESCRIP} support
, or re-run configure
" >&6;}
30063 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OPENSSL_OPTION}" >&5
30064 echo "$as_me: *** without explicitly specifying
--with-${OPENSSL_OPTION}" >&6;}
30073 cat >>confdefs.h <<_ACEOF
30074 #define HAVE_OPENSSL 1
30078 elif test -n "${OPENSSL_MANDATORY}";
30080 { echo "$as_me:$LINENO: ***" >&5
30081 echo "$as_me: ***" >&6;}
30082 { echo "$as_me:$LINENO: *** The
${OPENSSL_DESCRIP} installation on this system appears to be broken.
" >&5
30083 echo "$as_me: *** The
${OPENSSL_DESCRIP} installation on this system appears to be broken.
" >&6;}
30084 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
30085 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
30086 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OPENSSL_OPTION}" >&5
30087 echo "$as_me: *** without explicitly specifying
--with-${OPENSSL_OPTION}" >&6;}
30092 if test "$PBX_OPENSSL" = "1";
30095 if test "${USE_OSPTK}" != "no
"; then
30097 if test "x
${OSPTK_DIR}" != "x
"; then
30098 if test -d ${OSPTK_DIR}/lib; then
30099 pbxlibdir="-L${OSPTK_DIR}/lib
"
30101 pbxlibdir="-L${OSPTK_DIR}"
30104 { echo "$as_me:$LINENO: checking
for OSPPCryptoDecrypt
in -losptk" >&5
30105 echo $ECHO_N "checking
for OSPPCryptoDecrypt
in -losptk...
$ECHO_C" >&6; }
30106 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
30107 echo $ECHO_N "(cached
) $ECHO_C" >&6
30109 ac_check_lib_save_LIBS=$LIBS
30110 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
30111 cat >conftest.$ac_ext <<_ACEOF
30114 cat confdefs.h >>conftest.$ac_ext
30115 cat >>conftest.$ac_ext <<_ACEOF
30116 /* end confdefs.h. */
30118 /* Override any GCC internal prototype to avoid an error.
30119 Use char because int might match the return type of a GCC
30120 builtin and then its argument prototype would still apply. */
30124 char OSPPCryptoDecrypt ();
30128 return OSPPCryptoDecrypt ();
30133 rm -f conftest.$ac_objext conftest$ac_exeext
30134 if { (ac_try="$ac_link"
30135 case "(($ac_try" in
30136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137 *) ac_try_echo=$ac_try;;
30139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30140 (eval "$ac_link") 2>conftest.er1
30142 grep -v '^ *+' conftest.er1 >conftest.err
30144 cat conftest.err >&5
30145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30146 (exit $ac_status); } && {
30147 test -z "$ac_c_werror_flag" ||
30148 test ! -s conftest.err
30149 } && test -s conftest$ac_exeext &&
30150 $as_test_x conftest$ac_exeext; then
30151 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
30153 echo "$as_me: failed program was
:" >&5
30154 sed 's/^/| /' conftest.$ac_ext >&5
30156 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
30159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30160 conftest$ac_exeext conftest.$ac_ext
30161 LIBS=$ac_check_lib_save_LIBS
30163 { echo "$as_me:$LINENO: result
: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
30164 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
30165 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
30166 AST_OSPTK_FOUND=yes
30172 if test "${AST_OSPTK_FOUND}" = "yes"; then
30173 OSPTK_LIB="-losptk -lcrypto -lssl"
30174 OSPTK_HEADER_FOUND="1"
30175 if test "x
${OSPTK_DIR}" != "x
"; then
30176 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
30177 OSPTK_INCLUDE="-I${OSPTK_DIR}/include
"
30178 saved_cppflags="${CPPFLAGS}"
30179 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include
"
30180 if test "xosp
/osp.h
" != "x
" ; then
30181 as_ac_Header=`echo "ac_cv_header_
${OSPTK_DIR}/include
/osp
/osp.h
" | $as_tr_sh`
30182 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30183 { echo "$as_me:$LINENO: checking
for ${OSPTK_DIR}/include
/osp
/osp.h
" >&5
30184 echo $ECHO_N "checking
for ${OSPTK_DIR}/include
/osp
/osp.h...
$ECHO_C" >&6; }
30185 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30186 echo $ECHO_N "(cached
) $ECHO_C" >&6
30188 ac_res=`eval echo '${'$as_ac_Header'}'`
30189 { echo "$as_me:$LINENO: result
: $ac_res" >&5
30190 echo "${ECHO_T}$ac_res" >&6; }
30192 # Is the header compilable?
30193 { echo "$as_me:$LINENO: checking
${OSPTK_DIR}/include
/osp
/osp.h usability
" >&5
30194 echo $ECHO_N "checking
${OSPTK_DIR}/include
/osp
/osp.h usability...
$ECHO_C" >&6; }
30195 cat >conftest.$ac_ext <<_ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h. */
30201 $ac_includes_default
30202 #include <${OSPTK_DIR}/include/osp/osp.h>
30204 rm -f conftest.$ac_objext
30205 if { (ac_try="$ac_compile"
30206 case "(($ac_try" in
30207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208 *) ac_try_echo=$ac_try;;
30210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30211 (eval "$ac_compile") 2>conftest.er1
30213 grep -v '^ *+' conftest.er1 >conftest.err
30215 cat conftest.err >&5
30216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30217 (exit $ac_status); } && {
30218 test -z "$ac_c_werror_flag" ||
30219 test ! -s conftest.err
30220 } && test -s conftest.$ac_objext; then
30221 ac_header_compiler=yes
30223 echo "$as_me: failed program was
:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30226 ac_header_compiler=no
30229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30230 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
30231 echo "${ECHO_T}$ac_header_compiler" >&6; }
30233 # Is the header present?
30234 { echo "$as_me:$LINENO: checking
${OSPTK_DIR}/include
/osp
/osp.h presence
" >&5
30235 echo $ECHO_N "checking
${OSPTK_DIR}/include
/osp
/osp.h presence...
$ECHO_C" >&6; }
30236 cat >conftest.$ac_ext <<_ACEOF
30239 cat confdefs.h >>conftest.$ac_ext
30240 cat >>conftest.$ac_ext <<_ACEOF
30241 /* end confdefs.h. */
30242 #include <${OSPTK_DIR}/include/osp/osp.h>
30244 if { (ac_try="$ac_cpp conftest.
$ac_ext"
30245 case "(($ac_try" in
30246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247 *) ac_try_echo=$ac_try;;
30249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30250 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
30252 grep -v '^ *+' conftest.er1 >conftest.err
30254 cat conftest.err >&5
30255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30256 (exit $ac_status); } >/dev/null && {
30257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30258 test ! -s conftest.err
30260 ac_header_preproc=yes
30262 echo "$as_me: failed program was
:" >&5
30263 sed 's/^/| /' conftest.$ac_ext >&5
30265 ac_header_preproc=no
30268 rm -f conftest.err conftest.$ac_ext
30269 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
30270 echo "${ECHO_T}$ac_header_preproc" >&6; }
30272 # So? What about this header?
30273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30275 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
30276 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
30277 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: proceeding with the compiler
's result" >&5
30278 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result
" >&2;}
30279 ac_header_preproc=yes
30282 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: present but cannot be compiled
" >&5
30283 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: present but cannot be compiled
" >&2;}
30284 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: check
for missing prerequisite headers?
" >&5
30285 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: check
for missing prerequisite headers?
" >&2;}
30286 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: see the Autoconf documentation
" >&5
30287 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: see the Autoconf documentation
" >&2;}
30288 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&5
30289 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
30290 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: proceeding with the preprocessor
's result" >&5
30291 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result
" >&2;}
30292 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: in the future
, the compiler will take precedence
" >&5
30293 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: in the future
, the compiler will take precedence
" >&2;}
30295 ## ------------------------------- ##
30296 ## Report this to www.asterisk.org ##
30297 ## ------------------------------- ##
30299 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
30302 { echo "$as_me:$LINENO: checking
for ${OSPTK_DIR}/include
/osp
/osp.h
" >&5
30303 echo $ECHO_N "checking
for ${OSPTK_DIR}/include
/osp
/osp.h...
$ECHO_C" >&6; }
30304 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30305 echo $ECHO_N "(cached
) $ECHO_C" >&6
30307 eval "$as_ac_Header=\
$ac_header_preproc"
30309 ac_res=`eval echo '${'$as_ac_Header'}'`
30310 { echo "$as_me:$LINENO: result
: $ac_res" >&5
30311 echo "${ECHO_T}$ac_res" >&6; }
30314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30315 OSPTK_HEADER_FOUND=1
30317 OSPTK_HEADER_FOUND=0
30322 CPPFLAGS="${saved_cppflags}"
30324 if test "xosp
/osp.h
" != "x
" ; then
30325 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30326 { echo "$as_me:$LINENO: checking
for osp
/osp.h
" >&5
30327 echo $ECHO_N "checking
for osp
/osp.h...
$ECHO_C" >&6; }
30328 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30329 echo $ECHO_N "(cached
) $ECHO_C" >&6
30331 { echo "$as_me:$LINENO: result
: $ac_cv_header_osp_osp_h" >&5
30332 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30334 # Is the header compilable?
30335 { echo "$as_me:$LINENO: checking osp
/osp.h usability
" >&5
30336 echo $ECHO_N "checking osp
/osp.h usability...
$ECHO_C" >&6; }
30337 cat >conftest.$ac_ext <<_ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h. */
30343 $ac_includes_default
30344 #include <osp/osp.h>
30346 rm -f conftest.$ac_objext
30347 if { (ac_try="$ac_compile"
30348 case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_compile") 2>conftest.er1
30355 grep -v '^ *+' conftest.er1 >conftest.err
30357 cat conftest.err >&5
30358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30359 (exit $ac_status); } && {
30360 test -z "$ac_c_werror_flag" ||
30361 test ! -s conftest.err
30362 } && test -s conftest.$ac_objext; then
30363 ac_header_compiler=yes
30365 echo "$as_me: failed program was
:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30368 ac_header_compiler=no
30371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30372 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
30373 echo "${ECHO_T}$ac_header_compiler" >&6; }
30375 # Is the header present?
30376 { echo "$as_me:$LINENO: checking osp
/osp.h presence
" >&5
30377 echo $ECHO_N "checking osp
/osp.h presence...
$ECHO_C" >&6; }
30378 cat >conftest.$ac_ext <<_ACEOF
30381 cat confdefs.h >>conftest.$ac_ext
30382 cat >>conftest.$ac_ext <<_ACEOF
30383 /* end confdefs.h. */
30384 #include <osp/osp.h>
30386 if { (ac_try="$ac_cpp conftest.
$ac_ext"
30387 case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
30394 grep -v '^ *+' conftest.er1 >conftest.err
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30398 (exit $ac_status); } >/dev/null && {
30399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30400 test ! -s conftest.err
30402 ac_header_preproc=yes
30404 echo "$as_me: failed program was
:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30407 ac_header_preproc=no
30410 rm -f conftest.err conftest.$ac_ext
30411 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
30412 echo "${ECHO_T}$ac_header_preproc" >&6; }
30414 # So? What about this header?
30415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30417 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
30418 echo "$as_me: WARNING
: osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
30419 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: proceeding with the compiler
's result" >&5
30420 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result
" >&2;}
30421 ac_header_preproc=yes
30424 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: present but cannot be compiled
" >&5
30425 echo "$as_me: WARNING
: osp
/osp.h
: present but cannot be compiled
" >&2;}
30426 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: check
for missing prerequisite headers?
" >&5
30427 echo "$as_me: WARNING
: osp
/osp.h
: check
for missing prerequisite headers?
" >&2;}
30428 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: see the Autoconf documentation
" >&5
30429 echo "$as_me: WARNING
: osp
/osp.h
: see the Autoconf documentation
" >&2;}
30430 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&5
30431 echo "$as_me: WARNING
: osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
30432 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: proceeding with the preprocessor
's result" >&5
30433 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result
" >&2;}
30434 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: in the future
, the compiler will take precedence
" >&5
30435 echo "$as_me: WARNING
: osp
/osp.h
: in the future
, the compiler will take precedence
" >&2;}
30437 ## ------------------------------- ##
30438 ## Report this to www.asterisk.org ##
30439 ## ------------------------------- ##
30441 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
30444 { echo "$as_me:$LINENO: checking
for osp
/osp.h
" >&5
30445 echo $ECHO_N "checking
for osp
/osp.h...
$ECHO_C" >&6; }
30446 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30447 echo $ECHO_N "(cached
) $ECHO_C" >&6
30449 ac_cv_header_osp_osp_h=$ac_header_preproc
30451 { echo "$as_me:$LINENO: result
: $ac_cv_header_osp_osp_h" >&5
30452 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30455 if test $ac_cv_header_osp_osp_h = yes; then
30456 OSPTK_HEADER_FOUND=1
30458 OSPTK_HEADER_FOUND=0
30464 if test "x
${OSPTK_HEADER_FOUND}" = "x0
" ; then
30465 if test -n "${OSPTK_MANDATORY}" ;
30467 { echo "$as_me:$LINENO: ***" >&5
30468 echo "$as_me: ***" >&6;}
30469 { echo "$as_me:$LINENO: *** It appears that you
do not have the osptk development package installed.
" >&5
30470 echo "$as_me: *** It appears that you
do not have the osptk development package installed.
" >&6;}
30471 { echo "$as_me:$LINENO: *** Please
install it to include
${OSPTK_DESCRIP} support
, or re-run configure
" >&5
30472 echo "$as_me: *** Please
install it to include
${OSPTK_DESCRIP} support
, or re-run configure
" >&6;}
30473 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&5
30474 echo "$as_me: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&6;}
30483 cat >>confdefs.h <<_ACEOF
30484 #define HAVE_OSPTK 1
30488 elif test -n "${OSPTK_MANDATORY}";
30490 { echo "$as_me:$LINENO: ***" >&5
30491 echo "$as_me: ***" >&6;}
30492 { echo "$as_me:$LINENO: *** The
${OSPTK_DESCRIP} installation on this system appears to be broken.
" >&5
30493 echo "$as_me: *** The
${OSPTK_DESCRIP} installation on this system appears to be broken.
" >&6;}
30494 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
30495 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
30496 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&5
30497 echo "$as_me: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&6;}
30505 if test "${USE_FREETDS}" != "no
"; then
30507 if test "x
${FREETDS_DIR}" != "x
"; then
30508 if test -d ${FREETDS_DIR}/lib; then
30509 pbxlibdir="-L${FREETDS_DIR}/lib
"
30511 pbxlibdir="-L${FREETDS_DIR}"
30514 { echo "$as_me:$LINENO: checking
for tds_version
in -ltds" >&5
30515 echo $ECHO_N "checking
for tds_version
in -ltds...
$ECHO_C" >&6; }
30516 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
30517 echo $ECHO_N "(cached
) $ECHO_C" >&6
30519 ac_check_lib_save_LIBS=$LIBS
30520 LIBS="-ltds ${pbxlibdir} $LIBS"
30521 cat >conftest.$ac_ext <<_ACEOF
30524 cat confdefs.h >>conftest.$ac_ext
30525 cat >>conftest.$ac_ext <<_ACEOF
30526 /* end confdefs.h. */
30528 /* Override any GCC internal prototype to avoid an error.
30529 Use char because int might match the return type of a GCC
30530 builtin and then its argument prototype would still apply. */
30534 char tds_version ();
30538 return tds_version ();
30543 rm -f conftest.$ac_objext conftest$ac_exeext
30544 if { (ac_try="$ac_link"
30545 case "(($ac_try" in
30546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30547 *) ac_try_echo=$ac_try;;
30549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30550 (eval "$ac_link") 2>conftest.er1
30552 grep -v '^ *+' conftest.er1 >conftest.err
30554 cat conftest.err >&5
30555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30556 (exit $ac_status); } && {
30557 test -z "$ac_c_werror_flag" ||
30558 test ! -s conftest.err
30559 } && test -s conftest$ac_exeext &&
30560 $as_test_x conftest$ac_exeext; then
30561 ac_cv_lib_tds_tds_version=yes
30563 echo "$as_me: failed program was
:" >&5
30564 sed 's/^/| /' conftest.$ac_ext >&5
30566 ac_cv_lib_tds_tds_version=no
30569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30570 conftest$ac_exeext conftest.$ac_ext
30571 LIBS=$ac_check_lib_save_LIBS
30573 { echo "$as_me:$LINENO: result
: $ac_cv_lib_tds_tds_version" >&5
30574 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
30575 if test $ac_cv_lib_tds_tds_version = yes; then
30576 AST_FREETDS_FOUND=yes
30578 AST_FREETDS_FOUND=no
30582 if test "${AST_FREETDS_FOUND}" = "yes"; then
30583 FREETDS_LIB="-ltds "
30584 FREETDS_HEADER_FOUND="1"
30585 if test "x
${FREETDS_DIR}" != "x
"; then
30586 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
30587 FREETDS_INCLUDE="-I${FREETDS_DIR}/include
"
30588 saved_cppflags="${CPPFLAGS}"
30589 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include
"
30590 if test "xtds.h
" != "x
" ; then
30591 as_ac_Header=`echo "ac_cv_header_
${FREETDS_DIR}/include
/tds.h
" | $as_tr_sh`
30592 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30593 { echo "$as_me:$LINENO: checking
for ${FREETDS_DIR}/include
/tds.h
" >&5
30594 echo $ECHO_N "checking
for ${FREETDS_DIR}/include
/tds.h...
$ECHO_C" >&6; }
30595 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30596 echo $ECHO_N "(cached
) $ECHO_C" >&6
30598 ac_res=`eval echo '${'$as_ac_Header'}'`
30599 { echo "$as_me:$LINENO: result
: $ac_res" >&5
30600 echo "${ECHO_T}$ac_res" >&6; }
30602 # Is the header compilable?
30603 { echo "$as_me:$LINENO: checking
${FREETDS_DIR}/include
/tds.h usability
" >&5
30604 echo $ECHO_N "checking
${FREETDS_DIR}/include
/tds.h usability...
$ECHO_C" >&6; }
30605 cat >conftest.$ac_ext <<_ACEOF
30608 cat confdefs.h >>conftest.$ac_ext
30609 cat >>conftest.$ac_ext <<_ACEOF
30610 /* end confdefs.h. */
30611 $ac_includes_default
30612 #include <${FREETDS_DIR}/include/tds.h>
30614 rm -f conftest.$ac_objext
30615 if { (ac_try="$ac_compile"
30616 case "(($ac_try" in
30617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30618 *) ac_try_echo=$ac_try;;
30620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30621 (eval "$ac_compile") 2>conftest.er1
30623 grep -v '^ *+' conftest.er1 >conftest.err
30625 cat conftest.err >&5
30626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30627 (exit $ac_status); } && {
30628 test -z "$ac_c_werror_flag" ||
30629 test ! -s conftest.err
30630 } && test -s conftest.$ac_objext; then
30631 ac_header_compiler=yes
30633 echo "$as_me: failed program was
:" >&5
30634 sed 's/^/| /' conftest.$ac_ext >&5
30636 ac_header_compiler=no
30639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30640 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
30641 echo "${ECHO_T}$ac_header_compiler" >&6; }
30643 # Is the header present?
30644 { echo "$as_me:$LINENO: checking
${FREETDS_DIR}/include
/tds.h presence
" >&5
30645 echo $ECHO_N "checking
${FREETDS_DIR}/include
/tds.h presence...
$ECHO_C" >&6; }
30646 cat >conftest.$ac_ext <<_ACEOF
30649 cat confdefs.h >>conftest.$ac_ext
30650 cat >>conftest.$ac_ext <<_ACEOF
30651 /* end confdefs.h. */
30652 #include <${FREETDS_DIR}/include/tds.h>
30654 if { (ac_try="$ac_cpp conftest.
$ac_ext"
30655 case "(($ac_try" in
30656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30657 *) ac_try_echo=$ac_try;;
30659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30660 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
30662 grep -v '^ *+' conftest.er1 >conftest.err
30664 cat conftest.err >&5
30665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30666 (exit $ac_status); } >/dev/null && {
30667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30668 test ! -s conftest.err
30670 ac_header_preproc=yes
30672 echo "$as_me: failed program was
:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30675 ac_header_preproc=no
30678 rm -f conftest.err conftest.$ac_ext
30679 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
30680 echo "${ECHO_T}$ac_header_preproc" >&6; }
30682 # So? What about this header?
30683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30685 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
30686 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
30687 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: proceeding with the compiler
's result" >&5
30688 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result
" >&2;}
30689 ac_header_preproc=yes
30692 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: present but cannot be compiled
" >&5
30693 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: present but cannot be compiled
" >&2;}
30694 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: check
for missing prerequisite headers?
" >&5
30695 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: check
for missing prerequisite headers?
" >&2;}
30696 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: see the Autoconf documentation
" >&5
30697 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: see the Autoconf documentation
" >&2;}
30698 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: section
\"Present But Cannot Be Compiled
\"" >&5
30699 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
30700 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: proceeding with the preprocessor
's result" >&5
30701 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result
" >&2;}
30702 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: in the future
, the compiler will take precedence
" >&5
30703 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: in the future
, the compiler will take precedence
" >&2;}
30705 ## ------------------------------- ##
30706 ## Report this to www.asterisk.org ##
30707 ## ------------------------------- ##
30709 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
30712 { echo "$as_me:$LINENO: checking
for ${FREETDS_DIR}/include
/tds.h
" >&5
30713 echo $ECHO_N "checking
for ${FREETDS_DIR}/include
/tds.h...
$ECHO_C" >&6; }
30714 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30715 echo $ECHO_N "(cached
) $ECHO_C" >&6
30717 eval "$as_ac_Header=\
$ac_header_preproc"
30719 ac_res=`eval echo '${'$as_ac_Header'}'`
30720 { echo "$as_me:$LINENO: result
: $ac_res" >&5
30721 echo "${ECHO_T}$ac_res" >&6; }
30724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30725 FREETDS_HEADER_FOUND=1
30727 FREETDS_HEADER_FOUND=0
30732 CPPFLAGS="${saved_cppflags}"
30734 if test "xtds.h
" != "x
" ; then
30735 if test "${ac_cv_header_tds_h+set}" = set; then
30736 { echo "$as_me:$LINENO: checking
for tds.h
" >&5
30737 echo $ECHO_N "checking
for tds.h...
$ECHO_C" >&6; }
30738 if test "${ac_cv_header_tds_h+set}" = set; then
30739 echo $ECHO_N "(cached
) $ECHO_C" >&6
30741 { echo "$as_me:$LINENO: result
: $ac_cv_header_tds_h" >&5
30742 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
30744 # Is the header compilable?
30745 { echo "$as_me:$LINENO: checking tds.h usability
" >&5
30746 echo $ECHO_N "checking tds.h usability...
$ECHO_C" >&6; }
30747 cat >conftest.$ac_ext <<_ACEOF
30750 cat confdefs.h >>conftest.$ac_ext
30751 cat >>conftest.$ac_ext <<_ACEOF
30752 /* end confdefs.h. */
30753 $ac_includes_default
30756 rm -f conftest.$ac_objext
30757 if { (ac_try="$ac_compile"
30758 case "(($ac_try" in
30759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30760 *) ac_try_echo=$ac_try;;
30762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30763 (eval "$ac_compile") 2>conftest.er1
30765 grep -v '^ *+' conftest.er1 >conftest.err
30767 cat conftest.err >&5
30768 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30769 (exit $ac_status); } && {
30770 test -z "$ac_c_werror_flag" ||
30771 test ! -s conftest.err
30772 } && test -s conftest.$ac_objext; then
30773 ac_header_compiler=yes
30775 echo "$as_me: failed program was
:" >&5
30776 sed 's/^/| /' conftest.$ac_ext >&5
30778 ac_header_compiler=no
30781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30782 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
30783 echo "${ECHO_T}$ac_header_compiler" >&6; }
30785 # Is the header present?
30786 { echo "$as_me:$LINENO: checking tds.h presence
" >&5
30787 echo $ECHO_N "checking tds.h presence...
$ECHO_C" >&6; }
30788 cat >conftest.$ac_ext <<_ACEOF
30791 cat confdefs.h >>conftest.$ac_ext
30792 cat >>conftest.$ac_ext <<_ACEOF
30793 /* end confdefs.h. */
30796 if { (ac_try="$ac_cpp conftest.
$ac_ext"
30797 case "(($ac_try" in
30798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799 *) ac_try_echo=$ac_try;;
30801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30802 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
30804 grep -v '^ *+' conftest.er1 >conftest.err
30806 cat conftest.err >&5
30807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30808 (exit $ac_status); } >/dev/null && {
30809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30810 test ! -s conftest.err
30812 ac_header_preproc=yes
30814 echo "$as_me: failed program was
:" >&5
30815 sed 's/^/| /' conftest.$ac_ext >&5
30817 ac_header_preproc=no
30820 rm -f conftest.err conftest.$ac_ext
30821 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
30822 echo "${ECHO_T}$ac_header_preproc" >&6; }
30824 # So? What about this header?
30825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30827 { echo "$as_me:$LINENO: WARNING
: tds.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
30828 echo "$as_me: WARNING
: tds.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
30829 { echo "$as_me:$LINENO: WARNING
: tds.h
: proceeding with the compiler
's result" >&5
30830 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result
" >&2;}
30831 ac_header_preproc=yes
30834 { echo "$as_me:$LINENO: WARNING
: tds.h
: present but cannot be compiled
" >&5
30835 echo "$as_me: WARNING
: tds.h
: present but cannot be compiled
" >&2;}
30836 { echo "$as_me:$LINENO: WARNING
: tds.h
: check
for missing prerequisite headers?
" >&5
30837 echo "$as_me: WARNING
: tds.h
: check
for missing prerequisite headers?
" >&2;}
30838 { echo "$as_me:$LINENO: WARNING
: tds.h
: see the Autoconf documentation
" >&5
30839 echo "$as_me: WARNING
: tds.h
: see the Autoconf documentation
" >&2;}
30840 { echo "$as_me:$LINENO: WARNING
: tds.h
: section
\"Present But Cannot Be Compiled
\"" >&5
30841 echo "$as_me: WARNING
: tds.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
30842 { echo "$as_me:$LINENO: WARNING
: tds.h
: proceeding with the preprocessor
's result" >&5
30843 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result
" >&2;}
30844 { echo "$as_me:$LINENO: WARNING
: tds.h
: in the future
, the compiler will take precedence
" >&5
30845 echo "$as_me: WARNING
: tds.h
: in the future
, the compiler will take precedence
" >&2;}
30847 ## ------------------------------- ##
30848 ## Report this to www.asterisk.org ##
30849 ## ------------------------------- ##
30851 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
30854 { echo "$as_me:$LINENO: checking
for tds.h
" >&5
30855 echo $ECHO_N "checking
for tds.h...
$ECHO_C" >&6; }
30856 if test "${ac_cv_header_tds_h+set}" = set; then
30857 echo $ECHO_N "(cached
) $ECHO_C" >&6
30859 ac_cv_header_tds_h=$ac_header_preproc
30861 { echo "$as_me:$LINENO: result
: $ac_cv_header_tds_h" >&5
30862 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
30865 if test $ac_cv_header_tds_h = yes; then
30866 FREETDS_HEADER_FOUND=1
30868 FREETDS_HEADER_FOUND=0
30874 if test "x
${FREETDS_HEADER_FOUND}" = "x0
" ; then
30875 if test -n "${FREETDS_MANDATORY}" ;
30877 { echo "$as_me:$LINENO: ***" >&5
30878 echo "$as_me: ***" >&6;}
30879 { echo "$as_me:$LINENO: *** It appears that you
do not have the tds development package installed.
" >&5
30880 echo "$as_me: *** It appears that you
do not have the tds development package installed.
" >&6;}
30881 { echo "$as_me:$LINENO: *** Please
install it to include
${FREETDS_DESCRIP} support
, or re-run configure
" >&5
30882 echo "$as_me: *** Please
install it to include
${FREETDS_DESCRIP} support
, or re-run configure
" >&6;}
30883 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${FREETDS_OPTION}" >&5
30884 echo "$as_me: *** without explicitly specifying
--with-${FREETDS_OPTION}" >&6;}
30893 cat >>confdefs.h <<_ACEOF
30894 #define HAVE_FREETDS 1
30898 elif test -n "${FREETDS_MANDATORY}";
30900 { echo "$as_me:$LINENO: ***" >&5
30901 echo "$as_me: ***" >&6;}
30902 { echo "$as_me:$LINENO: *** The
${FREETDS_DESCRIP} installation on this system appears to be broken.
" >&5
30903 echo "$as_me: *** The
${FREETDS_DESCRIP} installation on this system appears to be broken.
" >&6;}
30904 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
30905 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
30906 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${FREETDS_OPTION}" >&5
30907 echo "$as_me: *** without explicitly specifying
--with-${FREETDS_OPTION}" >&6;}
30912 if test "${PBX_FREETDS}" != "0";
30914 if test "${FREETDS_DIR}x
" = "x
";
30916 for tds_dir in /usr /usr/local;
30918 if test -f "${tds_dir}/include
/tdsver.h
";
30920 FREETDS_DIR="${tds_dir}"
30924 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
30926 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
30929 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
30932 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
30935 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
30941 if test "${USE_TERMCAP}" != "no
"; then
30943 if test "x
${TERMCAP_DIR}" != "x
"; then
30944 if test -d ${TERMCAP_DIR}/lib; then
30945 pbxlibdir="-L${TERMCAP_DIR}/lib
"
30947 pbxlibdir="-L${TERMCAP_DIR}"
30950 { echo "$as_me:$LINENO: checking
for tgetent
in -ltermcap" >&5
30951 echo $ECHO_N "checking
for tgetent
in -ltermcap...
$ECHO_C" >&6; }
30952 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30953 echo $ECHO_N "(cached
) $ECHO_C" >&6
30955 ac_check_lib_save_LIBS=$LIBS
30956 LIBS="-ltermcap ${pbxlibdir} $LIBS"
30957 cat >conftest.$ac_ext <<_ACEOF
30960 cat confdefs.h >>conftest.$ac_ext
30961 cat >>conftest.$ac_ext <<_ACEOF
30962 /* end confdefs.h. */
30964 /* Override any GCC internal prototype to avoid an error.
30965 Use char because int might match the return type of a GCC
30966 builtin and then its argument prototype would still apply. */
30979 rm -f conftest.$ac_objext conftest$ac_exeext
30980 if { (ac_try="$ac_link"
30981 case "(($ac_try" in
30982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983 *) ac_try_echo=$ac_try;;
30985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30986 (eval "$ac_link") 2>conftest.er1
30988 grep -v '^ *+' conftest.er1 >conftest.err
30990 cat conftest.err >&5
30991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30992 (exit $ac_status); } && {
30993 test -z "$ac_c_werror_flag" ||
30994 test ! -s conftest.err
30995 } && test -s conftest$ac_exeext &&
30996 $as_test_x conftest$ac_exeext; then
30997 ac_cv_lib_termcap_tgetent=yes
30999 echo "$as_me: failed program was
:" >&5
31000 sed 's/^/| /' conftest.$ac_ext >&5
31002 ac_cv_lib_termcap_tgetent=no
31005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31006 conftest$ac_exeext conftest.$ac_ext
31007 LIBS=$ac_check_lib_save_LIBS
31009 { echo "$as_me:$LINENO: result
: $ac_cv_lib_termcap_tgetent" >&5
31010 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
31011 if test $ac_cv_lib_termcap_tgetent = yes; then
31012 AST_TERMCAP_FOUND=yes
31014 AST_TERMCAP_FOUND=no
31018 if test "${AST_TERMCAP_FOUND}" = "yes"; then
31019 TERMCAP_LIB="-ltermcap "
31020 TERMCAP_HEADER_FOUND="1"
31021 if test "x
${TERMCAP_DIR}" != "x
"; then
31022 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
31023 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include
"
31024 saved_cppflags="${CPPFLAGS}"
31025 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include
"
31026 if test "x
" != "x
" ; then
31027 as_ac_Header=`echo "ac_cv_header_
${TERMCAP_DIR}/include
/" | $as_tr_sh`
31028 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31029 { echo "$as_me:$LINENO: checking
for ${TERMCAP_DIR}/include
/" >&5
31030 echo $ECHO_N "checking
for ${TERMCAP_DIR}/include
/...
$ECHO_C" >&6; }
31031 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31032 echo $ECHO_N "(cached
) $ECHO_C" >&6
31034 ac_res=`eval echo '${'$as_ac_Header'}'`
31035 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31036 echo "${ECHO_T}$ac_res" >&6; }
31038 # Is the header compilable?
31039 { echo "$as_me:$LINENO: checking
${TERMCAP_DIR}/include
/ usability
" >&5
31040 echo $ECHO_N "checking
${TERMCAP_DIR}/include
/ usability...
$ECHO_C" >&6; }
31041 cat >conftest.$ac_ext <<_ACEOF
31044 cat confdefs.h >>conftest.$ac_ext
31045 cat >>conftest.$ac_ext <<_ACEOF
31046 /* end confdefs.h. */
31047 $ac_includes_default
31048 #include <${TERMCAP_DIR}/include/>
31050 rm -f conftest.$ac_objext
31051 if { (ac_try="$ac_compile"
31052 case "(($ac_try" in
31053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31054 *) ac_try_echo=$ac_try;;
31056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31057 (eval "$ac_compile") 2>conftest.er1
31059 grep -v '^ *+' conftest.er1 >conftest.err
31061 cat conftest.err >&5
31062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31063 (exit $ac_status); } && {
31064 test -z "$ac_c_werror_flag" ||
31065 test ! -s conftest.err
31066 } && test -s conftest.$ac_objext; then
31067 ac_header_compiler=yes
31069 echo "$as_me: failed program was
:" >&5
31070 sed 's/^/| /' conftest.$ac_ext >&5
31072 ac_header_compiler=no
31075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31076 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31077 echo "${ECHO_T}$ac_header_compiler" >&6; }
31079 # Is the header present?
31080 { echo "$as_me:$LINENO: checking
${TERMCAP_DIR}/include
/ presence
" >&5
31081 echo $ECHO_N "checking
${TERMCAP_DIR}/include
/ presence...
$ECHO_C" >&6; }
31082 cat >conftest.$ac_ext <<_ACEOF
31085 cat confdefs.h >>conftest.$ac_ext
31086 cat >>conftest.$ac_ext <<_ACEOF
31087 /* end confdefs.h. */
31088 #include <${TERMCAP_DIR}/include/>
31090 if { (ac_try="$ac_cpp conftest.
$ac_ext"
31091 case "(($ac_try" in
31092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093 *) ac_try_echo=$ac_try;;
31095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31096 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
31098 grep -v '^ *+' conftest.er1 >conftest.err
31100 cat conftest.err >&5
31101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31102 (exit $ac_status); } >/dev/null && {
31103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31104 test ! -s conftest.err
31106 ac_header_preproc=yes
31108 echo "$as_me: failed program was
:" >&5
31109 sed 's/^/| /' conftest.$ac_ext >&5
31111 ac_header_preproc=no
31114 rm -f conftest.err conftest.$ac_ext
31115 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31116 echo "${ECHO_T}$ac_header_preproc" >&6; }
31118 # So? What about this header?
31119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31121 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&5
31122 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31123 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: proceeding with the compiler
's result" >&5
31124 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result
" >&2;}
31125 ac_header_preproc=yes
31128 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: present but cannot be compiled
" >&5
31129 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: present but cannot be compiled
" >&2;}
31130 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: check
for missing prerequisite headers?
" >&5
31131 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: check
for missing prerequisite headers?
" >&2;}
31132 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: see the Autoconf documentation
" >&5
31133 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: see the Autoconf documentation
" >&2;}
31134 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&5
31135 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&2;}
31136 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: proceeding with the preprocessor
's result" >&5
31137 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result
" >&2;}
31138 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: in the future
, the compiler will take precedence
" >&5
31139 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: in the future
, the compiler will take precedence
" >&2;}
31141 ## ------------------------------- ##
31142 ## Report this to www.asterisk.org ##
31143 ## ------------------------------- ##
31145 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
31148 { echo "$as_me:$LINENO: checking
for ${TERMCAP_DIR}/include
/" >&5
31149 echo $ECHO_N "checking
for ${TERMCAP_DIR}/include
/...
$ECHO_C" >&6; }
31150 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31151 echo $ECHO_N "(cached
) $ECHO_C" >&6
31153 eval "$as_ac_Header=\
$ac_header_preproc"
31155 ac_res=`eval echo '${'$as_ac_Header'}'`
31156 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31157 echo "${ECHO_T}$ac_res" >&6; }
31160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31161 TERMCAP_HEADER_FOUND=1
31163 TERMCAP_HEADER_FOUND=0
31168 CPPFLAGS="${saved_cppflags}"
31170 if test "x
" != "x
" ; then
31171 if test "${ac_cv_header_+set}" = set; then
31172 { echo "$as_me:$LINENO: checking
for " >&5
31173 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
31174 if test "${ac_cv_header_+set}" = set; then
31175 echo $ECHO_N "(cached
) $ECHO_C" >&6
31177 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
31178 echo "${ECHO_T}$ac_cv_header_" >&6; }
31180 # Is the header compilable?
31181 { echo "$as_me:$LINENO: checking usability
" >&5
31182 echo $ECHO_N "checking usability...
$ECHO_C" >&6; }
31183 cat >conftest.$ac_ext <<_ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h. */
31189 $ac_includes_default
31192 rm -f conftest.$ac_objext
31193 if { (ac_try="$ac_compile"
31194 case "(($ac_try" in
31195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196 *) ac_try_echo=$ac_try;;
31198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31199 (eval "$ac_compile") 2>conftest.er1
31201 grep -v '^ *+' conftest.er1 >conftest.err
31203 cat conftest.err >&5
31204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31205 (exit $ac_status); } && {
31206 test -z "$ac_c_werror_flag" ||
31207 test ! -s conftest.err
31208 } && test -s conftest.$ac_objext; then
31209 ac_header_compiler=yes
31211 echo "$as_me: failed program was
:" >&5
31212 sed 's/^/| /' conftest.$ac_ext >&5
31214 ac_header_compiler=no
31217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31218 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31219 echo "${ECHO_T}$ac_header_compiler" >&6; }
31221 # Is the header present?
31222 { echo "$as_me:$LINENO: checking presence
" >&5
31223 echo $ECHO_N "checking presence...
$ECHO_C" >&6; }
31224 cat >conftest.$ac_ext <<_ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h. */
31232 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 2>conftest.er1
31240 grep -v '^ *+' conftest.er1 >conftest.err
31242 cat conftest.err >&5
31243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31244 (exit $ac_status); } >/dev/null && {
31245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31246 test ! -s conftest.err
31248 ac_header_preproc=yes
31250 echo "$as_me: failed program was
:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31253 ac_header_preproc=no
31256 rm -f conftest.err conftest.$ac_ext
31257 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31258 echo "${ECHO_T}$ac_header_preproc" >&6; }
31260 # So? What about this header?
31261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31263 { echo "$as_me:$LINENO: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&5
31264 echo "$as_me: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31265 { echo "$as_me:$LINENO: WARNING
: : proceeding with the compiler
's result" >&5
31266 echo "$as_me: WARNING: : proceeding with the compiler's result
" >&2;}
31267 ac_header_preproc=yes
31270 { echo "$as_me:$LINENO: WARNING
: : present but cannot be compiled
" >&5
31271 echo "$as_me: WARNING
: : present but cannot be compiled
" >&2;}
31272 { echo "$as_me:$LINENO: WARNING
: : check
for missing prerequisite headers?
" >&5
31273 echo "$as_me: WARNING
: : check
for missing prerequisite headers?
" >&2;}
31274 { echo "$as_me:$LINENO: WARNING
: : see the Autoconf documentation
" >&5
31275 echo "$as_me: WARNING
: : see the Autoconf documentation
" >&2;}
31276 { echo "$as_me:$LINENO: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&5
31277 echo "$as_me: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&2;}
31278 { echo "$as_me:$LINENO: WARNING
: : proceeding with the preprocessor
's result" >&5
31279 echo "$as_me: WARNING: : proceeding with the preprocessor's result
" >&2;}
31280 { echo "$as_me:$LINENO: WARNING
: : in the future
, the compiler will take precedence
" >&5
31281 echo "$as_me: WARNING
: : in the future
, the compiler will take precedence
" >&2;}
31283 ## ------------------------------- ##
31284 ## Report this to www.asterisk.org ##
31285 ## ------------------------------- ##
31287 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
31290 { echo "$as_me:$LINENO: checking
for " >&5
31291 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
31292 if test "${ac_cv_header_+set}" = set; then
31293 echo $ECHO_N "(cached
) $ECHO_C" >&6
31295 ac_cv_header_=$ac_header_preproc
31297 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
31298 echo "${ECHO_T}$ac_cv_header_" >&6; }
31301 if test $ac_cv_header_ = yes; then
31302 TERMCAP_HEADER_FOUND=1
31304 TERMCAP_HEADER_FOUND=0
31310 if test "x
${TERMCAP_HEADER_FOUND}" = "x0
" ; then
31311 if test -n "${TERMCAP_MANDATORY}" ;
31313 { echo "$as_me:$LINENO: ***" >&5
31314 echo "$as_me: ***" >&6;}
31315 { echo "$as_me:$LINENO: *** It appears that you
do not have the termcap development package installed.
" >&5
31316 echo "$as_me: *** It appears that you
do not have the termcap development package installed.
" >&6;}
31317 { echo "$as_me:$LINENO: *** Please
install it to include
${TERMCAP_DESCRIP} support
, or re-run configure
" >&5
31318 echo "$as_me: *** Please
install it to include
${TERMCAP_DESCRIP} support
, or re-run configure
" >&6;}
31319 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TERMCAP_OPTION}" >&5
31320 echo "$as_me: *** without explicitly specifying
--with-${TERMCAP_OPTION}" >&6;}
31329 cat >>confdefs.h <<_ACEOF
31330 #define HAVE_TERMCAP 1
31334 elif test -n "${TERMCAP_MANDATORY}";
31336 { echo "$as_me:$LINENO: ***" >&5
31337 echo "$as_me: ***" >&6;}
31338 { echo "$as_me:$LINENO: *** The
${TERMCAP_DESCRIP} installation on this system appears to be broken.
" >&5
31339 echo "$as_me: *** The
${TERMCAP_DESCRIP} installation on this system appears to be broken.
" >&6;}
31340 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
31341 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
31342 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TERMCAP_OPTION}" >&5
31343 echo "$as_me: *** without explicitly specifying
--with-${TERMCAP_OPTION}" >&6;}
31350 if test "${USE_TINFO}" != "no
"; then
31352 if test "x
${TINFO_DIR}" != "x
"; then
31353 if test -d ${TINFO_DIR}/lib; then
31354 pbxlibdir="-L${TINFO_DIR}/lib
"
31356 pbxlibdir="-L${TINFO_DIR}"
31359 { echo "$as_me:$LINENO: checking
for tgetent
in -ltinfo" >&5
31360 echo $ECHO_N "checking
for tgetent
in -ltinfo...
$ECHO_C" >&6; }
31361 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
31362 echo $ECHO_N "(cached
) $ECHO_C" >&6
31364 ac_check_lib_save_LIBS=$LIBS
31365 LIBS="-ltinfo ${pbxlibdir} $LIBS"
31366 cat >conftest.$ac_ext <<_ACEOF
31369 cat confdefs.h >>conftest.$ac_ext
31370 cat >>conftest.$ac_ext <<_ACEOF
31371 /* end confdefs.h. */
31373 /* Override any GCC internal prototype to avoid an error.
31374 Use char because int might match the return type of a GCC
31375 builtin and then its argument prototype would still apply. */
31388 rm -f conftest.$ac_objext conftest$ac_exeext
31389 if { (ac_try="$ac_link"
31390 case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31395 (eval "$ac_link") 2>conftest.er1
31397 grep -v '^ *+' conftest.er1 >conftest.err
31399 cat conftest.err >&5
31400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31401 (exit $ac_status); } && {
31402 test -z "$ac_c_werror_flag" ||
31403 test ! -s conftest.err
31404 } && test -s conftest$ac_exeext &&
31405 $as_test_x conftest$ac_exeext; then
31406 ac_cv_lib_tinfo_tgetent=yes
31408 echo "$as_me: failed program was
:" >&5
31409 sed 's/^/| /' conftest.$ac_ext >&5
31411 ac_cv_lib_tinfo_tgetent=no
31414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31415 conftest$ac_exeext conftest.$ac_ext
31416 LIBS=$ac_check_lib_save_LIBS
31418 { echo "$as_me:$LINENO: result
: $ac_cv_lib_tinfo_tgetent" >&5
31419 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
31420 if test $ac_cv_lib_tinfo_tgetent = yes; then
31421 AST_TINFO_FOUND=yes
31427 if test "${AST_TINFO_FOUND}" = "yes"; then
31428 TINFO_LIB="-ltinfo "
31429 TINFO_HEADER_FOUND="1"
31430 if test "x
${TINFO_DIR}" != "x
"; then
31431 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
31432 TINFO_INCLUDE="-I${TINFO_DIR}/include
"
31433 saved_cppflags="${CPPFLAGS}"
31434 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include
"
31435 if test "x
" != "x
" ; then
31436 as_ac_Header=`echo "ac_cv_header_
${TINFO_DIR}/include
/" | $as_tr_sh`
31437 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31438 { echo "$as_me:$LINENO: checking
for ${TINFO_DIR}/include
/" >&5
31439 echo $ECHO_N "checking
for ${TINFO_DIR}/include
/...
$ECHO_C" >&6; }
31440 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31441 echo $ECHO_N "(cached
) $ECHO_C" >&6
31443 ac_res=`eval echo '${'$as_ac_Header'}'`
31444 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31445 echo "${ECHO_T}$ac_res" >&6; }
31447 # Is the header compilable?
31448 { echo "$as_me:$LINENO: checking
${TINFO_DIR}/include
/ usability
" >&5
31449 echo $ECHO_N "checking
${TINFO_DIR}/include
/ usability...
$ECHO_C" >&6; }
31450 cat >conftest.$ac_ext <<_ACEOF
31453 cat confdefs.h >>conftest.$ac_ext
31454 cat >>conftest.$ac_ext <<_ACEOF
31455 /* end confdefs.h. */
31456 $ac_includes_default
31457 #include <${TINFO_DIR}/include/>
31459 rm -f conftest.$ac_objext
31460 if { (ac_try="$ac_compile"
31461 case "(($ac_try" in
31462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31463 *) ac_try_echo=$ac_try;;
31465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31466 (eval "$ac_compile") 2>conftest.er1
31468 grep -v '^ *+' conftest.er1 >conftest.err
31470 cat conftest.err >&5
31471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31472 (exit $ac_status); } && {
31473 test -z "$ac_c_werror_flag" ||
31474 test ! -s conftest.err
31475 } && test -s conftest.$ac_objext; then
31476 ac_header_compiler=yes
31478 echo "$as_me: failed program was
:" >&5
31479 sed 's/^/| /' conftest.$ac_ext >&5
31481 ac_header_compiler=no
31484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31485 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31486 echo "${ECHO_T}$ac_header_compiler" >&6; }
31488 # Is the header present?
31489 { echo "$as_me:$LINENO: checking
${TINFO_DIR}/include
/ presence
" >&5
31490 echo $ECHO_N "checking
${TINFO_DIR}/include
/ presence...
$ECHO_C" >&6; }
31491 cat >conftest.$ac_ext <<_ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h. */
31497 #include <${TINFO_DIR}/include/>
31499 if { (ac_try="$ac_cpp conftest.
$ac_ext"
31500 case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
31507 grep -v '^ *+' conftest.er1 >conftest.err
31509 cat conftest.err >&5
31510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31511 (exit $ac_status); } >/dev/null && {
31512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31513 test ! -s conftest.err
31515 ac_header_preproc=yes
31517 echo "$as_me: failed program was
:" >&5
31518 sed 's/^/| /' conftest.$ac_ext >&5
31520 ac_header_preproc=no
31523 rm -f conftest.err conftest.$ac_ext
31524 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31525 echo "${ECHO_T}$ac_header_preproc" >&6; }
31527 # So? What about this header?
31528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31530 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&5
31531 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31532 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: proceeding with the compiler
's result" >&5
31533 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result
" >&2;}
31534 ac_header_preproc=yes
31537 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: present but cannot be compiled
" >&5
31538 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: present but cannot be compiled
" >&2;}
31539 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: check
for missing prerequisite headers?
" >&5
31540 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: check
for missing prerequisite headers?
" >&2;}
31541 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: see the Autoconf documentation
" >&5
31542 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: see the Autoconf documentation
" >&2;}
31543 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&5
31544 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&2;}
31545 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: proceeding with the preprocessor
's result" >&5
31546 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result
" >&2;}
31547 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: in the future
, the compiler will take precedence
" >&5
31548 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: in the future
, the compiler will take precedence
" >&2;}
31550 ## ------------------------------- ##
31551 ## Report this to www.asterisk.org ##
31552 ## ------------------------------- ##
31554 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
31557 { echo "$as_me:$LINENO: checking
for ${TINFO_DIR}/include
/" >&5
31558 echo $ECHO_N "checking
for ${TINFO_DIR}/include
/...
$ECHO_C" >&6; }
31559 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31560 echo $ECHO_N "(cached
) $ECHO_C" >&6
31562 eval "$as_ac_Header=\
$ac_header_preproc"
31564 ac_res=`eval echo '${'$as_ac_Header'}'`
31565 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31566 echo "${ECHO_T}$ac_res" >&6; }
31569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31570 TINFO_HEADER_FOUND=1
31572 TINFO_HEADER_FOUND=0
31577 CPPFLAGS="${saved_cppflags}"
31579 if test "x
" != "x
" ; then
31580 if test "${ac_cv_header_+set}" = set; then
31581 { echo "$as_me:$LINENO: checking
for " >&5
31582 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
31583 if test "${ac_cv_header_+set}" = set; then
31584 echo $ECHO_N "(cached
) $ECHO_C" >&6
31586 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
31587 echo "${ECHO_T}$ac_cv_header_" >&6; }
31589 # Is the header compilable?
31590 { echo "$as_me:$LINENO: checking usability
" >&5
31591 echo $ECHO_N "checking usability...
$ECHO_C" >&6; }
31592 cat >conftest.$ac_ext <<_ACEOF
31595 cat confdefs.h >>conftest.$ac_ext
31596 cat >>conftest.$ac_ext <<_ACEOF
31597 /* end confdefs.h. */
31598 $ac_includes_default
31601 rm -f conftest.$ac_objext
31602 if { (ac_try="$ac_compile"
31603 case "(($ac_try" in
31604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_compile") 2>conftest.er1
31610 grep -v '^ *+' conftest.er1 >conftest.err
31612 cat conftest.err >&5
31613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31614 (exit $ac_status); } && {
31615 test -z "$ac_c_werror_flag" ||
31616 test ! -s conftest.err
31617 } && test -s conftest.$ac_objext; then
31618 ac_header_compiler=yes
31620 echo "$as_me: failed program was
:" >&5
31621 sed 's/^/| /' conftest.$ac_ext >&5
31623 ac_header_compiler=no
31626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31627 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31628 echo "${ECHO_T}$ac_header_compiler" >&6; }
31630 # Is the header present?
31631 { echo "$as_me:$LINENO: checking presence
" >&5
31632 echo $ECHO_N "checking presence...
$ECHO_C" >&6; }
31633 cat >conftest.$ac_ext <<_ACEOF
31636 cat confdefs.h >>conftest.$ac_ext
31637 cat >>conftest.$ac_ext <<_ACEOF
31638 /* end confdefs.h. */
31641 if { (ac_try="$ac_cpp conftest.
$ac_ext"
31642 case "(($ac_try" in
31643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644 *) ac_try_echo=$ac_try;;
31646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31647 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
31649 grep -v '^ *+' conftest.er1 >conftest.err
31651 cat conftest.err >&5
31652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31653 (exit $ac_status); } >/dev/null && {
31654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31655 test ! -s conftest.err
31657 ac_header_preproc=yes
31659 echo "$as_me: failed program was
:" >&5
31660 sed 's/^/| /' conftest.$ac_ext >&5
31662 ac_header_preproc=no
31665 rm -f conftest.err conftest.$ac_ext
31666 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31667 echo "${ECHO_T}$ac_header_preproc" >&6; }
31669 # So? What about this header?
31670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31672 { echo "$as_me:$LINENO: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&5
31673 echo "$as_me: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31674 { echo "$as_me:$LINENO: WARNING
: : proceeding with the compiler
's result" >&5
31675 echo "$as_me: WARNING: : proceeding with the compiler's result
" >&2;}
31676 ac_header_preproc=yes
31679 { echo "$as_me:$LINENO: WARNING
: : present but cannot be compiled
" >&5
31680 echo "$as_me: WARNING
: : present but cannot be compiled
" >&2;}
31681 { echo "$as_me:$LINENO: WARNING
: : check
for missing prerequisite headers?
" >&5
31682 echo "$as_me: WARNING
: : check
for missing prerequisite headers?
" >&2;}
31683 { echo "$as_me:$LINENO: WARNING
: : see the Autoconf documentation
" >&5
31684 echo "$as_me: WARNING
: : see the Autoconf documentation
" >&2;}
31685 { echo "$as_me:$LINENO: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&5
31686 echo "$as_me: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&2;}
31687 { echo "$as_me:$LINENO: WARNING
: : proceeding with the preprocessor
's result" >&5
31688 echo "$as_me: WARNING: : proceeding with the preprocessor's result
" >&2;}
31689 { echo "$as_me:$LINENO: WARNING
: : in the future
, the compiler will take precedence
" >&5
31690 echo "$as_me: WARNING
: : in the future
, the compiler will take precedence
" >&2;}
31692 ## ------------------------------- ##
31693 ## Report this to www.asterisk.org ##
31694 ## ------------------------------- ##
31696 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
31699 { echo "$as_me:$LINENO: checking
for " >&5
31700 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
31701 if test "${ac_cv_header_+set}" = set; then
31702 echo $ECHO_N "(cached
) $ECHO_C" >&6
31704 ac_cv_header_=$ac_header_preproc
31706 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
31707 echo "${ECHO_T}$ac_cv_header_" >&6; }
31710 if test $ac_cv_header_ = yes; then
31711 TINFO_HEADER_FOUND=1
31713 TINFO_HEADER_FOUND=0
31719 if test "x
${TINFO_HEADER_FOUND}" = "x0
" ; then
31720 if test -n "${TINFO_MANDATORY}" ;
31722 { echo "$as_me:$LINENO: ***" >&5
31723 echo "$as_me: ***" >&6;}
31724 { echo "$as_me:$LINENO: *** It appears that you
do not have the tinfo development package installed.
" >&5
31725 echo "$as_me: *** It appears that you
do not have the tinfo development package installed.
" >&6;}
31726 { echo "$as_me:$LINENO: *** Please
install it to include
${TINFO_DESCRIP} support
, or re-run configure
" >&5
31727 echo "$as_me: *** Please
install it to include
${TINFO_DESCRIP} support
, or re-run configure
" >&6;}
31728 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TINFO_OPTION}" >&5
31729 echo "$as_me: *** without explicitly specifying
--with-${TINFO_OPTION}" >&6;}
31738 cat >>confdefs.h <<_ACEOF
31739 #define HAVE_TINFO 1
31743 elif test -n "${TINFO_MANDATORY}";
31745 { echo "$as_me:$LINENO: ***" >&5
31746 echo "$as_me: ***" >&6;}
31747 { echo "$as_me:$LINENO: *** The
${TINFO_DESCRIP} installation on this system appears to be broken.
" >&5
31748 echo "$as_me: *** The
${TINFO_DESCRIP} installation on this system appears to be broken.
" >&6;}
31749 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
31750 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
31751 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TINFO_OPTION}" >&5
31752 echo "$as_me: *** without explicitly specifying
--with-${TINFO_OPTION}" >&6;}
31758 if test "${host_os}" != "linux-gnu
" ; then
31759 tonezone_extra="-lm"
31763 if test "${USE_TONEZONE}" != "no
"; then
31765 if test "x
${TONEZONE_DIR}" != "x
"; then
31766 if test -d ${TONEZONE_DIR}/lib; then
31767 pbxlibdir="-L${TONEZONE_DIR}/lib
"
31769 pbxlibdir="-L${TONEZONE_DIR}"
31772 { echo "$as_me:$LINENO: checking
for tone_zone_find
in -ltonezone" >&5
31773 echo $ECHO_N "checking
for tone_zone_find
in -ltonezone...
$ECHO_C" >&6; }
31774 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
31775 echo $ECHO_N "(cached
) $ECHO_C" >&6
31777 ac_check_lib_save_LIBS=$LIBS
31778 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
31779 cat >conftest.$ac_ext <<_ACEOF
31782 cat confdefs.h >>conftest.$ac_ext
31783 cat >>conftest.$ac_ext <<_ACEOF
31784 /* end confdefs.h. */
31786 /* Override any GCC internal prototype to avoid an error.
31787 Use char because int might match the return type of a GCC
31788 builtin and then its argument prototype would still apply. */
31792 char tone_zone_find ();
31796 return tone_zone_find ();
31801 rm -f conftest.$ac_objext conftest$ac_exeext
31802 if { (ac_try="$ac_link"
31803 case "(($ac_try" in
31804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31805 *) ac_try_echo=$ac_try;;
31807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31808 (eval "$ac_link") 2>conftest.er1
31810 grep -v '^ *+' conftest.er1 >conftest.err
31812 cat conftest.err >&5
31813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31814 (exit $ac_status); } && {
31815 test -z "$ac_c_werror_flag" ||
31816 test ! -s conftest.err
31817 } && test -s conftest$ac_exeext &&
31818 $as_test_x conftest$ac_exeext; then
31819 ac_cv_lib_tonezone_tone_zone_find=yes
31821 echo "$as_me: failed program was
:" >&5
31822 sed 's/^/| /' conftest.$ac_ext >&5
31824 ac_cv_lib_tonezone_tone_zone_find=no
31827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31828 conftest$ac_exeext conftest.$ac_ext
31829 LIBS=$ac_check_lib_save_LIBS
31831 { echo "$as_me:$LINENO: result
: $ac_cv_lib_tonezone_tone_zone_find" >&5
31832 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
31833 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
31834 AST_TONEZONE_FOUND=yes
31836 AST_TONEZONE_FOUND=no
31840 if test "${AST_TONEZONE_FOUND}" = "yes"; then
31841 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
31842 TONEZONE_HEADER_FOUND="1"
31843 if test "x
${TONEZONE_DIR}" != "x
"; then
31844 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
31845 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include
"
31846 saved_cppflags="${CPPFLAGS}"
31847 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include
"
31848 if test "xzaptel
/tonezone.h
" != "x
" ; then
31849 as_ac_Header=`echo "ac_cv_header_
${TONEZONE_DIR}/include
/zaptel
/tonezone.h
" | $as_tr_sh`
31850 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31851 { echo "$as_me:$LINENO: checking
for ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
" >&5
31852 echo $ECHO_N "checking
for ${TONEZONE_DIR}/include
/zaptel
/tonezone.h...
$ECHO_C" >&6; }
31853 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31854 echo $ECHO_N "(cached
) $ECHO_C" >&6
31856 ac_res=`eval echo '${'$as_ac_Header'}'`
31857 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31858 echo "${ECHO_T}$ac_res" >&6; }
31860 # Is the header compilable?
31861 { echo "$as_me:$LINENO: checking
${TONEZONE_DIR}/include
/zaptel
/tonezone.h usability
" >&5
31862 echo $ECHO_N "checking
${TONEZONE_DIR}/include
/zaptel
/tonezone.h usability...
$ECHO_C" >&6; }
31863 cat >conftest.$ac_ext <<_ACEOF
31866 cat confdefs.h >>conftest.$ac_ext
31867 cat >>conftest.$ac_ext <<_ACEOF
31868 /* end confdefs.h. */
31869 $ac_includes_default
31870 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
31872 rm -f conftest.$ac_objext
31873 if { (ac_try="$ac_compile"
31874 case "(($ac_try" in
31875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31876 *) ac_try_echo=$ac_try;;
31878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31879 (eval "$ac_compile") 2>conftest.er1
31881 grep -v '^ *+' conftest.er1 >conftest.err
31883 cat conftest.err >&5
31884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31885 (exit $ac_status); } && {
31886 test -z "$ac_c_werror_flag" ||
31887 test ! -s conftest.err
31888 } && test -s conftest.$ac_objext; then
31889 ac_header_compiler=yes
31891 echo "$as_me: failed program was
:" >&5
31892 sed 's/^/| /' conftest.$ac_ext >&5
31894 ac_header_compiler=no
31897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31898 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31899 echo "${ECHO_T}$ac_header_compiler" >&6; }
31901 # Is the header present?
31902 { echo "$as_me:$LINENO: checking
${TONEZONE_DIR}/include
/zaptel
/tonezone.h presence
" >&5
31903 echo $ECHO_N "checking
${TONEZONE_DIR}/include
/zaptel
/tonezone.h presence...
$ECHO_C" >&6; }
31904 cat >conftest.$ac_ext <<_ACEOF
31907 cat confdefs.h >>conftest.$ac_ext
31908 cat >>conftest.$ac_ext <<_ACEOF
31909 /* end confdefs.h. */
31910 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
31912 if { (ac_try="$ac_cpp conftest.
$ac_ext"
31913 case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
31920 grep -v '^ *+' conftest.er1 >conftest.err
31922 cat conftest.err >&5
31923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31924 (exit $ac_status); } >/dev/null && {
31925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31926 test ! -s conftest.err
31928 ac_header_preproc=yes
31930 echo "$as_me: failed program was
:" >&5
31931 sed 's/^/| /' conftest.$ac_ext >&5
31933 ac_header_preproc=no
31936 rm -f conftest.err conftest.$ac_ext
31937 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31938 echo "${ECHO_T}$ac_header_preproc" >&6; }
31940 # So? What about this header?
31941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31943 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
31944 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31945 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: proceeding with the compiler
's result" >&5
31946 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result
" >&2;}
31947 ac_header_preproc=yes
31950 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: present but cannot be compiled
" >&5
31951 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: present but cannot be compiled
" >&2;}
31952 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: check
for missing prerequisite headers?
" >&5
31953 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: check
for missing prerequisite headers?
" >&2;}
31954 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: see the Autoconf documentation
" >&5
31955 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: see the Autoconf documentation
" >&2;}
31956 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: section
\"Present But Cannot Be Compiled
\"" >&5
31957 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
31958 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: proceeding with the preprocessor
's result" >&5
31959 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result
" >&2;}
31960 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: in the future
, the compiler will take precedence
" >&5
31961 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: in the future
, the compiler will take precedence
" >&2;}
31963 ## ------------------------------- ##
31964 ## Report this to www.asterisk.org ##
31965 ## ------------------------------- ##
31967 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
31970 { echo "$as_me:$LINENO: checking
for ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
" >&5
31971 echo $ECHO_N "checking
for ${TONEZONE_DIR}/include
/zaptel
/tonezone.h...
$ECHO_C" >&6; }
31972 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31973 echo $ECHO_N "(cached
) $ECHO_C" >&6
31975 eval "$as_ac_Header=\
$ac_header_preproc"
31977 ac_res=`eval echo '${'$as_ac_Header'}'`
31978 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31979 echo "${ECHO_T}$ac_res" >&6; }
31982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31983 TONEZONE_HEADER_FOUND=1
31985 TONEZONE_HEADER_FOUND=0
31990 CPPFLAGS="${saved_cppflags}"
31992 if test "xzaptel
/tonezone.h
" != "x
" ; then
31993 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
31994 { echo "$as_me:$LINENO: checking
for zaptel
/tonezone.h
" >&5
31995 echo $ECHO_N "checking
for zaptel
/tonezone.h...
$ECHO_C" >&6; }
31996 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
31997 echo $ECHO_N "(cached
) $ECHO_C" >&6
31999 { echo "$as_me:$LINENO: result
: $ac_cv_header_zaptel_tonezone_h" >&5
32000 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32002 # Is the header compilable?
32003 { echo "$as_me:$LINENO: checking zaptel
/tonezone.h usability
" >&5
32004 echo $ECHO_N "checking zaptel
/tonezone.h usability...
$ECHO_C" >&6; }
32005 cat >conftest.$ac_ext <<_ACEOF
32008 cat confdefs.h >>conftest.$ac_ext
32009 cat >>conftest.$ac_ext <<_ACEOF
32010 /* end confdefs.h. */
32011 $ac_includes_default
32012 #include <zaptel/tonezone.h>
32014 rm -f conftest.$ac_objext
32015 if { (ac_try="$ac_compile"
32016 case "(($ac_try" in
32017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32018 *) ac_try_echo=$ac_try;;
32020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32021 (eval "$ac_compile") 2>conftest.er1
32023 grep -v '^ *+' conftest.er1 >conftest.err
32025 cat conftest.err >&5
32026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32027 (exit $ac_status); } && {
32028 test -z "$ac_c_werror_flag" ||
32029 test ! -s conftest.err
32030 } && test -s conftest.$ac_objext; then
32031 ac_header_compiler=yes
32033 echo "$as_me: failed program was
:" >&5
32034 sed 's/^/| /' conftest.$ac_ext >&5
32036 ac_header_compiler=no
32039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32040 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32041 echo "${ECHO_T}$ac_header_compiler" >&6; }
32043 # Is the header present?
32044 { echo "$as_me:$LINENO: checking zaptel
/tonezone.h presence
" >&5
32045 echo $ECHO_N "checking zaptel
/tonezone.h presence...
$ECHO_C" >&6; }
32046 cat >conftest.$ac_ext <<_ACEOF
32049 cat confdefs.h >>conftest.$ac_ext
32050 cat >>conftest.$ac_ext <<_ACEOF
32051 /* end confdefs.h. */
32052 #include <zaptel/tonezone.h>
32054 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32055 case "(($ac_try" in
32056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32057 *) ac_try_echo=$ac_try;;
32059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32060 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32062 grep -v '^ *+' conftest.er1 >conftest.err
32064 cat conftest.err >&5
32065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32066 (exit $ac_status); } >/dev/null && {
32067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32068 test ! -s conftest.err
32070 ac_header_preproc=yes
32072 echo "$as_me: failed program was
:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32075 ac_header_preproc=no
32078 rm -f conftest.err conftest.$ac_ext
32079 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32080 echo "${ECHO_T}$ac_header_preproc" >&6; }
32082 # So? What about this header?
32083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32085 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32086 echo "$as_me: WARNING
: zaptel
/tonezone.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32087 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: proceeding with the compiler
's result" >&5
32088 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result
" >&2;}
32089 ac_header_preproc=yes
32092 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: present but cannot be compiled
" >&5
32093 echo "$as_me: WARNING
: zaptel
/tonezone.h
: present but cannot be compiled
" >&2;}
32094 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: check
for missing prerequisite headers?
" >&5
32095 echo "$as_me: WARNING
: zaptel
/tonezone.h
: check
for missing prerequisite headers?
" >&2;}
32096 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: see the Autoconf documentation
" >&5
32097 echo "$as_me: WARNING
: zaptel
/tonezone.h
: see the Autoconf documentation
" >&2;}
32098 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32099 echo "$as_me: WARNING
: zaptel
/tonezone.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32100 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: proceeding with the preprocessor
's result" >&5
32101 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result
" >&2;}
32102 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: in the future
, the compiler will take precedence
" >&5
32103 echo "$as_me: WARNING
: zaptel
/tonezone.h
: in the future
, the compiler will take precedence
" >&2;}
32105 ## ------------------------------- ##
32106 ## Report this to www.asterisk.org ##
32107 ## ------------------------------- ##
32109 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
32112 { echo "$as_me:$LINENO: checking
for zaptel
/tonezone.h
" >&5
32113 echo $ECHO_N "checking
for zaptel
/tonezone.h...
$ECHO_C" >&6; }
32114 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32115 echo $ECHO_N "(cached
) $ECHO_C" >&6
32117 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
32119 { echo "$as_me:$LINENO: result
: $ac_cv_header_zaptel_tonezone_h" >&5
32120 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32123 if test $ac_cv_header_zaptel_tonezone_h = yes; then
32124 TONEZONE_HEADER_FOUND=1
32126 TONEZONE_HEADER_FOUND=0
32132 if test "x
${TONEZONE_HEADER_FOUND}" = "x0
" ; then
32133 if test -n "${TONEZONE_MANDATORY}" ;
32135 { echo "$as_me:$LINENO: ***" >&5
32136 echo "$as_me: ***" >&6;}
32137 { echo "$as_me:$LINENO: *** It appears that you
do not have the tonezone development package installed.
" >&5
32138 echo "$as_me: *** It appears that you
do not have the tonezone development package installed.
" >&6;}
32139 { echo "$as_me:$LINENO: *** Please
install it to include
${TONEZONE_DESCRIP} support
, or re-run configure
" >&5
32140 echo "$as_me: *** Please
install it to include
${TONEZONE_DESCRIP} support
, or re-run configure
" >&6;}
32141 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TONEZONE_OPTION}" >&5
32142 echo "$as_me: *** without explicitly specifying
--with-${TONEZONE_OPTION}" >&6;}
32146 TONEZONE_INCLUDE=""
32151 cat >>confdefs.h <<_ACEOF
32152 #define HAVE_TONEZONE 1
32156 elif test -n "${TONEZONE_MANDATORY}";
32158 { echo "$as_me:$LINENO: ***" >&5
32159 echo "$as_me: ***" >&6;}
32160 { echo "$as_me:$LINENO: *** The
${TONEZONE_DESCRIP} installation on this system appears to be broken.
" >&5
32161 echo "$as_me: *** The
${TONEZONE_DESCRIP} installation on this system appears to be broken.
" >&6;}
32162 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
32163 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
32164 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TONEZONE_OPTION}" >&5
32165 echo "$as_me: *** without explicitly specifying
--with-${TONEZONE_OPTION}" >&6;}
32172 if test "${USE_USB}" != "no
"; then
32174 if test "x
${USB_DIR}" != "x
"; then
32175 if test -d ${USB_DIR}/lib; then
32176 pbxlibdir="-L${USB_DIR}/lib
"
32178 pbxlibdir="-L${USB_DIR}"
32181 { echo "$as_me:$LINENO: checking
for usb_init
in -lusb" >&5
32182 echo $ECHO_N "checking
for usb_init
in -lusb...
$ECHO_C" >&6; }
32183 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
32184 echo $ECHO_N "(cached
) $ECHO_C" >&6
32186 ac_check_lib_save_LIBS=$LIBS
32187 LIBS="-lusb ${pbxlibdir} $LIBS"
32188 cat >conftest.$ac_ext <<_ACEOF
32191 cat confdefs.h >>conftest.$ac_ext
32192 cat >>conftest.$ac_ext <<_ACEOF
32193 /* end confdefs.h. */
32195 /* Override any GCC internal prototype to avoid an error.
32196 Use char because int might match the return type of a GCC
32197 builtin and then its argument prototype would still apply. */
32205 return usb_init ();
32210 rm -f conftest.$ac_objext conftest$ac_exeext
32211 if { (ac_try="$ac_link"
32212 case "(($ac_try" in
32213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32214 *) ac_try_echo=$ac_try;;
32216 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32217 (eval "$ac_link") 2>conftest.er1
32219 grep -v '^ *+' conftest.er1 >conftest.err
32221 cat conftest.err >&5
32222 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32223 (exit $ac_status); } && {
32224 test -z "$ac_c_werror_flag" ||
32225 test ! -s conftest.err
32226 } && test -s conftest$ac_exeext &&
32227 $as_test_x conftest$ac_exeext; then
32228 ac_cv_lib_usb_usb_init=yes
32230 echo "$as_me: failed program was
:" >&5
32231 sed 's/^/| /' conftest.$ac_ext >&5
32233 ac_cv_lib_usb_usb_init=no
32236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32237 conftest$ac_exeext conftest.$ac_ext
32238 LIBS=$ac_check_lib_save_LIBS
32240 { echo "$as_me:$LINENO: result
: $ac_cv_lib_usb_usb_init" >&5
32241 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
32242 if test $ac_cv_lib_usb_usb_init = yes; then
32249 if test "${AST_USB_FOUND}" = "yes"; then
32251 USB_HEADER_FOUND="1"
32252 if test "x
${USB_DIR}" != "x
"; then
32253 USB_LIB="${pbxlibdir} ${USB_LIB}"
32254 USB_INCLUDE="-I${USB_DIR}/include
"
32255 saved_cppflags="${CPPFLAGS}"
32256 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include
"
32257 if test "xusb.h
" != "x
" ; then
32258 as_ac_Header=`echo "ac_cv_header_
${USB_DIR}/include
/usb.h
" | $as_tr_sh`
32259 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32260 { echo "$as_me:$LINENO: checking
for ${USB_DIR}/include
/usb.h
" >&5
32261 echo $ECHO_N "checking
for ${USB_DIR}/include
/usb.h...
$ECHO_C" >&6; }
32262 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32263 echo $ECHO_N "(cached
) $ECHO_C" >&6
32265 ac_res=`eval echo '${'$as_ac_Header'}'`
32266 { echo "$as_me:$LINENO: result
: $ac_res" >&5
32267 echo "${ECHO_T}$ac_res" >&6; }
32269 # Is the header compilable?
32270 { echo "$as_me:$LINENO: checking
${USB_DIR}/include
/usb.h usability
" >&5
32271 echo $ECHO_N "checking
${USB_DIR}/include
/usb.h usability...
$ECHO_C" >&6; }
32272 cat >conftest.$ac_ext <<_ACEOF
32275 cat confdefs.h >>conftest.$ac_ext
32276 cat >>conftest.$ac_ext <<_ACEOF
32277 /* end confdefs.h. */
32278 $ac_includes_default
32279 #include <${USB_DIR}/include/usb.h>
32281 rm -f conftest.$ac_objext
32282 if { (ac_try="$ac_compile"
32283 case "(($ac_try" in
32284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285 *) ac_try_echo=$ac_try;;
32287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32288 (eval "$ac_compile") 2>conftest.er1
32290 grep -v '^ *+' conftest.er1 >conftest.err
32292 cat conftest.err >&5
32293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32294 (exit $ac_status); } && {
32295 test -z "$ac_c_werror_flag" ||
32296 test ! -s conftest.err
32297 } && test -s conftest.$ac_objext; then
32298 ac_header_compiler=yes
32300 echo "$as_me: failed program was
:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32303 ac_header_compiler=no
32306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32307 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32308 echo "${ECHO_T}$ac_header_compiler" >&6; }
32310 # Is the header present?
32311 { echo "$as_me:$LINENO: checking
${USB_DIR}/include
/usb.h presence
" >&5
32312 echo $ECHO_N "checking
${USB_DIR}/include
/usb.h presence...
$ECHO_C" >&6; }
32313 cat >conftest.$ac_ext <<_ACEOF
32316 cat confdefs.h >>conftest.$ac_ext
32317 cat >>conftest.$ac_ext <<_ACEOF
32318 /* end confdefs.h. */
32319 #include <${USB_DIR}/include/usb.h>
32321 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32322 case "(($ac_try" in
32323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32324 *) ac_try_echo=$ac_try;;
32326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32327 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32329 grep -v '^ *+' conftest.er1 >conftest.err
32331 cat conftest.err >&5
32332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32333 (exit $ac_status); } >/dev/null && {
32334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32335 test ! -s conftest.err
32337 ac_header_preproc=yes
32339 echo "$as_me: failed program was
:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32342 ac_header_preproc=no
32345 rm -f conftest.err conftest.$ac_ext
32346 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32347 echo "${ECHO_T}$ac_header_preproc" >&6; }
32349 # So? What about this header?
32350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32352 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32353 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32354 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: proceeding with the compiler
's result" >&5
32355 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result
" >&2;}
32356 ac_header_preproc=yes
32359 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: present but cannot be compiled
" >&5
32360 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: present but cannot be compiled
" >&2;}
32361 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: check
for missing prerequisite headers?
" >&5
32362 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: check
for missing prerequisite headers?
" >&2;}
32363 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: see the Autoconf documentation
" >&5
32364 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: see the Autoconf documentation
" >&2;}
32365 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32366 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32367 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: proceeding with the preprocessor
's result" >&5
32368 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result
" >&2;}
32369 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: in the future
, the compiler will take precedence
" >&5
32370 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: in the future
, the compiler will take precedence
" >&2;}
32372 ## ------------------------------- ##
32373 ## Report this to www.asterisk.org ##
32374 ## ------------------------------- ##
32376 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
32379 { echo "$as_me:$LINENO: checking
for ${USB_DIR}/include
/usb.h
" >&5
32380 echo $ECHO_N "checking
for ${USB_DIR}/include
/usb.h...
$ECHO_C" >&6; }
32381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32382 echo $ECHO_N "(cached
) $ECHO_C" >&6
32384 eval "$as_ac_Header=\
$ac_header_preproc"
32386 ac_res=`eval echo '${'$as_ac_Header'}'`
32387 { echo "$as_me:$LINENO: result
: $ac_res" >&5
32388 echo "${ECHO_T}$ac_res" >&6; }
32391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32399 CPPFLAGS="${saved_cppflags}"
32401 if test "xusb.h
" != "x
" ; then
32402 if test "${ac_cv_header_usb_h+set}" = set; then
32403 { echo "$as_me:$LINENO: checking
for usb.h
" >&5
32404 echo $ECHO_N "checking
for usb.h...
$ECHO_C" >&6; }
32405 if test "${ac_cv_header_usb_h+set}" = set; then
32406 echo $ECHO_N "(cached
) $ECHO_C" >&6
32408 { echo "$as_me:$LINENO: result
: $ac_cv_header_usb_h" >&5
32409 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32411 # Is the header compilable?
32412 { echo "$as_me:$LINENO: checking usb.h usability
" >&5
32413 echo $ECHO_N "checking usb.h usability...
$ECHO_C" >&6; }
32414 cat >conftest.$ac_ext <<_ACEOF
32417 cat confdefs.h >>conftest.$ac_ext
32418 cat >>conftest.$ac_ext <<_ACEOF
32419 /* end confdefs.h. */
32420 $ac_includes_default
32423 rm -f conftest.$ac_objext
32424 if { (ac_try="$ac_compile"
32425 case "(($ac_try" in
32426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32427 *) ac_try_echo=$ac_try;;
32429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32430 (eval "$ac_compile") 2>conftest.er1
32432 grep -v '^ *+' conftest.er1 >conftest.err
32434 cat conftest.err >&5
32435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32436 (exit $ac_status); } && {
32437 test -z "$ac_c_werror_flag" ||
32438 test ! -s conftest.err
32439 } && test -s conftest.$ac_objext; then
32440 ac_header_compiler=yes
32442 echo "$as_me: failed program was
:" >&5
32443 sed 's/^/| /' conftest.$ac_ext >&5
32445 ac_header_compiler=no
32448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32449 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32450 echo "${ECHO_T}$ac_header_compiler" >&6; }
32452 # Is the header present?
32453 { echo "$as_me:$LINENO: checking usb.h presence
" >&5
32454 echo $ECHO_N "checking usb.h presence...
$ECHO_C" >&6; }
32455 cat >conftest.$ac_ext <<_ACEOF
32458 cat confdefs.h >>conftest.$ac_ext
32459 cat >>conftest.$ac_ext <<_ACEOF
32460 /* end confdefs.h. */
32463 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32464 case "(($ac_try" in
32465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32466 *) ac_try_echo=$ac_try;;
32468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32469 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32471 grep -v '^ *+' conftest.er1 >conftest.err
32473 cat conftest.err >&5
32474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32475 (exit $ac_status); } >/dev/null && {
32476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32477 test ! -s conftest.err
32479 ac_header_preproc=yes
32481 echo "$as_me: failed program was
:" >&5
32482 sed 's/^/| /' conftest.$ac_ext >&5
32484 ac_header_preproc=no
32487 rm -f conftest.err conftest.$ac_ext
32488 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32489 echo "${ECHO_T}$ac_header_preproc" >&6; }
32491 # So? What about this header?
32492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32494 { echo "$as_me:$LINENO: WARNING
: usb.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32495 echo "$as_me: WARNING
: usb.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32496 { echo "$as_me:$LINENO: WARNING
: usb.h
: proceeding with the compiler
's result" >&5
32497 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result
" >&2;}
32498 ac_header_preproc=yes
32501 { echo "$as_me:$LINENO: WARNING
: usb.h
: present but cannot be compiled
" >&5
32502 echo "$as_me: WARNING
: usb.h
: present but cannot be compiled
" >&2;}
32503 { echo "$as_me:$LINENO: WARNING
: usb.h
: check
for missing prerequisite headers?
" >&5
32504 echo "$as_me: WARNING
: usb.h
: check
for missing prerequisite headers?
" >&2;}
32505 { echo "$as_me:$LINENO: WARNING
: usb.h
: see the Autoconf documentation
" >&5
32506 echo "$as_me: WARNING
: usb.h
: see the Autoconf documentation
" >&2;}
32507 { echo "$as_me:$LINENO: WARNING
: usb.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32508 echo "$as_me: WARNING
: usb.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32509 { echo "$as_me:$LINENO: WARNING
: usb.h
: proceeding with the preprocessor
's result" >&5
32510 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result
" >&2;}
32511 { echo "$as_me:$LINENO: WARNING
: usb.h
: in the future
, the compiler will take precedence
" >&5
32512 echo "$as_me: WARNING
: usb.h
: in the future
, the compiler will take precedence
" >&2;}
32514 ## ------------------------------- ##
32515 ## Report this to www.asterisk.org ##
32516 ## ------------------------------- ##
32518 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
32521 { echo "$as_me:$LINENO: checking
for usb.h
" >&5
32522 echo $ECHO_N "checking
for usb.h...
$ECHO_C" >&6; }
32523 if test "${ac_cv_header_usb_h+set}" = set; then
32524 echo $ECHO_N "(cached
) $ECHO_C" >&6
32526 ac_cv_header_usb_h=$ac_header_preproc
32528 { echo "$as_me:$LINENO: result
: $ac_cv_header_usb_h" >&5
32529 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32532 if test $ac_cv_header_usb_h = yes; then
32541 if test "x
${USB_HEADER_FOUND}" = "x0
" ; then
32542 if test -n "${USB_MANDATORY}" ;
32544 { echo "$as_me:$LINENO: ***" >&5
32545 echo "$as_me: ***" >&6;}
32546 { echo "$as_me:$LINENO: *** It appears that you
do not have the usb development package installed.
" >&5
32547 echo "$as_me: *** It appears that you
do not have the usb development package installed.
" >&6;}
32548 { echo "$as_me:$LINENO: *** Please
install it to include
${USB_DESCRIP} support
, or re-run configure
" >&5
32549 echo "$as_me: *** Please
install it to include
${USB_DESCRIP} support
, or re-run configure
" >&6;}
32550 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${USB_OPTION}" >&5
32551 echo "$as_me: *** without explicitly specifying
--with-${USB_OPTION}" >&6;}
32560 cat >>confdefs.h <<_ACEOF
32565 elif test -n "${USB_MANDATORY}";
32567 { echo "$as_me:$LINENO: ***" >&5
32568 echo "$as_me: ***" >&6;}
32569 { echo "$as_me:$LINENO: *** The
${USB_DESCRIP} installation on this system appears to be broken.
" >&5
32570 echo "$as_me: *** The
${USB_DESCRIP} installation on this system appears to be broken.
" >&6;}
32571 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
32572 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
32573 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${USB_OPTION}" >&5
32574 echo "$as_me: *** without explicitly specifying
--with-${USB_OPTION}" >&6;}
32581 if test "${USE_VORBIS}" != "no
"; then
32583 if test "x
${VORBIS_DIR}" != "x
"; then
32584 if test -d ${VORBIS_DIR}/lib; then
32585 pbxlibdir="-L${VORBIS_DIR}/lib
"
32587 pbxlibdir="-L${VORBIS_DIR}"
32590 { echo "$as_me:$LINENO: checking
for vorbis_info_init
in -lvorbis" >&5
32591 echo $ECHO_N "checking
for vorbis_info_init
in -lvorbis...
$ECHO_C" >&6; }
32592 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
32593 echo $ECHO_N "(cached
) $ECHO_C" >&6
32595 ac_check_lib_save_LIBS=$LIBS
32596 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
32597 cat >conftest.$ac_ext <<_ACEOF
32600 cat confdefs.h >>conftest.$ac_ext
32601 cat >>conftest.$ac_ext <<_ACEOF
32602 /* end confdefs.h. */
32604 /* Override any GCC internal prototype to avoid an error.
32605 Use char because int might match the return type of a GCC
32606 builtin and then its argument prototype would still apply. */
32610 char vorbis_info_init ();
32614 return vorbis_info_init ();
32619 rm -f conftest.$ac_objext conftest$ac_exeext
32620 if { (ac_try="$ac_link"
32621 case "(($ac_try" in
32622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32623 *) ac_try_echo=$ac_try;;
32625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32626 (eval "$ac_link") 2>conftest.er1
32628 grep -v '^ *+' conftest.er1 >conftest.err
32630 cat conftest.err >&5
32631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32632 (exit $ac_status); } && {
32633 test -z "$ac_c_werror_flag" ||
32634 test ! -s conftest.err
32635 } && test -s conftest$ac_exeext &&
32636 $as_test_x conftest$ac_exeext; then
32637 ac_cv_lib_vorbis_vorbis_info_init=yes
32639 echo "$as_me: failed program was
:" >&5
32640 sed 's/^/| /' conftest.$ac_ext >&5
32642 ac_cv_lib_vorbis_vorbis_info_init=no
32645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32646 conftest$ac_exeext conftest.$ac_ext
32647 LIBS=$ac_check_lib_save_LIBS
32649 { echo "$as_me:$LINENO: result
: $ac_cv_lib_vorbis_vorbis_info_init" >&5
32650 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
32651 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
32652 AST_VORBIS_FOUND=yes
32654 AST_VORBIS_FOUND=no
32658 if test "${AST_VORBIS_FOUND}" = "yes"; then
32659 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
32660 VORBIS_HEADER_FOUND="1"
32661 if test "x
${VORBIS_DIR}" != "x
"; then
32662 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
32663 VORBIS_INCLUDE="-I${VORBIS_DIR}/include
"
32664 saved_cppflags="${CPPFLAGS}"
32665 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include
"
32666 if test "xvorbis
/codec.h
" != "x
" ; then
32667 as_ac_Header=`echo "ac_cv_header_
${VORBIS_DIR}/include
/vorbis
/codec.h
" | $as_tr_sh`
32668 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32669 { echo "$as_me:$LINENO: checking
for ${VORBIS_DIR}/include
/vorbis
/codec.h
" >&5
32670 echo $ECHO_N "checking
for ${VORBIS_DIR}/include
/vorbis
/codec.h...
$ECHO_C" >&6; }
32671 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32672 echo $ECHO_N "(cached
) $ECHO_C" >&6
32674 ac_res=`eval echo '${'$as_ac_Header'}'`
32675 { echo "$as_me:$LINENO: result
: $ac_res" >&5
32676 echo "${ECHO_T}$ac_res" >&6; }
32678 # Is the header compilable?
32679 { echo "$as_me:$LINENO: checking
${VORBIS_DIR}/include
/vorbis
/codec.h usability
" >&5
32680 echo $ECHO_N "checking
${VORBIS_DIR}/include
/vorbis
/codec.h usability...
$ECHO_C" >&6; }
32681 cat >conftest.$ac_ext <<_ACEOF
32684 cat confdefs.h >>conftest.$ac_ext
32685 cat >>conftest.$ac_ext <<_ACEOF
32686 /* end confdefs.h. */
32687 $ac_includes_default
32688 #include <${VORBIS_DIR}/include/vorbis/codec.h>
32690 rm -f conftest.$ac_objext
32691 if { (ac_try="$ac_compile"
32692 case "(($ac_try" in
32693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694 *) ac_try_echo=$ac_try;;
32696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32697 (eval "$ac_compile") 2>conftest.er1
32699 grep -v '^ *+' conftest.er1 >conftest.err
32701 cat conftest.err >&5
32702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32703 (exit $ac_status); } && {
32704 test -z "$ac_c_werror_flag" ||
32705 test ! -s conftest.err
32706 } && test -s conftest.$ac_objext; then
32707 ac_header_compiler=yes
32709 echo "$as_me: failed program was
:" >&5
32710 sed 's/^/| /' conftest.$ac_ext >&5
32712 ac_header_compiler=no
32715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32716 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32717 echo "${ECHO_T}$ac_header_compiler" >&6; }
32719 # Is the header present?
32720 { echo "$as_me:$LINENO: checking
${VORBIS_DIR}/include
/vorbis
/codec.h presence
" >&5
32721 echo $ECHO_N "checking
${VORBIS_DIR}/include
/vorbis
/codec.h presence...
$ECHO_C" >&6; }
32722 cat >conftest.$ac_ext <<_ACEOF
32725 cat confdefs.h >>conftest.$ac_ext
32726 cat >>conftest.$ac_ext <<_ACEOF
32727 /* end confdefs.h. */
32728 #include <${VORBIS_DIR}/include/vorbis/codec.h>
32730 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32731 case "(($ac_try" in
32732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733 *) ac_try_echo=$ac_try;;
32735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32736 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32738 grep -v '^ *+' conftest.er1 >conftest.err
32740 cat conftest.err >&5
32741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32742 (exit $ac_status); } >/dev/null && {
32743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32744 test ! -s conftest.err
32746 ac_header_preproc=yes
32748 echo "$as_me: failed program was
:" >&5
32749 sed 's/^/| /' conftest.$ac_ext >&5
32751 ac_header_preproc=no
32754 rm -f conftest.err conftest.$ac_ext
32755 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32756 echo "${ECHO_T}$ac_header_preproc" >&6; }
32758 # So? What about this header?
32759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32761 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32762 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32763 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: proceeding with the compiler
's result" >&5
32764 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result
" >&2;}
32765 ac_header_preproc=yes
32768 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: present but cannot be compiled
" >&5
32769 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: present but cannot be compiled
" >&2;}
32770 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: check
for missing prerequisite headers?
" >&5
32771 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: check
for missing prerequisite headers?
" >&2;}
32772 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: see the Autoconf documentation
" >&5
32773 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: see the Autoconf documentation
" >&2;}
32774 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32775 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32776 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: proceeding with the preprocessor
's result" >&5
32777 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result
" >&2;}
32778 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: in the future
, the compiler will take precedence
" >&5
32779 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: in the future
, the compiler will take precedence
" >&2;}
32781 ## ------------------------------- ##
32782 ## Report this to www.asterisk.org ##
32783 ## ------------------------------- ##
32785 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
32788 { echo "$as_me:$LINENO: checking
for ${VORBIS_DIR}/include
/vorbis
/codec.h
" >&5
32789 echo $ECHO_N "checking
for ${VORBIS_DIR}/include
/vorbis
/codec.h...
$ECHO_C" >&6; }
32790 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32791 echo $ECHO_N "(cached
) $ECHO_C" >&6
32793 eval "$as_ac_Header=\
$ac_header_preproc"
32795 ac_res=`eval echo '${'$as_ac_Header'}'`
32796 { echo "$as_me:$LINENO: result
: $ac_res" >&5
32797 echo "${ECHO_T}$ac_res" >&6; }
32800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32801 VORBIS_HEADER_FOUND=1
32803 VORBIS_HEADER_FOUND=0
32808 CPPFLAGS="${saved_cppflags}"
32810 if test "xvorbis
/codec.h
" != "x
" ; then
32811 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32812 { echo "$as_me:$LINENO: checking
for vorbis
/codec.h
" >&5
32813 echo $ECHO_N "checking
for vorbis
/codec.h...
$ECHO_C" >&6; }
32814 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32815 echo $ECHO_N "(cached
) $ECHO_C" >&6
32817 { echo "$as_me:$LINENO: result
: $ac_cv_header_vorbis_codec_h" >&5
32818 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
32820 # Is the header compilable?
32821 { echo "$as_me:$LINENO: checking vorbis
/codec.h usability
" >&5
32822 echo $ECHO_N "checking vorbis
/codec.h usability...
$ECHO_C" >&6; }
32823 cat >conftest.$ac_ext <<_ACEOF
32826 cat confdefs.h >>conftest.$ac_ext
32827 cat >>conftest.$ac_ext <<_ACEOF
32828 /* end confdefs.h. */
32829 $ac_includes_default
32830 #include <vorbis/codec.h>
32832 rm -f conftest.$ac_objext
32833 if { (ac_try="$ac_compile"
32834 case "(($ac_try" in
32835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32836 *) ac_try_echo=$ac_try;;
32838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32839 (eval "$ac_compile") 2>conftest.er1
32841 grep -v '^ *+' conftest.er1 >conftest.err
32843 cat conftest.err >&5
32844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32845 (exit $ac_status); } && {
32846 test -z "$ac_c_werror_flag" ||
32847 test ! -s conftest.err
32848 } && test -s conftest.$ac_objext; then
32849 ac_header_compiler=yes
32851 echo "$as_me: failed program was
:" >&5
32852 sed 's/^/| /' conftest.$ac_ext >&5
32854 ac_header_compiler=no
32857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32858 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32859 echo "${ECHO_T}$ac_header_compiler" >&6; }
32861 # Is the header present?
32862 { echo "$as_me:$LINENO: checking vorbis
/codec.h presence
" >&5
32863 echo $ECHO_N "checking vorbis
/codec.h presence...
$ECHO_C" >&6; }
32864 cat >conftest.$ac_ext <<_ACEOF
32867 cat confdefs.h >>conftest.$ac_ext
32868 cat >>conftest.$ac_ext <<_ACEOF
32869 /* end confdefs.h. */
32870 #include <vorbis/codec.h>
32872 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32873 case "(($ac_try" in
32874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32875 *) ac_try_echo=$ac_try;;
32877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32878 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32880 grep -v '^ *+' conftest.er1 >conftest.err
32882 cat conftest.err >&5
32883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32884 (exit $ac_status); } >/dev/null && {
32885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32886 test ! -s conftest.err
32888 ac_header_preproc=yes
32890 echo "$as_me: failed program was
:" >&5
32891 sed 's/^/| /' conftest.$ac_ext >&5
32893 ac_header_preproc=no
32896 rm -f conftest.err conftest.$ac_ext
32897 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32898 echo "${ECHO_T}$ac_header_preproc" >&6; }
32900 # So? What about this header?
32901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32903 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32904 echo "$as_me: WARNING
: vorbis
/codec.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32905 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: proceeding with the compiler
's result" >&5
32906 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result
" >&2;}
32907 ac_header_preproc=yes
32910 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: present but cannot be compiled
" >&5
32911 echo "$as_me: WARNING
: vorbis
/codec.h
: present but cannot be compiled
" >&2;}
32912 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: check
for missing prerequisite headers?
" >&5
32913 echo "$as_me: WARNING
: vorbis
/codec.h
: check
for missing prerequisite headers?
" >&2;}
32914 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: see the Autoconf documentation
" >&5
32915 echo "$as_me: WARNING
: vorbis
/codec.h
: see the Autoconf documentation
" >&2;}
32916 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32917 echo "$as_me: WARNING
: vorbis
/codec.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32918 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: proceeding with the preprocessor
's result" >&5
32919 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result
" >&2;}
32920 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: in the future
, the compiler will take precedence
" >&5
32921 echo "$as_me: WARNING
: vorbis
/codec.h
: in the future
, the compiler will take precedence
" >&2;}
32923 ## ------------------------------- ##
32924 ## Report this to www.asterisk.org ##
32925 ## ------------------------------- ##
32927 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
32930 { echo "$as_me:$LINENO: checking
for vorbis
/codec.h
" >&5
32931 echo $ECHO_N "checking
for vorbis
/codec.h...
$ECHO_C" >&6; }
32932 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32933 echo $ECHO_N "(cached
) $ECHO_C" >&6
32935 ac_cv_header_vorbis_codec_h=$ac_header_preproc
32937 { echo "$as_me:$LINENO: result
: $ac_cv_header_vorbis_codec_h" >&5
32938 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
32941 if test $ac_cv_header_vorbis_codec_h = yes; then
32942 VORBIS_HEADER_FOUND=1
32944 VORBIS_HEADER_FOUND=0
32950 if test "x
${VORBIS_HEADER_FOUND}" = "x0
" ; then
32951 if test -n "${VORBIS_MANDATORY}" ;
32953 { echo "$as_me:$LINENO: ***" >&5
32954 echo "$as_me: ***" >&6;}
32955 { echo "$as_me:$LINENO: *** It appears that you
do not have the vorbis development package installed.
" >&5
32956 echo "$as_me: *** It appears that you
do not have the vorbis development package installed.
" >&6;}
32957 { echo "$as_me:$LINENO: *** Please
install it to include
${VORBIS_DESCRIP} support
, or re-run configure
" >&5
32958 echo "$as_me: *** Please
install it to include
${VORBIS_DESCRIP} support
, or re-run configure
" >&6;}
32959 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${VORBIS_OPTION}" >&5
32960 echo "$as_me: *** without explicitly specifying
--with-${VORBIS_OPTION}" >&6;}
32969 cat >>confdefs.h <<_ACEOF
32970 #define HAVE_VORBIS 1
32974 elif test -n "${VORBIS_MANDATORY}";
32976 { echo "$as_me:$LINENO: ***" >&5
32977 echo "$as_me: ***" >&6;}
32978 { echo "$as_me:$LINENO: *** The
${VORBIS_DESCRIP} installation on this system appears to be broken.
" >&5
32979 echo "$as_me: *** The
${VORBIS_DESCRIP} installation on this system appears to be broken.
" >&6;}
32980 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
32981 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
32982 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${VORBIS_OPTION}" >&5
32983 echo "$as_me: *** without explicitly specifying
--with-${VORBIS_OPTION}" >&6;}
32990 ac_cpp='$CXXCPP $CPPFLAGS'
32991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32996 if test "${USE_VPB}" != "no
"; then
32997 { echo "$as_me:$LINENO: checking
for vpb_open
in -lvpb" >&5
32998 echo $ECHO_N "checking
for vpb_open
in -lvpb...
$ECHO_C" >&6; }
32999 saved_libs="${LIBS}"
33000 saved_cppflags="${CPPFLAGS}"
33001 if test "x
${VPB_DIR}" != "x
"; then
33002 if test -d ${VPB_DIR}/lib; then
33003 vpblibdir=${VPB_DIR}/lib
33005 vpblibdir=${VPB_DIR}
33007 LIBS="${LIBS} -L${vpblibdir}"
33008 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include
"
33010 LIBS="${LIBS} -lvpb -lpthread"
33011 cat >conftest.$ac_ext <<_ACEOF
33015 cat confdefs.h >>conftest.$ac_ext
33016 cat >>conftest.$ac_ext <<_ACEOF
33017 /* end confdefs.h. */
33018 #include <vpbapi.h>
33022 int q = vpb_open(0,0);
33028 rm -f conftest.$ac_objext conftest$ac_exeext
33029 if { (ac_try="$ac_link"
33030 case "(($ac_try" in
33031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33032 *) ac_try_echo=$ac_try;;
33034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33035 (eval "$ac_link") 2>conftest.er1
33037 grep -v '^ *+' conftest.er1 >conftest.err
33039 cat conftest.err >&5
33040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33041 (exit $ac_status); } && {
33042 test -z "$ac_cxx_werror_flag" ||
33043 test ! -s conftest.err
33044 } && test -s conftest$ac_exeext &&
33045 $as_test_x conftest$ac_exeext; then
33046 { echo "$as_me:$LINENO: result
: yes" >&5
33047 echo "${ECHO_T}yes" >&6; }
33048 ac_cv_lib_vpb_vpb_open="yes"
33051 echo "$as_me: failed program was
:" >&5
33052 sed 's/^/| /' conftest.$ac_ext >&5
33054 { echo "$as_me:$LINENO: result
: no
" >&5
33055 echo "${ECHO_T}no
" >&6; }
33056 ac_cv_lib_vpb_vpb_open="no
"
33061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33062 conftest$ac_exeext conftest.$ac_ext
33063 LIBS="${saved_libs}"
33064 CPPFLAGS="${saved_cppflags}"
33065 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
33067 if test "${VPB_DIR}" != ""; then
33068 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
33069 VPB_INCLUDE="-I${VPB_DIR}/include
"
33073 cat >>confdefs.h <<\_ACEOF
33077 elif test -n "${VPB_MANDATORY}"; then
33078 { echo "$as_me:$LINENO: ***" >&5
33079 echo "$as_me: ***" >&6;}
33080 { echo "$as_me:$LINENO: *** The VoiceTronix
(vpb
) installation on this system appears to be broken.
" >&5
33081 echo "$as_me: *** The VoiceTronix
(vpb
) installation on this system appears to be broken.
" >&6;}
33082 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
33083 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
33084 { echo "$as_me:$LINENO: *** including
--without-vpb.
" >&5
33085 echo "$as_me: *** including
--without-vpb.
" >&6;}
33091 ac_cpp='$CPP $CPPFLAGS'
33092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33098 if test "${USE_ZLIB}" != "no
"; then
33100 if test "x
${ZLIB_DIR}" != "x
"; then
33101 if test -d ${ZLIB_DIR}/lib; then
33102 pbxlibdir="-L${ZLIB_DIR}/lib
"
33104 pbxlibdir="-L${ZLIB_DIR}"
33107 { echo "$as_me:$LINENO: checking
for compress in -lz" >&5
33108 echo $ECHO_N "checking
for compress in -lz...
$ECHO_C" >&6; }
33109 if test "${ac_cv_lib_z_compress+set}" = set; then
33110 echo $ECHO_N "(cached
) $ECHO_C" >&6
33112 ac_check_lib_save_LIBS=$LIBS
33113 LIBS="-lz ${pbxlibdir} $LIBS"
33114 cat >conftest.$ac_ext <<_ACEOF
33117 cat confdefs.h >>conftest.$ac_ext
33118 cat >>conftest.$ac_ext <<_ACEOF
33119 /* end confdefs.h. */
33121 /* Override any GCC internal prototype to avoid an error.
33122 Use char because int might match the return type of a GCC
33123 builtin and then its argument prototype would still apply. */
33131 return compress ();
33136 rm -f conftest.$ac_objext conftest$ac_exeext
33137 if { (ac_try="$ac_link"
33138 case "(($ac_try" in
33139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33140 *) ac_try_echo=$ac_try;;
33142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33143 (eval "$ac_link") 2>conftest.er1
33145 grep -v '^ *+' conftest.er1 >conftest.err
33147 cat conftest.err >&5
33148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33149 (exit $ac_status); } && {
33150 test -z "$ac_c_werror_flag" ||
33151 test ! -s conftest.err
33152 } && test -s conftest$ac_exeext &&
33153 $as_test_x conftest$ac_exeext; then
33154 ac_cv_lib_z_compress=yes
33156 echo "$as_me: failed program was
:" >&5
33157 sed 's/^/| /' conftest.$ac_ext >&5
33159 ac_cv_lib_z_compress=no
33162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33163 conftest$ac_exeext conftest.$ac_ext
33164 LIBS=$ac_check_lib_save_LIBS
33166 { echo "$as_me:$LINENO: result
: $ac_cv_lib_z_compress" >&5
33167 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
33168 if test $ac_cv_lib_z_compress = yes; then
33175 if test "${AST_ZLIB_FOUND}" = "yes"; then
33177 ZLIB_HEADER_FOUND="1"
33178 if test "x
${ZLIB_DIR}" != "x
"; then
33179 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
33180 ZLIB_INCLUDE="-I${ZLIB_DIR}/include
"
33181 saved_cppflags="${CPPFLAGS}"
33182 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include
"
33183 if test "xzlib.h
" != "x
" ; then
33184 as_ac_Header=`echo "ac_cv_header_
${ZLIB_DIR}/include
/zlib.h
" | $as_tr_sh`
33185 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33186 { echo "$as_me:$LINENO: checking
for ${ZLIB_DIR}/include
/zlib.h
" >&5
33187 echo $ECHO_N "checking
for ${ZLIB_DIR}/include
/zlib.h...
$ECHO_C" >&6; }
33188 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33189 echo $ECHO_N "(cached
) $ECHO_C" >&6
33191 ac_res=`eval echo '${'$as_ac_Header'}'`
33192 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33193 echo "${ECHO_T}$ac_res" >&6; }
33195 # Is the header compilable?
33196 { echo "$as_me:$LINENO: checking
${ZLIB_DIR}/include
/zlib.h usability
" >&5
33197 echo $ECHO_N "checking
${ZLIB_DIR}/include
/zlib.h usability...
$ECHO_C" >&6; }
33198 cat >conftest.$ac_ext <<_ACEOF
33201 cat confdefs.h >>conftest.$ac_ext
33202 cat >>conftest.$ac_ext <<_ACEOF
33203 /* end confdefs.h. */
33204 $ac_includes_default
33205 #include <${ZLIB_DIR}/include/zlib.h>
33207 rm -f conftest.$ac_objext
33208 if { (ac_try="$ac_compile"
33209 case "(($ac_try" in
33210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33211 *) ac_try_echo=$ac_try;;
33213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33214 (eval "$ac_compile") 2>conftest.er1
33216 grep -v '^ *+' conftest.er1 >conftest.err
33218 cat conftest.err >&5
33219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33220 (exit $ac_status); } && {
33221 test -z "$ac_c_werror_flag" ||
33222 test ! -s conftest.err
33223 } && test -s conftest.$ac_objext; then
33224 ac_header_compiler=yes
33226 echo "$as_me: failed program was
:" >&5
33227 sed 's/^/| /' conftest.$ac_ext >&5
33229 ac_header_compiler=no
33232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33233 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
33234 echo "${ECHO_T}$ac_header_compiler" >&6; }
33236 # Is the header present?
33237 { echo "$as_me:$LINENO: checking
${ZLIB_DIR}/include
/zlib.h presence
" >&5
33238 echo $ECHO_N "checking
${ZLIB_DIR}/include
/zlib.h presence...
$ECHO_C" >&6; }
33239 cat >conftest.$ac_ext <<_ACEOF
33242 cat confdefs.h >>conftest.$ac_ext
33243 cat >>conftest.$ac_ext <<_ACEOF
33244 /* end confdefs.h. */
33245 #include <${ZLIB_DIR}/include/zlib.h>
33247 if { (ac_try="$ac_cpp conftest.
$ac_ext"
33248 case "(($ac_try" in
33249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33250 *) ac_try_echo=$ac_try;;
33252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33253 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
33255 grep -v '^ *+' conftest.er1 >conftest.err
33257 cat conftest.err >&5
33258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33259 (exit $ac_status); } >/dev/null && {
33260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33261 test ! -s conftest.err
33263 ac_header_preproc=yes
33265 echo "$as_me: failed program was
:" >&5
33266 sed 's/^/| /' conftest.$ac_ext >&5
33268 ac_header_preproc=no
33271 rm -f conftest.err conftest.$ac_ext
33272 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
33273 echo "${ECHO_T}$ac_header_preproc" >&6; }
33275 # So? What about this header?
33276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33278 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
33279 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
33280 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: proceeding with the compiler
's result" >&5
33281 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result
" >&2;}
33282 ac_header_preproc=yes
33285 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: present but cannot be compiled
" >&5
33286 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: present but cannot be compiled
" >&2;}
33287 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: check
for missing prerequisite headers?
" >&5
33288 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: check
for missing prerequisite headers?
" >&2;}
33289 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: see the Autoconf documentation
" >&5
33290 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: see the Autoconf documentation
" >&2;}
33291 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
33292 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
33293 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: proceeding with the preprocessor
's result" >&5
33294 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result
" >&2;}
33295 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: in the future
, the compiler will take precedence
" >&5
33296 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: in the future
, the compiler will take precedence
" >&2;}
33298 ## ------------------------------- ##
33299 ## Report this to www.asterisk.org ##
33300 ## ------------------------------- ##
33302 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
33305 { echo "$as_me:$LINENO: checking
for ${ZLIB_DIR}/include
/zlib.h
" >&5
33306 echo $ECHO_N "checking
for ${ZLIB_DIR}/include
/zlib.h...
$ECHO_C" >&6; }
33307 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33308 echo $ECHO_N "(cached
) $ECHO_C" >&6
33310 eval "$as_ac_Header=\
$ac_header_preproc"
33312 ac_res=`eval echo '${'$as_ac_Header'}'`
33313 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33314 echo "${ECHO_T}$ac_res" >&6; }
33317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33318 ZLIB_HEADER_FOUND=1
33320 ZLIB_HEADER_FOUND=0
33325 CPPFLAGS="${saved_cppflags}"
33327 if test "xzlib.h
" != "x
" ; then
33328 if test "${ac_cv_header_zlib_h+set}" = set; then
33329 { echo "$as_me:$LINENO: checking
for zlib.h
" >&5
33330 echo $ECHO_N "checking
for zlib.h...
$ECHO_C" >&6; }
33331 if test "${ac_cv_header_zlib_h+set}" = set; then
33332 echo $ECHO_N "(cached
) $ECHO_C" >&6
33334 { echo "$as_me:$LINENO: result
: $ac_cv_header_zlib_h" >&5
33335 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33337 # Is the header compilable?
33338 { echo "$as_me:$LINENO: checking zlib.h usability
" >&5
33339 echo $ECHO_N "checking zlib.h usability...
$ECHO_C" >&6; }
33340 cat >conftest.$ac_ext <<_ACEOF
33343 cat confdefs.h >>conftest.$ac_ext
33344 cat >>conftest.$ac_ext <<_ACEOF
33345 /* end confdefs.h. */
33346 $ac_includes_default
33349 rm -f conftest.$ac_objext
33350 if { (ac_try="$ac_compile"
33351 case "(($ac_try" in
33352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353 *) ac_try_echo=$ac_try;;
33355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33356 (eval "$ac_compile") 2>conftest.er1
33358 grep -v '^ *+' conftest.er1 >conftest.err
33360 cat conftest.err >&5
33361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33362 (exit $ac_status); } && {
33363 test -z "$ac_c_werror_flag" ||
33364 test ! -s conftest.err
33365 } && test -s conftest.$ac_objext; then
33366 ac_header_compiler=yes
33368 echo "$as_me: failed program was
:" >&5
33369 sed 's/^/| /' conftest.$ac_ext >&5
33371 ac_header_compiler=no
33374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33375 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
33376 echo "${ECHO_T}$ac_header_compiler" >&6; }
33378 # Is the header present?
33379 { echo "$as_me:$LINENO: checking zlib.h presence
" >&5
33380 echo $ECHO_N "checking zlib.h presence...
$ECHO_C" >&6; }
33381 cat >conftest.$ac_ext <<_ACEOF
33384 cat confdefs.h >>conftest.$ac_ext
33385 cat >>conftest.$ac_ext <<_ACEOF
33386 /* end confdefs.h. */
33389 if { (ac_try="$ac_cpp conftest.
$ac_ext"
33390 case "(($ac_try" in
33391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33392 *) ac_try_echo=$ac_try;;
33394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33395 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
33397 grep -v '^ *+' conftest.er1 >conftest.err
33399 cat conftest.err >&5
33400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33401 (exit $ac_status); } >/dev/null && {
33402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33403 test ! -s conftest.err
33405 ac_header_preproc=yes
33407 echo "$as_me: failed program was
:" >&5
33408 sed 's/^/| /' conftest.$ac_ext >&5
33410 ac_header_preproc=no
33413 rm -f conftest.err conftest.$ac_ext
33414 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
33415 echo "${ECHO_T}$ac_header_preproc" >&6; }
33417 # So? What about this header?
33418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33420 { echo "$as_me:$LINENO: WARNING
: zlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
33421 echo "$as_me: WARNING
: zlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
33422 { echo "$as_me:$LINENO: WARNING
: zlib.h
: proceeding with the compiler
's result" >&5
33423 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result
" >&2;}
33424 ac_header_preproc=yes
33427 { echo "$as_me:$LINENO: WARNING
: zlib.h
: present but cannot be compiled
" >&5
33428 echo "$as_me: WARNING
: zlib.h
: present but cannot be compiled
" >&2;}
33429 { echo "$as_me:$LINENO: WARNING
: zlib.h
: check
for missing prerequisite headers?
" >&5
33430 echo "$as_me: WARNING
: zlib.h
: check
for missing prerequisite headers?
" >&2;}
33431 { echo "$as_me:$LINENO: WARNING
: zlib.h
: see the Autoconf documentation
" >&5
33432 echo "$as_me: WARNING
: zlib.h
: see the Autoconf documentation
" >&2;}
33433 { echo "$as_me:$LINENO: WARNING
: zlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
33434 echo "$as_me: WARNING
: zlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
33435 { echo "$as_me:$LINENO: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&5
33436 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result
" >&2;}
33437 { echo "$as_me:$LINENO: WARNING
: zlib.h
: in the future
, the compiler will take precedence
" >&5
33438 echo "$as_me: WARNING
: zlib.h
: in the future
, the compiler will take precedence
" >&2;}
33440 ## ------------------------------- ##
33441 ## Report this to www.asterisk.org ##
33442 ## ------------------------------- ##
33444 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
33447 { echo "$as_me:$LINENO: checking
for zlib.h
" >&5
33448 echo $ECHO_N "checking
for zlib.h...
$ECHO_C" >&6; }
33449 if test "${ac_cv_header_zlib_h+set}" = set; then
33450 echo $ECHO_N "(cached
) $ECHO_C" >&6
33452 ac_cv_header_zlib_h=$ac_header_preproc
33454 { echo "$as_me:$LINENO: result
: $ac_cv_header_zlib_h" >&5
33455 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33458 if test $ac_cv_header_zlib_h = yes; then
33459 ZLIB_HEADER_FOUND=1
33461 ZLIB_HEADER_FOUND=0
33467 if test "x
${ZLIB_HEADER_FOUND}" = "x0
" ; then
33468 if test -n "${ZLIB_MANDATORY}" ;
33470 { echo "$as_me:$LINENO: ***" >&5
33471 echo "$as_me: ***" >&6;}
33472 { echo "$as_me:$LINENO: *** It appears that you
do not have the z development package installed.
" >&5
33473 echo "$as_me: *** It appears that you
do not have the z development package installed.
" >&6;}
33474 { echo "$as_me:$LINENO: *** Please
install it to include
${ZLIB_DESCRIP} support
, or re-run configure
" >&5
33475 echo "$as_me: *** Please
install it to include
${ZLIB_DESCRIP} support
, or re-run configure
" >&6;}
33476 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ZLIB_OPTION}" >&5
33477 echo "$as_me: *** without explicitly specifying
--with-${ZLIB_OPTION}" >&6;}
33486 cat >>confdefs.h <<_ACEOF
33487 #define HAVE_ZLIB 1
33491 elif test -n "${ZLIB_MANDATORY}";
33493 { echo "$as_me:$LINENO: ***" >&5
33494 echo "$as_me: ***" >&6;}
33495 { echo "$as_me:$LINENO: *** The
${ZLIB_DESCRIP} installation on this system appears to be broken.
" >&5
33496 echo "$as_me: *** The
${ZLIB_DESCRIP} installation on this system appears to be broken.
" >&6;}
33497 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
33498 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
33499 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ZLIB_OPTION}" >&5
33500 echo "$as_me: *** without explicitly specifying
--with-${ZLIB_OPTION}" >&6;}
33506 if test "${USE_ZAPTEL}" != "no
"; then
33507 { echo "$as_me:$LINENO: checking
for ZT_DIAL_OP_CANCEL
in zaptel
/zaptel.h
" >&5
33508 echo $ECHO_N "checking
for ZT_DIAL_OP_CANCEL
in zaptel
/zaptel.h...
$ECHO_C" >&6; }
33509 saved_cppflags="${CPPFLAGS}"
33510 if test "x
${ZAPTEL_DIR}" != "x
"; then
33511 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include
"
33513 cat >conftest.$ac_ext <<_ACEOF
33517 cat confdefs.h >>conftest.$ac_ext
33518 cat >>conftest.$ac_ext <<_ACEOF
33519 /* end confdefs.h. */
33520 #include <zaptel/zaptel.h>
33524 int foo = ZT_DIAL_OP_CANCEL;
33530 rm -f conftest.$ac_objext
33531 if { (ac_try="$ac_compile"
33532 case "(($ac_try" in
33533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33534 *) ac_try_echo=$ac_try;;
33536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33537 (eval "$ac_compile") 2>conftest.er1
33539 grep -v '^ *+' conftest.er1 >conftest.err
33541 cat conftest.err >&5
33542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33543 (exit $ac_status); } && {
33544 test -z "$ac_c_werror_flag" ||
33545 test ! -s conftest.err
33546 } && test -s conftest.$ac_objext; then
33547 { echo "$as_me:$LINENO: result
: yes" >&5
33548 echo "${ECHO_T}yes" >&6; }
33549 ac_cv_zaptel_h="yes"
33552 echo "$as_me: failed program was
:" >&5
33553 sed 's/^/| /' conftest.$ac_ext >&5
33555 { echo "$as_me:$LINENO: result
: no
" >&5
33556 echo "${ECHO_T}no
" >&6; }
33557 ac_cv_zaptel_h="no
"
33562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33563 CPPFLAGS="${saved_cppflags}"
33564 if test "${ac_cv_zaptel_h}" = "yes"; then
33565 if test "${ZAPTEL_DIR}" != ""; then
33566 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include
"
33570 cat >>confdefs.h <<\_ACEOF
33571 #define HAVE_ZAPTEL 1
33574 elif test -n "${ZAPTEL_MANDATORY}";
33576 { echo "$as_me:$LINENO: ***" >&5
33577 echo "$as_me: ***" >&6;}
33578 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken.
" >&5
33579 echo "$as_me: *** The Zaptel installation on this system appears to be broken.
" >&6;}
33580 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
33581 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
33582 { echo "$as_me:$LINENO: *** including
--without-zaptel.
" >&5
33583 echo "$as_me: *** including
--without-zaptel.
" >&6;}
33588 if test "${PBX_ZAPTEL}" = 1; then
33589 { echo "$as_me:$LINENO: checking
for ZT_EVENT_REMOVED
in zaptel
/zaptel.h
" >&5
33590 echo $ECHO_N "checking
for ZT_EVENT_REMOVED
in zaptel
/zaptel.h...
$ECHO_C" >&6; }
33591 saved_cppflags="${CPPFLAGS}"
33592 if test "x
${ZAPTEL_DIR}" != "x
"; then
33593 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include
"
33595 cat >conftest.$ac_ext <<_ACEOF
33599 cat confdefs.h >>conftest.$ac_ext
33600 cat >>conftest.$ac_ext <<_ACEOF
33601 /* end confdefs.h. */
33602 #include <zaptel/zaptel.h>
33606 int foo = ZT_EVENT_REMOVED;
33612 rm -f conftest.$ac_objext
33613 if { (ac_try="$ac_compile"
33614 case "(($ac_try" in
33615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33616 *) ac_try_echo=$ac_try;;
33618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33619 (eval "$ac_compile") 2>conftest.er1
33621 grep -v '^ *+' conftest.er1 >conftest.err
33623 cat conftest.err >&5
33624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33625 (exit $ac_status); } && {
33626 test -z "$ac_c_werror_flag" ||
33627 test ! -s conftest.err
33628 } && test -s conftest.$ac_objext; then
33629 { echo "$as_me:$LINENO: result
: yes" >&5
33630 echo "${ECHO_T}yes" >&6; }
33631 ac_cv_zaptel_vldtmf="yes"
33634 echo "$as_me: failed program was
:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33637 { echo "$as_me:$LINENO: result
: no
" >&5
33638 echo "${ECHO_T}no
" >&6; }
33639 ac_cv_zaptel_vldtmf="no
"
33644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33645 CPPFLAGS="${saved_cppflags}"
33646 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
33647 PBX_ZAPTEL_VLDTMF=1
33649 { echo "$as_me:$LINENO: checking
for ZT_TCOP_ALLOCATE
in zaptel
/zaptel.h
" >&5
33650 echo $ECHO_N "checking
for ZT_TCOP_ALLOCATE
in zaptel
/zaptel.h...
$ECHO_C" >&6; }
33651 saved_cppflags="${CPPFLAGS}"
33652 if test "x
${ZAPTEL_DIR}" != "x
"; then
33653 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include
"
33655 cat >conftest.$ac_ext <<_ACEOF
33659 cat confdefs.h >>conftest.$ac_ext
33660 cat >>conftest.$ac_ext <<_ACEOF
33661 /* end confdefs.h. */
33662 #include <zaptel/zaptel.h>
33666 int foo = ZT_TCOP_ALLOCATE;
33672 rm -f conftest.$ac_objext
33673 if { (ac_try="$ac_compile"
33674 case "(($ac_try" in
33675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33676 *) ac_try_echo=$ac_try;;
33678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33679 (eval "$ac_compile") 2>conftest.er1
33681 grep -v '^ *+' conftest.er1 >conftest.err
33683 cat conftest.err >&5
33684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33685 (exit $ac_status); } && {
33686 test -z "$ac_c_werror_flag" ||
33687 test ! -s conftest.err
33688 } && test -s conftest.$ac_objext; then
33689 { echo "$as_me:$LINENO: result
: yes" >&5
33690 echo "${ECHO_T}yes" >&6; }
33691 ac_cv_zaptel_transcode="yes"
33694 echo "$as_me: failed program was
:" >&5
33695 sed 's/^/| /' conftest.$ac_ext >&5
33697 { echo "$as_me:$LINENO: result
: no
" >&5
33698 echo "${ECHO_T}no
" >&6; }
33699 ac_cv_zaptel_transcode="no
"
33704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33705 CPPFLAGS="${saved_cppflags}"
33706 if test "${ac_cv_zaptel_transcode}" = "yes"; then
33707 PBX_ZAPTEL_TRANSCODE=1
33714 if test "x
$TERMCAP_LIB" != "x
" ; then
33715 EDITLINE_LIB="$TERMCAP_LIB"
33716 elif test "x
$TINFO_LIB" != "x
" ; then
33717 EDITLINE_LIB="$TINFO_LIB"
33718 elif test "x
$CURSES_LIB" != "x
" ; then
33719 EDITLINE_LIB="$CURSES_LIB"
33720 elif test "x
$NCURSES_LIB" != "x
" ; then
33721 EDITLINE_LIB="$NCURSES_LIB"
33723 { { echo "$as_me:$LINENO: error
: *** termcap support not found
" >&5
33724 echo "$as_me: error
: *** termcap support not found
" >&2;}
33725 { (exit 1); exit 1; }; }
33729 if test "${ac_cv_header_h323_h+set}" = set; then
33730 { echo "$as_me:$LINENO: checking
for h323.h
" >&5
33731 echo $ECHO_N "checking
for h323.h...
$ECHO_C" >&6; }
33732 if test "${ac_cv_header_h323_h+set}" = set; then
33733 echo $ECHO_N "(cached
) $ECHO_C" >&6
33735 { echo "$as_me:$LINENO: result
: $ac_cv_header_h323_h" >&5
33736 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
33738 # Is the header compilable?
33739 { echo "$as_me:$LINENO: checking h323.h usability
" >&5
33740 echo $ECHO_N "checking h323.h usability...
$ECHO_C" >&6; }
33741 cat >conftest.$ac_ext <<_ACEOF
33744 cat confdefs.h >>conftest.$ac_ext
33745 cat >>conftest.$ac_ext <<_ACEOF
33746 /* end confdefs.h. */
33747 $ac_includes_default
33750 rm -f conftest.$ac_objext
33751 if { (ac_try="$ac_compile"
33752 case "(($ac_try" in
33753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33754 *) ac_try_echo=$ac_try;;
33756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33757 (eval "$ac_compile") 2>conftest.er1
33759 grep -v '^ *+' conftest.er1 >conftest.err
33761 cat conftest.err >&5
33762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33763 (exit $ac_status); } && {
33764 test -z "$ac_c_werror_flag" ||
33765 test ! -s conftest.err
33766 } && test -s conftest.$ac_objext; then
33767 ac_header_compiler=yes
33769 echo "$as_me: failed program was
:" >&5
33770 sed 's/^/| /' conftest.$ac_ext >&5
33772 ac_header_compiler=no
33775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33776 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
33777 echo "${ECHO_T}$ac_header_compiler" >&6; }
33779 # Is the header present?
33780 { echo "$as_me:$LINENO: checking h323.h presence
" >&5
33781 echo $ECHO_N "checking h323.h presence...
$ECHO_C" >&6; }
33782 cat >conftest.$ac_ext <<_ACEOF
33785 cat confdefs.h >>conftest.$ac_ext
33786 cat >>conftest.$ac_ext <<_ACEOF
33787 /* end confdefs.h. */
33790 if { (ac_try="$ac_cpp conftest.
$ac_ext"
33791 case "(($ac_try" in
33792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33793 *) ac_try_echo=$ac_try;;
33795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33796 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
33798 grep -v '^ *+' conftest.er1 >conftest.err
33800 cat conftest.err >&5
33801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33802 (exit $ac_status); } >/dev/null && {
33803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33804 test ! -s conftest.err
33806 ac_header_preproc=yes
33808 echo "$as_me: failed program was
:" >&5
33809 sed 's/^/| /' conftest.$ac_ext >&5
33811 ac_header_preproc=no
33814 rm -f conftest.err conftest.$ac_ext
33815 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
33816 echo "${ECHO_T}$ac_header_preproc" >&6; }
33818 # So? What about this header?
33819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33821 { echo "$as_me:$LINENO: WARNING
: h323.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
33822 echo "$as_me: WARNING
: h323.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
33823 { echo "$as_me:$LINENO: WARNING
: h323.h
: proceeding with the compiler
's result" >&5
33824 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result
" >&2;}
33825 ac_header_preproc=yes
33828 { echo "$as_me:$LINENO: WARNING
: h323.h
: present but cannot be compiled
" >&5
33829 echo "$as_me: WARNING
: h323.h
: present but cannot be compiled
" >&2;}
33830 { echo "$as_me:$LINENO: WARNING
: h323.h
: check
for missing prerequisite headers?
" >&5
33831 echo "$as_me: WARNING
: h323.h
: check
for missing prerequisite headers?
" >&2;}
33832 { echo "$as_me:$LINENO: WARNING
: h323.h
: see the Autoconf documentation
" >&5
33833 echo "$as_me: WARNING
: h323.h
: see the Autoconf documentation
" >&2;}
33834 { echo "$as_me:$LINENO: WARNING
: h323.h
: section
\"Present But Cannot Be Compiled
\"" >&5
33835 echo "$as_me: WARNING
: h323.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
33836 { echo "$as_me:$LINENO: WARNING
: h323.h
: proceeding with the preprocessor
's result" >&5
33837 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result
" >&2;}
33838 { echo "$as_me:$LINENO: WARNING
: h323.h
: in the future
, the compiler will take precedence
" >&5
33839 echo "$as_me: WARNING
: h323.h
: in the future
, the compiler will take precedence
" >&2;}
33841 ## ------------------------------- ##
33842 ## Report this to www.asterisk.org ##
33843 ## ------------------------------- ##
33845 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
33848 { echo "$as_me:$LINENO: checking
for h323.h
" >&5
33849 echo $ECHO_N "checking
for h323.h...
$ECHO_C" >&6; }
33850 if test "${ac_cv_header_h323_h+set}" = set; then
33851 echo $ECHO_N "(cached
) $ECHO_C" >&6
33853 ac_cv_header_h323_h=$ac_header_preproc
33855 { echo "$as_me:$LINENO: result
: $ac_cv_header_h323_h" >&5
33856 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
33859 if test $ac_cv_header_h323_h = yes; then
33868 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33869 { echo "$as_me:$LINENO: checking
for linux
/compiler.h
" >&5
33870 echo $ECHO_N "checking
for linux
/compiler.h...
$ECHO_C" >&6; }
33871 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33872 echo $ECHO_N "(cached
) $ECHO_C" >&6
33874 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_compiler_h" >&5
33875 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
33877 # Is the header compilable?
33878 { echo "$as_me:$LINENO: checking linux
/compiler.h usability
" >&5
33879 echo $ECHO_N "checking linux
/compiler.h usability...
$ECHO_C" >&6; }
33880 cat >conftest.$ac_ext <<_ACEOF
33883 cat confdefs.h >>conftest.$ac_ext
33884 cat >>conftest.$ac_ext <<_ACEOF
33885 /* end confdefs.h. */
33886 $ac_includes_default
33887 #include <linux/compiler.h>
33889 rm -f conftest.$ac_objext
33890 if { (ac_try="$ac_compile"
33891 case "(($ac_try" in
33892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893 *) ac_try_echo=$ac_try;;
33895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33896 (eval "$ac_compile") 2>conftest.er1
33898 grep -v '^ *+' conftest.er1 >conftest.err
33900 cat conftest.err >&5
33901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33902 (exit $ac_status); } && {
33903 test -z "$ac_c_werror_flag" ||
33904 test ! -s conftest.err
33905 } && test -s conftest.$ac_objext; then
33906 ac_header_compiler=yes
33908 echo "$as_me: failed program was
:" >&5
33909 sed 's/^/| /' conftest.$ac_ext >&5
33911 ac_header_compiler=no
33914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33915 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
33916 echo "${ECHO_T}$ac_header_compiler" >&6; }
33918 # Is the header present?
33919 { echo "$as_me:$LINENO: checking linux
/compiler.h presence
" >&5
33920 echo $ECHO_N "checking linux
/compiler.h presence...
$ECHO_C" >&6; }
33921 cat >conftest.$ac_ext <<_ACEOF
33924 cat confdefs.h >>conftest.$ac_ext
33925 cat >>conftest.$ac_ext <<_ACEOF
33926 /* end confdefs.h. */
33927 #include <linux/compiler.h>
33929 if { (ac_try="$ac_cpp conftest.
$ac_ext"
33930 case "(($ac_try" in
33931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33932 *) ac_try_echo=$ac_try;;
33934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33935 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
33937 grep -v '^ *+' conftest.er1 >conftest.err
33939 cat conftest.err >&5
33940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33941 (exit $ac_status); } >/dev/null && {
33942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33943 test ! -s conftest.err
33945 ac_header_preproc=yes
33947 echo "$as_me: failed program was
:" >&5
33948 sed 's/^/| /' conftest.$ac_ext >&5
33950 ac_header_preproc=no
33953 rm -f conftest.err conftest.$ac_ext
33954 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
33955 echo "${ECHO_T}$ac_header_preproc" >&6; }
33957 # So? What about this header?
33958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33960 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
33961 echo "$as_me: WARNING
: linux
/compiler.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
33962 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: proceeding with the compiler
's result" >&5
33963 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result
" >&2;}
33964 ac_header_preproc=yes
33967 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: present but cannot be compiled
" >&5
33968 echo "$as_me: WARNING
: linux
/compiler.h
: present but cannot be compiled
" >&2;}
33969 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: check
for missing prerequisite headers?
" >&5
33970 echo "$as_me: WARNING
: linux
/compiler.h
: check
for missing prerequisite headers?
" >&2;}
33971 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: see the Autoconf documentation
" >&5
33972 echo "$as_me: WARNING
: linux
/compiler.h
: see the Autoconf documentation
" >&2;}
33973 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: section
\"Present But Cannot Be Compiled
\"" >&5
33974 echo "$as_me: WARNING
: linux
/compiler.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
33975 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: proceeding with the preprocessor
's result" >&5
33976 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result
" >&2;}
33977 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: in the future
, the compiler will take precedence
" >&5
33978 echo "$as_me: WARNING
: linux
/compiler.h
: in the future
, the compiler will take precedence
" >&2;}
33980 ## ------------------------------- ##
33981 ## Report this to www.asterisk.org ##
33982 ## ------------------------------- ##
33984 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
33987 { echo "$as_me:$LINENO: checking
for linux
/compiler.h
" >&5
33988 echo $ECHO_N "checking
for linux
/compiler.h...
$ECHO_C" >&6; }
33989 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33990 echo $ECHO_N "(cached
) $ECHO_C" >&6
33992 ac_cv_header_linux_compiler_h=$ac_header_preproc
33994 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_compiler_h" >&5
33995 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
33998 if test $ac_cv_header_linux_compiler_h = yes; then
34000 cat >>confdefs.h <<_ACEOF
34001 #define HAVE_LINUX_COMPILER_H 1
34008 { echo "$as_me:$LINENO: checking
for linux
/ixjuser.h
" >&5
34009 echo $ECHO_N "checking
for linux
/ixjuser.h...
$ECHO_C" >&6; }
34010 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
34011 echo $ECHO_N "(cached
) $ECHO_C" >&6
34013 cat >conftest.$ac_ext <<_ACEOF
34016 cat confdefs.h >>conftest.$ac_ext
34017 cat >>conftest.$ac_ext <<_ACEOF
34018 /* end confdefs.h. */
34020 #include <linux/version.h>
34021 #ifdef HAVE_LINUX_COMPILER_H
34022 #include <linux/compiler.h>
34026 #include <linux/ixjuser.h>
34028 rm -f conftest.$ac_objext
34029 if { (ac_try="$ac_compile"
34030 case "(($ac_try" in
34031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34032 *) ac_try_echo=$ac_try;;
34034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34035 (eval "$ac_compile") 2>conftest.er1
34037 grep -v '^ *+' conftest.er1 >conftest.err
34039 cat conftest.err >&5
34040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34041 (exit $ac_status); } && {
34042 test -z "$ac_c_werror_flag" ||
34043 test ! -s conftest.err
34044 } && test -s conftest.$ac_objext; then
34045 ac_cv_header_linux_ixjuser_h=yes
34047 echo "$as_me: failed program was
:" >&5
34048 sed 's/^/| /' conftest.$ac_ext >&5
34050 ac_cv_header_linux_ixjuser_h=no
34053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34055 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_ixjuser_h" >&5
34056 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
34057 if test $ac_cv_header_linux_ixjuser_h = yes; then
34066 if test "${cross_compiling}" = "no
";
34068 { echo "$as_me:$LINENO: checking
for /sbin
/launchd
" >&5
34069 echo $ECHO_N "checking
for /sbin
/launchd...
$ECHO_C" >&6; }
34070 if test "${ac_cv_file__sbin_launchd+set}" = set; then
34071 echo $ECHO_N "(cached
) $ECHO_C" >&6
34073 test "$cross_compiling" = yes &&
34074 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
34075 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
34076 { (exit 1); exit 1; }; }
34077 if test -r "/sbin
/launchd
"; then
34078 ac_cv_file__sbin_launchd=yes
34080 ac_cv_file__sbin_launchd=no
34083 { echo "$as_me:$LINENO: result
: $ac_cv_file__sbin_launchd" >&5
34084 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
34085 if test $ac_cv_file__sbin_launchd = yes; then
34087 cat >>confdefs.h <<\_ACEOF
34088 #define HAVE_SBIN_LAUNCHD 1
34096 if test -n "$ac_tool_prefix"; then
34097 # Extract the first word of "${ac_tool_prefix}gtk-config
", so it can be a program name with args.
34098 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
34099 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34100 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34101 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
34102 echo $ECHO_N "(cached
) $ECHO_C" >&6
34104 if test -n "$GTKCONFIG"; then
34105 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
34107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34108 for as_dir in $PATH
34111 test -z "$as_dir" && as_dir=.
34112 for ac_exec_ext in '' $ac_executable_extensions; do
34113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34114 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config
"
34115 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34124 GTKCONFIG=$ac_cv_prog_GTKCONFIG
34125 if test -n "$GTKCONFIG"; then
34126 { echo "$as_me:$LINENO: result
: $GTKCONFIG" >&5
34127 echo "${ECHO_T}$GTKCONFIG" >&6; }
34129 { echo "$as_me:$LINENO: result
: no
" >&5
34130 echo "${ECHO_T}no
" >&6; }
34135 if test -z "$ac_cv_prog_GTKCONFIG"; then
34136 ac_ct_GTKCONFIG=$GTKCONFIG
34137 # Extract the first word of "gtk-config
", so it can be a program name with args.
34138 set dummy gtk-config; ac_word=$2
34139 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34140 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34141 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
34142 echo $ECHO_N "(cached
) $ECHO_C" >&6
34144 if test -n "$ac_ct_GTKCONFIG"; then
34145 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
34147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34148 for as_dir in $PATH
34151 test -z "$as_dir" && as_dir=.
34152 for ac_exec_ext in '' $ac_executable_extensions; do
34153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34154 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config
"
34155 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34164 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
34165 if test -n "$ac_ct_GTKCONFIG"; then
34166 { echo "$as_me:$LINENO: result
: $ac_ct_GTKCONFIG" >&5
34167 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
34169 { echo "$as_me:$LINENO: result
: no
" >&5
34170 echo "${ECHO_T}no
" >&6; }
34173 if test "x
$ac_ct_GTKCONFIG" = x; then
34176 case $cross_compiling:$ac_tool_warned in
34178 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
34179 whose name does not start with the
host triplet. If you think this
34180 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
34181 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
34182 whose name does not start with the
host triplet. If you think this
34183 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
34184 ac_tool_warned=yes ;;
34186 GTKCONFIG=$ac_ct_GTKCONFIG
34189 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
34192 if test ! "x
${GTKCONFIG}" = xNo; then
34193 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
34194 GTK_LIB=$(${GTKCONFIG} --libs gthread)
34197 cat >>confdefs.h <<\_ACEOF
34207 if test -n "$ac_tool_prefix"; then
34208 # Extract the first word of "${ac_tool_prefix}pkg-config
", so it can be a program name with args.
34209 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34210 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34211 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34212 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
34213 echo $ECHO_N "(cached
) $ECHO_C" >&6
34215 if test -n "$PKGCONFIG"; then
34216 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
34218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34219 for as_dir in $PATH
34222 test -z "$as_dir" && as_dir=.
34223 for ac_exec_ext in '' $ac_executable_extensions; do
34224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34225 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config
"
34226 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34235 PKGCONFIG=$ac_cv_prog_PKGCONFIG
34236 if test -n "$PKGCONFIG"; then
34237 { echo "$as_me:$LINENO: result
: $PKGCONFIG" >&5
34238 echo "${ECHO_T}$PKGCONFIG" >&6; }
34240 { echo "$as_me:$LINENO: result
: no
" >&5
34241 echo "${ECHO_T}no
" >&6; }
34246 if test -z "$ac_cv_prog_PKGCONFIG"; then
34247 ac_ct_PKGCONFIG=$PKGCONFIG
34248 # Extract the first word of "pkg-config
", so it can be a program name with args.
34249 set dummy pkg-config; ac_word=$2
34250 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34251 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34252 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
34253 echo $ECHO_N "(cached
) $ECHO_C" >&6
34255 if test -n "$ac_ct_PKGCONFIG"; then
34256 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
34258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34259 for as_dir in $PATH
34262 test -z "$as_dir" && as_dir=.
34263 for ac_exec_ext in '' $ac_executable_extensions; do
34264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34265 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config
"
34266 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34275 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
34276 if test -n "$ac_ct_PKGCONFIG"; then
34277 { echo "$as_me:$LINENO: result
: $ac_ct_PKGCONFIG" >&5
34278 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
34280 { echo "$as_me:$LINENO: result
: no
" >&5
34281 echo "${ECHO_T}no
" >&6; }
34284 if test "x
$ac_ct_PKGCONFIG" = x; then
34287 case $cross_compiling:$ac_tool_warned in
34289 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
34290 whose name does not start with the
host triplet. If you think this
34291 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
34292 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
34293 whose name does not start with the
host triplet. If you think this
34294 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
34295 ac_tool_warned=yes ;;
34297 PKGCONFIG=$ac_ct_PKGCONFIG
34300 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
34303 if test ! "x
${PKGCONFIG}" = xNo; then
34304 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
34305 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
34308 cat >>confdefs.h <<\_ACEOF
34309 #define HAVE_GTK2 1
34317 if test "${USE_CURL}" != "no
"; then
34318 if test -n "$ac_tool_prefix"; then
34319 # Extract the first word of "${ac_tool_prefix}curl-config
", so it can be a program name with args.
34320 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
34321 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34322 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34323 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
34324 echo $ECHO_N "(cached
) $ECHO_C" >&6
34326 case $CURL_CONFIG in
34328 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
34331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34332 for as_dir in $PATH
34335 test -z "$as_dir" && as_dir=.
34336 for ac_exec_ext in '' $ac_executable_extensions; do
34337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34338 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34339 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34349 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
34350 if test -n "$CURL_CONFIG"; then
34351 { echo "$as_me:$LINENO: result
: $CURL_CONFIG" >&5
34352 echo "${ECHO_T}$CURL_CONFIG" >&6; }
34354 { echo "$as_me:$LINENO: result
: no
" >&5
34355 echo "${ECHO_T}no
" >&6; }
34360 if test -z "$ac_cv_path_CURL_CONFIG"; then
34361 ac_pt_CURL_CONFIG=$CURL_CONFIG
34362 # Extract the first word of "curl-config
", so it can be a program name with args.
34363 set dummy curl-config; ac_word=$2
34364 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34365 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34366 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
34367 echo $ECHO_N "(cached
) $ECHO_C" >&6
34369 case $ac_pt_CURL_CONFIG in
34371 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
34374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34375 for as_dir in $PATH
34378 test -z "$as_dir" && as_dir=.
34379 for ac_exec_ext in '' $ac_executable_extensions; do
34380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34381 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34382 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34392 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
34393 if test -n "$ac_pt_CURL_CONFIG"; then
34394 { echo "$as_me:$LINENO: result
: $ac_pt_CURL_CONFIG" >&5
34395 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
34397 { echo "$as_me:$LINENO: result
: no
" >&5
34398 echo "${ECHO_T}no
" >&6; }
34401 if test "x
$ac_pt_CURL_CONFIG" = x; then
34404 case $cross_compiling:$ac_tool_warned in
34406 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
34407 whose name does not start with the
host triplet. If you think this
34408 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
34409 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
34410 whose name does not start with the
host triplet. If you think this
34411 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
34412 ac_tool_warned=yes ;;
34414 CURL_CONFIG=$ac_pt_CURL_CONFIG
34417 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
34420 if test ! x"${CURL_CONFIG}" = xNo; then
34421 # check for version
34422 if test $(printf "%d
" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d
" 0x070907); then
34423 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
34424 CURL_LIB=$(${CURL_CONFIG} --libs)
34426 { echo "$as_me:$LINENO: checking
for curl_version
() in curl
/curl.h
" >&5
34427 echo $ECHO_N "checking
for curl_version
() in curl
/curl.h...
$ECHO_C" >&6; }
34428 saved_cppflags="${CPPFLAGS}"
34429 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
34430 cat >conftest.$ac_ext <<_ACEOF
34433 cat confdefs.h >>conftest.$ac_ext
34434 cat >>conftest.$ac_ext <<_ACEOF
34435 /* end confdefs.h. */
34436 #include <curl/curl.h>
34446 rm -f conftest.$ac_objext
34447 if { (ac_try="$ac_compile"
34448 case "(($ac_try" in
34449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34450 *) ac_try_echo=$ac_try;;
34452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34453 (eval "$ac_compile") 2>conftest.er1
34455 grep -v '^ *+' conftest.er1 >conftest.err
34457 cat conftest.err >&5
34458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34459 (exit $ac_status); } && {
34460 test -z "$ac_c_werror_flag" ||
34461 test ! -s conftest.err
34462 } && test -s conftest.$ac_objext; then
34464 { echo "$as_me:$LINENO: result
: yes" >&5
34465 echo "${ECHO_T}yes" >&6; }
34469 echo "$as_me: failed program was
:" >&5
34470 sed 's/^/| /' conftest.$ac_ext >&5
34473 { echo "$as_me:$LINENO: result
: no
" >&5
34474 echo "${ECHO_T}no
" >&6; }
34480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34481 CPPFLAGS="${saved_cppflags}"
34482 if test "${ac_cv_curl_h}" = "yes"; then
34485 cat >>confdefs.h <<\_ACEOF
34486 #define HAVE_CURL 1
34494 ac_config_files="$ac_config_files build_tools
/menuselect-deps makeopts channels
/h323
/Makefile
"
34496 cat >confcache <<\_ACEOF
34497 # This file is a shell script that caches the results of configure
34498 # tests run on this system so they can be shared between configure
34499 # scripts and configure runs, see configure's option --config-cache.
34500 # It is not useful on other systems. If it contains results you don't
34501 # want to keep, you may remove or edit it.
34503 # config.status only pays attention to the cache file if you give it
34504 # the --recheck option to rerun configure.
34506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34508 # following values.
34512 # The following way of writing the cache mishandles newlines in values,
34513 # but we know of no workaround that is simple, portable, and efficient.
34514 # So, we kill variables containing newlines.
34515 # Ultrix sh set writes to stderr and can't be redirected directly,
34516 # and sets the high bit in the cache file unless we assign to the vars.
34518 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34519 eval ac_val=\$$ac_var
34523 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
34524 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
34527 _ | IFS | as_nl) ;; #(
34528 *) $as_unset $ac_var ;;
34534 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34535 *${as_nl}ac_space=\ *)
34536 # `set' does not quote correctly, so add quotes (double-quote
34537 # substitution turns \\\\ into \\, and sed turns \\ into \).
34540 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
34543 # `set' quotes correctly as required by POSIX, so do not add quotes.
34544 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
34553 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34555 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34557 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34558 if test -w "$cache_file"; then
34559 test "x
$cache_file" != "x
/dev
/null
" &&
34560 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
34561 echo "$as_me: updating cache
$cache_file" >&6;}
34562 cat confcache >$cache_file
34564 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
34565 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
34570 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
34571 # Let make expand exec_prefix.
34572 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
34574 DEFS=-DHAVE_CONFIG_H
34578 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
34579 # 1. Remove the extension, and $U if already installed.
34580 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34581 ac_i=`echo "$ac_i" | sed "$ac_script"`
34582 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34583 # will be set to the directory where LIBOBJS objects are built.
34584 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
34585 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
34587 LIBOBJS=$ac_libobjs
34589 LTLIBOBJS=$ac_ltlibobjs
34593 : ${CONFIG_STATUS=./config.status}
34594 ac_clean_files_save=$ac_clean_files
34595 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34596 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
34597 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
34598 cat >$CONFIG_STATUS <<_ACEOF
34600 # Generated by $as_me.
34601 # Run this file to recreate the current configuration.
34602 # Compiler output produced by configure, useful for debugging
34603 # configure, is in config.log if it exists.
34606 ac_cs_recheck=false
34608 SHELL=\${CONFIG_SHELL-$SHELL}
34611 cat >>$CONFIG_STATUS <<\_ACEOF
34612 ## --------------------- ##
34613 ## M4sh Initialization. ##
34614 ## --------------------- ##
34616 # Be more Bourne compatible
34617 DUALCASE=1; export DUALCASE # for MKS sh
34618 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34621 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34622 # is contrary to our usage. Disable this feature.
34623 alias -g '${1+"$@"}'='"$@
"'
34624 setopt NO_GLOB_SUBST
34626 case `(set -o) 2>/dev/null` in
34627 *posix*) set -o posix ;;
34636 # Avoid depending upon Character Ranges.
34637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34640 as_cr_digits='0123456789'
34641 as_cr_alnum=$as_cr_Letters$as_cr_digits
34643 # The user is always right.
34644 if test "${PATH_SEPARATOR+set}" != set; then
34645 echo "#! /bin/sh" >conf$$.sh
34646 echo "exit 0" >>conf$$.sh
34648 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
34656 # Support unset when possible.
34657 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34665 # We need space, tab and new line, in precisely that order. Quoting is
34666 # there to prevent editors from complaining about space-tab.
34667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34668 # splitting by setting IFS to empty value.)
34673 # Find who we are. Look in the path if we contain no directory separator.
34675 *[\\/]* ) as_myself
=$0 ;;
34676 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34677 for as_dir
in $PATH
34680 test -z "$as_dir" && as_dir
=.
34681 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
34687 # We did not find ourselves, most probably we were run as `sh COMMAND'
34688 # in which case we are not to be found in the path.
34689 if test "x$as_myself" = x
; then
34692 if test ! -f "$as_myself"; then
34693 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34694 { (exit 1); exit 1; }
34697 # Work around bugs in pre-3.0 UWIN ksh.
34698 for as_var
in ENV MAIL MAILPATH
34699 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34707 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34708 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34709 LC_TELEPHONE LC_TIME
34711 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34712 eval $as_var=C
; export $as_var
34714 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34718 # Required to use basename.
34719 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34720 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34726 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34727 as_basename
=basename
34733 # Name of the executable.
34734 as_me
=`$as_basename -- "$0" ||
34735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34736 X"$0" : 'X\(//\)$' \| \
34737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34739 sed '/^.*\/\([^/][^/]*\)\/*$/{
34758 as_lineno_1
=$LINENO
34759 as_lineno_2
=$LINENO
34760 test "x$as_lineno_1" != "x$as_lineno_2" &&
34761 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
34763 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34764 # uniformly replaced by the line number. The first 'sed' inserts a
34765 # line-number line after each line using $LINENO; the second 'sed'
34766 # does the real work. The second script uses 'N' to pair each
34767 # line-number line with the line containing $LINENO, and appends
34768 # trailing '-' during substitution so that $LINENO is not a special
34769 # case at line end.
34770 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34771 # scripts with optimization help from Paolo Bonzini. Blame Lee
34772 # E. McMahon (1931-1989) for sed's syntax. :-)
34784 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34787 ' >$as_me.lineno
&&
34788 chmod +x
"$as_me.lineno" ||
34789 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34790 { (exit 1); exit 1; }; }
34792 # Don't try to exec as it changes $[0], causing all sort of problems
34793 # (the dirname of $[0] is not the place where we might find the
34794 # original and so on. Autoconf is especially sensitive to this).
34795 .
"./$as_me.lineno"
34796 # Exit status is that of the last command.
34801 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
34807 ECHO_C
= ECHO_N
= ECHO_T
=
34808 case `echo -n x` in
34810 case `echo 'x\c'` in
34811 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
34818 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34819 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34825 rm -f conf$$ conf$$.exe conf$$.
file
34826 if test -d conf$$.dir
; then
34827 rm -f conf$$.dir
/conf$$.
file
34833 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
34835 # ... but there are two gotchas:
34836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34838 # In both cases, we have to default to `cp -p'.
34839 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
34841 elif ln conf$$.
file conf$$
2>/dev
/null
; then
34846 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
34847 rmdir conf$$.dir
2>/dev
/null
34849 if mkdir
-p .
2>/dev
/null
; then
34852 test -d .
/-p && rmdir .
/-p
34856 if test -x / >/dev
/null
2>&1; then
34857 as_test_x
='test -x'
34859 if ls -dL / >/dev
/null
2>&1; then
34866 if test -d "$1"; then
34872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
34873 ???[sx]*):;;*)false;;esac;fi
34877 as_executable_p
=$as_test_x
34879 # Sed expression to map a string onto a valid CPP name.
34880 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34882 # Sed expression to map a string onto a valid variable name.
34883 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34888 # Save the log message, to keep $[0] and so on meaningful, and to
34889 # report actual input values of CONFIG_FILES etc. instead of their
34890 # values after options handling.
34892 This file was extended by asterisk $as_me 1.4, which was
34893 generated by GNU Autoconf 2.61. Invocation command line was
34895 CONFIG_FILES = $CONFIG_FILES
34896 CONFIG_HEADERS = $CONFIG_HEADERS
34897 CONFIG_LINKS = $CONFIG_LINKS
34898 CONFIG_COMMANDS = $CONFIG_COMMANDS
34901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34906 cat >>$CONFIG_STATUS <<_ACEOF
34907 # Files that config.status was made for.
34908 config_files="$ac_config_files"
34909 config_headers="$ac_config_headers"
34913 cat >>$CONFIG_STATUS <<\_ACEOF
34915 \`$as_me' instantiates files from templates according to the
34916 current configuration.
34918 Usage: $0 [OPTIONS] [FILE]...
34920 -h, --help print this help, then exit
34921 -V, --version print version number and configuration settings, then exit
34922 -q, --quiet do not print progress messages
34923 -d, --debug don't remove temporary files
34924 --recheck update $as_me by reconfiguring in the same conditions
34925 --file=FILE[:TEMPLATE]
34926 instantiate the configuration file FILE
34927 --header=FILE[:TEMPLATE]
34928 instantiate the configuration header FILE
34930 Configuration files:
34933 Configuration headers:
34936 Report bugs to <bug-autoconf@gnu.org>."
34939 cat >>$CONFIG_STATUS <<_ACEOF
34941 asterisk config.status 1.4
34942 configured by $0, generated by GNU Autoconf 2.61,
34943 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34945 Copyright (C) 2006 Free Software Foundation, Inc.
34946 This config.status script is free software; the Free Software Foundation
34947 gives unlimited permission to copy, distribute and modify it."
34954 cat >>$CONFIG_STATUS <<\_ACEOF
34955 # If no file are specified by the user, then we need to provide default
34956 # value. By we need to know if files were specified by the user.
34962 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34963 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
34974 # Handling of the options.
34975 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
34977 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
34978 echo "$ac_cs_version"; exit ;;
34979 --debug |
--debu |
--deb |
--de |
--d |
-d )
34981 --file |
--fil |
--fi |
--f )
34983 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
34984 ac_need_defaults
=false
;;
34985 --header |
--heade |
--head |
--hea )
34987 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
34988 ac_need_defaults
=false
;;
34990 # Conflict between --help and --header
34991 { echo "$as_me: error: ambiguous option: $1
34992 Try \`$0 --help' for more information." >&2
34993 { (exit 1); exit 1; }; };;
34994 --help |
--hel |
-h )
34995 echo "$ac_cs_usage"; exit ;;
34996 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
34997 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35000 # This is an error.
35001 -*) { echo "$as_me: error: unrecognized option: $1
35002 Try \`$0 --help' for more information." >&2
35003 { (exit 1); exit 1; }; } ;;
35005 *) ac_config_targets
="$ac_config_targets $1"
35006 ac_need_defaults
=false
;;
35012 ac_configure_extra_args
=
35014 if $ac_cs_silent; then
35016 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35020 cat >>$CONFIG_STATUS <<_ACEOF
35021 if \$ac_cs_recheck; then
35022 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35023 CONFIG_SHELL=$SHELL
35024 export CONFIG_SHELL
35025 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35029 cat >>$CONFIG_STATUS <<\_ACEOF
35033 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35034 ## Running $as_me. ##
35040 cat >>$CONFIG_STATUS <<_ACEOF
35043 cat >>$CONFIG_STATUS <<\_ACEOF
35045 # Handling of arguments.
35046 for ac_config_target
in $ac_config_targets
35048 case $ac_config_target in
35049 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
35050 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
35051 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
35052 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
35054 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35055 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35056 { (exit 1); exit 1; }; };;
35061 # If the user did not use the arguments to specify the items to instantiate,
35062 # then the envvar interface is used. Set only those that are not.
35063 # We use the long form for the default assignment because of an extremely
35064 # bizarre bug on SunOS 4.1.3.
35065 if $ac_need_defaults; then
35066 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35067 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35070 # Have a temporary directory for convenience. Make it in the build tree
35071 # simply because there is no reason against having it here, and in addition,
35072 # creating and moving files from /tmp can sometimes cause problems.
35073 # Hook for its removal unless debugging.
35074 # Note that there is a small window in which the directory will not be cleaned:
35075 # after its creation but before its name has been assigned to `$tmp'.
35079 trap 'exit_status=$?
35080 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35082 trap '{ (exit 1); exit 1; }' 1 2 13 15
35084 # Create a (secure) tmp directory for tmp files.
35087 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35088 test -n "$tmp" && test -d "$tmp"
35091 tmp
=.
/conf$$
-$RANDOM
35092 (umask 077 && mkdir
"$tmp")
35095 echo "$me: cannot create a temporary directory in ." >&2
35096 { (exit 1); exit 1; }
35100 # Set up the sed scripts for CONFIG_FILES section.
35103 # No need to generate the scripts if there are no CONFIG_FILES.
35104 # This happens for instance when ./config.status config.h
35105 if test -n "$CONFIG_FILES"; then
35112 for ac_last_try
in false false false false false
:; do
35113 cat >conf$
$subs.
sed <<_ACEOF
35114 SHELL!$SHELL$ac_delim
35115 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35116 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35117 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35118 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35119 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35120 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35121 exec_prefix!$exec_prefix$ac_delim
35122 prefix!$prefix$ac_delim
35123 program_transform_name!$program_transform_name$ac_delim
35124 bindir!$bindir$ac_delim
35125 sbindir!$sbindir$ac_delim
35126 libexecdir!$libexecdir$ac_delim
35127 datarootdir!$datarootdir$ac_delim
35128 datadir!$datadir$ac_delim
35129 sysconfdir!$sysconfdir$ac_delim
35130 sharedstatedir!$sharedstatedir$ac_delim
35131 localstatedir!$localstatedir$ac_delim
35132 includedir!$includedir$ac_delim
35133 oldincludedir!$oldincludedir$ac_delim
35134 docdir!$docdir$ac_delim
35135 infodir!$infodir$ac_delim
35136 htmldir!$htmldir$ac_delim
35137 dvidir!$dvidir$ac_delim
35138 pdfdir!$pdfdir$ac_delim
35139 psdir!$psdir$ac_delim
35140 libdir!$libdir$ac_delim
35141 localedir!$localedir$ac_delim
35142 mandir!$mandir$ac_delim
35143 DEFS!$DEFS$ac_delim
35144 ECHO_C!$ECHO_C$ac_delim
35145 ECHO_N!$ECHO_N$ac_delim
35146 ECHO_T!$ECHO_T$ac_delim
35147 LIBS!$LIBS$ac_delim
35148 build_alias!$build_alias$ac_delim
35149 host_alias!$host_alias$ac_delim
35150 target_alias!$target_alias$ac_delim
35151 build!$build$ac_delim
35152 build_cpu!$build_cpu$ac_delim
35153 build_vendor!$build_vendor$ac_delim
35154 build_os!$build_os$ac_delim
35155 host!$host$ac_delim
35156 host_cpu!$host_cpu$ac_delim
35157 host_vendor!$host_vendor$ac_delim
35158 host_os!$host_os$ac_delim
35160 CFLAGS!$CFLAGS$ac_delim
35161 LDFLAGS!$LDFLAGS$ac_delim
35162 CPPFLAGS!$CPPFLAGS$ac_delim
35163 ac_ct_CC!$ac_ct_CC$ac_delim
35164 EXEEXT!$EXEEXT$ac_delim
35165 OBJEXT!$OBJEXT$ac_delim
35167 GREP!$GREP$ac_delim
35168 EGREP!$EGREP$ac_delim
35169 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
35170 BUILD_CPU!$BUILD_CPU$ac_delim
35171 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
35172 BUILD_OS!$BUILD_OS$ac_delim
35173 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
35174 HOST_CPU!$HOST_CPU$ac_delim
35175 HOST_VENDOR!$HOST_VENDOR$ac_delim
35176 HOST_OS!$HOST_OS$ac_delim
35177 OSARCH!$OSARCH$ac_delim
35178 UNAME!$UNAME$ac_delim
35179 PBX_OSREV!$PBX_OSREV$ac_delim
35182 RANLIB!$RANLIB$ac_delim
35183 CXXFLAGS!$CXXFLAGS$ac_delim
35184 ac_ct_CXX!$ac_ct_CXX$ac_delim
35185 CXXCPP!$CXXCPP$ac_delim
35188 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35189 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35190 INSTALL_DATA!$INSTALL_DATA$ac_delim
35191 LN_S!$LN_S$ac_delim
35192 GNU_MAKE!$GNU_MAKE$ac_delim
35193 STRIP!$STRIP$ac_delim
35195 GNU_LD!$GNU_LD$ac_delim
35196 FIND!$FIND$ac_delim
35197 COMPRESS!$COMPRESS$ac_delim
35198 BASENAME!$BASENAME$ac_delim
35200 DIRNAME!$DIRNAME$ac_delim
35203 WGET!$WGET$ac_delim
35204 FETCH!$FETCH$ac_delim
35205 DOWNLOAD!$DOWNLOAD$ac_delim
35206 SOXMIX!$SOXMIX$ac_delim
35207 acx_pthread_config!$acx_pthread_config$ac_delim
35208 PTHREAD_CC!$PTHREAD_CC$ac_delim
35209 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35210 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35215 elif $ac_last_try; then
35216 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35217 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35218 { (exit 1); exit 1; }; }
35220 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35224 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35225 if test -n "$ac_eof"; then
35226 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35227 ac_eof
=`expr $ac_eof + 1`
35230 cat >>$CONFIG_STATUS <<_ACEOF
35231 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35235 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35236 s/^/s,@/; s/!/@,|#_!!_#|/
35239 s/'"$ac_delim"'$/,g/; t
35241 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35242 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35243 rm -f conf$
$subs.
sed
35244 cat >>$CONFIG_STATUS <<_ACEOF
35250 for ac_last_try
in false false false false false
:; do
35251 cat >conf$
$subs.
sed <<_ACEOF
35252 AST_DEVMODE!$AST_DEVMODE$ac_delim
35253 ALSA_LIB!$ALSA_LIB$ac_delim
35254 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
35255 ALSA_DIR!$ALSA_DIR$ac_delim
35256 PBX_ALSA!$PBX_ALSA$ac_delim
35257 CURL_LIB!$CURL_LIB$ac_delim
35258 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
35259 CURL_DIR!$CURL_DIR$ac_delim
35260 PBX_CURL!$PBX_CURL$ac_delim
35261 CAP_LIB!$CAP_LIB$ac_delim
35262 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
35263 CAP_DIR!$CAP_DIR$ac_delim
35264 PBX_CAP!$PBX_CAP$ac_delim
35265 CURSES_LIB!$CURSES_LIB$ac_delim
35266 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
35267 CURSES_DIR!$CURSES_DIR$ac_delim
35268 PBX_CURSES!$PBX_CURSES$ac_delim
35269 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
35270 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
35271 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
35272 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
35273 GSM_LIB!$GSM_LIB$ac_delim
35274 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
35275 GSM_DIR!$GSM_DIR$ac_delim
35276 PBX_GSM!$PBX_GSM$ac_delim
35277 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
35278 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
35279 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
35280 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
35281 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
35282 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
35283 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
35284 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
35285 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
35286 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
35287 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
35288 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
35289 KDE_LIB!$KDE_LIB$ac_delim
35290 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
35291 KDE_DIR!$KDE_DIR$ac_delim
35292 PBX_KDE!$PBX_KDE$ac_delim
35293 LTDL_LIB!$LTDL_LIB$ac_delim
35294 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
35295 LTDL_DIR!$LTDL_DIR$ac_delim
35296 PBX_LTDL!$PBX_LTDL$ac_delim
35297 MISDN_LIB!$MISDN_LIB$ac_delim
35298 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
35299 MISDN_DIR!$MISDN_DIR$ac_delim
35300 PBX_MISDN!$PBX_MISDN$ac_delim
35301 NBS_LIB!$NBS_LIB$ac_delim
35302 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
35303 NBS_DIR!$NBS_DIR$ac_delim
35304 PBX_NBS!$PBX_NBS$ac_delim
35305 NCURSES_LIB!$NCURSES_LIB$ac_delim
35306 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
35307 NCURSES_DIR!$NCURSES_DIR$ac_delim
35308 PBX_NCURSES!$PBX_NCURSES$ac_delim
35309 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
35310 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
35311 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
35312 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
35313 NEWT_LIB!$NEWT_LIB$ac_delim
35314 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
35315 NEWT_DIR!$NEWT_DIR$ac_delim
35316 PBX_NEWT!$PBX_NEWT$ac_delim
35317 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
35318 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
35319 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
35320 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
35321 OGG_LIB!$OGG_LIB$ac_delim
35322 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
35323 OGG_DIR!$OGG_DIR$ac_delim
35324 PBX_OGG!$PBX_OGG$ac_delim
35325 OSPTK_LIB!$OSPTK_LIB$ac_delim
35326 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
35327 OSPTK_DIR!$OSPTK_DIR$ac_delim
35328 PBX_OSPTK!$PBX_OSPTK$ac_delim
35329 OSS_LIB!$OSS_LIB$ac_delim
35330 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
35331 OSS_DIR!$OSS_DIR$ac_delim
35332 PBX_OSS!$PBX_OSS$ac_delim
35333 POPT_LIB!$POPT_LIB$ac_delim
35334 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
35335 POPT_DIR!$POPT_DIR$ac_delim
35336 PBX_POPT!$PBX_POPT$ac_delim
35337 PGSQL_LIB!$PGSQL_LIB$ac_delim
35338 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
35339 PGSQL_DIR!$PGSQL_DIR$ac_delim
35340 PBX_PGSQL!$PBX_PGSQL$ac_delim
35341 PRI_LIB!$PRI_LIB$ac_delim
35342 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
35343 PRI_DIR!$PRI_DIR$ac_delim
35344 PBX_PRI!$PBX_PRI$ac_delim
35345 PWLIB_LIB!$PWLIB_LIB$ac_delim
35346 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
35347 PWLIB_DIR!$PWLIB_DIR$ac_delim
35348 PBX_PWLIB!$PBX_PWLIB$ac_delim
35351 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35353 elif $ac_last_try; then
35354 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35355 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35356 { (exit 1); exit 1; }; }
35358 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35362 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35363 if test -n "$ac_eof"; then
35364 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35365 ac_eof
=`expr $ac_eof + 1`
35368 cat >>$CONFIG_STATUS <<_ACEOF
35369 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35373 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35374 s/^/s,@/; s/!/@,|#_!!_#|/
35377 s/'"$ac_delim"'$/,g/; t
35379 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35380 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35381 rm -f conf$
$subs.
sed
35382 cat >>$CONFIG_STATUS <<_ACEOF
35388 for ac_last_try
in false false false false false
:; do
35389 cat >conf$
$subs.
sed <<_ACEOF
35390 OPENH323_LIB!$OPENH323_LIB$ac_delim
35391 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
35392 OPENH323_DIR!$OPENH323_DIR$ac_delim
35393 PBX_OPENH323!$PBX_OPENH323$ac_delim
35394 RADIUS_LIB!$RADIUS_LIB$ac_delim
35395 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
35396 RADIUS_DIR!$RADIUS_DIR$ac_delim
35397 PBX_RADIUS!$PBX_RADIUS$ac_delim
35398 SPEEX_LIB!$SPEEX_LIB$ac_delim
35399 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
35400 SPEEX_DIR!$SPEEX_DIR$ac_delim
35401 PBX_SPEEX!$PBX_SPEEX$ac_delim
35402 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
35403 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
35404 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
35405 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
35406 SQLITE_LIB!$SQLITE_LIB$ac_delim
35407 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
35408 SQLITE_DIR!$SQLITE_DIR$ac_delim
35409 PBX_SQLITE!$PBX_SQLITE$ac_delim
35410 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
35411 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
35412 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
35413 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
35414 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
35415 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
35416 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
35417 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
35418 FREETDS_LIB!$FREETDS_LIB$ac_delim
35419 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
35420 FREETDS_DIR!$FREETDS_DIR$ac_delim
35421 PBX_FREETDS!$PBX_FREETDS$ac_delim
35422 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
35423 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
35424 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
35425 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
35426 TINFO_LIB!$TINFO_LIB$ac_delim
35427 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
35428 TINFO_DIR!$TINFO_DIR$ac_delim
35429 PBX_TINFO!$PBX_TINFO$ac_delim
35430 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
35431 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
35432 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
35433 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
35434 USB_LIB!$USB_LIB$ac_delim
35435 USB_INCLUDE!$USB_INCLUDE$ac_delim
35436 USB_DIR!$USB_DIR$ac_delim
35437 PBX_USB!$PBX_USB$ac_delim
35438 VORBIS_LIB!$VORBIS_LIB$ac_delim
35439 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
35440 VORBIS_DIR!$VORBIS_DIR$ac_delim
35441 PBX_VORBIS!$PBX_VORBIS$ac_delim
35442 VPB_LIB!$VPB_LIB$ac_delim
35443 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
35444 VPB_DIR!$VPB_DIR$ac_delim
35445 PBX_VPB!$PBX_VPB$ac_delim
35446 ZLIB_LIB!$ZLIB_LIB$ac_delim
35447 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
35448 ZLIB_DIR!$ZLIB_DIR$ac_delim
35449 PBX_ZLIB!$PBX_ZLIB$ac_delim
35450 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
35451 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
35452 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
35453 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
35454 ALLOCA!$ALLOCA$ac_delim
35455 LIBOBJS!$LIBOBJS$ac_delim
35456 POW_LIB!$POW_LIB$ac_delim
35457 GC_CFLAGS!$GC_CFLAGS$ac_delim
35458 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
35459 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
35460 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
35461 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
35462 KDEINIT!$KDEINIT$ac_delim
35463 KDEDIR!$KDEDIR$ac_delim
35464 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
35465 PG_CONFIG!$PG_CONFIG$ac_delim
35466 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
35467 PWLIBDIR!$PWLIBDIR$ac_delim
35468 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
35469 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
35470 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
35471 OPENH323DIR!$OPENH323DIR$ac_delim
35472 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
35473 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
35474 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
35475 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
35476 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
35477 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
35478 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
35479 PBX_H323!$PBX_H323$ac_delim
35480 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
35481 GTKCONFIG!$GTKCONFIG$ac_delim
35482 PBX_GTK!$PBX_GTK$ac_delim
35483 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
35484 GTK_LIB!$GTK_LIB$ac_delim
35485 PKGCONFIG!$PKGCONFIG$ac_delim
35486 PBX_GTK2!$PBX_GTK2$ac_delim
35489 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35491 elif $ac_last_try; then
35492 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35493 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35494 { (exit 1); exit 1; }; }
35496 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35500 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35501 if test -n "$ac_eof"; then
35502 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35503 ac_eof
=`expr $ac_eof + 1`
35506 cat >>$CONFIG_STATUS <<_ACEOF
35507 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35511 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35512 s/^/s,@/; s/!/@,|#_!!_#|/
35515 s/'"$ac_delim"'$/,g/; t
35517 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35518 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35519 rm -f conf$
$subs.
sed
35520 cat >>$CONFIG_STATUS <<_ACEOF
35526 for ac_last_try
in false false false false false
:; do
35527 cat >conf$
$subs.
sed <<_ACEOF
35528 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
35529 GTK2_LIB!$GTK2_LIB$ac_delim
35530 CURL_CONFIG!$CURL_CONFIG$ac_delim
35531 LTLIBOBJS!$LTLIBOBJS$ac_delim
35534 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
35536 elif $ac_last_try; then
35537 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35538 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35539 { (exit 1); exit 1; }; }
35541 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35545 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35546 if test -n "$ac_eof"; then
35547 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35548 ac_eof
=`expr $ac_eof + 1`
35551 cat >>$CONFIG_STATUS <<_ACEOF
35552 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
35553 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35556 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35557 s/^/s,@/; s/!/@,|#_!!_#|/
35560 s/'"$ac_delim"'$/,g/; t
35562 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35563 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35564 rm -f conf$
$subs.
sed
35565 cat >>$CONFIG_STATUS <<_ACEOF
35572 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35573 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35574 # trailing colons and then remove the whole line if VPATH becomes empty
35575 # (actually we leave an empty line to preserve line numbers).
35576 if test "x$srcdir" = x.
; then
35577 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
35578 s/:*\$(srcdir):*/:/
35579 s/:*\${srcdir}:*/:/
35581 s/^\([^=]*=[ ]*\):*/\1/
35587 cat >>$CONFIG_STATUS <<\_ACEOF
35588 fi # test -n "$CONFIG_FILES"
35591 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
35594 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35596 case $ac_mode$ac_tag in
35598 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35599 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35600 { (exit 1); exit 1; }; };;
35601 :[FH
]-) ac_tag
=-:-;;
35602 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35619 -) ac_f
="$tmp/stdin";;
35620 *) # Look for the file first in the build tree, then in the source tree
35621 # (if the path is not absolute). The absolute path cannot be DOS-style,
35622 # because $ac_f cannot contain `:'.
35626 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35628 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35629 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35630 { (exit 1); exit 1; }; };;
35632 ac_file_inputs
="$ac_file_inputs $ac_f"
35635 # Let's still pretend it is `configure' which instantiates (i.e., don't
35636 # use $as_me), people would be surprised to read:
35637 # /* config.h. Generated by config.status. */
35638 configure_input
="Generated from "`IFS=:
35639 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35640 if test x
"$ac_file" != x-
; then
35641 configure_input
="$ac_file. $configure_input"
35642 { echo "$as_me:$LINENO: creating $ac_file" >&5
35643 echo "$as_me: creating $ac_file" >&6;}
35647 *:-:* |
*:-) cat >"$tmp/stdin";;
35652 ac_dir
=`$as_dirname -- "$ac_file" ||
35653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35654 X"$ac_file" : 'X\(//\)[^/]' \| \
35655 X"$ac_file" : 'X\(//\)$' \| \
35656 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35662 /^X\(\/\/\)[^/].*/{
35677 -*) as_dir
=.
/$as_dir;;
35679 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
35683 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35684 *) as_qdir
=$as_dir;;
35686 as_dirs
="'$as_qdir' $as_dirs"
35687 as_dir
=`$as_dirname -- "$as_dir" ||
35688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35689 X"$as_dir" : 'X\(//\)[^/]' \| \
35690 X"$as_dir" : 'X\(//\)$' \| \
35691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35697 /^X\(\/\/\)[^/].*/{
35710 test -d "$as_dir" && break
35712 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35713 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35714 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35715 { (exit 1); exit 1; }; }; }
35719 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35721 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35722 # A ".." for each directory in $ac_dir_suffix.
35723 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35724 case $ac_top_builddir_sub in
35725 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35726 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35729 ac_abs_top_builddir
=$ac_pwd
35730 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35731 # for backward compatibility:
35732 ac_top_builddir
=$ac_top_build_prefix
35735 .
) # We are building in place.
35737 ac_top_srcdir
=$ac_top_builddir_sub
35738 ac_abs_top_srcdir
=$ac_pwd ;;
35739 [\\/]* | ?
:[\\/]* ) # Absolute name.
35740 ac_srcdir
=$srcdir$ac_dir_suffix;
35741 ac_top_srcdir
=$srcdir
35742 ac_abs_top_srcdir
=$srcdir ;;
35743 *) # Relative name.
35744 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35745 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35746 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35748 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35758 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
35759 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
35763 cat >>$CONFIG_STATUS <<\_ACEOF
35764 # If the template does not know about datarootdir, expand it.
35765 # FIXME: This hack should be removed a few years after 2.60.
35766 ac_datarootdir_hack
=; ac_datarootdir_seen
=
35768 case `sed -n '/datarootdir/ {
35777 ' $ac_file_inputs` in
35778 *datarootdir
*) ac_datarootdir_seen
=yes;;
35779 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
35780 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35781 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35783 cat >>$CONFIG_STATUS <<_ACEOF
35784 ac_datarootdir_hack='
35785 s&@datadir@&$datadir&g
35786 s&@docdir@&$docdir&g
35787 s&@infodir@&$infodir&g
35788 s&@localedir@&$localedir&g
35789 s&@mandir@&$mandir&g
35790 s&\\\${datarootdir}&$datarootdir&g' ;;
35794 # Neutralize VPATH when `$srcdir' = `.'.
35795 # Shell code in configure.ac might set extrasub.
35796 # FIXME: do we really want to maintain this feature?
35797 cat >>$CONFIG_STATUS <<_ACEOF
35801 cat >>$CONFIG_STATUS <<\_ACEOF
35803 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
35804 s
&@configure_input@
&$configure_input&;t t
35805 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
35806 s
&@srcdir@
&$ac_srcdir&;t t
35807 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
35808 s
&@top_srcdir@
&$ac_top_srcdir&;t t
35809 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
35810 s
&@builddir@
&$ac_builddir&;t t
35811 s
&@abs_builddir@
&$ac_abs_builddir&;t t
35812 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
35813 s
&@INSTALL@
&$ac_INSTALL&;t t
35814 $ac_datarootdir_hack
35815 " $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
35817 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35818 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
35819 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
35820 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
35821 which seems to be undefined. Please make sure it is defined." >&5
35822 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
35823 which seems to be undefined. Please make sure it is defined." >&2;}
35827 -) cat "$tmp/out"; rm -f "$tmp/out";;
35828 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35837 # Transform confdefs.h into a sed script `conftest.defines', that
35838 # substitutes the proper values into config.h.in to produce config.h.
35839 rm -f conftest.defines conftest.
tail
35840 # First, append a space to every undef/define line, to ease matching.
35841 echo 's/$/ /' >conftest.defines
35842 # Then, protect against being on the right side of a sed subst, or in
35843 # an unquoted here document, in config.status. If some macros were
35844 # called several times there might be several #defines for the same
35845 # symbol, which is useless. But do not sort them, since the last
35846 # AC_DEFINE must be honored.
35847 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
35848 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35849 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35850 # PARAMS is the parameter list in the macro definition--in most cases, it's
35851 # just an empty string.
35852 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35853 ac_dB
='\\)[ (].*,\\1define\\2'
35861 s/^[ ]*#[ ]*define[ ][ ]*//
35866 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35867 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35868 ' >>conftest.defines
35870 # Remove the space that was appended to ease matching.
35871 # Then replace #undef with comments. This is necessary, for
35872 # example, in the case of _POSIX_SOURCE, which is predefined and required
35873 # on some systems where configure will not decide to define it.
35874 # (The regexp can be short, since the line contains either #define or #undef.)
35876 s,^[ #]*u.*,/* & */,' >>conftest.defines
35878 # Break up conftest.defines:
35879 ac_max_sed_lines
=50
35881 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35882 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35883 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35885 ac_in
='$ac_file_inputs'
35886 ac_out
='"$tmp/out1"'
35887 ac_nxt
='"$tmp/out2"'
35891 # Write a here document:
35892 cat >>$CONFIG_STATUS <<_ACEOF
35893 # First, check the format of the line:
35894 cat >"\$tmp/defines.sed" <<\\CEOF
35895 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35896 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35900 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
35902 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35903 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
35904 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
35905 grep . conftest.
tail >/dev
/null ||
break
35906 rm -f conftest.defines
35907 mv conftest.
tail conftest.defines
35909 rm -f conftest.defines conftest.
tail
35911 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35912 cat >>$CONFIG_STATUS <<\_ACEOF
35913 if test x
"$ac_file" != x-
; then
35914 echo "/* $configure_input */" >"$tmp/config.h"
35915 cat "$ac_result" >>"$tmp/config.h"
35916 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
35917 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35918 echo "$as_me: $ac_file is unchanged" >&6;}
35921 mv "$tmp/config.h" $ac_file
35924 echo "/* $configure_input */"
35936 { (exit 0); exit 0; }
35938 chmod +x
$CONFIG_STATUS
35939 ac_clean_files
=$ac_clean_files_save
35942 # configure is writing to config.log, and then calls config.status.
35943 # config.status does its own redirection, appending to config.log.
35944 # Unfortunately, on DOS this fails, as config.log is still kept open
35945 # by configure, so config.status won't be able to write to it; its
35946 # output is simply discarded. So we exec the FD to /dev/null,
35947 # effectively closing config.log, so it can be properly (re)opened and
35948 # appended to by config.status. When coming back to configure, we
35949 # need to make the FD available again.
35950 if test "$no_create" != yes; then
35952 ac_config_status_args
=
35953 test "$silent" = yes &&
35954 ac_config_status_args
="$ac_config_status_args --quiet"
35956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
35958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35959 # would make configure fail if this is the last instruction.
35960 $ac_cs_success ||
{ (exit 1); exit 1; }
35964 if test "x${silent}" != "xyes" ; then
35966 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
35967 echo " .\$7\$7.. .7\$\$7:. "
35968 echo " .\$\$:. ,\$7.7 "
35969 echo " .\$7. 7\$\$\$\$ .\$\$77 "
35970 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
35971 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
35972 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
35973 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
35974 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
35975 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
35976 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
35977 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
35978 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
35979 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
35980 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
35981 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
35982 echo " \$\$\$\$\$ \$\$\$ "
35983 echo " \$\$\$\$7. \$\$ (TM) "
35984 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
35985 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
35986 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
35990 { echo "$as_me:$LINENO: Package configured for: " >&5
35991 echo "$as_me: Package configured for: " >&6;}
35992 { echo "$as_me:$LINENO: OS type : $host_os" >&5
35993 echo "$as_me: OS type : $host_os" >&6;}
35994 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
35995 echo "$as_me: Host CPU : $host_cpu" >&6;}
35996 if test "${cross_compiling}" = "yes"; then
35997 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
35998 echo "$as_me: Cross Compilation = YES" >&6;}