2 # From configure.ac Revision: 141678 .
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
889 AST_DECLARATION_AFTER_STATEMENT
890 AST_NO_STRICT_OVERFLOW
923 ac_precious_vars
='build_alias
938 # Initialize some variables set by options.
940 ac_init_version
=false
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
950 program_transform_name
=s
,x
,x
,
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir
='${exec_prefix}/bin'
965 sbindir
='${exec_prefix}/sbin'
966 libexecdir
='${exec_prefix}/libexec'
967 datarootdir
='${prefix}/share'
968 datadir
='${datarootdir}'
969 sysconfdir
='${prefix}/etc'
970 sharedstatedir
='${prefix}/com'
971 localstatedir
='${prefix}/var'
972 includedir
='${prefix}/include'
973 oldincludedir
='/usr/include'
974 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir
='${datarootdir}/info'
980 libdir
='${exec_prefix}/lib'
981 localedir
='${datarootdir}/locale'
982 mandir
='${datarootdir}/man'
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\
$ac_option
996 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1002 case $ac_dashdash$ac_option in
1006 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1008 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1009 bindir
=$ac_optarg ;;
1011 -build |
--build |
--buil |
--bui |
--bu)
1012 ac_prev
=build_alias
;;
1013 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1014 build_alias
=$ac_optarg ;;
1016 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1017 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1018 ac_prev
=cache_file
;;
1019 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1020 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1021 cache_file
=$ac_optarg ;;
1023 --config-cache |
-C)
1024 cache_file
=config.cache
;;
1026 -datadir |
--datadir |
--datadi |
--datad)
1028 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1029 datadir
=$ac_optarg ;;
1031 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1032 |
--dataroo |
--dataro |
--datar)
1033 ac_prev
=datarootdir
;;
1034 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1035 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1036 datarootdir
=$ac_optarg ;;
1038 -disable-* |
--disable-*)
1039 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1042 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1045 eval enable_
$ac_feature=no
;;
1047 -docdir |
--docdir |
--docdi |
--doc |
--do)
1049 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1050 docdir
=$ac_optarg ;;
1052 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1054 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1055 dvidir
=$ac_optarg ;;
1057 -enable-* |
--enable-*)
1058 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1061 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1064 eval enable_
$ac_feature=\
$ac_optarg ;;
1066 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1067 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1068 |
--exec |
--exe |
--ex)
1069 ac_prev
=exec_prefix
;;
1070 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1071 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1072 |
--exec=* |
--exe=* |
--ex=*)
1073 exec_prefix
=$ac_optarg ;;
1075 -gas |
--gas |
--ga |
--g)
1076 # Obsolete; use --with-gas.
1079 -help |
--help |
--hel |
--he |
-h)
1080 ac_init_help
=long
;;
1081 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1082 ac_init_help
=recursive
;;
1083 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1084 ac_init_help
=short
;;
1086 -host |
--host |
--hos |
--ho)
1087 ac_prev
=host_alias
;;
1088 -host=* |
--host=* |
--hos=* |
--ho=*)
1089 host_alias
=$ac_optarg ;;
1091 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1093 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1095 htmldir
=$ac_optarg ;;
1097 -includedir |
--includedir |
--includedi |
--included |
--include \
1098 |
--includ |
--inclu |
--incl |
--inc)
1099 ac_prev
=includedir
;;
1100 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1101 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1102 includedir
=$ac_optarg ;;
1104 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1106 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1107 infodir
=$ac_optarg ;;
1109 -libdir |
--libdir |
--libdi |
--libd)
1111 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1112 libdir
=$ac_optarg ;;
1114 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1115 |
--libexe |
--libex |
--libe)
1116 ac_prev
=libexecdir
;;
1117 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1118 |
--libexe=* |
--libex=* |
--libe=*)
1119 libexecdir
=$ac_optarg ;;
1121 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1122 ac_prev
=localedir
;;
1123 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1124 localedir
=$ac_optarg ;;
1126 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1127 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1128 ac_prev
=localstatedir
;;
1129 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1130 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1131 localstatedir
=$ac_optarg ;;
1133 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1135 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1136 mandir
=$ac_optarg ;;
1138 -nfp |
--nfp |
--nf)
1139 # Obsolete; use --without-fp.
1142 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1143 |
--no-cr |
--no-c |
-n)
1146 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1147 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1150 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1151 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1152 |
--oldin |
--oldi |
--old |
--ol |
--o)
1153 ac_prev
=oldincludedir
;;
1154 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1155 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1156 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1157 oldincludedir
=$ac_optarg ;;
1159 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1161 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1162 prefix
=$ac_optarg ;;
1164 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1165 |
--program-pre |
--program-pr |
--program-p)
1166 ac_prev
=program_prefix
;;
1167 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1168 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1169 program_prefix
=$ac_optarg ;;
1171 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1172 |
--program-suf |
--program-su |
--program-s)
1173 ac_prev
=program_suffix
;;
1174 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1175 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1176 program_suffix
=$ac_optarg ;;
1178 -program-transform-name |
--program-transform-name \
1179 |
--program-transform-nam |
--program-transform-na \
1180 |
--program-transform-n |
--program-transform- \
1181 |
--program-transform |
--program-transfor \
1182 |
--program-transfo |
--program-transf \
1183 |
--program-trans |
--program-tran \
1184 |
--progr-tra |
--program-tr |
--program-t)
1185 ac_prev
=program_transform_name
;;
1186 -program-transform-name=* |
--program-transform-name=* \
1187 |
--program-transform-nam=* |
--program-transform-na=* \
1188 |
--program-transform-n=* |
--program-transform-=* \
1189 |
--program-transform=* |
--program-transfor=* \
1190 |
--program-transfo=* |
--program-transf=* \
1191 |
--program-trans=* |
--program-tran=* \
1192 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1193 program_transform_name
=$ac_optarg ;;
1195 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1197 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1198 pdfdir
=$ac_optarg ;;
1200 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1202 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1205 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1206 |
-silent |
--silent |
--silen |
--sile |
--sil)
1209 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1211 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1213 sbindir
=$ac_optarg ;;
1215 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1216 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1217 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1219 ac_prev
=sharedstatedir
;;
1220 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1221 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1222 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1224 sharedstatedir
=$ac_optarg ;;
1226 -site |
--site |
--sit)
1228 -site=* |
--site=* |
--sit=*)
1231 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1233 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1234 srcdir
=$ac_optarg ;;
1236 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1237 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1238 ac_prev
=sysconfdir
;;
1239 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1240 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1241 sysconfdir
=$ac_optarg ;;
1243 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1244 ac_prev
=target_alias
;;
1245 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1246 target_alias
=$ac_optarg ;;
1248 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1251 -version |
--version |
--versio |
--versi |
--vers |
-V)
1252 ac_init_version
=: ;;
1255 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1258 { echo "$as_me: error: invalid package name: $ac_package" >&2
1259 { (exit 1); exit 1; }; }
1260 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1261 eval with_
$ac_package=\
$ac_optarg ;;
1263 -without-* |
--without-*)
1264 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1267 { echo "$as_me: error: invalid package name: $ac_package" >&2
1268 { (exit 1); exit 1; }; }
1269 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1270 eval with_
$ac_package=no
;;
1273 # Obsolete; use --with-x.
1276 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1277 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1278 ac_prev
=x_includes
;;
1279 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1280 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1281 x_includes
=$ac_optarg ;;
1283 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1284 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1285 ac_prev
=x_libraries
;;
1286 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1287 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1288 x_libraries
=$ac_optarg ;;
1290 -*) { echo "$as_me: error: unrecognized option: $ac_option
1291 Try \`$0 --help' for more information." >&2
1292 { (exit 1); exit 1; }; }
1296 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1299 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1300 { (exit 1); exit 1; }; }
1301 eval $ac_envvar=\
$ac_optarg
1302 export $ac_envvar ;;
1305 # FIXME: should be removed in autoconf 3.0.
1306 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1308 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1315 if test -n "$ac_prev"; then
1316 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1317 { echo "$as_me: error: missing argument to $ac_option" >&2
1318 { (exit 1); exit 1; }; }
1321 # Be sure to have absolute directory names.
1322 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1327 eval ac_val
=\$
$ac_var
1329 [\\/$
]* | ?
:[\\/]* ) continue;;
1330 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1332 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1333 { (exit 1); exit 1; }; }
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1341 target
=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x
; then
1345 if test "x$build_alias" = x
; then
1346 cross_compiling
=maybe
1347 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1355 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1357 test "$silent" = yes && exec 6>/dev
/null
1360 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di
=`ls -di .` &&
1362 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1363 { echo "$as_me: error: Working directory cannot be determined" >&2
1364 { (exit 1); exit 1; }; }
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 { echo "$as_me: error: pwd does not report name of working directory" >&2
1367 { (exit 1); exit 1; }; }
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted
=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir
=`$as_dirname -- "$0" ||
1375 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$0" : 'X\(//\)[^/]' \| \
1377 X"$0" : 'X\(//\)$' \| \
1378 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1402 ac_srcdir_defaulted
=no
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1406 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1407 { (exit 1); exit 1; }; }
1409 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1412 { (exit 1); exit 1; }; }
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1422 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 for ac_var
in $ac_precious_vars; do
1425 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1427 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1432 # Report the --help message.
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1438 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1445 Defaults for the options are specified in brackets.
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1469 For better control, use the options below.
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1496 --build=BUILD configure
for building on BUILD
[guessed
]
1497 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive
) echo "Configuration of asterisk 1.4:";;
1508 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1509 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1510 --enable-dev-mode Turn on developer mode
1511 --disable-largefile omit support
for large files
1514 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1515 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1516 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1517 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1518 --with-curl=PATH use cURL files
in PATH
1519 --with-cap=PATH use POSIX
1.e capabilities files
in PATH
1520 --with-curses=PATH use curses files
in PATH
1521 --with-dahdi=PATH use DAHDI files
in PATH
1522 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1524 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1525 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1526 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1527 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1528 --with-kde=PATH use KDE files
in PATH
1529 --with-ltdl=PATH use libtool files
in PATH
1530 --with-misdn=PATH use mISDN User Library files
in PATH
1531 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1532 --with-ncurses=PATH use ncurses files
in PATH
1533 --with-netsnmp=PATH use Net-SNMP files
in PATH
1534 --with-newt=PATH use newt files
in PATH
1535 --with-odbc=PATH use unixODBC files
in PATH
1536 --with-ogg=PATH use OGG files
in PATH
1537 --with-osptk=PATH use OSP Toolkit files
in PATH
1538 --with-oss=PATH use Open Sound System files
in PATH
1539 --with-popt=PATH use popt files
in PATH
1540 --with-postgres=PATH use PostgreSQL files
in PATH
1541 --with-pri=PATH use ISDN PRI files
in PATH
1542 --with-pwlib=PATH use PWlib files
in PATH
1543 --with-h323=PATH use OpenH323 files
in PATH
1544 --with-radius=PATH use Radius Client files
in PATH
1545 --with-speex=PATH use Speex files
in PATH
1546 --with-speexdsp=PATH use Speexdsp files
in PATH
1547 --with-sqlite=PATH use SQLite files
in PATH
1548 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1549 --with-ssl=PATH use OpenSSL files
in PATH
1550 --with-tds=PATH use FreeTDS files
in PATH
1551 --with-termcap=PATH use Termcap files
in PATH
1552 --with-tinfo=PATH use Term Info files
in PATH
1553 --with-tonezone=PATH use tonezone files
in PATH
1554 --with-usb=PATH use usb files
in PATH
1555 --with-vorbis=PATH use Vorbis files
in PATH
1556 --with-vpb=PATH use Voicetronix API files
in PATH
1557 --with-z=PATH use zlib files
in PATH
1558 --with-zaptel=PATH use Zaptel files
in PATH
1560 Some influential environment variables
:
1561 CC C compiler
command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1564 nonstandard directory
<lib dir
>
1565 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1566 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1567 you have headers
in a nonstandard directory
<include dir
>
1569 CXX C
++ compiler
command
1570 CXXFLAGS C
++ compiler flags
1571 CXXCPP C
++ preprocessor
1573 Use these variables to override the choices made by
`configure' or to help
1574 it to find libraries and programs with nonstandard names/locations.
1576 Report bugs to <www.asterisk.org>.
1581 if test "$ac_init_help" = "recursive"; then
1582 # If there are subdirs, report their specific --help.
1583 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584 test -d "$ac_dir" || continue
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1591 # A ".." for each directory in $ac_dir_suffix.
1592 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1604 .) # We are building in place.
1606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
1609 ac_srcdir=$srcdir$ac_dir_suffix;
1610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for guested configure.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1626 $SHELL "$ac_srcdir/configure" --help=recursive
1628 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 cd "$ac_pwd" || { ac_status=$?; break; }
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1637 asterisk configure 1.4
1638 generated by GNU Autoconf 2.61
1640 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1641 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1653 It was created by asterisk $as_me 1.4, which was
1654 generated by GNU Autoconf 2.61. Invocation command line was
1666 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1667 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1668 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1669 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1670 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1672 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1673 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1675 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1676 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1677 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1678 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1679 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1680 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1681 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 test -z "$as_dir" && as_dir=.
1690 echo "PATH: $as_dir"
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1714 ac_must_keep_next=false
1720 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722 | -silent | --silent | --silen | --sile | --sil)
1725 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1728 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731 if test $ac_must_keep_next = true; then
1732 ac_must_keep_next=false # Got value, back to normal.
1735 *=* | --config-cache | -C | -disable-* | --disable-* \
1736 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738 | -with-* | --with-* | -without-* | --without-* | --x)
1739 case "$ac_configure_args0 " in
1740 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 -* ) ac_must_keep_next=true ;;
1746 ac_configure_args="$ac_configure_args '$ac_arg'"
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log. We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760 # Save into config.log some information that might help in debugging.
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1770 # The following way of writing the cache mishandles newlines in values,
1772 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1773 eval ac_val=\$$ac_var
1777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1781 _ | IFS | as_nl) ;; #(
1782 *) $as_unset $ac_var ;;
1787 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1788 *${as_nl}ac_space=\ *)
1790 "s/'\''/'\''\\\\'\'''\''/g;
1791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1807 for ac_var in $ac_subst_vars
1809 eval ac_val=\$$ac_var
1811 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 echo "$ac_var='\''$ac_val'\''"
1817 if test -n "$ac_subst_files"; then
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1824 for ac_var in $ac_subst_files
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 echo "$ac_var='\''$ac_val'\''"
1835 if test -s confdefs.h; then
1845 test "$ac_signal" != 0 &&
1846 echo "$as_me: caught signal $ac_signal"
1847 echo "$as_me: exit $exit_status"
1849 rm -f core *.core core.conftest.* &&
1850 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853 for ac_signal in 1 2 13 15; do
1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1861 # Predefined preprocessor variables.
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1895 set x "$ac_default_prefix/share/config.site" \
1896 "$ac_default_prefix/etc/config.site"
1901 if test -r "$ac_site_file"; then
1902 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904 sed 's/^/| /' "$ac_site_file" >&5
1909 if test -r "$cache_file"; then
1910 # Some versions of bash will fail to source /dev/null (special
1911 # files actually), so we avoid doing that.
1912 if test -f "$cache_file"; then
1913 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917 *) . "./$cache_file";;
1921 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1926 ac_header_list="$ac_header_list utime.h"
1927 # Check that the precious variables saved in the cache have kept the same
1929 ac_cache_corrupted=false
1930 for ac_var in $ac_precious_vars; do
1931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1932 eval ac_new_set=\$ac_env_${ac_var}_set
1933 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1934 eval ac_new_val=\$ac_env_${ac_var}_value
1935 case $ac_old_set,$ac_new_set in
1937 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1938 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1941 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1942 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1943 ac_cache_corrupted=: ;;
1946 if test "x$ac_old_val" != "x$ac_new_val"; then
1947 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1949 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1950 echo "$as_me: former value
: $ac_old_val" >&2;}
1951 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1952 echo "$as_me: current value
: $ac_new_val" >&2;}
1953 ac_cache_corrupted=:
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1959 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 if $ac_cache_corrupted; then
1969 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1970 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1971 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1973 { (exit 1); exit 1; }; }
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 # cross-compile macros
2010 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2011 if test -f "$ac_dir/install-sh"; then
2013 ac_install_sh="$ac_aux_dir/install-sh -c"
2015 elif test -f "$ac_dir/install.sh"; then
2017 ac_install_sh="$ac_aux_dir/install.sh -c"
2019 elif test -f "$ac_dir/shtool"; then
2021 ac_install_sh="$ac_aux_dir/shtool install -c"
2025 if test -z "$ac_aux_dir"; then
2026 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2027 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2028 { (exit 1); exit 1; }; }
2031 # These three variables are undocumented and unsupported,
2032 # and are intended to be withdrawn in a future Autoconf release.
2033 # They can cause serious problems if a builder's source tree is in a directory
2034 # whose full name contains unusual characters.
2035 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2036 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2037 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2040 # Make sure we can run config.sub.
2041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2042 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2043 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2044 { (exit 1); exit 1; }; }
2046 { echo "$as_me:$LINENO: checking build system type" >&5
2047 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2048 if test "${ac_cv_build+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 ac_build_alias=$build_alias
2052 test "x$ac_build_alias" = x &&
2053 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2054 test "x$ac_build_alias" = x &&
2055 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2056 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2057 { (exit 1); exit 1; }; }
2058 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2059 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2060 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2061 { (exit 1); exit 1; }; }
2064 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2065 echo "${ECHO_T}$ac_cv_build" >&6; }
2066 case $ac_cv_build in
2068 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2069 echo "$as_me: error: invalid value of canonical build" >&2;}
2070 { (exit 1); exit 1; }; };;
2073 ac_save_IFS=$IFS; IFS='-'
2079 # Remember, the first character of IFS is used to create $*,
2080 # except with old shells:
2083 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2086 { echo "$as_me:$LINENO: checking host system type" >&5
2087 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2088 if test "${ac_cv_host+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test "x$host_alias" = x; then
2092 ac_cv_host=$ac_cv_build
2094 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2095 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2096 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2097 { (exit 1); exit 1; }; }
2101 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2102 echo "${ECHO_T}$ac_cv_host" >&6; }
2105 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2106 echo "$as_me: error: invalid value of canonical host" >&2;}
2107 { (exit 1); exit 1; }; };;
2110 ac_save_IFS=$IFS; IFS='-'
2116 # Remember, the first character of IFS is used to create $*,
2117 # except with old shells:
2120 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2124 # check existence of the package
2127 # specify output header file
2128 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2135 cat >>confdefs.h <<\_ACEOF
2136 #define _GNU_SOURCE 1
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 if test -n "$CC"; then
2175 { echo "$as_me:$LINENO: result: $CC" >&5
2176 echo "${ECHO_T}$CC" >&6; }
2178 { echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6; }
2184 if test -z "$ac_cv_prog_CC"; then
2186 # Extract the first word of "gcc", so it can be a program name with args.
2187 set dummy gcc; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_ac_ct_CC="gcc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2214 if test -n "$ac_ct_CC"; then
2215 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2216 echo "${ECHO_T}$ac_ct_CC" >&6; }
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2222 if test "x$ac_ct_CC" = x; then
2225 case $cross_compiling:$ac_tool_warned in
2227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2228 whose name does not start with the host triplet. If you think this
2229 configuration is useful to you, please write to autoconf@gnu.org." >&5
2230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2231 whose name does not start with the host triplet. If you think this
2232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2233 ac_tool_warned=yes ;;
2241 if test -z "$CC"; then
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}cc; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 ac_cv_prog_CC="${ac_tool_prefix}cc"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 if test -n "$CC"; then
2272 { echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6; }
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2282 if test -z "$CC"; then
2283 # Extract the first word of "cc", so it can be a program name with args.
2284 set dummy cc; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2302 ac_prog_rejected=yes
2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 if test $ac_prog_rejected = yes; then
2314 # We found a bogon in the path, so make sure we never use it.
2315 set dummy $ac_cv_prog_CC
2317 if test $# != 0; then
2318 # We chose a different compiler from the bogus one.
2319 # However, it has the same basename, so the bogon will be chosen
2320 # first if we set CC to just the basename; use the full file name.
2322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2328 if test -n "$CC"; then
2329 { echo "$as_me:$LINENO: result: $CC" >&5
2330 echo "${ECHO_T}$CC" >&6; }
2332 { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2338 if test -z "$CC"; then
2339 if test -n "$ac_tool_prefix"; then
2340 for ac_prog in cl.exe
2342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 if test -n "$CC"; then
2371 { echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6; }
2374 { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2379 test -n "$CC" && break
2382 if test -z "$CC"; then
2384 for ac_prog in cl.exe
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$ac_ct_CC"; then
2394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_ac_ct_CC="$ac_prog"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414 if test -n "$ac_ct_CC"; then
2415 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2416 echo "${ECHO_T}$ac_ct_CC" >&6; }
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2423 test -n "$ac_ct_CC" && break
2426 if test "x$ac_ct_CC" = x; then
2429 case $cross_compiling:$ac_tool_warned in
2431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&5
2434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet. If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2437 ac_tool_warned=yes ;;
2446 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2447 See \`config.log
' for more details." >&5
2448 echo "$as_me: error: no acceptable C compiler found in \$PATH
2449 See \`config.log' for more details.
" >&2;}
2450 { (exit 1); exit 1; }; }
2452 # Provide some information about the compiler.
2453 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2454 ac_compiler=`set X $ac_compile; echo $2`
2455 { (ac_try="$ac_compiler --version >&5"
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compiler --version >&5") 2>&5
2463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2464 (exit $ac_status); }
2465 { (ac_try="$ac_compiler -v >&5"
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_compiler -v >&5") 2>&5
2473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2474 (exit $ac_status); }
2475 { (ac_try="$ac_compiler -V >&5"
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_compiler -V >&5") 2>&5
2483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2484 (exit $ac_status); }
2486 cat >conftest.$ac_ext <<_ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2501 ac_clean_files_save=$ac_clean_files
2502 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2503 # Try to create an executable without -o first, disregard a.out.
2504 # It will help us diagnose broken compilers, and finding out an intuition
2506 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2507 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2508 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2510 # List of possible output files, starting from the most likely.
2511 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2512 # only as a last resort. b.out is created by i960 compilers.
2513 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2515 # The IRIX 6 linker writes into existing files which may not be
2516 # executable, retaining their permissions. Remove them first so a
2517 # subsequent execution test works.
2519 for ac_file in $ac_files
2522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2523 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2528 if { (ac_try="$ac_link_default"
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_link_default") 2>&5
2536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2537 (exit $ac_status); }; then
2538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2539 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2540 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2541 # so that the user can short-circuit this test for compilers unknown to
2543 for ac_file in $ac_files ''
2545 test -f "$ac_file" || continue
2547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2550 # We found the default executable, but exeext='' is most
2554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2558 # We set ac_cv_exeext here because the later test for it is not
2559 # safe: cross compilers may not add the suffix if given an `-o'
2560 # argument, so we may need to know it at that point already.
2561 # Even if this section looks crufty: it has the advantage of
2568 test "$ac_cv_exeext" = no && ac_cv_exeext=
2574 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2575 echo "${ECHO_T}$ac_file" >&6; }
2576 if test -z "$ac_file"; then
2577 echo "$as_me: failed program was
:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2580 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2581 See \
`config.log' for more details." >&5
2582 echo "$as_me: error: C compiler cannot create executables
2583 See \`config.log
' for more details." >&2;}
2584 { (exit 77); exit 77; }; }
2587 ac_exeext=$ac_cv_exeext
2589 # Check that the compiler produces executables we can run. If not, either
2590 # the compiler is broken, or we cross compile.
2591 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2592 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2594 # If not cross compiling, check that we can run a simple program.
2595 if test "$cross_compiling" != yes; then
2596 if { ac_try='.
/$ac_file'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 if test "$cross_compiling" = maybe; then
2611 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2612 If you meant to cross compile, use \`--host'.
2613 See \
`config.log' for more details." >&5
2614 echo "$as_me: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details.
" >&2;}
2617 { (exit 1); exit 1; }; }
2621 { echo "$as_me:$LINENO: result
: yes" >&5
2622 echo "${ECHO_T}yes" >&6; }
2624 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2625 ac_clean_files=$ac_clean_files_save
2626 # Check that the compiler produces executables we can run. If not, either
2627 # the compiler is broken, or we cross compile.
2628 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2629 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2630 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2631 echo "${ECHO_T}$cross_compiling" >&6; }
2633 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2634 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2635 if { (ac_try="$ac_link"
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_link") 2>&5
2643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2644 (exit $ac_status); }; then
2645 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2646 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2647 # work properly (i.e., refer to `conftest.exe'), while it won't with
2649 for ac_file in conftest.exe conftest conftest.*; do
2650 test -f "$ac_file" || continue
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2653 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2659 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2660 See \
`config.log' for more details." >&5
2661 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2662 See \`config.log
' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2666 rm -f conftest$ac_cv_exeext
2667 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2668 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2670 rm -f conftest.$ac_ext
2671 EXEEXT=$ac_cv_exeext
2673 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2674 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2675 if test "${ac_cv_objext+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 rm -f conftest.o conftest.obj
2694 if { (ac_try="$ac_compile"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 for ac_file in conftest.o conftest.obj conftest.*; do
2705 test -f "$ac_file" || continue;
2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2708 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2713 echo "$as_me: failed program was:" >&5
2714 sed 's
/^
/|
/' conftest.$ac_ext >&5
2716 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details.
" >&5
2718 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2719 See \
`config.log' for more details." >&2;}
2720 { (exit 1); exit 1; }; }
2723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2725 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2726 echo "${ECHO_T}$ac_cv_objext" >&6; }
2727 OBJEXT=$ac_cv_objext
2729 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2730 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2731 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 cat >conftest.$ac_ext <<_ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2752 rm -f conftest.$ac_objext
2753 if { (ac_try="$ac_compile"
2755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2756 *) ac_try_echo
=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>conftest.er1
2761 grep -v '^ *+' conftest.er1
>conftest.err
2763 cat conftest.err
>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } && {
2766 test -z "$ac_c_werror_flag" ||
2767 test ! -s conftest.err
2768 } && test -s conftest.
$ac_objext; then
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.
$ac_ext >&5
2777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2778 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2781 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2782 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2783 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2784 ac_test_CFLAGS
=${CFLAGS+set}
2785 ac_save_CFLAGS
=$CFLAGS
2786 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2787 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_cc_g+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 ac_save_c_werror_flag
=$ac_c_werror_flag
2792 ac_c_werror_flag
=yes
2795 cat >conftest.
$ac_ext <<_ACEOF
2798 cat confdefs.h
>>conftest.
$ac_ext
2799 cat >>conftest.
$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2810 rm -f conftest.
$ac_objext
2811 if { (ac_try
="$ac_compile"
2813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compile") 2>conftest.er1
2819 grep -v '^ *+' conftest.er1 >conftest.err
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } && {
2824 test -z "$ac_c_werror_flag" ||
2825 test ! -s conftest.err
2826 } && test -s conftest.$ac_objext; then
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2848 rm -f conftest.$ac_objext
2849 if { (ac_try="$ac_compile"
2851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2852 *) ac_try_echo
=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compile") 2>conftest.er1
2857 grep -v '^ *+' conftest.er1
>conftest.err
2859 cat conftest.err
>&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest.
$ac_objext; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.
$ac_ext >&5
2870 ac_c_werror_flag
=$ac_save_c_werror_flag
2872 cat >conftest.
$ac_ext <<_ACEOF
2875 cat confdefs.h
>>conftest.
$ac_ext
2876 cat >>conftest.
$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2887 rm -f conftest.
$ac_objext
2888 if { (ac_try
="$ac_compile"
2890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compile") 2>conftest.er1
2896 grep -v '^ *+' conftest.er1 >conftest.err
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919 ac_c_werror_flag=$ac_save_c_werror_flag
2921 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2922 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2923 if test "$ac_test_CFLAGS" = set; then
2924 CFLAGS=$ac_save_CFLAGS
2925 elif test $ac_cv_prog_cc_g = yes; then
2926 if test "$GCC" = yes; then
2932 if test "$GCC" = yes; then
2938 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2939 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_cc_c89+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 ac_cv_prog_cc_c89=no
2945 cat >conftest.$ac_ext <<_ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2953 #include <sys/types.h>
2954 #include <sys/stat.h>
2955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2956 struct buf { int x; };
2957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2958 static char *e (p, i)
2964 static char *f (char * (*g) (char **, int), char **p, ...)
2969 s = g (p, va_arg (v,int));
2974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2975 function prototypes and stuff, but not '\xHH' hex character constants.
2976 These don't provoke an error unfortunately, instead are silently treated
2977 as 'x'. The following induces an error, until -std is added to get
2978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2979 array size at least. It's necessary to write '\x00'==0 to get something
2980 that's true only with -std. */
2981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2984 inside strings and character constants. */
2986 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988 int test (int i, double x);
2989 struct s1 {int (*f) (int a);};
2990 struct s2 {int (*f) (double a);};
2991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2997 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3002 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005 CC="$ac_save_CC $ac_arg"
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3010 *) ac_try_echo
=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3015 grep -v '^ *+' conftest.er1
>conftest.err
3017 cat conftest.err
>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest.
$ac_objext; then
3023 ac_cv_prog_cc_c89
=$ac_arg
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.
$ac_ext >&5
3031 rm -f core conftest.err conftest.
$ac_objext
3032 test "x$ac_cv_prog_cc_c89" != "xno" && break
3034 rm -f conftest.
$ac_ext
3039 case "x$ac_cv_prog_cc_c89" in
3041 { echo "$as_me:$LINENO: result: none needed" >&5
3042 echo "${ECHO_T}none needed" >&6; } ;;
3044 { echo "$as_me:$LINENO: result: unsupported" >&5
3045 echo "${ECHO_T}unsupported" >&6; } ;;
3047 CC
="$CC $ac_cv_prog_cc_c89"
3048 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3049 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3054 ac_cpp
='$CPP $CPPFLAGS'
3055 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3061 ac_cpp
='$CPP $CPPFLAGS'
3062 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3065 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3067 # On Suns, sometimes $CPP names a directory.
3068 if test -n "$CPP" && test -d "$CPP"; then
3071 if test -z "$CPP"; then
3072 if test "${ac_cv_prog_CPP+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 # Double quotes because CPP needs to be expanded
3076 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3079 for ac_c_preproc_warn_flag
in '' yes
3081 # Use a header file that comes with gcc, so configuring glibc
3082 # with a fresh cross-compiler works.
3083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084 # <limits.h> exists even on freestanding compilers.
3085 # On the NeXT, cc -E runs the code through the compiler's parser,
3086 # not just through cpp. "Syntax error" is here to catch this case.
3087 cat >conftest.
$ac_ext <<_ACEOF
3090 cat confdefs.h
>>conftest.
$ac_ext
3091 cat >>conftest.
$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3094 # include <limits.h>
3096 # include <assert.h>
3100 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } >/dev/null && {
3113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3114 test ! -s conftest.err
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 # Broken: fails on valid input.
3125 rm -f conftest.err conftest.$ac_ext
3127 # OK, works on sane cases. Now check whether nonexistent headers
3128 # can be detected and how.
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <ac_nonexistent.h>
3137 if { (ac_try="$ac_cpp conftest.$ac_ext"
3139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3140 *) ac_try_echo
=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1
>conftest.err
3147 cat conftest.err
>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } >/dev
/null
&& {
3150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3151 test ! -s conftest.err
3153 # Broken: success on invalid input.
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.
$ac_ext >&5
3159 # Passes both tests.
3164 rm -f conftest.err conftest.
$ac_ext
3167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3168 rm -f conftest.err conftest.
$ac_ext
3169 if $ac_preproc_ok; then
3181 { echo "$as_me:$LINENO: result: $CPP" >&5
3182 echo "${ECHO_T}$CPP" >&6; }
3184 for ac_c_preproc_warn_flag
in '' yes
3186 # Use a header file that comes with gcc, so configuring glibc
3187 # with a fresh cross-compiler works.
3188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3189 # <limits.h> exists even on freestanding compilers.
3190 # On the NeXT, cc -E runs the code through the compiler's parser,
3191 # not just through cpp. "Syntax error" is here to catch this case.
3192 cat >conftest.
$ac_ext <<_ACEOF
3195 cat confdefs.h
>>conftest.
$ac_ext
3196 cat >>conftest.
$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3199 # include <limits.h>
3201 # include <assert.h>
3205 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3213 grep -v '^ *+' conftest.er1 >conftest.err
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } >/dev/null && {
3218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3219 test ! -s conftest.err
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 # Broken: fails on valid input.
3230 rm -f conftest.err conftest.$ac_ext
3232 # OK, works on sane cases. Now check whether nonexistent headers
3233 # can be detected and how.
3234 cat >conftest.$ac_ext <<_ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3240 #include <ac_nonexistent.h>
3242 if { (ac_try="$ac_cpp conftest.$ac_ext"
3244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3245 *) ac_try_echo
=$ac_try;;
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3250 grep -v '^ *+' conftest.er1
>conftest.err
3252 cat conftest.err
>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev
/null
&& {
3255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3256 test ! -s conftest.err
3258 # Broken: success on invalid input.
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.
$ac_ext >&5
3264 # Passes both tests.
3269 rm -f conftest.err conftest.
$ac_ext
3272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3273 rm -f conftest.err conftest.
$ac_ext
3274 if $ac_preproc_ok; then
3277 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3278 See \`config.log' for more details." >&5
3279 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3280 See \`config.log' for more details." >&2;}
3281 { (exit 1); exit 1; }; }
3285 ac_cpp
='$CPP $CPPFLAGS'
3286 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3291 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3292 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3293 if test "${ac_cv_path_GREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 # Extract the first word of "grep ggrep" to use in msg output
3297 if test -z "$GREP"; then
3298 set dummy
grep ggrep
; ac_prog_name
=$2
3299 if test "${ac_cv_path_GREP+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 ac_path_GREP_found
=false
3303 # Loop through the user's path and test for each of PROGNAME-LIST
3304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3305 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3308 test -z "$as_dir" && as_dir
=.
3309 for ac_prog
in grep ggrep
; do
3310 for ac_exec_ext
in '' $ac_executable_extensions; do
3311 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3312 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3313 # Check for GNU ac_path_GREP and select it if it is found.
3314 # Check for GNU $ac_path_GREP
3315 case `"$ac_path_GREP" --version 2>&1` in
3317 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3320 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3323 cat "conftest.in" "conftest.in" >"conftest.tmp"
3324 mv "conftest.tmp" "conftest.in"
3325 cp "conftest.in" "conftest.nl"
3326 echo 'GREP' >> "conftest.nl"
3327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3328 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3329 ac_count
=`expr $ac_count + 1`
3330 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3331 # Best one so far, save it but keep looking for a better one
3332 ac_cv_path_GREP
="$ac_path_GREP"
3333 ac_path_GREP_max
=$ac_count
3335 # 10*(2^10) chars as input seems more than enough
3336 test $ac_count -gt 10 && break
3338 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3342 $ac_path_GREP_found && break 3
3352 GREP
="$ac_cv_path_GREP"
3353 if test -z "$GREP"; then
3354 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3355 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3356 { (exit 1); exit 1; }; }
3360 ac_cv_path_GREP
=$GREP
3365 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3366 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3367 GREP
="$ac_cv_path_GREP"
3370 { echo "$as_me:$LINENO: checking for egrep" >&5
3371 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3372 if test "${ac_cv_path_EGREP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3376 then ac_cv_path_EGREP
="$GREP -E"
3378 # Extract the first word of "egrep" to use in msg output
3379 if test -z "$EGREP"; then
3380 set dummy
egrep; ac_prog_name
=$2
3381 if test "${ac_cv_path_EGREP+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 ac_path_EGREP_found
=false
3385 # Loop through the user's path and test for each of PROGNAME-LIST
3386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3387 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3390 test -z "$as_dir" && as_dir
=.
3391 for ac_prog
in egrep; do
3392 for ac_exec_ext
in '' $ac_executable_extensions; do
3393 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3394 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3395 # Check for GNU ac_path_EGREP and select it if it is found.
3396 # Check for GNU $ac_path_EGREP
3397 case `"$ac_path_EGREP" --version 2>&1` in
3399 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3402 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3405 cat "conftest.in" "conftest.in" >"conftest.tmp"
3406 mv "conftest.tmp" "conftest.in"
3407 cp "conftest.in" "conftest.nl"
3408 echo 'EGREP' >> "conftest.nl"
3409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3410 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3411 ac_count
=`expr $ac_count + 1`
3412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3413 # Best one so far, save it but keep looking for a better one
3414 ac_cv_path_EGREP
="$ac_path_EGREP"
3415 ac_path_EGREP_max
=$ac_count
3417 # 10*(2^10) chars as input seems more than enough
3418 test $ac_count -gt 10 && break
3420 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3424 $ac_path_EGREP_found && break 3
3434 EGREP
="$ac_cv_path_EGREP"
3435 if test -z "$EGREP"; then
3436 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3437 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3438 { (exit 1); exit 1; }; }
3442 ac_cv_path_EGREP
=$EGREP
3448 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3449 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3450 EGREP
="$ac_cv_path_EGREP"
3454 { echo "$as_me:$LINENO: checking for AIX" >&5
3455 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3456 cat >conftest.
$ac_ext <<_ACEOF
3459 cat confdefs.h
>>conftest.
$ac_ext
3460 cat >>conftest.
$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3468 $EGREP "yes" >/dev
/null
2>&1; then
3469 { echo "$as_me:$LINENO: result: yes" >&5
3470 echo "${ECHO_T}yes" >&6; }
3471 cat >>confdefs.h
<<\_ACEOF
3472 #define _ALL_SOURCE 1
3476 { echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6; }
3482 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3483 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3484 if test "${ac_cv_header_stdc+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 cat >conftest.
$ac_ext <<_ACEOF
3490 cat confdefs.h
>>conftest.
$ac_ext
3491 cat >>conftest.
$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3506 rm -f conftest.
$ac_objext
3507 if { (ac_try
="$ac_compile"
3509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_compile") 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } && {
3520 test -z "$ac_c_werror_flag" ||
3521 test ! -s conftest.err
3522 } && test -s conftest.$ac_objext; then
3523 ac_cv_header_stdc=yes
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 ac_cv_header_stdc=no
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 if test $ac_cv_header_stdc = yes; then
3534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3545 $EGREP "memchr" >/dev/null 2>&1; then
3548 ac_cv_header_stdc=no
3554 if test $ac_cv_header_stdc = yes; then
3555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3566 $EGREP "free" >/dev/null 2>&1; then
3569 ac_cv_header_stdc=no
3575 if test $ac_cv_header_stdc = yes; then
3576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3577 if test "$cross_compiling" = yes; then
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3588 #if ((' ' & 0x0FF) == 0x020)
3589 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3590 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3592 # define ISLOWER(c) \
3593 (('a' <= (c) && (c) <= 'i') \
3594 || ('j' <= (c) && (c) <= 'r') \
3595 || ('s' <= (c) && (c) <= 'z'))
3596 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3604 for (i = 0; i < 256; i++)
3605 if (XOR (islower (i), ISLOWER (i))
3606 || toupper (i) != TOUPPER (i))
3611 rm -f conftest$ac_exeext
3612 if { (ac_try="$ac_link"
3614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3615 *) ac_try_echo
=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_link") 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3622 { (case "(($ac_try" in
3623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_try") 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; }; then
3633 echo "$as_me: program exited with status $ac_status" >&5
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3638 ac_cv_header_stdc=no
3640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3646 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3647 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3648 if test $ac_cv_header_stdc = yes; then
3650 cat >>confdefs.h <<\_ACEOF
3651 #define STDC_HEADERS 1
3656 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3666 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3667 inttypes.h stdint.h unistd.h
3669 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 cat >conftest.$ac_ext <<_ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681 $ac_includes_default
3683 #include <$ac_header>
3685 rm -f conftest.$ac_objext
3686 if { (ac_try="$ac_compile"
3688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3689 *) ac_try_echo
=$ac_try;;
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_compile") 2>conftest.er1
3694 grep -v '^ *+' conftest.er1
>conftest.err
3696 cat conftest.err
>&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } && {
3699 test -z "$ac_c_werror_flag" ||
3700 test ! -s conftest.err
3701 } && test -s conftest.
$ac_objext; then
3702 eval "$as_ac_Header=yes"
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.
$ac_ext >&5
3707 eval "$as_ac_Header=no"
3710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3712 ac_res
=`eval echo '${'$as_ac_Header'}'`
3713 { echo "$as_me:$LINENO: result: $ac_res" >&5
3714 echo "${ECHO_T}$ac_res" >&6; }
3715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3716 cat >>confdefs.h
<<_ACEOF
3717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3725 if test "${ac_cv_header_minix_config_h+set}" = set; then
3726 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3727 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3728 if test "${ac_cv_header_minix_config_h+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3732 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3734 # Is the header compilable?
3735 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3736 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3737 cat >conftest.
$ac_ext <<_ACEOF
3740 cat confdefs.h
>>conftest.
$ac_ext
3741 cat >>conftest.
$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 $ac_includes_default
3744 #include <minix/config.h>
3746 rm -f conftest.
$ac_objext
3747 if { (ac_try
="$ac_compile"
3749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3753 (eval "$ac_compile") 2>conftest.er1
3755 grep -v '^ *+' conftest.er1 >conftest.err
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } && {
3760 test -z "$ac_c_werror_flag" ||
3761 test ! -s conftest.err
3762 } && test -s conftest.$ac_objext; then
3763 ac_header_compiler=yes
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3768 ac_header_compiler=no
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3773 echo "${ECHO_T}$ac_header_compiler" >&6; }
3775 # Is the header present?
3776 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3777 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3778 cat >conftest.$ac_ext <<_ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 #include <minix/config.h>
3786 if { (ac_try="$ac_cpp conftest.$ac_ext"
3788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3789 *) ac_try_echo
=$ac_try;;
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3794 grep -v '^ *+' conftest.er1
>conftest.err
3796 cat conftest.err
>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } >/dev
/null
&& {
3799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3802 ac_header_preproc
=yes
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.
$ac_ext >&5
3807 ac_header_preproc
=no
3810 rm -f conftest.err conftest.
$ac_ext
3811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3812 echo "${ECHO_T}$ac_header_preproc" >&6; }
3814 # So? What about this header?
3815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3817 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3818 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3819 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3820 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3821 ac_header_preproc
=yes
3824 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3825 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3827 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3829 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3830 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3831 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3832 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3833 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3834 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3835 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3837 ## ------------------------------- ##
3838 ## Report this to www.asterisk.org ##
3839 ## ------------------------------- ##
3841 ) |
sed "s/^/$as_me: WARNING: /" >&2
3844 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3845 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3846 if test "${ac_cv_header_minix_config_h+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 ac_cv_header_minix_config_h
=$ac_header_preproc
3851 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3852 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3855 if test $ac_cv_header_minix_config_h = yes; then
3862 if test "$MINIX" = yes; then
3864 cat >>confdefs.h
<<\_ACEOF
3865 #define _POSIX_SOURCE 1
3869 cat >>confdefs.h
<<\_ACEOF
3870 #define _POSIX_1_SOURCE 2
3874 cat >>confdefs.h
<<\_ACEOF
3890 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3891 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3892 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 cat >conftest.
$ac_ext <<_ACEOF
3898 cat confdefs.h
>>conftest.
$ac_ext
3899 cat >>conftest.
$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3902 # define __EXTENSIONS__ 1
3903 $ac_includes_default
3912 rm -f conftest.
$ac_objext
3913 if { (ac_try
="$ac_compile"
3915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3929 ac_cv_safe_to_define___extensions__=yes
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 ac_cv_safe_to_define___extensions__=no
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3940 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3941 test $ac_cv_safe_to_define___extensions__ = yes &&
3942 cat >>confdefs.h <<\_ACEOF
3943 #define __EXTENSIONS__ 1
3946 cat >>confdefs.h <<\_ACEOF
3947 #define _POSIX_PTHREAD_SEMANTICS 1
3950 cat >>confdefs.h <<\_ACEOF
3951 #define _TANDEM_SOURCE 1
3954 # note- does not work on FreeBSD
3956 case "${host_os}" in
3958 ac_default_prefix=/usr/local
3959 CPPFLAGS=-I/usr/local/include
3960 LDFLAGS=-L/usr/local/lib
3963 ac_default_prefix=/usr
3964 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
3965 if test ${sysconfdir} = '${prefix}/etc'; then
3968 if test ${mandir} = '${prefix}/man'; then
3969 mandir=/usr/share/man
3975 if test ${localstatedir} = '${prefix}/var'; then
3979 BUILD_PLATFORM=${build}
3980 BUILD_CPU=${build_cpu}
3981 BUILD_VENDOR=${build_vendor}
3982 BUILD_OS=${build_os}
3989 HOST_PLATFORM=${host}
3990 HOST_CPU=${host_cpu}
3991 HOST_VENDOR=${host_vendor}
3999 case "${host_os}" in
4020 if test -n "$ac_tool_prefix"; then
4021 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4022 set dummy ${ac_tool_prefix}uname; ac_word=$2
4023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4025 if test "${ac_cv_path_UNAME+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4040 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 UNAME=$ac_cv_path_UNAME
4052 if test -n "$UNAME"; then
4053 { echo "$as_me:$LINENO: result: $UNAME" >&5
4054 echo "${ECHO_T}$UNAME" >&6; }
4056 { echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6; }
4062 if test -z "$ac_cv_path_UNAME"; then
4064 # Extract the first word of "uname", so it can be a program name with args.
4065 set dummy uname; ac_word=$2
4066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4068 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 case $ac_pt_UNAME in
4073 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4095 if test -n "$ac_pt_UNAME"; then
4096 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4097 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4099 { echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6; }
4103 if test "x$ac_pt_UNAME" = x; then
4106 case $cross_compiling:$ac_tool_warned in
4108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4109 whose name does not start with the host triplet. If you think this
4110 configuration is useful to you, please write to autoconf@gnu.org." >&5
4111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4112 whose name does not start with the host triplet. If you think this
4113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4114 ac_tool_warned=yes ;;
4119 UNAME="$ac_cv_path_UNAME"
4122 if test ! x"${UNAME}" = xNo; then
4123 PBX_OSREV=$(${UNAME} -r)
4133 # cross-compile checks
4134 if test "${cross_compiling}" = "yes";
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_CC+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 if test -n "$CC"; then
4166 { echo "$as_me:$LINENO: result: $CC" >&5
4167 echo "${ECHO_T}$CC" >&6; }
4169 { echo "$as_me:$LINENO: result: no" >&5
4170 echo "${ECHO_T}no" >&6; }
4175 if test -z "$ac_cv_prog_CC"; then
4177 # Extract the first word of "gcc", so it can be a program name with args.
4178 set dummy gcc; ac_word=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 if test -n "$ac_ct_CC"; then
4185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_ac_ct_CC="gcc"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4205 if test -n "$ac_ct_CC"; then
4206 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4207 echo "${ECHO_T}$ac_ct_CC" >&6; }
4209 { echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6; }
4213 if test "x$ac_ct_CC" = x; then
4216 case $cross_compiling:$ac_tool_warned in
4218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4219 whose name does not start with the host triplet. If you think this
4220 configuration is useful to you, please write to autoconf@gnu.org." >&5
4221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4222 whose name does not start with the host triplet. If you think this
4223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4224 ac_tool_warned=yes ;;
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4234 set dummy ${ac_tool_prefix}g++; ac_word=$2
4235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4237 if test "${ac_cv_prog_CXX+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 if test -n "$CXX"; then
4241 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 if test -n "$CXX"; then
4262 { echo "$as_me:$LINENO: result: $CXX" >&5
4263 echo "${ECHO_T}$CXX" >&6; }
4265 { echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6; }
4271 if test -z "$ac_cv_prog_CXX"; then
4273 # Extract the first word of "g++", so it can be a program name with args.
4274 set dummy g++; ac_word=$2
4275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4277 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 if test -n "$ac_ct_CXX"; then
4281 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_ac_ct_CXX="g++"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4301 if test -n "$ac_ct_CXX"; then
4302 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4303 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4305 { echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6; }
4309 if test "x$ac_ct_CXX" = x; then
4312 case $cross_compiling:$ac_tool_warned in
4314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4315 whose name does not start with the host triplet. If you think this
4316 configuration is useful to you, please write to autoconf@gnu.org." >&5
4317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4318 whose name does not start with the host triplet. If you think this
4319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4320 ac_tool_warned=yes ;;
4325 CXX="$ac_cv_prog_CXX"
4328 if test -n "$ac_tool_prefix"; then
4329 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4330 set dummy ${ac_tool_prefix}ld; ac_word=$2
4331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4333 if test "${ac_cv_prog_LD+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 if test -n "$LD"; then
4337 ac_cv_prog_LD="$LD" # Let the user override the test.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_prog_LD="${ac_tool_prefix}ld"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 if test -n "$LD"; then
4358 { echo "$as_me:$LINENO: result: $LD" >&5
4359 echo "${ECHO_T}$LD" >&6; }
4361 { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4367 if test -z "$ac_cv_prog_LD"; then
4369 # Extract the first word of "ld", so it can be a program name with args.
4370 set dummy ld; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 if test -n "$ac_ct_LD"; then
4377 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_ac_ct_LD="ld"
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4397 if test -n "$ac_ct_LD"; then
4398 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4399 echo "${ECHO_T}$ac_ct_LD" >&6; }
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4405 if test "x$ac_ct_LD" = x; then
4408 case $cross_compiling:$ac_tool_warned in
4410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4411 whose name does not start with the host triplet. If you think this
4412 configuration is useful to you, please write to autoconf@gnu.org." >&5
4413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4414 whose name does not start with the host triplet. If you think this
4415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4416 ac_tool_warned=yes ;;
4424 if test -n "$ac_tool_prefix"; then
4425 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4426 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_RANLIB+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$RANLIB"; then
4433 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 RANLIB=$ac_cv_prog_RANLIB
4453 if test -n "$RANLIB"; then
4454 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4455 echo "${ECHO_T}$RANLIB" >&6; }
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4463 if test -z "$ac_cv_prog_RANLIB"; then
4464 ac_ct_RANLIB=$RANLIB
4465 # Extract the first word of "ranlib", so it can be a program name with args.
4466 set dummy ranlib; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$ac_ct_RANLIB"; then
4473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_ac_ct_RANLIB="ranlib"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4493 if test -n "$ac_ct_RANLIB"; then
4494 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4495 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4501 if test "x$ac_ct_RANLIB" = x; then
4504 case $cross_compiling:$ac_tool_warned in
4506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4507 whose name does not start with the host triplet. If you think this
4508 configuration is useful to you, please write to autoconf@gnu.org." >&5
4509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4510 whose name does not start with the host triplet. If you think this
4511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4512 ac_tool_warned=yes ;;
4514 RANLIB=$ac_ct_RANLIB
4517 RANLIB="$ac_cv_prog_RANLIB"
4522 # Checks for programs.
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528 if test -n "$ac_tool_prefix"; then
4529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_CC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 if test -n "$CC"; then
4537 ac_cv_prog_CC="$CC" # Let the user override the test.
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 if test -n "$CC"; then
4558 { echo "$as_me:$LINENO: result: $CC" >&5
4559 echo "${ECHO_T}$CC" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4567 if test -z "$ac_cv_prog_CC"; then
4569 # Extract the first word of "gcc", so it can be a program name with args.
4570 set dummy gcc; ac_word=$2
4571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 if test -n "$ac_ct_CC"; then
4577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_CC="gcc"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4597 if test -n "$ac_ct_CC"; then
4598 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4599 echo "${ECHO_T}$ac_ct_CC" >&6; }
4601 { echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6; }
4605 if test "x$ac_ct_CC" = x; then
4608 case $cross_compiling:$ac_tool_warned in
4610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4611 whose name does not start with the host triplet. If you think this
4612 configuration is useful to you, please write to autoconf@gnu.org." >&5
4613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4614 whose name does not start with the host triplet. If you think this
4615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4616 ac_tool_warned=yes ;;
4624 if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4627 set dummy ${ac_tool_prefix}cc; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_CC+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4643 ac_cv_prog_CC="${ac_tool_prefix}cc"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 if test -n "$CC"; then
4655 { echo "$as_me:$LINENO: result: $CC" >&5
4656 echo "${ECHO_T}$CC" >&6; }
4658 { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4665 if test -z "$CC"; then
4666 # Extract the first word of "cc", so it can be a program name with args.
4667 set dummy cc; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_CC+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 if test -n "$CC"; then
4674 ac_cv_prog_CC="$CC" # Let the user override the test.
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4685 ac_prog_rejected=yes
4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 if test $ac_prog_rejected = yes; then
4697 # We found a bogon in the path, so make sure we never use it.
4698 set dummy $ac_cv_prog_CC
4700 if test $# != 0; then
4701 # We chose a different compiler from the bogus one.
4702 # However, it has the same basename, so the bogon will be chosen
4703 # first if we set CC to just the basename; use the full file name.
4705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4711 if test -n "$CC"; then
4712 { echo "$as_me:$LINENO: result: $CC" >&5
4713 echo "${ECHO_T}$CC" >&6; }
4715 { echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6; }
4721 if test -z "$CC"; then
4722 if test -n "$ac_tool_prefix"; then
4723 for ac_prog in cl.exe
4725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 if test -n "$CC"; then
4754 { echo "$as_me:$LINENO: result: $CC" >&5
4755 echo "${ECHO_T}$CC" >&6; }
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4762 test -n "$CC" && break
4765 if test -z "$CC"; then
4767 for ac_prog in cl.exe
4769 # Extract the first word of "$ac_prog", so it can be a program name with args.
4770 set dummy $ac_prog; ac_word=$2
4771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 if test -n "$ac_ct_CC"; then
4777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_ac_ct_CC="$ac_prog"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4797 if test -n "$ac_ct_CC"; then
4798 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4799 echo "${ECHO_T}$ac_ct_CC" >&6; }
4801 { echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6; }
4806 test -n "$ac_ct_CC" && break
4809 if test "x$ac_ct_CC" = x; then
4812 case $cross_compiling:$ac_tool_warned in
4814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4815 whose name does not start with the host triplet. If you think this
4816 configuration is useful to you, please write to autoconf@gnu.org." >&5
4817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4818 whose name does not start with the host triplet. If you think this
4819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4820 ac_tool_warned=yes ;;
4829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4830 See \`config.log
' for more details." >&5
4831 echo "$as_me: error: no acceptable C compiler found in \$PATH
4832 See \`config.log' for more details.
" >&2;}
4833 { (exit 1); exit 1; }; }
4835 # Provide some information about the compiler.
4836 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4837 ac_compiler=`set X $ac_compile; echo $2`
4838 { (ac_try="$ac_compiler --version >&5"
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_compiler --version >&5") 2>&5
4846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4847 (exit $ac_status); }
4848 { (ac_try="$ac_compiler -v >&5"
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_compiler -v >&5") 2>&5
4856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4857 (exit $ac_status); }
4858 { (ac_try="$ac_compiler -V >&5"
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_compiler -V >&5") 2>&5
4866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4867 (exit $ac_status); }
4869 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4870 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4872 echo $ECHO_N "(cached
) $ECHO_C" >&6
4874 cat >conftest.$ac_ext <<_ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4892 rm -f conftest.$ac_objext
4893 if { (ac_try="$ac_compile"
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4911 echo "$as_me: failed program was
:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4921 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4922 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4923 GCC=`test $ac_compiler_gnu = yes && echo yes`
4924 ac_test_CFLAGS=${CFLAGS+set}
4925 ac_save_CFLAGS=$CFLAGS
4926 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4927 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4928 if test "${ac_cv_prog_cc_g+set}" = set; then
4929 echo $ECHO_N "(cached
) $ECHO_C" >&6
4931 ac_save_c_werror_flag=$ac_c_werror_flag
4932 ac_c_werror_flag=yes
4935 cat >conftest.$ac_ext <<_ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4950 rm -f conftest.$ac_objext
4951 if { (ac_try="$ac_compile"
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4957 (eval "$ac_compile") 2>conftest.er1
4959 grep -v '^ *+' conftest.er1 >conftest.err
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4963 (exit $ac_status); } && {
4964 test -z "$ac_c_werror_flag" ||
4965 test ! -s conftest.err
4966 } && test -s conftest.$ac_objext; then
4969 echo "$as_me: failed program was
:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4988 rm -f conftest.$ac_objext
4989 if { (ac_try="$ac_compile"
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_compile") 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest.$ac_objext; then
5007 echo "$as_me: failed program was
:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5010 ac_c_werror_flag=$ac_save_c_werror_flag
5012 cat >conftest.$ac_ext <<_ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5027 rm -f conftest.$ac_objext
5028 if { (ac_try="$ac_compile"
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_compile") 2>conftest.er1
5036 grep -v '^ *+' conftest.er1 >conftest.err
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5040 (exit $ac_status); } && {
5041 test -z "$ac_c_werror_flag" ||
5042 test ! -s conftest.err
5043 } && test -s conftest.$ac_objext; then
5046 echo "$as_me: failed program was
:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059 ac_c_werror_flag=$ac_save_c_werror_flag
5061 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5062 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5063 if test "$ac_test_CFLAGS" = set; then
5064 CFLAGS=$ac_save_CFLAGS
5065 elif test $ac_cv_prog_cc_g = yes; then
5066 if test "$GCC" = yes; then
5072 if test "$GCC" = yes; then
5078 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5079 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5080 if test "${ac_cv_prog_cc_c89+set}" = set; then
5081 echo $ECHO_N "(cached
) $ECHO_C" >&6
5083 ac_cv_prog_cc_c89=no
5085 cat >conftest.$ac_ext <<_ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5093 #include <sys/types.h>
5094 #include <sys/stat.h>
5095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5096 struct buf { int x; };
5097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5098 static char *e (p, i)
5104 static char *f (char * (*g) (char **, int), char **p, ...)
5109 s = g (p, va_arg (v,int));
5114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5115 function prototypes and stuff, but not '\xHH' hex character constants.
5116 These don't provoke an error unfortunately, instead are silently treated
5117 as 'x'. The following induces an error, until -std is added to get
5118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5119 array size at least. It's necessary to write '\x00'==0 to get something
5120 that's true only with -std. */
5121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5124 inside strings and character constants. */
5126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5128 int test (int i, double x);
5129 struct s1 {int (*f) (int a);};
5130 struct s2 {int (*f) (double a);};
5131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5145 CC="$ac_save_CC $ac_arg"
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5163 ac_cv_prog_cc_c89=$ac_arg
5165 echo "$as_me: failed program was
:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5171 rm -f core conftest.err conftest.$ac_objext
5172 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5174 rm -f conftest.$ac_ext
5179 case "x
$ac_cv_prog_cc_c89" in
5181 { echo "$as_me:$LINENO: result
: none needed
" >&5
5182 echo "${ECHO_T}none needed
" >&6; } ;;
5184 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5185 echo "${ECHO_T}unsupported
" >&6; } ;;
5187 CC="$CC $ac_cv_prog_cc_c89"
5188 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5189 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5194 ac_cpp='$CPP $CPPFLAGS'
5195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200 ac_cpp='$CXXCPP $CPPFLAGS'
5201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5204 if test -z "$CXX"; then
5205 if test -n "$CCC"; then
5208 if test -n "$ac_tool_prefix"; then
5209 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5214 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5215 if test "${ac_cv_prog_CXX+set}" = set; then
5216 echo $ECHO_N "(cached
) $ECHO_C" >&6
5218 if test -n "$CXX"; then
5219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5229 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5239 if test -n "$CXX"; then
5240 { echo "$as_me:$LINENO: result
: $CXX" >&5
5241 echo "${ECHO_T}$CXX" >&6; }
5243 { echo "$as_me:$LINENO: result
: no
" >&5
5244 echo "${ECHO_T}no
" >&6; }
5248 test -n "$CXX" && break
5251 if test -z "$CXX"; then
5253 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5255 # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5258 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5259 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5260 echo $ECHO_N "(cached
) $ECHO_C" >&6
5262 if test -n "$ac_ct_CXX"; then
5263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_ac_ct_CXX="$ac_prog"
5273 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5282 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5283 if test -n "$ac_ct_CXX"; then
5284 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5285 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5287 { echo "$as_me:$LINENO: result
: no
" >&5
5288 echo "${ECHO_T}no
" >&6; }
5292 test -n "$ac_ct_CXX" && break
5295 if test "x
$ac_ct_CXX" = x; then
5298 case $cross_compiling:$ac_tool_warned in
5300 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5301 whose name does not start with the
host triplet. If you think this
5302 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5303 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5304 whose name does not start with the
host triplet. If you think this
5305 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5306 ac_tool_warned=yes ;;
5314 # Provide some information about the compiler.
5315 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5316 ac_compiler=`set X $ac_compile; echo $2`
5317 { (ac_try="$ac_compiler --version >&5"
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_compiler --version >&5") 2>&5
5325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5326 (exit $ac_status); }
5327 { (ac_try="$ac_compiler -v >&5"
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compiler -v >&5") 2>&5
5335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5336 (exit $ac_status); }
5337 { (ac_try="$ac_compiler -V >&5"
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_compiler -V >&5") 2>&5
5345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5346 (exit $ac_status); }
5348 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5349 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5350 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5351 echo $ECHO_N "(cached
) $ECHO_C" >&6
5353 cat >conftest.$ac_ext <<_ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5371 rm -f conftest.$ac_objext
5372 if { (ac_try="$ac_compile"
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_cxx_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5390 echo "$as_me: failed program was
:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5400 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5401 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5402 GXX=`test $ac_compiler_gnu = yes && echo yes`
5403 ac_test_CXXFLAGS=${CXXFLAGS+set}
5404 ac_save_CXXFLAGS=$CXXFLAGS
5405 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5406 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5407 if test "${ac_cv_prog_cxx_g+set}" = set; then
5408 echo $ECHO_N "(cached
) $ECHO_C" >&6
5410 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5411 ac_cxx_werror_flag=yes
5414 cat >conftest.$ac_ext <<_ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5429 rm -f conftest.$ac_objext
5430 if { (ac_try="$ac_compile"
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_compile") 2>conftest.er1
5438 grep -v '^ *+' conftest.er1 >conftest.err
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5442 (exit $ac_status); } && {
5443 test -z "$ac_cxx_werror_flag" ||
5444 test ! -s conftest.err
5445 } && test -s conftest.$ac_objext; then
5446 ac_cv_prog_cxx_g=yes
5448 echo "$as_me: failed program was
:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5467 rm -f conftest.$ac_objext
5468 if { (ac_try="$ac_compile"
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compile") 2>conftest.er1
5476 grep -v '^ *+' conftest.er1 >conftest.err
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5480 (exit $ac_status); } && {
5481 test -z "$ac_cxx_werror_flag" ||
5482 test ! -s conftest.err
5483 } && test -s conftest.$ac_objext; then
5486 echo "$as_me: failed program was
:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5491 cat >conftest.$ac_ext <<_ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5506 rm -f conftest.$ac_objext
5507 if { (ac_try="$ac_compile"
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compile") 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_cxx_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest.$ac_objext; then
5523 ac_cv_prog_cxx_g=yes
5525 echo "$as_me: failed program was
:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5540 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5541 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5542 if test "$ac_test_CXXFLAGS" = set; then
5543 CXXFLAGS=$ac_save_CXXFLAGS
5544 elif test $ac_cv_prog_cxx_g = yes; then
5545 if test "$GXX" = yes; then
5551 if test "$GXX" = yes; then
5558 ac_cpp='$CPP $CPPFLAGS'
5559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564 ac_cpp='$CPP $CPPFLAGS'
5565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5568 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5569 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5570 # On Suns, sometimes $CPP names a directory.
5571 if test -n "$CPP" && test -d "$CPP"; then
5574 if test -z "$CPP"; then
5575 if test "${ac_cv_prog_CPP+set}" = set; then
5576 echo $ECHO_N "(cached
) $ECHO_C" >&6
5578 # Double quotes because CPP needs to be expanded
5579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5582 for ac_c_preproc_warn_flag in '' yes
5584 # Use a header file that comes with gcc, so configuring glibc
5585 # with a fresh cross-compiler works.
5586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5587 # <limits.h> exists even on freestanding compilers.
5588 # On the NeXT, cc -E runs the code through the compiler's parser,
5589 # not just through cpp. "Syntax error
" is here to catch this case.
5590 cat >conftest.$ac_ext <<_ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5597 # include <limits.h>
5599 # include <assert.h>
5603 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5611 grep -v '^ *+' conftest.er1 >conftest.err
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5615 (exit $ac_status); } >/dev/null && {
5616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5621 echo "$as_me: failed program was
:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 # Broken: fails on valid input.
5628 rm -f conftest.err conftest.$ac_ext
5630 # OK, works on sane cases. Now check whether nonexistent headers
5631 # can be detected and how.
5632 cat >conftest.$ac_ext <<_ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <ac_nonexistent.h>
5640 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5645 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5652 (exit $ac_status); } >/dev/null && {
5653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5654 test ! -s conftest.err
5656 # Broken: success on invalid input.
5659 echo "$as_me: failed program was
:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5662 # Passes both tests.
5667 rm -f conftest.err conftest.$ac_ext
5670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5671 rm -f conftest.err conftest.$ac_ext
5672 if $ac_preproc_ok; then
5684 { echo "$as_me:$LINENO: result
: $CPP" >&5
5685 echo "${ECHO_T}$CPP" >&6; }
5687 for ac_c_preproc_warn_flag in '' yes
5689 # Use a header file that comes with gcc, so configuring glibc
5690 # with a fresh cross-compiler works.
5691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5692 # <limits.h> exists even on freestanding compilers.
5693 # On the NeXT, cc -E runs the code through the compiler's parser,
5694 # not just through cpp. "Syntax error
" is here to catch this case.
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5702 # include <limits.h>
5704 # include <assert.h>
5708 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5716 grep -v '^ *+' conftest.er1 >conftest.err
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5720 (exit $ac_status); } >/dev/null && {
5721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5722 test ! -s conftest.err
5726 echo "$as_me: failed program was
:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5729 # Broken: fails on valid input.
5733 rm -f conftest.err conftest.$ac_ext
5735 # OK, works on sane cases. Now check whether nonexistent headers
5736 # can be detected and how.
5737 cat >conftest.$ac_ext <<_ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 #include <ac_nonexistent.h>
5745 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5753 grep -v '^ *+' conftest.er1 >conftest.err
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5757 (exit $ac_status); } >/dev/null && {
5758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5761 # Broken: success on invalid input.
5764 echo "$as_me: failed program was
:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 # Passes both tests.
5772 rm -f conftest.err conftest.$ac_ext
5775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5776 rm -f conftest.err conftest.$ac_ext
5777 if $ac_preproc_ok; then
5780 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5781 See \
`config.log' for more details." >&5
5782 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5783 See \`config.log
' for more details." >&2;}
5784 { (exit 1); exit 1; }; }
5788 ac_cpp='$CPP $CPPFLAGS'
5789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5790 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794 ac_cpp='$CXXCPP $CPPFLAGS'
5795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5796 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5798 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5799 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5800 if test -z "$CXXCPP"; then
5801 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 # Double quotes because CXXCPP needs to be expanded
5805 for CXXCPP in "$CXX -E" "/lib/cpp"
5808 for ac_cxx_preproc_warn_flag in '' yes
5810 # Use a header file that comes with gcc, so configuring glibc
5811 # with a fresh cross-compiler works.
5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 # <limits.h> exists even on freestanding compilers.
5814 # On the NeXT, cc -E runs the code through the compiler's parser
,
5815 # not just through cpp. "Syntax error" is here to catch this case.
5816 cat >conftest.
$ac_ext <<_ACEOF
5819 cat confdefs.h
>>conftest.
$ac_ext
5820 cat >>conftest.
$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5823 # include <limits.h>
5825 # include <assert.h>
5829 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837 grep -v '^ *+' conftest.er1 >conftest.err
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } >/dev/null && {
5842 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5843 test ! -s conftest.err
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 # Broken: fails on valid input.
5854 rm -f conftest.err conftest.$ac_ext
5856 # OK, works on sane cases. Now check whether nonexistent headers
5857 # can be detected and how.
5858 cat >conftest.$ac_ext <<_ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <ac_nonexistent.h>
5866 if { (ac_try="$ac_cpp conftest.$ac_ext"
5868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5869 *) ac_try_echo
=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5874 grep -v '^ *+' conftest.er1
>conftest.err
5876 cat conftest.err
>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } >/dev
/null
&& {
5879 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5880 test ! -s conftest.err
5882 # Broken: success on invalid input.
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.
$ac_ext >&5
5888 # Passes both tests.
5893 rm -f conftest.err conftest.
$ac_ext
5896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5897 rm -f conftest.err conftest.
$ac_ext
5898 if $ac_preproc_ok; then
5903 ac_cv_prog_CXXCPP
=$CXXCPP
5906 CXXCPP
=$ac_cv_prog_CXXCPP
5908 ac_cv_prog_CXXCPP
=$CXXCPP
5910 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5911 echo "${ECHO_T}$CXXCPP" >&6; }
5913 for ac_cxx_preproc_warn_flag
in '' yes
5915 # Use a header file that comes with gcc, so configuring glibc
5916 # with a fresh cross-compiler works.
5917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918 # <limits.h> exists even on freestanding compilers.
5919 # On the NeXT, cc -E runs the code through the compiler's parser,
5920 # not just through cpp. "Syntax error" is here to catch this case.
5921 cat >conftest.
$ac_ext <<_ACEOF
5924 cat confdefs.h
>>conftest.
$ac_ext
5925 cat >>conftest.
$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5928 # include <limits.h>
5930 # include <assert.h>
5934 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } >/dev/null && {
5947 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5948 test ! -s conftest.err
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 # Broken: fails on valid input.
5959 rm -f conftest.err conftest.$ac_ext
5961 # OK, works on sane cases. Now check whether nonexistent headers
5962 # can be detected and how.
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include <ac_nonexistent.h>
5971 if { (ac_try="$ac_cpp conftest.$ac_ext"
5973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5974 *) ac_try_echo
=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1
>conftest.err
5981 cat conftest.err
>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev
/null
&& {
5984 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5985 test ! -s conftest.err
5987 # Broken: success on invalid input.
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.
$ac_ext >&5
5993 # Passes both tests.
5998 rm -f conftest.err conftest.
$ac_ext
6001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6002 rm -f conftest.err conftest.
$ac_ext
6003 if $ac_preproc_ok; then
6006 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6007 See \`config.log' for more details." >&5
6008 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6009 See \`config.log' for more details." >&2;}
6010 { (exit 1); exit 1; }; }
6014 ac_cpp
='$CPP $CPPFLAGS'
6015 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6019 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6020 # the developers regenerating the configure script don't have to install libtool.
6021 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6022 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6023 if test "${ac_cv_path_SED+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6027 for ac_i
in 1 2 3 4 5 6 7; do
6028 ac_script
="$ac_script$as_nl$ac_script"
6030 echo "$ac_script" |
sed 99q
>conftest.
sed
6031 $as_unset ac_script || ac_script
=
6032 # Extract the first word of "sed gsed" to use in msg output
6033 if test -z "$SED"; then
6034 set dummy
sed gsed
; ac_prog_name
=$2
6035 if test "${ac_cv_path_SED+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 ac_path_SED_found
=false
6039 # Loop through the user's path and test for each of PROGNAME-LIST
6040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6044 test -z "$as_dir" && as_dir
=.
6045 for ac_prog
in sed gsed
; do
6046 for ac_exec_ext
in '' $ac_executable_extensions; do
6047 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6048 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6049 # Check for GNU ac_path_SED and select it if it is found.
6050 # Check for GNU $ac_path_SED
6051 case `"$ac_path_SED" --version 2>&1` in
6053 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6056 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6059 cat "conftest.in" "conftest.in" >"conftest.tmp"
6060 mv "conftest.tmp" "conftest.in"
6061 cp "conftest.in" "conftest.nl"
6062 echo '' >> "conftest.nl"
6063 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6064 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6065 ac_count
=`expr $ac_count + 1`
6066 if test $ac_count -gt ${ac_path_SED_max-0}; then
6067 # Best one so far, save it but keep looking for a better one
6068 ac_cv_path_SED
="$ac_path_SED"
6069 ac_path_SED_max
=$ac_count
6071 # 10*(2^10) chars as input seems more than enough
6072 test $ac_count -gt 10 && break
6074 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6078 $ac_path_SED_found && break 3
6088 SED
="$ac_cv_path_SED"
6089 if test -z "$SED"; then
6090 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6091 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6092 { (exit 1); exit 1; }; }
6100 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6101 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6102 SED
="$ac_cv_path_SED"
6105 { echo "$as_me:$LINENO: checking for egrep" >&5
6106 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_egrep+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6111 then ac_cv_prog_egrep
='grep -E'
6112 else ac_cv_prog_egrep
='egrep'
6115 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6116 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6117 EGREP
=$ac_cv_prog_egrep
6121 # Check whether --with-gnu-ld was given.
6122 if test "${with_gnu_ld+set}" = set; then
6123 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6129 if test "$GCC" = yes; then
6130 # Check if gcc -print-prog-name=ld gives a path.
6131 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6132 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6135 # gcc leaves a trailing carriage return which upsets mingw
6136 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6138 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6141 # Accept absolute paths.
6143 re_direlt
='/[^/][^/]*/\.\./'
6144 # Canonicalize the pathname of ld
6145 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6146 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6147 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6149 test -z "$LD" && LD
="$ac_prog"
6152 # If it fails, then pretend we aren't using GCC.
6156 # If it is relative, then search for the first ld in PATH.
6160 elif test "$with_gnu_ld" = yes; then
6161 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6162 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6164 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6165 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6167 if test "${lt_cv_path_LD+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 if test -z "$LD"; then
6171 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6172 for ac_dir
in $PATH; do
6174 test -z "$ac_dir" && ac_dir
=.
6175 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6176 lt_cv_path_LD
="$ac_dir/$ac_prog"
6177 # Check to see if the program is GNU ld. I'd rather use --version,
6178 # but apparently some variants of GNU ld only accept -v.
6179 # Break only if it was the GNU/non-GNU ld that we prefer.
6180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6181 *GNU
* |
*'with BFD'*)
6182 test "$with_gnu_ld" != no
&& break
6185 test "$with_gnu_ld" != yes && break
6192 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6197 if test -n "$LD"; then
6198 { echo "$as_me:$LINENO: result: $LD" >&5
6199 echo "${ECHO_T}$LD" >&6; }
6201 { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6204 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6205 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6206 { (exit 1); exit 1; }; }
6207 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6208 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6209 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6213 case `$LD -v 2>&1 </dev/null` in
6214 *GNU
* |
*'with BFD'*)
6215 lt_cv_prog_gnu_ld
=yes
6218 lt_cv_prog_gnu_ld
=no
6222 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6223 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6224 with_gnu_ld
=$lt_cv_prog_gnu_ld
6226 # note - does not work on freebsd
6227 for ac_prog
in gawk mawk nawk
awk
6229 # Extract the first word of "$ac_prog", so it can be a program name with args.
6230 set dummy
$ac_prog; ac_word
=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_prog_AWK+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 if test -n "$AWK"; then
6237 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir
=.
6244 for ac_exec_ext
in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_prog_AWK
="$ac_prog"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 if test -n "$AWK"; then
6258 { echo "$as_me:$LINENO: result: $AWK" >&5
6259 echo "${ECHO_T}$AWK" >&6; }
6261 { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6266 test -n "$AWK" && break
6269 # Find a good install program. We prefer a C program (faster),
6270 # so one script is as good as another. But avoid the broken or
6271 # incompatible versions:
6272 # SysV /etc/install, /usr/sbin/install
6273 # SunOS /usr/etc/install
6274 # IRIX /sbin/install
6276 # AmigaOS /C/install, which installs bootblocks on floppy discs
6277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6280 # OS/2's system install, which has a completely different semantic
6281 # ./install, which can be erroneously created by make from ./install.sh.
6282 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6283 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6284 if test -z "$INSTALL"; then
6285 if test "${ac_cv_path_install+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir
=.
6293 # Account for people who put trailing slashes in PATH elements.
6295 .
/ | .
// |
/cC
/* | \
6296 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6297 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6300 # OSF1 and SCO ODT 3.0 have their own names for install.
6301 # Don't use installbsd from OSF since it installs stuff as root
6303 for ac_prog
in ginstall scoinst
install; do
6304 for ac_exec_ext
in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6306 if test $ac_prog = install &&
6307 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6308 # AIX install. It has an incompatible calling convention.
6310 elif test $ac_prog = install &&
6311 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6312 # program-specific install script used by HP pwplus--don't use.
6315 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6328 if test "${ac_cv_path_install+set}" = set; then
6329 INSTALL
=$ac_cv_path_install
6331 # As a last resort, use the slow shell script. Don't cache a
6332 # value for INSTALL within a source directory, because that will
6333 # break other packages using the cache if that directory is
6334 # removed, or if the value is a relative name.
6335 INSTALL
=$ac_install_sh
6338 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6339 echo "${ECHO_T}$INSTALL" >&6; }
6341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6342 # It thinks the first close brace ends the variable substitution.
6343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6347 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6349 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6350 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6352 if test "$LN_S" = "ln -s"; then
6353 { echo "$as_me:$LINENO: result: yes" >&5
6354 echo "${ECHO_T}yes" >&6; }
6356 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6357 echo "${ECHO_T}no, using $LN_S" >&6; }
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6362 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_prog_RANLIB+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 if test -n "$RANLIB"; then
6369 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir
=.
6376 for ac_exec_ext
in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 RANLIB
=$ac_cv_prog_RANLIB
6389 if test -n "$RANLIB"; then
6390 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6391 echo "${ECHO_T}$RANLIB" >&6; }
6393 { echo "$as_me:$LINENO: result: no" >&5
6394 echo "${ECHO_T}no" >&6; }
6399 if test -z "$ac_cv_prog_RANLIB"; then
6400 ac_ct_RANLIB
=$RANLIB
6401 # Extract the first word of "ranlib", so it can be a program name with args.
6402 set dummy ranlib
; ac_word
=$2
6403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 if test -n "$ac_ct_RANLIB"; then
6409 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir
=.
6416 for ac_exec_ext
in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6429 if test -n "$ac_ct_RANLIB"; then
6430 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6431 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6433 { echo "$as_me:$LINENO: result: no" >&5
6434 echo "${ECHO_T}no" >&6; }
6437 if test "x$ac_ct_RANLIB" = x
; then
6440 case $cross_compiling:$ac_tool_warned in
6442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6443 whose name does not start with the host triplet. If you think this
6444 configuration is useful to you, please write to autoconf@gnu.org." >&5
6445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6446 whose name does not start with the host triplet. If you think this
6447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6448 ac_tool_warned
=yes ;;
6450 RANLIB
=$ac_ct_RANLIB
6453 RANLIB
="$ac_cv_prog_RANLIB"
6456 { echo "$as_me:$LINENO: checking for GNU make" >&5
6457 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6458 if test "${GNU_MAKE+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 GNU_MAKE
='Not Found' ;
6462 GNU_MAKE_VERSION_MAJOR
=0 ;
6463 GNU_MAKE_VERSION_MINOR
=0 ;
6464 for a
in make gmake gnumake
; do
6465 if test -z "$a" ; then continue ; fi ;
6466 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6468 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6469 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6475 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6476 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6477 if test "x$GNU_MAKE" = "xNot Found" ; then
6478 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6479 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6480 { (exit 1); exit 1; }; }
6486 if test -n "$ac_tool_prefix"; then
6487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6488 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_path_STRIP+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir
=.
6504 for ac_exec_ext
in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 STRIP
=$ac_cv_path_STRIP
6518 if test -n "$STRIP"; then
6519 { echo "$as_me:$LINENO: result: $STRIP" >&5
6520 echo "${ECHO_T}$STRIP" >&6; }
6522 { echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6; }
6528 if test -z "$ac_cv_path_STRIP"; then
6530 # Extract the first word of "strip", so it can be a program name with args.
6531 set dummy strip
; ac_word
=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 case $ac_pt_STRIP in
6539 ac_cv_path_ac_pt_STRIP
="$ac_pt_STRIP" # Let the user override the test with a path.
6542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir
=.
6547 for ac_exec_ext
in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_path_ac_pt_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 ac_pt_STRIP
=$ac_cv_path_ac_pt_STRIP
6561 if test -n "$ac_pt_STRIP"; then
6562 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6563 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6565 { echo "$as_me:$LINENO: result: no" >&5
6566 echo "${ECHO_T}no" >&6; }
6569 if test "x$ac_pt_STRIP" = x
; then
6572 case $cross_compiling:$ac_tool_warned in
6574 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6575 whose name does not start with the host triplet. If you think this
6576 configuration is useful to you, please write to autoconf@gnu.org." >&5
6577 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6578 whose name does not start with the host triplet. If you think this
6579 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6580 ac_tool_warned
=yes ;;
6585 STRIP
="$ac_cv_path_STRIP"
6588 if test -n "$ac_tool_prefix"; then
6589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6590 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6593 if test "${ac_cv_path_AR+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6605 test -z "$as_dir" && as_dir
=.
6606 for ac_exec_ext
in '' $ac_executable_extensions; do
6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 if test -n "$AR"; then
6621 { echo "$as_me:$LINENO: result: $AR" >&5
6622 echo "${ECHO_T}$AR" >&6; }
6624 { echo "$as_me:$LINENO: result: no" >&5
6625 echo "${ECHO_T}no" >&6; }
6630 if test -z "$ac_cv_path_AR"; then
6632 # Extract the first word of "ar", so it can be a program name with args.
6633 set dummy
ar; ac_word
=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 ac_cv_path_ac_pt_AR
="$ac_pt_AR" # Let the user override the test with a path.
6644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir
=.
6649 for ac_exec_ext
in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_path_ac_pt_AR
="$as_dir/$ac_word$ac_exec_ext"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 ac_pt_AR
=$ac_cv_path_ac_pt_AR
6663 if test -n "$ac_pt_AR"; then
6664 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6665 echo "${ECHO_T}$ac_pt_AR" >&6; }
6667 { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6671 if test "x$ac_pt_AR" = x
; then
6674 case $cross_compiling:$ac_tool_warned in
6676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6677 whose name does not start with the host triplet. If you think this
6678 configuration is useful to you, please write to autoconf@gnu.org." >&5
6679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6680 whose name does not start with the host triplet. If you think this
6681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6682 ac_tool_warned
=yes ;;
6692 if test "x$with_gnu_ld" = "xyes" ; then
6697 # Extract the first word of "awk", so it can be a program name with args.
6698 set dummy
awk; ac_word
=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_AWK+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
6709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir
=.
6714 for ac_exec_ext
in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK
=":"
6729 if test -n "$AWK"; then
6730 { echo "$as_me:$LINENO: result: $AWK" >&5
6731 echo "${ECHO_T}$AWK" >&6; }
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6738 # Extract the first word of "grep", so it can be a program name with args.
6739 set dummy
grep; ac_word
=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_path_GREP+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir
=.
6755 for ac_exec_ext
in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6769 GREP
=$ac_cv_path_GREP
6770 if test -n "$GREP"; then
6771 { echo "$as_me:$LINENO: result: $GREP" >&5
6772 echo "${ECHO_T}$GREP" >&6; }
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6779 # Extract the first word of "find", so it can be a program name with args.
6780 set dummy
find; ac_word
=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_path_FIND+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir
=.
6796 for ac_exec_ext
in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6810 FIND
=$ac_cv_path_FIND
6811 if test -n "$FIND"; then
6812 { echo "$as_me:$LINENO: result: $FIND" >&5
6813 echo "${ECHO_T}$FIND" >&6; }
6815 { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6820 # Extract the first word of "compress", so it can be a program name with args.
6821 set dummy
compress; ac_word
=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_COMPRESS+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir
=.
6837 for ac_exec_ext
in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6851 COMPRESS
=$ac_cv_path_COMPRESS
6852 if test -n "$COMPRESS"; then
6853 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6854 echo "${ECHO_T}$COMPRESS" >&6; }
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6861 # Extract the first word of "basename", so it can be a program name with args.
6862 set dummy
basename; ac_word
=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_path_BASENAME+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6877 test -z "$as_dir" && as_dir
=.
6878 for ac_exec_ext
in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6892 BASENAME
=$ac_cv_path_BASENAME
6893 if test -n "$BASENAME"; then
6894 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6895 echo "${ECHO_T}$BASENAME" >&6; }
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6902 # Extract the first word of "id", so it can be a program name with args.
6903 set dummy id
; ac_word
=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_path_ID+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir
=.
6919 for ac_exec_ext
in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6934 if test -n "$ID"; then
6935 { echo "$as_me:$LINENO: result: $ID" >&5
6936 echo "${ECHO_T}$ID" >&6; }
6938 { echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6; }
6943 # Extract the first word of "dirname", so it can be a program name with args.
6944 set dummy
dirname; ac_word
=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_DIRNAME+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir
=.
6960 for ac_exec_ext
in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6974 DIRNAME
=$ac_cv_path_DIRNAME
6975 if test -n "$DIRNAME"; then
6976 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6977 echo "${ECHO_T}$DIRNAME" >&6; }
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6984 # Extract the first word of "sh", so it can be a program name with args.
6985 set dummy sh
; ac_word
=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_path_SHELL+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir
=.
7001 for ac_exec_ext
in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
7015 SHELL
=$ac_cv_path_SHELL
7016 if test -n "$SHELL"; then
7017 { echo "$as_me:$LINENO: result: $SHELL" >&5
7018 echo "${ECHO_T}$SHELL" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7025 # Extract the first word of "ln", so it can be a program name with args.
7026 set dummy
ln; ac_word
=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_path_LN+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
7037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir
=.
7042 for ac_exec_ext
in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
7057 if test -n "$LN"; then
7058 { echo "$as_me:$LINENO: result: $LN" >&5
7059 echo "${ECHO_T}$LN" >&6; }
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7066 # Extract the first word of "dot", so it can be a program name with args.
7067 set dummy dot
; ac_word
=$2
7068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070 if test "${ac_cv_path_DOT+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7082 test -z "$as_dir" && as_dir
=.
7083 for ac_exec_ext
in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
7098 if test -n "$DOT"; then
7099 { echo "$as_me:$LINENO: result: $DOT" >&5
7100 echo "${ECHO_T}$DOT" >&6; }
7102 { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7107 # Extract the first word of "wget", so it can be a program name with args.
7108 set dummy wget
; ac_word
=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_WGET+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
7119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir
=.
7124 for ac_exec_ext
in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
7138 WGET
=$ac_cv_path_WGET
7139 if test -n "$WGET"; then
7140 { echo "$as_me:$LINENO: result: $WGET" >&5
7141 echo "${ECHO_T}$WGET" >&6; }
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7148 if test "${WGET}" != ":" ; then
7151 # Extract the first word of "fetch", so it can be a program name with args.
7152 set dummy fetch
; ac_word
=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_path_FETCH+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir
=.
7168 for ac_exec_ext
in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7182 FETCH
=$ac_cv_path_FETCH
7183 if test -n "$FETCH"; then
7184 { echo "$as_me:$LINENO: result: $FETCH" >&5
7185 echo "${ECHO_T}$FETCH" >&6; }
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7196 if test -n "$ac_tool_prefix"; then
7197 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7198 set dummy
${ac_tool_prefix}soxmix
; ac_word
=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 if test -n "$SOXMIX"; then
7205 ac_cv_prog_SOXMIX
="$SOXMIX" # Let the user override the test.
7207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir
=.
7212 for ac_exec_ext
in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_SOXMIX
="${ac_tool_prefix}soxmix"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 SOXMIX
=$ac_cv_prog_SOXMIX
7225 if test -n "$SOXMIX"; then
7226 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7227 echo "${ECHO_T}$SOXMIX" >&6; }
7229 { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7235 if test -z "$ac_cv_prog_SOXMIX"; then
7236 ac_ct_SOXMIX
=$SOXMIX
7237 # Extract the first word of "soxmix", so it can be a program name with args.
7238 set dummy soxmix
; ac_word
=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 if test -n "$ac_ct_SOXMIX"; then
7245 ac_cv_prog_ac_ct_SOXMIX
="$ac_ct_SOXMIX" # Let the user override the test.
7247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir
=.
7252 for ac_exec_ext
in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_prog_ac_ct_SOXMIX
="soxmix"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 ac_ct_SOXMIX
=$ac_cv_prog_ac_ct_SOXMIX
7265 if test -n "$ac_ct_SOXMIX"; then
7266 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7267 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7269 { echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6; }
7273 if test "x$ac_ct_SOXMIX" = x
; then
7276 case $cross_compiling:$ac_tool_warned in
7278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7279 whose name does not start with the host triplet. If you think this
7280 configuration is useful to you, please write to autoconf@gnu.org." >&5
7281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7282 whose name does not start with the host triplet. If you think this
7283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7284 ac_tool_warned
=yes ;;
7286 SOXMIX
=$ac_ct_SOXMIX
7289 SOXMIX
="$ac_cv_prog_SOXMIX"
7292 if test "${SOXMIX}" != ":" ; then
7294 cat >>confdefs.h
<<\_ACEOF
7295 #define HAVE_SOXMIX 1
7304 ac_cpp
='$CPP $CPPFLAGS'
7305 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7306 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7311 # We used to check for pthread.h first, but this fails if pthread.h
7312 # requires special compiler flags (e.g. on True64 or Sequent).
7313 # It gets checked for in the link test anyway.
7315 # First of all, check if the user has set any of the PTHREAD_LIBS,
7316 # etcetera environment variables, and if threads linking works using
7318 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
7319 save_CFLAGS
="$CFLAGS"
7320 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7322 LIBS
="$PTHREAD_LIBS $LIBS"
7323 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7324 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7325 cat >conftest.
$ac_ext <<_ACEOF
7328 cat confdefs.h
>>conftest.
$ac_ext
7329 cat >>conftest.
$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7332 /* Override any GCC internal prototype to avoid an error.
7333 Use char because int might match the return type of a GCC
7334 builtin and then its argument prototype would still apply. */
7338 char pthread_join ();
7342 return pthread_join ();
7347 rm -f conftest.
$ac_objext conftest
$ac_exeext
7348 if { (ac_try
="$ac_link"
7350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_link") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1 >conftest.err
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest$ac_exeext &&
7364 $as_test_x conftest$ac_exeext; then
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7374 conftest$ac_exeext conftest.$ac_ext
7375 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7376 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7377 if test x"$acx_pthread_ok" = xno; then
7382 CFLAGS="$save_CFLAGS"
7385 # We must check for the threads library under a number of different
7386 # names; the ordering is very important because some systems
7387 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7388 # libraries is broken (non-POSIX).
7390 # Create a list of thread flags to try. Items starting with a "-" are
7391 # C compiler flags, and other items are library names, except for "none"
7392 # which indicates that we try without any flags at all, and "pthread-config"
7393 # which is a program returning the flags for the Pth emulation library.
7395 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7397 # The ordering *is* (sometimes) important. Some notes on the
7398 # individual items follow:
7400 # pthreads: AIX (must check this before -lpthread)
7401 # none: in case threads are in libc; should be tried before -Kthread and
7402 # other compiler flags to prevent continual compiler warnings
7403 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7404 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7405 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7406 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7407 # -pthreads: Solaris/gcc
7408 # -mthreads: Mingw32/gcc, Lynx/gcc
7409 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7410 # doesn't hurt to check since this sometimes defines pthreads too;
7411 # also defines -D_REENTRANT)
7412 # ... -mt is also the pthreads flag for HP/aCC
7413 # pthread: Linux, etcetera
7414 # --thread-safe: KAI C++
7415 # pthread-config: use pthread-config program (for GNU Pth library)
7417 case "${host_cpu}-${host_os}" in
7420 # On Solaris (at least, for some versions), libc contains stubbed
7421 # (non-functional) versions of the pthreads routines, so link-based
7422 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7423 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7424 # a function called by this macro, so we could check for that, but
7425 # who knows whether they'll stub that too in a future libc.) So,
7426 # we'll just look for -pthreads and -lpthread first:
7428 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7432 if test x"$acx_pthread_ok" = xno; then
7433 for flag in $acx_pthread_flags; do
7437 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7438 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7442 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7443 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7444 PTHREAD_CFLAGS="$flag"
7448 # Extract the first word of "pthread-config", so it can be a program name with args.
7449 set dummy pthread-config; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 if test -n "$acx_pthread_config"; then
7456 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_acx_pthread_config="yes"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7476 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7477 if test -n "$acx_pthread_config"; then
7478 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7479 echo "${ECHO_T}$acx_pthread_config" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7486 if test x"$acx_pthread_config" = xno; then continue; fi
7487 PTHREAD_CFLAGS="`pthread-config
--cflags`"
7488 PTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
7492 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7493 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7494 PTHREAD_LIBS="-l$flag"
7499 save_CFLAGS="$CFLAGS"
7500 LIBS="$PTHREAD_LIBS $LIBS"
7501 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7503 # Check for various functions. We must include pthread.h,
7504 # since some functions may be macros. (On the Sequent, we
7505 # need a special flag -Kthread to make this header compile.)
7506 # We check for pthread_join because it is in -lpthread on IRIX
7507 # while pthread_create is in libc. We check for pthread_attr_init
7508 # due to DEC craziness with -lpthreads. We check for
7509 # pthread_cleanup_push because it is one of the few pthread
7510 # functions on Solaris that doesn't have a non-functional libc stub.
7511 # We try pthread_create on general principles.
7512 cat >conftest.$ac_ext <<_ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 #include <pthread.h>
7522 pthread_t th; pthread_join(th, 0);
7523 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7524 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7529 rm -f conftest.$ac_objext conftest$ac_exeext
7530 if { (ac_try="$ac_link"
7532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7533 *) ac_try_echo
=$ac_try;;
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_link") 2>conftest.er1
7538 grep -v '^ *+' conftest.er1
>conftest.err
7540 cat conftest.err
>&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest
$ac_exeext &&
7546 $as_test_x conftest
$ac_exeext; then
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.
$ac_ext >&5
7555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7556 conftest
$ac_exeext conftest.
$ac_ext
7559 CFLAGS
="$save_CFLAGS"
7561 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7562 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7563 if test "x$acx_pthread_ok" = xyes
; then
7572 # Various other checks:
7573 if test "x$acx_pthread_ok" = xyes
; then
7575 LIBS
="$PTHREAD_LIBS $LIBS"
7576 save_CFLAGS
="$CFLAGS"
7577 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7579 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7580 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7581 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7583 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7584 cat >conftest.
$ac_ext <<_ACEOF
7587 cat confdefs.h
>>conftest.
$ac_ext
7588 cat >>conftest.
$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 #include <pthread.h>
7594 int attr=$attr; return attr;
7599 rm -f conftest.
$ac_objext conftest
$ac_exeext
7600 if { (ac_try
="$ac_link"
7602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_link") 2>conftest.er1
7608 grep -v '^ *+' conftest.er1 >conftest.err
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && {
7613 test -z "$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 } && test -s conftest$ac_exeext &&
7616 $as_test_x conftest$ac_exeext; then
7617 attr_name=$attr; break
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7626 conftest$ac_exeext conftest.$ac_ext
7628 { echo "$as_me:$LINENO: result: $attr_name" >&5
7629 echo "${ECHO_T}$attr_name" >&6; }
7630 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7632 cat >>confdefs.h <<_ACEOF
7633 #define PTHREAD_CREATE_JOINABLE $attr_name
7638 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7639 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7641 case "${host_cpu}-${host_os}" in
7642 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7643 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7645 { echo "$as_me:$LINENO: result: ${flag}" >&5
7646 echo "${ECHO_T}${flag}" >&6; }
7647 if test "x$flag" != xno; then
7648 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7652 CFLAGS="$save_CFLAGS"
7654 # More AIX lossage: must compile with xlc_r or cc_r
7655 if test x"$GCC" != xyes; then
7656 for ac_prog in xlc_r cc_r
7658 # Extract the first word of "$ac_prog", so it can be a program name with args.
7659 set dummy $ac_prog; ac_word=$2
7660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7662 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 if test -n "$PTHREAD_CC"; then
7666 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_PTHREAD_CC="$ac_prog"
7676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7686 if test -n "$PTHREAD_CC"; then
7687 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7688 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7690 { echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6; }
7695 test -n "$PTHREAD_CC" && break
7697 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7710 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7711 if test x"$acx_pthread_ok" = xyes; then
7713 cat >>confdefs.h <<\_ACEOF
7714 #define HAVE_PTHREAD 1
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
7731 ac_cpp='$CPP $CPPFLAGS'
7732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7737 # Check whether --enable-dev-mode was given.
7738 if test "${enable_dev_mode+set}" = set; then
7739 enableval=$enable_dev_mode; case "${enableval}" in
7740 y|ye|yes) AST_DEVMODE=yes ;;
7741 n|no) AST_DEVMODE=no ;;
7742 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7743 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7744 { (exit 1); exit 1; }; } ;;
7750 # package option names should be in alphabetical order
7751 # by the --with option name, to make things easier for the users :-)
7754 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7755 ALSA_OPTION="asound"
7757 # Check whether --with-asound was given.
7758 if test "${with_asound+set}" = set; then
7759 withval=$with_asound;
7765 ALSA_MANDATORY="yes"
7768 ALSA_DIR="${withval}"
7769 ALSA_MANDATORY="yes"
7785 # Check whether --with-curl was given.
7786 if test "${with_curl+set}" = set; then
7793 CURL_MANDATORY="yes"
7796 CURL_DIR="${withval}"
7797 CURL_MANDATORY="yes"
7810 CAP_DESCRIP="POSIX 1.e capabilities"
7813 # Check whether --with-cap was given.
7814 if test "${with_cap+set}" = set; then
7824 CAP_DIR="${withval}"
7838 CURSES_DESCRIP="curses"
7839 CURSES_OPTION="curses"
7841 # Check whether --with-curses was given.
7842 if test "${with_curses+set}" = set; then
7843 withval=$with_curses;
7849 CURSES_MANDATORY="yes"
7852 CURSES_DIR="${withval}"
7853 CURSES_MANDATORY="yes"
7866 DAHDI_DESCRIP="DAHDI"
7867 DAHDI_OPTION="dahdi"
7869 # Check whether --with-dahdi was given.
7870 if test "${with_dahdi+set}" = set; then
7871 withval=$with_dahdi;
7877 DAHDI_MANDATORY="yes"
7880 DAHDI_DIR="${withval}"
7881 DAHDI_MANDATORY="yes"
7894 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7895 GNUTLS_OPTION="gnutls"
7897 # Check whether --with-gnutls was given.
7898 if test "${with_gnutls+set}" = set; then
7899 withval=$with_gnutls;
7905 GNUTLS_MANDATORY="yes"
7908 GNUTLS_DIR="${withval}"
7909 GNUTLS_MANDATORY="yes"
7925 # Check whether --with-gsm was given.
7926 if test "${with_gsm+set}" = set; then
7936 GSM_DIR="${withval}"
7950 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7951 IKSEMEL_OPTION="iksemel"
7953 # Check whether --with-iksemel was given.
7954 if test "${with_iksemel+set}" = set; then
7955 withval=$with_iksemel;
7961 IKSEMEL_MANDATORY="yes"
7964 IKSEMEL_DIR="${withval}"
7965 IKSEMEL_MANDATORY="yes"
7978 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7979 IMAP_TK_OPTION="imap"
7981 # Check whether --with-imap was given.
7982 if test "${with_imap+set}" = set; then
7989 IMAP_TK_MANDATORY="yes"
7992 IMAP_TK_DIR="${withval}"
7993 IMAP_TK_MANDATORY="yes"
8006 ISDNNET_DESCRIP="ISDN4Linux Library"
8007 ISDNNET_OPTION="isdnnet"
8009 # Check whether --with-isdnnet was given.
8010 if test "${with_isdnnet+set}" = set; then
8011 withval=$with_isdnnet;
8017 ISDNNET_MANDATORY="yes"
8020 ISDNNET_DIR="${withval}"
8021 ISDNNET_MANDATORY="yes"
8037 # Check whether --with-kde was given.
8038 if test "${with_kde+set}" = set; then
8048 KDE_DIR="${withval}"
8062 LTDL_DESCRIP="libtool"
8065 # Check whether --with-ltdl was given.
8066 if test "${with_ltdl+set}" = set; then
8073 LTDL_MANDATORY="yes"
8076 LTDL_DIR="${withval}"
8077 LTDL_MANDATORY="yes"
8090 MISDN_DESCRIP="mISDN User Library"
8091 MISDN_OPTION="misdn"
8093 # Check whether --with-misdn was given.
8094 if test "${with_misdn+set}" = set; then
8095 withval=$with_misdn;
8101 MISDN_MANDATORY="yes"
8104 MISDN_DIR="${withval}"
8105 MISDN_MANDATORY="yes"
8118 NBS_DESCRIP="Network Broadcast Sound"
8121 # Check whether --with-nbs was given.
8122 if test "${with_nbs+set}" = set; then
8132 NBS_DIR="${withval}"
8146 NCURSES_DESCRIP="ncurses"
8147 NCURSES_OPTION="ncurses"
8149 # Check whether --with-ncurses was given.
8150 if test "${with_ncurses+set}" = set; then
8151 withval=$with_ncurses;
8157 NCURSES_MANDATORY="yes"
8160 NCURSES_DIR="${withval}"
8161 NCURSES_MANDATORY="yes"
8174 NETSNMP_DESCRIP="Net-SNMP"
8175 NETSNMP_OPTION="netsnmp"
8177 # Check whether --with-netsnmp was given.
8178 if test "${with_netsnmp+set}" = set; then
8179 withval=$with_netsnmp;
8185 NETSNMP_MANDATORY="yes"
8188 NETSNMP_DIR="${withval}"
8189 NETSNMP_MANDATORY="yes"
8205 # Check whether --with-newt was given.
8206 if test "${with_newt+set}" = set; then
8213 NEWT_MANDATORY="yes"
8216 NEWT_DIR="${withval}"
8217 NEWT_MANDATORY="yes"
8230 UNIXODBC_DESCRIP="unixODBC"
8231 UNIXODBC_OPTION="odbc"
8233 # Check whether --with-odbc was given.
8234 if test "${with_odbc+set}" = set; then
8241 UNIXODBC_MANDATORY="yes"
8244 UNIXODBC_DIR="${withval}"
8245 UNIXODBC_MANDATORY="yes"
8261 # Check whether --with-ogg was given.
8262 if test "${with_ogg+set}" = set; then
8272 OGG_DIR="${withval}"
8286 OSPTK_DESCRIP="OSP Toolkit"
8287 OSPTK_OPTION="osptk"
8289 # Check whether --with-osptk was given.
8290 if test "${with_osptk+set}" = set; then
8291 withval=$with_osptk;
8297 OSPTK_MANDATORY="yes"
8300 OSPTK_DIR="${withval}"
8301 OSPTK_MANDATORY="yes"
8314 OSS_DESCRIP="Open Sound System"
8317 # Check whether --with-oss was given.
8318 if test "${with_oss+set}" = set; then
8328 OSS_DIR="${withval}"
8345 # Check whether --with-popt was given.
8346 if test "${with_popt+set}" = set; then
8353 POPT_MANDATORY="yes"
8356 POPT_DIR="${withval}"
8357 POPT_MANDATORY="yes"
8370 PGSQL_DESCRIP="PostgreSQL"
8371 PGSQL_OPTION="postgres"
8373 # Check whether --with-postgres was given.
8374 if test "${with_postgres+set}" = set; then
8375 withval=$with_postgres;
8381 PGSQL_MANDATORY="yes"
8384 PGSQL_DIR="${withval}"
8385 PGSQL_MANDATORY="yes"
8398 PRI_DESCRIP="ISDN PRI"
8401 # Check whether --with-pri was given.
8402 if test "${with_pri+set}" = set; then
8412 PRI_DIR="${withval}"
8426 PWLIB_DESCRIP="PWlib"
8427 PWLIB_OPTION="pwlib"
8429 # Check whether --with-pwlib was given.
8430 if test "${with_pwlib+set}" = set; then
8431 withval=$with_pwlib;
8437 PWLIB_MANDATORY="yes"
8440 PWLIB_DIR="${withval}"
8441 PWLIB_MANDATORY="yes"
8454 OPENH323_DESCRIP="OpenH323"
8455 OPENH323_OPTION="h323"
8457 # Check whether --with-h323 was given.
8458 if test "${with_h323+set}" = set; then
8465 OPENH323_MANDATORY="yes"
8468 OPENH323_DIR="${withval}"
8469 OPENH323_MANDATORY="yes"
8482 RADIUS_DESCRIP="Radius Client"
8483 RADIUS_OPTION="radius"
8485 # Check whether --with-radius was given.
8486 if test "${with_radius+set}" = set; then
8487 withval=$with_radius;
8493 RADIUS_MANDATORY="yes"
8496 RADIUS_DIR="${withval}"
8497 RADIUS_MANDATORY="yes"
8510 SPEEX_DESCRIP="Speex"
8511 SPEEX_OPTION="speex"
8513 # Check whether --with-speex was given.
8514 if test "${with_speex+set}" = set; then
8515 withval=$with_speex;
8521 SPEEX_MANDATORY="yes"
8524 SPEEX_DIR="${withval}"
8525 SPEEX_MANDATORY="yes"
8538 SPEEXDSP_DESCRIP="Speexdsp"
8539 SPEEXDSP_OPTION="speexdsp"
8541 # Check whether --with-speexdsp was given.
8542 if test "${with_speexdsp+set}" = set; then
8543 withval=$with_speexdsp;
8549 SPEEXDSP_MANDATORY="yes"
8552 SPEEXDSP_DIR="${withval}"
8553 SPEEXDSP_MANDATORY="yes"
8566 SQLITE_DESCRIP="SQLite"
8567 SQLITE_OPTION="sqlite"
8569 # Check whether --with-sqlite was given.
8570 if test "${with_sqlite+set}" = set; then
8571 withval=$with_sqlite;
8577 SQLITE_MANDATORY="yes"
8580 SQLITE_DIR="${withval}"
8581 SQLITE_MANDATORY="yes"
8594 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8595 SUPPSERV_OPTION="suppserv"
8597 # Check whether --with-suppserv was given.
8598 if test "${with_suppserv+set}" = set; then
8599 withval=$with_suppserv;
8605 SUPPSERV_MANDATORY="yes"
8608 SUPPSERV_DIR="${withval}"
8609 SUPPSERV_MANDATORY="yes"
8622 OPENSSL_DESCRIP="OpenSSL"
8623 OPENSSL_OPTION="ssl"
8625 # Check whether --with-ssl was given.
8626 if test "${with_ssl+set}" = set; then
8633 OPENSSL_MANDATORY="yes"
8636 OPENSSL_DIR="${withval}"
8637 OPENSSL_MANDATORY="yes"
8650 FREETDS_DESCRIP="FreeTDS"
8651 FREETDS_OPTION="tds"
8653 # Check whether --with-tds was given.
8654 if test "${with_tds+set}" = set; then
8661 FREETDS_MANDATORY="yes"
8664 FREETDS_DIR="${withval}"
8665 FREETDS_MANDATORY="yes"
8678 TERMCAP_DESCRIP="Termcap"
8679 TERMCAP_OPTION="termcap"
8681 # Check whether --with-termcap was given.
8682 if test "${with_termcap+set}" = set; then
8683 withval=$with_termcap;
8689 TERMCAP_MANDATORY="yes"
8692 TERMCAP_DIR="${withval}"
8693 TERMCAP_MANDATORY="yes"
8706 TINFO_DESCRIP="Term Info"
8707 TINFO_OPTION="tinfo"
8709 # Check whether --with-tinfo was given.
8710 if test "${with_tinfo+set}" = set; then
8711 withval=$with_tinfo;
8717 TINFO_MANDATORY="yes"
8720 TINFO_DIR="${withval}"
8721 TINFO_MANDATORY="yes"
8734 TONEZONE_DESCRIP="tonezone"
8735 TONEZONE_OPTION="tonezone"
8737 # Check whether --with-tonezone was given.
8738 if test "${with_tonezone+set}" = set; then
8739 withval=$with_tonezone;
8745 TONEZONE_MANDATORY="yes"
8748 TONEZONE_DIR="${withval}"
8749 TONEZONE_MANDATORY="yes"
8765 # Check whether --with-usb was given.
8766 if test "${with_usb+set}" = set; then
8776 USB_DIR="${withval}"
8790 VORBIS_DESCRIP="Vorbis"
8791 VORBIS_OPTION="vorbis"
8793 # Check whether --with-vorbis was given.
8794 if test "${with_vorbis+set}" = set; then
8795 withval=$with_vorbis;
8801 VORBIS_MANDATORY="yes"
8804 VORBIS_DIR="${withval}"
8805 VORBIS_MANDATORY="yes"
8818 VPB_DESCRIP="Voicetronix API"
8821 # Check whether --with-vpb was given.
8822 if test "${with_vpb+set}" = set; then
8832 VPB_DIR="${withval}"
8849 # Check whether --with-z was given.
8850 if test "${with_z+set}" = set; then
8857 ZLIB_MANDATORY="yes"
8860 ZLIB_DIR="${withval}"
8861 ZLIB_MANDATORY="yes"
8874 ZAPTEL_DESCRIP="Zaptel"
8875 ZAPTEL_OPTION="zaptel"
8877 # Check whether --with-zaptel was given.
8878 if test "${with_zaptel+set}" = set; then
8879 withval=$with_zaptel;
8885 ZAPTEL_MANDATORY="yes"
8888 ZAPTEL_DIR="${withval}"
8889 ZAPTEL_MANDATORY="yes"
8902 # check for basic system features and functionality before
8903 # checking for package libraries
8905 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8906 # for constant arguments. Useless!
8907 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8908 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8909 if test "${ac_cv_working_alloca_h+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 cat >conftest.$ac_ext <<_ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8922 char *p = (char *) alloca (2 * sizeof (int));
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8932 *) ac_try_echo
=$ac_try;;
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_link") 2>conftest.er1
8937 grep -v '^ *+' conftest.er1
>conftest.err
8939 cat conftest.err
>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } && {
8942 test -z "$ac_c_werror_flag" ||
8943 test ! -s conftest.err
8944 } && test -s conftest
$ac_exeext &&
8945 $as_test_x conftest
$ac_exeext; then
8946 ac_cv_working_alloca_h
=yes
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.
$ac_ext >&5
8951 ac_cv_working_alloca_h
=no
8954 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8955 conftest
$ac_exeext conftest.
$ac_ext
8957 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8958 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8959 if test $ac_cv_working_alloca_h = yes; then
8961 cat >>confdefs.h
<<\_ACEOF
8962 #define HAVE_ALLOCA_H 1
8967 { echo "$as_me:$LINENO: checking for alloca" >&5
8968 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8969 if test "${ac_cv_func_alloca_works+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 cat >conftest.
$ac_ext <<_ACEOF
8975 cat confdefs.h
>>conftest.
$ac_ext
8976 cat >>conftest.
$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8979 # define alloca __builtin_alloca
8982 # include <malloc.h>
8983 # define alloca _alloca
8985 # ifdef HAVE_ALLOCA_H
8986 # include <alloca.h>
8991 # ifndef alloca /* predefined by HP cc +Olibcalls */
9002 char *p = (char *) alloca (1);
9008 rm -f conftest.
$ac_objext conftest
$ac_exeext
9009 if { (ac_try
="$ac_link"
9011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015 (eval "$ac_link") 2>conftest.er1
9017 grep -v '^ *+' conftest.er1 >conftest.err
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } && {
9022 test -z "$ac_c_werror_flag" ||
9023 test ! -s conftest.err
9024 } && test -s conftest$ac_exeext &&
9025 $as_test_x conftest$ac_exeext; then
9026 ac_cv_func_alloca_works=yes
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_cv_func_alloca_works=no
9034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9035 conftest$ac_exeext conftest.$ac_ext
9037 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9038 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9040 if test $ac_cv_func_alloca_works = yes; then
9042 cat >>confdefs.h <<\_ACEOF
9043 #define HAVE_ALLOCA 1
9047 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9048 # that cause trouble. Some versions do not even contain alloca or
9049 # contain a buggy version. If you still want to use their alloca,
9050 # use ar to extract alloca.o from them instead of compiling alloca.c.
9052 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9054 cat >>confdefs.h <<\_ACEOF
9059 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
9060 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
9061 if test "${ac_cv_os_cray+set}" = set; then
9062 echo $ECHO_N "(cached
) $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 #if defined CRAY && ! defined CRAY2
9077 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9078 $EGREP "webecray
" >/dev/null 2>&1; then
9086 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
9087 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9088 if test $ac_cv_os_cray = yes; then
9089 for ac_func in _getb67 GETB67 getb67; do
9090 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9091 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9092 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9093 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9094 echo $ECHO_N "(cached
) $ECHO_C" >&6
9096 cat >conftest.$ac_ext <<_ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9104 #define $ac_func innocuous_$ac_func
9106 /* System header to define __stub macros and hopefully few prototypes,
9107 which can conflict with char $ac_func (); below.
9108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9109 <limits.h> exists even on freestanding compilers. */
9112 # include <limits.h>
9114 # include <assert.h>
9119 /* Override any GCC internal prototype to avoid an error.
9120 Use char because int might match the return type of a GCC
9121 builtin and then its argument prototype would still apply. */
9126 /* The GNU C library defines this for functions which it implements
9127 to always fail with ENOSYS. Some functions are actually named
9128 something starting with __ and the normal name is an alias. */
9129 #if defined __stub_$ac_func || defined __stub___$ac_func
9141 rm -f conftest.$ac_objext conftest$ac_exeext
9142 if { (ac_try="$ac_link"
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_link") 2>conftest.er1
9150 grep -v '^ *+' conftest.er1 >conftest.err
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9154 (exit $ac_status); } && {
9155 test -z "$ac_c_werror_flag" ||
9156 test ! -s conftest.err
9157 } && test -s conftest$ac_exeext &&
9158 $as_test_x conftest$ac_exeext; then
9159 eval "$as_ac_var=yes"
9161 echo "$as_me: failed program was
:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9164 eval "$as_ac_var=no
"
9167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9168 conftest$ac_exeext conftest.$ac_ext
9170 ac_res=`eval echo '${'$as_ac_var'}'`
9171 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9172 echo "${ECHO_T}$ac_res" >&6; }
9173 if test `eval echo '${'$as_ac_var'}'` = yes; then
9175 cat >>confdefs.h <<_ACEOF
9176 #define CRAY_STACKSEG_END $ac_func
9185 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
9186 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
9187 if test "${ac_cv_c_stack_direction+set}" = set; then
9188 echo $ECHO_N "(cached
) $ECHO_C" >&6
9190 if test "$cross_compiling" = yes; then
9191 ac_cv_c_stack_direction=0
9193 cat >conftest.$ac_ext <<_ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 $ac_includes_default
9201 find_stack_direction ()
9203 static char *addr = 0;
9208 return find_stack_direction ();
9211 return (&dummy > addr) ? 1 : -1;
9217 return find_stack_direction () < 0;
9220 rm -f conftest$ac_exeext
9221 if { (ac_try="$ac_link"
9223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224 *) ac_try_echo=$ac_try;;
9226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9227 (eval "$ac_link") 2>&5
9229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9231 { (case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_try") 2>&5
9238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_c_stack_direction=1
9242 echo "$as_me: program exited with status
$ac_status" >&5
9243 echo "$as_me: failed program was
:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9247 ac_cv_c_stack_direction=-1
9249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9254 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
9255 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9257 cat >>confdefs.h <<_ACEOF
9258 #define STACK_DIRECTION $ac_cv_c_stack_direction
9270 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9271 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
9272 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
9273 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
9274 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9275 echo $ECHO_N "(cached
) $ECHO_C" >&6
9277 cat >conftest.$ac_ext <<_ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 #include <sys/types.h>
9295 rm -f conftest.$ac_objext
9296 if { (ac_try="$ac_compile"
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_compile") 2>conftest.er1
9304 grep -v '^ *+' conftest.er1 >conftest.err
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest.$ac_objext; then
9312 eval "$as_ac_Header=yes"
9314 echo "$as_me: failed program was
:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 eval "$as_ac_Header=no
"
9320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 ac_res=`eval echo '${'$as_ac_Header'}'`
9323 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9324 echo "${ECHO_T}$ac_res" >&6; }
9325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9326 cat >>confdefs.h <<_ACEOF
9327 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
9330 ac_header_dirent=$ac_hdr; break
9334 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9335 if test $ac_header_dirent = dirent.h; then
9336 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9337 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9338 if test "${ac_cv_search_opendir+set}" = set; then
9339 echo $ECHO_N "(cached
) $ECHO_C" >&6
9341 ac_func_search_save_LIBS=$LIBS
9342 cat >conftest.$ac_ext <<_ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9349 /* Override any GCC internal prototype to avoid an error.
9350 Use char because int might match the return type of a GCC
9351 builtin and then its argument prototype would still apply. */
9364 for ac_lib in '' dir; do
9365 if test -z "$ac_lib"; then
9366 ac_res="none required
"
9369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9371 rm -f conftest.$ac_objext conftest$ac_exeext
9372 if { (ac_try="$ac_link"
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_link") 2>conftest.er1
9380 grep -v '^ *+' conftest.er1 >conftest.err
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest$ac_exeext &&
9388 $as_test_x conftest$ac_exeext; then
9389 ac_cv_search_opendir=$ac_res
9391 echo "$as_me: failed program was
:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9399 if test "${ac_cv_search_opendir+set}" = set; then
9403 if test "${ac_cv_search_opendir+set}" = set; then
9406 ac_cv_search_opendir=no
9409 LIBS=$ac_func_search_save_LIBS
9411 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9412 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9413 ac_res=$ac_cv_search_opendir
9414 if test "$ac_res" != no; then
9415 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9420 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9421 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9422 if test "${ac_cv_search_opendir+set}" = set; then
9423 echo $ECHO_N "(cached
) $ECHO_C" >&6
9425 ac_func_search_save_LIBS=$LIBS
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9433 /* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9448 for ac_lib in '' x; do
9449 if test -z "$ac_lib"; then
9450 ac_res="none required
"
9453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (ac_try="$ac_link"
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_link") 2>conftest.er1
9464 grep -v '^ *+' conftest.er1 >conftest.err
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9468 (exit $ac_status); } && {
9469 test -z "$ac_c_werror_flag" ||
9470 test ! -s conftest.err
9471 } && test -s conftest$ac_exeext &&
9472 $as_test_x conftest$ac_exeext; then
9473 ac_cv_search_opendir=$ac_res
9475 echo "$as_me: failed program was
:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9483 if test "${ac_cv_search_opendir+set}" = set; then
9487 if test "${ac_cv_search_opendir+set}" = set; then
9490 ac_cv_search_opendir=no
9493 LIBS=$ac_func_search_save_LIBS
9495 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9496 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9497 ac_res=$ac_cv_search_opendir
9498 if test "$ac_res" != no; then
9499 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9505 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
9506 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
9507 if test "${ac_cv_header_stdc+set}" = set; then
9508 echo $ECHO_N "(cached
) $ECHO_C" >&6
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_compile") 2>conftest.er1
9538 grep -v '^ *+' conftest.er1 >conftest.err
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest.$ac_objext; then
9546 ac_cv_header_stdc=yes
9548 echo "$as_me: failed program was
:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9551 ac_cv_header_stdc=no
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 if test $ac_cv_header_stdc = yes; then
9557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9558 cat >conftest.$ac_ext <<_ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9567 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9568 $EGREP "memchr
" >/dev/null 2>&1; then
9571 ac_cv_header_stdc=no
9577 if test $ac_cv_header_stdc = yes; then
9578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9579 cat >conftest.$ac_ext <<_ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9588 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9589 $EGREP "free
" >/dev/null 2>&1; then
9592 ac_cv_header_stdc=no
9598 if test $ac_cv_header_stdc = yes; then
9599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9600 if test "$cross_compiling" = yes; then
9603 cat >conftest.$ac_ext <<_ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9611 #if ((' ' & 0x0FF) == 0x020)
9612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9615 # define ISLOWER(c) \
9616 (('a' <= (c) && (c) <= 'i') \
9617 || ('j' <= (c) && (c) <= 'r') \
9618 || ('s' <= (c) && (c) <= 'z'))
9619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9627 for (i = 0; i < 256; i++)
9628 if (XOR (islower (i), ISLOWER (i))
9629 || toupper (i) != TOUPPER (i))
9634 rm -f conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_link") 2>&5
9643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9645 { (case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_try") 2>&5
9652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9653 (exit $ac_status); }; }; then
9656 echo "$as_me: program exited with status
$ac_status" >&5
9657 echo "$as_me: failed program was
:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9661 ac_cv_header_stdc=no
9663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9669 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
9670 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9671 if test $ac_cv_header_stdc = yes; then
9673 cat >>confdefs.h <<\_ACEOF
9674 #define STDC_HEADERS 1
9679 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
9680 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
9681 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9682 echo $ECHO_N "(cached
) $ECHO_C" >&6
9684 cat >conftest.$ac_ext <<_ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 #include <sys/types.h>
9691 #include <sys/wait.h>
9693 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9696 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9704 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9709 rm -f conftest.$ac_objext
9710 if { (ac_try="$ac_compile"
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_compile") 2>conftest.er1
9718 grep -v '^ *+' conftest.er1 >conftest.err
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest.$ac_objext; then
9726 ac_cv_header_sys_wait_h=yes
9728 echo "$as_me: failed program was
:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_cv_header_sys_wait_h=no
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
9737 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9738 if test $ac_cv_header_sys_wait_h = yes; then
9740 cat >>confdefs.h <<\_ACEOF
9741 #define HAVE_SYS_WAIT_H 1
9770 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 arpa/nameser.h
9772 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9773 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9774 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9775 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9776 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9777 echo $ECHO_N "(cached
) $ECHO_C" >&6
9779 ac_res=`eval echo '${'$as_ac_Header'}'`
9780 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9781 echo "${ECHO_T}$ac_res" >&6; }
9783 # Is the header compilable?
9784 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9785 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 $ac_includes_default
9793 #include <$ac_header>
9795 rm -f conftest.$ac_objext
9796 if { (ac_try="$ac_compile"
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_compile") 2>conftest.er1
9804 grep -v '^ *+' conftest.er1 >conftest.err
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9808 (exit $ac_status); } && {
9809 test -z "$ac_c_werror_flag" ||
9810 test ! -s conftest.err
9811 } && test -s conftest.$ac_objext; then
9812 ac_header_compiler=yes
9814 echo "$as_me: failed program was
:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_header_compiler=no
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9822 echo "${ECHO_T}$ac_header_compiler" >&6; }
9824 # Is the header present?
9825 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9826 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9827 cat >conftest.$ac_ext <<_ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 #include <$ac_header>
9835 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9847 (exit $ac_status); } >/dev/null && {
9848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9851 ac_header_preproc=yes
9853 echo "$as_me: failed program was
:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_header_preproc=no
9859 rm -f conftest.err conftest.$ac_ext
9860 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9861 echo "${ECHO_T}$ac_header_preproc" >&6; }
9863 # So? What about this header?
9864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9866 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9867 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9868 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9870 ac_header_preproc=yes
9873 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9874 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9875 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9876 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9877 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9878 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9879 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9880 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9881 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9883 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9884 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9886 ## ------------------------------- ##
9887 ## Report this to www.asterisk.org ##
9888 ## ------------------------------- ##
9890 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9893 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9894 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9895 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9896 echo $ECHO_N "(cached
) $ECHO_C" >&6
9898 eval "$as_ac_Header=\
$ac_header_preproc"
9900 ac_res=`eval echo '${'$as_ac_Header'}'`
9901 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9902 echo "${ECHO_T}$ac_res" >&6; }
9905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9906 cat >>confdefs.h <<_ACEOF
9907 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9915 # Check whether --enable-largefile was given.
9916 if test "${enable_largefile+set}" = set; then
9917 enableval=$enable_largefile;
9920 if test "$enable_largefile" != no; then
9922 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
9923 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
9924 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9925 echo $ECHO_N "(cached
) $ECHO_C" >&6
9927 ac_cv_sys_largefile_CC=no
9928 if test "$GCC" != yes; then
9931 # IRIX 6.2 and later do not support large files by default,
9932 # so use the C compiler's -n32 option if that helps.
9933 cat >conftest.$ac_ext <<_ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 #include <sys/types.h>
9940 /* Check that off_t can represent 2**63 - 1 correctly.
9941 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9942 since some C++ compilers masquerading as C compilers
9943 incorrectly reject 9223372036854775807. */
9944 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9946 && LARGE_OFF_T % 2147483647 == 1)
9956 rm -f conftest.$ac_objext
9957 if { (ac_try="$ac_compile"
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_compile") 2>conftest.er1
9965 grep -v '^ *+' conftest.er1 >conftest.err
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9969 (exit $ac_status); } && {
9970 test -z "$ac_c_werror_flag" ||
9971 test ! -s conftest.err
9972 } && test -s conftest.$ac_objext; then
9975 echo "$as_me: failed program was
:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9981 rm -f core conftest.err conftest.$ac_objext
9983 rm -f conftest.$ac_objext
9984 if { (ac_try="$ac_compile"
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_compile") 2>conftest.er1
9992 grep -v '^ *+' conftest.er1 >conftest.err
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9996 (exit $ac_status); } && {
9997 test -z "$ac_c_werror_flag" ||
9998 test ! -s conftest.err
9999 } && test -s conftest.$ac_objext; then
10000 ac_cv_sys_largefile_CC=' -n32'; break
10002 echo "$as_me: failed program was
:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10008 rm -f core conftest.err conftest.$ac_objext
10012 rm -f conftest.$ac_ext
10015 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
10016 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10017 if test "$ac_cv_sys_largefile_CC" != no; then
10018 CC=$CC$ac_cv_sys_largefile_CC
10021 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
10022 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
10023 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10024 echo $ECHO_N "(cached
) $ECHO_C" >&6
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10033 #include <sys/types.h>
10034 /* Check that off_t can represent 2**63 - 1 correctly.
10035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10036 since some C++ compilers masquerading as C compilers
10037 incorrectly reject 9223372036854775807. */
10038 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10040 && LARGE_OFF_T % 2147483647 == 1)
10050 rm -f conftest.$ac_objext
10051 if { (ac_try="$ac_compile"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_compile") 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest.$ac_objext; then
10067 ac_cv_sys_file_offset_bits=no; break
10069 echo "$as_me: failed program was
:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076 cat >conftest.$ac_ext <<_ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 #define _FILE_OFFSET_BITS 64
10083 #include <sys/types.h>
10084 /* Check that off_t can represent 2**63 - 1 correctly.
10085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10086 since some C++ compilers masquerading as C compilers
10087 incorrectly reject 9223372036854775807. */
10088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10090 && LARGE_OFF_T % 2147483647 == 1)
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_compile") 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest.$ac_objext; then
10117 ac_cv_sys_file_offset_bits=64; break
10119 echo "$as_me: failed program was
:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 ac_cv_sys_file_offset_bits=unknown
10130 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
10131 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10132 case $ac_cv_sys_file_offset_bits in #(
10135 cat >>confdefs.h <<_ACEOF
10136 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10141 if test $ac_cv_sys_file_offset_bits = unknown; then
10142 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
10143 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
10144 if test "${ac_cv_sys_large_files+set}" = set; then
10145 echo $ECHO_N "(cached
) $ECHO_C" >&6
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10154 #include <sys/types.h>
10155 /* Check that off_t can represent 2**63 - 1 correctly.
10156 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10157 since some C++ compilers masquerading as C compilers
10158 incorrectly reject 9223372036854775807. */
10159 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10160 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10161 && LARGE_OFF_T % 2147483647 == 1)
10171 rm -f conftest.$ac_objext
10172 if { (ac_try="$ac_compile"
10173 case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_compile") 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10184 (exit $ac_status); } && {
10185 test -z "$ac_c_werror_flag" ||
10186 test ! -s conftest.err
10187 } && test -s conftest.$ac_objext; then
10188 ac_cv_sys_large_files=no; break
10190 echo "$as_me: failed program was
:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 cat >conftest.$ac_ext <<_ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 #define _LARGE_FILES 1
10204 #include <sys/types.h>
10205 /* Check that off_t can represent 2**63 - 1 correctly.
10206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10207 since some C++ compilers masquerading as C compilers
10208 incorrectly reject 9223372036854775807. */
10209 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10211 && LARGE_OFF_T % 2147483647 == 1)
10221 rm -f conftest.$ac_objext
10222 if { (ac_try="$ac_compile"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_compile") 2>conftest.er1
10230 grep -v '^ *+' conftest.er1 >conftest.err
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest.$ac_objext; then
10238 ac_cv_sys_large_files=1; break
10240 echo "$as_me: failed program was
:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247 ac_cv_sys_large_files=unknown
10251 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
10252 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10253 case $ac_cv_sys_large_files in #(
10256 cat >>confdefs.h <<_ACEOF
10257 #define _LARGE_FILES $ac_cv_sys_large_files
10266 # Checks for typedefs, structures, and compiler characteristics.
10267 { echo "$as_me:$LINENO: checking
for stdbool.h that conforms to C99
" >&5
10268 echo $ECHO_N "checking
for stdbool.h that conforms to C99...
$ECHO_C" >&6; }
10269 if test "${ac_cv_header_stdbool_h+set}" = set; then
10270 echo $ECHO_N "(cached
) $ECHO_C" >&6
10272 cat >conftest.$ac_ext <<_ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10279 #include <stdbool.h>
10281 "error
: bool is not defined
"
10284 "error
: false is not defined
"
10287 "error
: false is not
0"
10290 "error
: true is not defined
"
10293 "error
: true is not
1"
10295 #ifndef __bool_true_false_are_defined
10296 "error
: __bool_true_false_are_defined is not defined
"
10299 struct s { _Bool s: 1; _Bool t; } s;
10301 char a[true == 1 ? 1 : -1];
10302 char b[false == 0 ? 1 : -1];
10303 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10304 char d[(bool) 0.5 == true ? 1 : -1];
10306 char f[(_Bool) 0.0 == false ? 1 : -1];
10308 char h[sizeof (_Bool)];
10309 char i[sizeof s.t];
10310 enum { j = false, k = true, l = false * true, m = true * 256 };
10312 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10313 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10314 # if defined __xlc__ || defined __GNUC__
10315 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10316 reported by James Lemley on 2005-10-05; see
10317 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10318 This test is not quite right, since xlc is allowed to
10319 reject this program, as the initializer for xlcbug is
10320 not one of the forms that C requires support for.
10321 However, doing the test right would require a runtime
10322 test, and that would make cross-compilation harder.
10323 Let us hope that IBM fixes the xlc bug, and also adds
10324 support for this kind of constant expression. In the
10325 meantime, this test will reject xlc, which is OK, since
10326 our stdbool.h substitute should suffice. We also test
10327 this with GCC, where it should work, to detect more
10328 quickly whether someone messes up the test in the
10330 char digs[] = "0123456789";
10331 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10333 /* Catch a bug in an HP-UX C compiler. See
10334 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10335 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10346 /* Refer to every declared value, to avoid compiler optimizations. */
10347 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10348 + !m + !n + !o + !p + !q + !pq);
10354 rm -f conftest.$ac_objext
10355 if { (ac_try="$ac_compile"
10356 case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_compile") 2>conftest.er1
10363 grep -v '^ *+' conftest.er1 >conftest.err
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10367 (exit $ac_status); } && {
10368 test -z "$ac_c_werror_flag" ||
10369 test ! -s conftest.err
10370 } && test -s conftest.$ac_objext; then
10371 ac_cv_header_stdbool_h=yes
10373 echo "$as_me: failed program was
:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 ac_cv_header_stdbool_h=no
10379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10381 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdbool_h" >&5
10382 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10383 { echo "$as_me:$LINENO: checking
for _Bool
" >&5
10384 echo $ECHO_N "checking
for _Bool...
$ECHO_C" >&6; }
10385 if test "${ac_cv_type__Bool+set}" = set; then
10386 echo $ECHO_N "(cached
) $ECHO_C" >&6
10388 cat >conftest.$ac_ext <<_ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 $ac_includes_default
10395 typedef _Bool ac__type_new_;
10399 if ((ac__type_new_ *) 0)
10401 if (sizeof (ac__type_new_))
10407 rm -f conftest.$ac_objext
10408 if { (ac_try="$ac_compile"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_compile") 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest.$ac_objext; then
10424 ac_cv_type__Bool=yes
10426 echo "$as_me: failed program was
:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 ac_cv_type__Bool=no
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434 { echo "$as_me:$LINENO: result
: $ac_cv_type__Bool" >&5
10435 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10436 if test $ac_cv_type__Bool = yes; then
10438 cat >>confdefs.h <<_ACEOF
10439 #define HAVE__BOOL 1
10445 if test $ac_cv_header_stdbool_h = yes; then
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE_STDBOOL_H 1
10453 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
10454 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
10455 if test "${ac_cv_c_const+set}" = set; then
10456 echo $ECHO_N "(cached
) $ECHO_C" >&6
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10468 /* FIXME: Include the comments suggested by Paul. */
10469 #ifndef __cplusplus
10470 /* Ultrix mips cc rejects this. */
10471 typedef int charset[2];
10473 /* SunOS 4.1.1 cc rejects this. */
10474 char const *const *pcpcc;
10476 /* NEC SVR4.0.2 mips cc rejects this. */
10477 struct point {int x, y;};
10478 static struct point const zero = {0,0};
10479 /* AIX XL C 1.02.0.0 rejects this.
10480 It does not let you subtract one const X* pointer from another in
10481 an arm of an if-expression whose if-part is not a constant
10483 const char *g = "string
";
10484 pcpcc = &g + (g ? g-g : 0);
10485 /* HPUX 7.0 cc rejects these. */
10487 ppc = (char**) pcpcc;
10488 pcpcc = (char const *const *) ppc;
10489 { /* SCO 3.2v4 cc rejects this. */
10491 char const *s = 0 ? (char *) 0 : (char const *) 0;
10496 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10497 int x[] = {25, 17};
10498 const int *foo = &x[0];
10501 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10502 typedef const int *iptr;
10506 { /* AIX XL C 1.02.0.0 rejects this saying
10507 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10508 struct s { int j; const int *ap[3]; };
10509 struct s *b; b->j = 5;
10511 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10512 const int foo = 10;
10513 if (!foo) return 0;
10515 return !cs[0] && !zero.x;
10522 rm -f conftest.$ac_objext
10523 if { (ac_try="$ac_compile"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_compile") 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest.$ac_objext; then
10541 echo "$as_me: failed program was
:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
10550 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10551 if test $ac_cv_c_const = no; then
10553 cat >>confdefs.h <<\_ACEOF
10559 { echo "$as_me:$LINENO: checking
for uid_t
in sys
/types.h
" >&5
10560 echo $ECHO_N "checking
for uid_t
in sys
/types.h...
$ECHO_C" >&6; }
10561 if test "${ac_cv_type_uid_t+set}" = set; then
10562 echo $ECHO_N "(cached
) $ECHO_C" >&6
10564 cat >conftest.$ac_ext <<_ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 #include <sys/types.h>
10573 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10574 $EGREP "uid_t
" >/dev/null 2>&1; then
10575 ac_cv_type_uid_t=yes
10577 ac_cv_type_uid_t=no
10582 { echo "$as_me:$LINENO: result
: $ac_cv_type_uid_t" >&5
10583 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10584 if test $ac_cv_type_uid_t = no; then
10586 cat >>confdefs.h <<\_ACEOF
10591 cat >>confdefs.h <<\_ACEOF
10597 { echo "$as_me:$LINENO: checking
for inline
" >&5
10598 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
10599 if test "${ac_cv_c_inline+set}" = set; then
10600 echo $ECHO_N "(cached
) $ECHO_C" >&6
10603 for ac_kw in inline __inline__ __inline; do
10604 cat >conftest.$ac_ext <<_ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10610 #ifndef __cplusplus
10612 static $ac_kw foo_t static_foo () {return 0; }
10613 $ac_kw foo_t foo () {return 0; }
10617 rm -f conftest.$ac_objext
10618 if { (ac_try="$ac_compile"
10619 case "(($ac_try" in
10620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621 *) ac_try_echo=$ac_try;;
10623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10624 (eval "$ac_compile") 2>conftest.er1
10626 grep -v '^ *+' conftest.er1 >conftest.err
10628 cat conftest.err >&5
10629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10630 (exit $ac_status); } && {
10631 test -z "$ac_c_werror_flag" ||
10632 test ! -s conftest.err
10633 } && test -s conftest.$ac_objext; then
10634 ac_cv_c_inline=$ac_kw
10636 echo "$as_me: failed program was
:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 test "$ac_cv_c_inline" != no && break
10647 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
10648 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10651 case $ac_cv_c_inline in
10654 case $ac_cv_c_inline in
10656 *) ac_val=$ac_cv_c_inline;;
10658 cat >>confdefs.h <<_ACEOF
10659 #ifndef __cplusplus
10660 #define inline $ac_val
10666 { echo "$as_me:$LINENO: checking
for mode_t
" >&5
10667 echo $ECHO_N "checking
for mode_t...
$ECHO_C" >&6; }
10668 if test "${ac_cv_type_mode_t+set}" = set; then
10669 echo $ECHO_N "(cached
) $ECHO_C" >&6
10671 cat >conftest.$ac_ext <<_ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 $ac_includes_default
10678 typedef mode_t ac__type_new_;
10682 if ((ac__type_new_ *) 0)
10684 if (sizeof (ac__type_new_))
10690 rm -f conftest.$ac_objext
10691 if { (ac_try="$ac_compile"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest.$ac_objext; then
10707 ac_cv_type_mode_t=yes
10709 echo "$as_me: failed program was
:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ac_cv_type_mode_t=no
10715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result
: $ac_cv_type_mode_t" >&5
10718 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10719 if test $ac_cv_type_mode_t = yes; then
10723 cat >>confdefs.h <<_ACEOF
10729 { echo "$as_me:$LINENO: checking
for off_t
" >&5
10730 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
10731 if test "${ac_cv_type_off_t+set}" = set; then
10732 echo $ECHO_N "(cached
) $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 $ac_includes_default
10741 typedef off_t ac__type_new_;
10745 if ((ac__type_new_ *) 0)
10747 if (sizeof (ac__type_new_))
10753 rm -f conftest.$ac_objext
10754 if { (ac_try="$ac_compile"
10755 case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_compile") 2>conftest.er1
10762 grep -v '^ *+' conftest.er1 >conftest.err
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest.$ac_objext; then
10770 ac_cv_type_off_t=yes
10772 echo "$as_me: failed program was
:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_type_off_t=no
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
10781 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10782 if test $ac_cv_type_off_t = yes; then
10786 cat >>confdefs.h <<_ACEOF
10787 #define off_t long int
10792 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
10793 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
10794 if test "${ac_cv_type_pid_t+set}" = set; then
10795 echo $ECHO_N "(cached
) $ECHO_C" >&6
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 typedef pid_t ac__type_new_;
10808 if ((ac__type_new_ *) 0)
10810 if (sizeof (ac__type_new_))
10816 rm -f conftest.$ac_objext
10817 if { (ac_try="$ac_compile"
10818 case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_compile") 2>conftest.er1
10825 grep -v '^ *+' conftest.er1 >conftest.err
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest.$ac_objext; then
10833 ac_cv_type_pid_t=yes
10835 echo "$as_me: failed program was
:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_type_pid_t=no
10841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
10844 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10845 if test $ac_cv_type_pid_t = yes; then
10849 cat >>confdefs.h <<_ACEOF
10855 { echo "$as_me:$LINENO: checking
for size_t
" >&5
10856 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
10857 if test "${ac_cv_type_size_t+set}" = set; then
10858 echo $ECHO_N "(cached
) $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 $ac_includes_default
10867 typedef size_t ac__type_new_;
10871 if ((ac__type_new_ *) 0)
10873 if (sizeof (ac__type_new_))
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_compile") 2>conftest.er1
10888 grep -v '^ *+' conftest.er1 >conftest.err
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10892 (exit $ac_status); } && {
10893 test -z "$ac_c_werror_flag" ||
10894 test ! -s conftest.err
10895 } && test -s conftest.$ac_objext; then
10896 ac_cv_type_size_t=yes
10898 echo "$as_me: failed program was
:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 ac_cv_type_size_t=no
10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
10907 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10908 if test $ac_cv_type_size_t = yes; then
10912 cat >>confdefs.h <<_ACEOF
10913 #define size_t unsigned int
10918 { echo "$as_me:$LINENO: checking
for struct stat.st_blksize
" >&5
10919 echo $ECHO_N "checking
for struct stat.st_blksize...
$ECHO_C" >&6; }
10920 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10921 echo $ECHO_N "(cached
) $ECHO_C" >&6
10923 cat >conftest.$ac_ext <<_ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 $ac_includes_default
10933 static struct stat ac_aggr;
10934 if (ac_aggr.st_blksize)
10940 rm -f conftest.$ac_objext
10941 if { (ac_try="$ac_compile"
10942 case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_compile") 2>conftest.er1
10949 grep -v '^ *+' conftest.er1 >conftest.err
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10953 (exit $ac_status); } && {
10954 test -z "$ac_c_werror_flag" ||
10955 test ! -s conftest.err
10956 } && test -s conftest.$ac_objext; then
10957 ac_cv_member_struct_stat_st_blksize=yes
10959 echo "$as_me: failed program was
:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 $ac_includes_default
10972 static struct stat ac_aggr;
10973 if (sizeof ac_aggr.st_blksize)
10979 rm -f conftest.$ac_objext
10980 if { (ac_try="$ac_compile"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_compile") 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10992 (exit $ac_status); } && {
10993 test -z "$ac_c_werror_flag" ||
10994 test ! -s conftest.err
10995 } && test -s conftest.$ac_objext; then
10996 ac_cv_member_struct_stat_st_blksize=yes
10998 echo "$as_me: failed program was
:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_cv_member_struct_stat_st_blksize=no
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11009 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blksize" >&5
11010 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11011 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11013 cat >>confdefs.h <<_ACEOF
11014 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11020 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
11021 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
11022 if test "${ac_cv_header_time+set}" = set; then
11023 echo $ECHO_N "(cached
) $ECHO_C" >&6
11025 cat >conftest.$ac_ext <<_ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 #include <sys/types.h>
11032 #include <sys/time.h>
11038 if ((struct tm *) 0)
11044 rm -f conftest.$ac_objext
11045 if { (ac_try="$ac_compile"
11046 case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_compile") 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11057 (exit $ac_status); } && {
11058 test -z "$ac_c_werror_flag" ||
11059 test ! -s conftest.err
11060 } && test -s conftest.$ac_objext; then
11061 ac_cv_header_time=yes
11063 echo "$as_me: failed program was
:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11066 ac_cv_header_time=no
11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
11072 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11073 if test $ac_cv_header_time = yes; then
11075 cat >>confdefs.h <<\_ACEOF
11076 #define TIME_WITH_SYS_TIME 1
11081 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
11082 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
11083 if test "${ac_cv_struct_tm+set}" = set; then
11084 echo $ECHO_N "(cached
) $ECHO_C" >&6
11086 cat >conftest.$ac_ext <<_ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 #include <sys/types.h>
11099 int *p = &tm.tm_sec;
11105 rm -f conftest.$ac_objext
11106 if { (ac_try="$ac_compile"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_compile") 2>conftest.er1
11114 grep -v '^ *+' conftest.er1 >conftest.err
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11118 (exit $ac_status); } && {
11119 test -z "$ac_c_werror_flag" ||
11120 test ! -s conftest.err
11121 } && test -s conftest.$ac_objext; then
11122 ac_cv_struct_tm=time.h
11124 echo "$as_me: failed program was
:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 ac_cv_struct_tm=sys/time.h
11130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
11133 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11134 if test $ac_cv_struct_tm = sys/time.h; then
11136 cat >>confdefs.h <<\_ACEOF
11137 #define TM_IN_SYS_TIME 1
11142 { echo "$as_me:$LINENO: checking
for working volatile
" >&5
11143 echo $ECHO_N "checking
for working volatile...
$ECHO_C" >&6; }
11144 if test "${ac_cv_c_volatile+set}" = set; then
11145 echo $ECHO_N "(cached
) $ECHO_C" >&6
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11159 int * volatile y = (int *) 0;
11165 rm -f conftest.$ac_objext
11166 if { (ac_try="$ac_compile"
11167 case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_compile") 2>conftest.er1
11174 grep -v '^ *+' conftest.er1 >conftest.err
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11178 (exit $ac_status); } && {
11179 test -z "$ac_c_werror_flag" ||
11180 test ! -s conftest.err
11181 } && test -s conftest.$ac_objext; then
11182 ac_cv_c_volatile=yes
11184 echo "$as_me: failed program was
:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ac_cv_c_volatile=no
11190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 { echo "$as_me:$LINENO: result
: $ac_cv_c_volatile" >&5
11193 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11194 if test $ac_cv_c_volatile = no; then
11196 cat >>confdefs.h <<\_ACEOF
11202 { echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
11203 echo $ECHO_N "checking
for ptrdiff_t...
$ECHO_C" >&6; }
11204 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11205 echo $ECHO_N "(cached
) $ECHO_C" >&6
11207 cat >conftest.$ac_ext <<_ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 $ac_includes_default
11214 typedef ptrdiff_t ac__type_new_;
11218 if ((ac__type_new_ *) 0)
11220 if (sizeof (ac__type_new_))
11226 rm -f conftest.$ac_objext
11227 if { (ac_try="$ac_compile"
11228 case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_compile") 2>conftest.er1
11235 grep -v '^ *+' conftest.er1 >conftest.err
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11239 (exit $ac_status); } && {
11240 test -z "$ac_c_werror_flag" ||
11241 test ! -s conftest.err
11242 } && test -s conftest.$ac_objext; then
11243 ac_cv_type_ptrdiff_t=yes
11245 echo "$as_me: failed program was
:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ac_cv_type_ptrdiff_t=no
11251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253 { echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
11254 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11255 if test $ac_cv_type_ptrdiff_t = yes; then
11257 cat >>confdefs.h <<_ACEOF
11258 #define HAVE_PTRDIFF_T 1
11265 # Checks for library functions.
11267 for ac_header in unistd.h
11269 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11270 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11271 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11272 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11273 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11274 echo $ECHO_N "(cached
) $ECHO_C" >&6
11276 ac_res=`eval echo '${'$as_ac_Header'}'`
11277 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11278 echo "${ECHO_T}$ac_res" >&6; }
11280 # Is the header compilable?
11281 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11282 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11283 cat >conftest.$ac_ext <<_ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 $ac_includes_default
11290 #include <$ac_header>
11292 rm -f conftest.$ac_objext
11293 if { (ac_try="$ac_compile"
11294 case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_compile") 2>conftest.er1
11301 grep -v '^ *+' conftest.er1 >conftest.err
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11305 (exit $ac_status); } && {
11306 test -z "$ac_c_werror_flag" ||
11307 test ! -s conftest.err
11308 } && test -s conftest.$ac_objext; then
11309 ac_header_compiler=yes
11311 echo "$as_me: failed program was
:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_header_compiler=no
11317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11319 echo "${ECHO_T}$ac_header_compiler" >&6; }
11321 # Is the header present?
11322 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11323 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11324 cat >conftest.$ac_ext <<_ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 #include <$ac_header>
11332 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11333 case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11340 grep -v '^ *+' conftest.er1 >conftest.err
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11344 (exit $ac_status); } >/dev/null && {
11345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11346 test ! -s conftest.err
11348 ac_header_preproc=yes
11350 echo "$as_me: failed program was
:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 ac_header_preproc=no
11356 rm -f conftest.err conftest.$ac_ext
11357 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11358 echo "${ECHO_T}$ac_header_preproc" >&6; }
11360 # So? What about this header?
11361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11363 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11364 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11365 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11367 ac_header_preproc=yes
11370 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11371 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11372 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11373 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11374 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11375 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11376 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11377 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11378 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11380 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11381 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11383 ## ------------------------------- ##
11384 ## Report this to www.asterisk.org ##
11385 ## ------------------------------- ##
11387 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11390 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11391 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11392 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11393 echo $ECHO_N "(cached
) $ECHO_C" >&6
11395 eval "$as_ac_Header=\
$ac_header_preproc"
11397 ac_res=`eval echo '${'$as_ac_Header'}'`
11398 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11399 echo "${ECHO_T}$ac_res" >&6; }
11402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11403 cat >>confdefs.h <<_ACEOF
11404 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11411 { echo "$as_me:$LINENO: checking
for working chown
" >&5
11412 echo $ECHO_N "checking
for working chown...
$ECHO_C" >&6; }
11413 if test "${ac_cv_func_chown_works+set}" = set; then
11414 echo $ECHO_N "(cached
) $ECHO_C" >&6
11416 if test "$cross_compiling" = yes; then
11417 ac_cv_func_chown_works=no
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 $ac_includes_default
11431 char *f = "conftest.chown
";
11432 struct stat before, after;
11434 if (creat (f, 0600) < 0)
11436 if (stat (f, &before) < 0)
11438 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11440 if (stat (f, &after) < 0)
11442 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11448 rm -f conftest$ac_exeext
11449 if { (ac_try="$ac_link"
11450 case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_link") 2>&5
11457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11459 { (case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_try") 2>&5
11466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11467 (exit $ac_status); }; }; then
11468 ac_cv_func_chown_works=yes
11470 echo "$as_me: program exited with status
$ac_status" >&5
11471 echo "$as_me: failed program was
:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ( exit $ac_status )
11475 ac_cv_func_chown_works=no
11477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11481 rm -f conftest.chown
11484 { echo "$as_me:$LINENO: result
: $ac_cv_func_chown_works" >&5
11485 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11486 if test $ac_cv_func_chown_works = yes; then
11488 cat >>confdefs.h <<\_ACEOF
11489 #define HAVE_CHOWN 1
11494 { echo "$as_me:$LINENO: checking whether closedir returns void
" >&5
11495 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; }
11496 if test "${ac_cv_func_closedir_void+set}" = set; then
11497 echo $ECHO_N "(cached
) $ECHO_C" >&6
11499 if test "$cross_compiling" = yes; then
11500 ac_cv_func_closedir_void=yes
11502 cat >conftest.$ac_ext <<_ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 $ac_includes_default
11509 #include <$ac_header_dirent>
11510 #ifndef __cplusplus
11517 return closedir (opendir (".
")) != 0;
11522 rm -f conftest$ac_exeext
11523 if { (ac_try="$ac_link"
11524 case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_link") 2>&5
11531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11540 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_cv_func_closedir_void=no
11544 echo "$as_me: program exited with status
$ac_status" >&5
11545 echo "$as_me: failed program was
:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 ( exit $ac_status )
11549 ac_cv_func_closedir_void=yes
11551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11556 { echo "$as_me:$LINENO: result
: $ac_cv_func_closedir_void" >&5
11557 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11558 if test $ac_cv_func_closedir_void = yes; then
11560 cat >>confdefs.h <<\_ACEOF
11561 #define CLOSEDIR_VOID 1
11566 { echo "$as_me:$LINENO: checking
for error_at_line
" >&5
11567 echo $ECHO_N "checking
for error_at_line...
$ECHO_C" >&6; }
11568 if test "${ac_cv_lib_error_at_line+set}" = set; then
11569 echo $ECHO_N "(cached
) $ECHO_C" >&6
11571 cat >conftest.$ac_ext <<_ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11581 error_at_line (0, 0, "", 0, "an error occurred
");
11586 rm -f conftest.$ac_objext conftest$ac_exeext
11587 if { (ac_try="$ac_link"
11588 case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_link") 2>conftest.er1
11595 grep -v '^ *+' conftest.er1 >conftest.err
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11599 (exit $ac_status); } && {
11600 test -z "$ac_c_werror_flag" ||
11601 test ! -s conftest.err
11602 } && test -s conftest$ac_exeext &&
11603 $as_test_x conftest$ac_exeext; then
11604 ac_cv_lib_error_at_line=yes
11606 echo "$as_me: failed program was
:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 ac_cv_lib_error_at_line=no
11612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11613 conftest$ac_exeext conftest.$ac_ext
11615 { echo "$as_me:$LINENO: result
: $ac_cv_lib_error_at_line" >&5
11616 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11617 if test $ac_cv_lib_error_at_line = no; then
11618 case " $LIBOBJS " in
11619 *" error.
$ac_objext "* ) ;;
11620 *) LIBOBJS="$LIBOBJS error.
$ac_objext"
11627 for ac_header in vfork.h
11629 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11630 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11631 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11632 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached
) $ECHO_C" >&6
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11640 # Is the header compilable?
11641 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11642 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 $ac_includes_default
11650 #include <$ac_header>
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11661 grep -v '^ *+' conftest.er1 >conftest.err
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest.$ac_objext; then
11669 ac_header_compiler=yes
11671 echo "$as_me: failed program was
:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11674 ac_header_compiler=no
11677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11678 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11679 echo "${ECHO_T}$ac_header_compiler" >&6; }
11681 # Is the header present?
11682 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11683 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11684 cat >conftest.$ac_ext <<_ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 #include <$ac_header>
11692 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11693 case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11700 grep -v '^ *+' conftest.er1 >conftest.err
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11704 (exit $ac_status); } >/dev/null && {
11705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11708 ac_header_preproc=yes
11710 echo "$as_me: failed program was
:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11713 ac_header_preproc=no
11716 rm -f conftest.err conftest.$ac_ext
11717 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11718 echo "${ECHO_T}$ac_header_preproc" >&6; }
11720 # So? What about this header?
11721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11723 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11724 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11725 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11727 ac_header_preproc=yes
11730 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11731 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11732 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11733 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11734 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11735 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11736 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11737 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11738 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11740 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11741 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11743 ## ------------------------------- ##
11744 ## Report this to www.asterisk.org ##
11745 ## ------------------------------- ##
11747 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11750 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11751 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11752 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11753 echo $ECHO_N "(cached
) $ECHO_C" >&6
11755 eval "$as_ac_Header=\
$ac_header_preproc"
11757 ac_res=`eval echo '${'$as_ac_Header'}'`
11758 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11759 echo "${ECHO_T}$ac_res" >&6; }
11762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11763 cat >>confdefs.h <<_ACEOF
11764 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11773 for ac_func in fork vfork
11775 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11776 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11777 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11778 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11779 echo $ECHO_N "(cached
) $ECHO_C" >&6
11781 cat >conftest.$ac_ext <<_ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11789 #define $ac_func innocuous_$ac_func
11791 /* System header to define __stub macros and hopefully few prototypes,
11792 which can conflict with char $ac_func (); below.
11793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11794 <limits.h> exists even on freestanding compilers. */
11797 # include <limits.h>
11799 # include <assert.h>
11804 /* Override any GCC internal prototype to avoid an error.
11805 Use char because int might match the return type of a GCC
11806 builtin and then its argument prototype would still apply. */
11811 /* The GNU C library defines this for functions which it implements
11812 to always fail with ENOSYS. Some functions are actually named
11813 something starting with __ and the normal name is an alias. */
11814 #if defined __stub_$ac_func || defined __stub___$ac_func
11821 return $ac_func ();
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_link") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest$ac_exeext &&
11843 $as_test_x conftest$ac_exeext; then
11844 eval "$as_ac_var=yes"
11846 echo "$as_me: failed program was
:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 eval "$as_ac_var=no
"
11852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11853 conftest$ac_exeext conftest.$ac_ext
11855 ac_res=`eval echo '${'$as_ac_var'}'`
11856 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11857 echo "${ECHO_T}$ac_res" >&6; }
11858 if test `eval echo '${'$as_ac_var'}'` = yes; then
11859 cat >>confdefs.h <<_ACEOF
11860 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11866 if test "x
$ac_cv_func_fork" = xyes; then
11867 { echo "$as_me:$LINENO: checking
for working fork
" >&5
11868 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
11869 if test "${ac_cv_func_fork_works+set}" = set; then
11870 echo $ECHO_N "(cached
) $ECHO_C" >&6
11872 if test "$cross_compiling" = yes; then
11873 ac_cv_func_fork_works=cross
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 $ac_includes_default
11886 /* By Ruediger Kuhlmann. */
11887 return fork () < 0;
11893 rm -f conftest$ac_exeext
11894 if { (ac_try="$ac_link"
11895 case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_link") 2>&5
11902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_try") 2>&5
11911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 ac_cv_func_fork_works=yes
11915 echo "$as_me: program exited with status
$ac_status" >&5
11916 echo "$as_me: failed program was
:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ( exit $ac_status )
11920 ac_cv_func_fork_works=no
11922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11927 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
11928 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11931 ac_cv_func_fork_works=$ac_cv_func_fork
11933 if test "x
$ac_cv_func_fork_works" = xcross; then
11935 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11936 # Override, as these systems have only a dummy fork() stub
11937 ac_cv_func_fork_works=no
11940 ac_cv_func_fork_works=yes
11943 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
11944 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
11946 ac_cv_func_vfork_works=$ac_cv_func_vfork
11947 if test "x
$ac_cv_func_vfork" = xyes; then
11948 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
11949 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
11950 if test "${ac_cv_func_vfork_works+set}" = set; then
11951 echo $ECHO_N "(cached
) $ECHO_C" >&6
11953 if test "$cross_compiling" = yes; then
11954 ac_cv_func_vfork_works=cross
11956 cat >conftest.$ac_ext <<_ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 /* Thanks to Paul Eggert for this test. */
11963 $ac_includes_default
11964 #include <sys/wait.h>
11965 #ifdef HAVE_VFORK_H
11966 # include <vfork.h>
11968 /* On some sparc systems, changes by the child to local and incoming
11969 argument registers are propagated back to the parent. The compiler
11970 is told about this with #include <vfork.h>, but some compilers
11971 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11972 static variable whose address is put into a register that is
11973 clobbered by the vfork. */
11976 sparc_address_test (int arg)
11978 sparc_address_test (arg) int arg;
11981 static pid_t child;
11999 pid_t parent = getpid ();
12002 sparc_address_test (0);
12007 /* Here is another test for sparc vfork register problems. This
12008 test uses lots of local variables, at least as many local
12009 variables as main has allocated so far including compiler
12010 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12011 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12012 reuse the register of parent for one of the local variables,
12013 since it will think that parent can't possibly be used any more
12014 in this routine. Assigning to the local variable will thus
12015 munge parent in the parent process. */
12017 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12018 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12019 /* Convince the compiler that p..p7 are live; otherwise, it might
12020 use the same hardware register for all 8 local variables. */
12021 if (p != p1 || p != p2 || p != p3 || p != p4
12022 || p != p5 || p != p6 || p != p7)
12025 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12026 from child file descriptors. If the child closes a descriptor
12027 before it execs or exits, this munges the parent's descriptor
12028 as well. Test for this by closing stdout in the child. */
12029 _exit(close(fileno(stdout)) != 0);
12034 while (wait(&status) != child)
12037 /* Was there some problem with vforking? */
12040 /* Did the child fail? (This shouldn't happen.) */
12043 /* Did the vfork/compiler bug occur? */
12044 || parent != getpid()
12046 /* Did the file descriptor bug occur? */
12047 || fstat(fileno(stdout), &st) != 0
12052 rm -f conftest$ac_exeext
12053 if { (ac_try="$ac_link"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_link") 2>&5
12061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
12070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 ac_cv_func_vfork_works=yes
12074 echo "$as_me: program exited with status
$ac_status" >&5
12075 echo "$as_me: failed program was
:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ( exit $ac_status )
12079 ac_cv_func_vfork_works=no
12081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
12087 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12090 if test "x
$ac_cv_func_fork_works" = xcross; then
12091 ac_cv_func_vfork_works=$ac_cv_func_vfork
12092 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
12093 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
12096 if test "x
$ac_cv_func_vfork_works" = xyes; then
12098 cat >>confdefs.h <<\_ACEOF
12099 #define HAVE_WORKING_VFORK 1
12104 cat >>confdefs.h <<\_ACEOF
12109 if test "x
$ac_cv_func_fork_works" = xyes; then
12111 cat >>confdefs.h <<\_ACEOF
12112 #define HAVE_WORKING_FORK 1
12117 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
12118 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
12119 if test "${ac_cv_sys_largefile_source+set}" = set; then
12120 echo $ECHO_N "(cached
) $ECHO_C" >&6
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12133 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
12138 rm -f conftest.$ac_objext conftest$ac_exeext
12139 if { (ac_try="$ac_link"
12140 case "(($ac_try" in
12141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142 *) ac_try_echo=$ac_try;;
12144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12145 (eval "$ac_link") 2>conftest.er1
12147 grep -v '^ *+' conftest.er1 >conftest.err
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12151 (exit $ac_status); } && {
12152 test -z "$ac_c_werror_flag" ||
12153 test ! -s conftest.err
12154 } && test -s conftest$ac_exeext &&
12155 $as_test_x conftest$ac_exeext; then
12156 ac_cv_sys_largefile_source=no; break
12158 echo "$as_me: failed program was
:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12165 conftest$ac_exeext conftest.$ac_ext
12166 cat >conftest.$ac_ext <<_ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 #define _LARGEFILE_SOURCE 1
12177 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_link") 2>conftest.er1
12191 grep -v '^ *+' conftest.er1 >conftest.err
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest$ac_exeext &&
12199 $as_test_x conftest$ac_exeext; then
12200 ac_cv_sys_largefile_source=1; break
12202 echo "$as_me: failed program was
:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12209 conftest$ac_exeext conftest.$ac_ext
12210 ac_cv_sys_largefile_source=unknown
12214 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
12215 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12216 case $ac_cv_sys_largefile_source in #(
12219 cat >>confdefs.h <<_ACEOF
12220 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12226 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12227 # in glibc 2.1.3, but that breaks too many other things.
12228 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12229 if test $ac_cv_sys_largefile_source != unknown; then
12231 cat >>confdefs.h <<\_ACEOF
12232 #define HAVE_FSEEKO 1
12237 if test $ac_cv_c_compiler_gnu = yes; then
12238 { echo "$as_me:$LINENO: checking whether
$CC needs
-traditional" >&5
12239 echo $ECHO_N "checking whether
$CC needs
-traditional...
$ECHO_C" >&6; }
12240 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12241 echo $ECHO_N "(cached
) $ECHO_C" >&6
12243 ac_pattern="Autoconf.
*'x'"
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12253 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12254 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12255 ac_cv_prog_gcc_traditional=yes
12257 ac_cv_prog_gcc_traditional=no
12262 if test $ac_cv_prog_gcc_traditional = no; then
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12269 #include <termio.h>
12272 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12273 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12274 ac_cv_prog_gcc_traditional=yes
12280 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gcc_traditional" >&5
12281 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12282 if test $ac_cv_prog_gcc_traditional = yes; then
12283 CC="$CC -traditional"
12287 # XXX: these are commented out until we determine whether it matters if our malloc()
12288 # acts exactly like glibc's or not
12291 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
12292 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
12293 if test "${ac_cv_func_memcmp_working+set}" = set; then
12294 echo $ECHO_N "(cached
) $ECHO_C" >&6
12296 if test "$cross_compiling" = yes; then
12297 ac_cv_func_memcmp_working=no
12299 cat >conftest.$ac_ext <<_ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 $ac_includes_default
12310 /* Some versions of memcmp are not 8-bit clean. */
12311 char c0 = '\100', c1 = '\200', c2 = '\201';
12312 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12315 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12316 or more and with at least one buffer not starting on a 4-byte boundary.
12317 William Lewis provided this test program. */
12322 for (i = 0; i < 4; i++)
12326 strcpy (a, "--------01111111");
12327 strcpy (b, "--------10000000");
12328 if (memcmp (a, b, 16) >= 0)
12338 rm -f conftest$ac_exeext
12339 if { (ac_try="$ac_link"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_link") 2>&5
12347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12349 { (case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_try") 2>&5
12356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_func_memcmp_working=yes
12360 echo "$as_me: program exited with status
$ac_status" >&5
12361 echo "$as_me: failed program was
:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 ( exit $ac_status )
12365 ac_cv_func_memcmp_working=no
12367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12372 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
12373 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12374 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12375 *" memcmp.
$ac_objext "* ) ;;
12376 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
12383 for ac_header in stdlib.h unistd.h
12385 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12387 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12388 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12389 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12390 echo $ECHO_N "(cached
) $ECHO_C" >&6
12392 ac_res=`eval echo '${'$as_ac_Header'}'`
12393 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12394 echo "${ECHO_T}$ac_res" >&6; }
12396 # Is the header compilable?
12397 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12398 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 $ac_includes_default
12406 #include <$ac_header>
12408 rm -f conftest.$ac_objext
12409 if { (ac_try="$ac_compile"
12410 case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_compile") 2>conftest.er1
12417 grep -v '^ *+' conftest.er1 >conftest.err
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12421 (exit $ac_status); } && {
12422 test -z "$ac_c_werror_flag" ||
12423 test ! -s conftest.err
12424 } && test -s conftest.$ac_objext; then
12425 ac_header_compiler=yes
12427 echo "$as_me: failed program was
:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 ac_header_compiler=no
12433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12434 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12435 echo "${ECHO_T}$ac_header_compiler" >&6; }
12437 # Is the header present?
12438 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12439 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12440 cat >conftest.$ac_ext <<_ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 #include <$ac_header>
12448 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12449 case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12456 grep -v '^ *+' conftest.er1 >conftest.err
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12460 (exit $ac_status); } >/dev/null && {
12461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12462 test ! -s conftest.err
12464 ac_header_preproc=yes
12466 echo "$as_me: failed program was
:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 ac_header_preproc=no
12472 rm -f conftest.err conftest.$ac_ext
12473 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12474 echo "${ECHO_T}$ac_header_preproc" >&6; }
12476 # So? What about this header?
12477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12479 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12480 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12481 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12483 ac_header_preproc=yes
12486 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12487 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12488 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12489 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12490 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12491 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12492 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12493 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12494 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12496 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12497 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12499 ## ------------------------------- ##
12500 ## Report this to www.asterisk.org ##
12501 ## ------------------------------- ##
12503 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12506 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12507 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12508 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12509 echo $ECHO_N "(cached
) $ECHO_C" >&6
12511 eval "$as_ac_Header=\
$ac_header_preproc"
12513 ac_res=`eval echo '${'$as_ac_Header'}'`
12514 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12515 echo "${ECHO_T}$ac_res" >&6; }
12518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12519 cat >>confdefs.h <<_ACEOF
12520 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12528 for ac_func in getpagesize
12530 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12531 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12532 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12533 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12534 echo $ECHO_N "(cached
) $ECHO_C" >&6
12536 cat >conftest.$ac_ext <<_ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12544 #define $ac_func innocuous_$ac_func
12546 /* System header to define __stub macros and hopefully few prototypes,
12547 which can conflict with char $ac_func (); below.
12548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12549 <limits.h> exists even on freestanding compilers. */
12552 # include <limits.h>
12554 # include <assert.h>
12559 /* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12566 /* The GNU C library defines this for functions which it implements
12567 to always fail with ENOSYS. Some functions are actually named
12568 something starting with __ and the normal name is an alias. */
12569 #if defined __stub_$ac_func || defined __stub___$ac_func
12576 return $ac_func ();
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582 if { (ac_try="$ac_link"
12583 case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_link") 2>conftest.er1
12590 grep -v '^ *+' conftest.er1 >conftest.err
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12594 (exit $ac_status); } && {
12595 test -z "$ac_c_werror_flag" ||
12596 test ! -s conftest.err
12597 } && test -s conftest$ac_exeext &&
12598 $as_test_x conftest$ac_exeext; then
12599 eval "$as_ac_var=yes"
12601 echo "$as_me: failed program was
:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 eval "$as_ac_var=no
"
12607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12608 conftest$ac_exeext conftest.$ac_ext
12610 ac_res=`eval echo '${'$as_ac_var'}'`
12611 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12612 echo "${ECHO_T}$ac_res" >&6; }
12613 if test `eval echo '${'$as_ac_var'}'` = yes; then
12614 cat >>confdefs.h <<_ACEOF
12615 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12621 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
12622 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
12623 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12624 echo $ECHO_N "(cached
) $ECHO_C" >&6
12626 if test "$cross_compiling" = yes; then
12627 ac_cv_func_mmap_fixed_mapped=no
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 $ac_includes_default
12636 /* malloc might have been renamed as rpl_malloc. */
12639 /* Thanks to Mike Haertel and Jim Avera for this test.
12640 Here is a matrix of mmap possibilities:
12641 mmap private not fixed
12642 mmap private fixed at somewhere currently unmapped
12643 mmap private fixed at somewhere already mapped
12644 mmap shared not fixed
12645 mmap shared fixed at somewhere currently unmapped
12646 mmap shared fixed at somewhere already mapped
12647 For private mappings, we should verify that changes cannot be read()
12648 back from the file, nor mmap's back from the file at a different
12649 address. (There have been systems where private was not correctly
12650 implemented like the infamous i386 svr4.0, and systems where the
12651 VM page cache was not coherent with the file system buffer cache
12652 like early versions of FreeBSD and possibly contemporary NetBSD.)
12653 For shared mappings, we should conversely verify that changes get
12654 propagated back to all the places they're supposed to be.
12656 Grep wants private fixed already mapped.
12657 The main things grep needs to know about mmap are:
12658 * does it exist and is it safe to write into the mmap'd area
12659 * how to use it (BSD variants) */
12662 #include <sys/mman.h>
12664 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12668 /* This mess was copied from the GNU getpagesize.h. */
12669 #ifndef HAVE_GETPAGESIZE
12670 /* Assume that all systems that can run configure have sys/param.h. */
12671 # ifndef HAVE_SYS_PARAM_H
12672 # define HAVE_SYS_PARAM_H 1
12675 # ifdef _SC_PAGESIZE
12676 # define getpagesize() sysconf(_SC_PAGESIZE)
12677 # else /* no _SC_PAGESIZE */
12678 # ifdef HAVE_SYS_PARAM_H
12679 # include <sys/param.h>
12680 # ifdef EXEC_PAGESIZE
12681 # define getpagesize() EXEC_PAGESIZE
12682 # else /* no EXEC_PAGESIZE */
12684 # define getpagesize() NBPG * CLSIZE
12687 # endif /* no CLSIZE */
12688 # else /* no NBPG */
12690 # define getpagesize() NBPC
12691 # else /* no NBPC */
12693 # define getpagesize() PAGESIZE
12694 # endif /* PAGESIZE */
12695 # endif /* no NBPC */
12696 # endif /* no NBPG */
12697 # endif /* no EXEC_PAGESIZE */
12698 # else /* no HAVE_SYS_PARAM_H */
12699 # define getpagesize() 8192 /* punt totally */
12700 # endif /* no HAVE_SYS_PARAM_H */
12701 # endif /* no _SC_PAGESIZE */
12703 #endif /* no HAVE_GETPAGESIZE */
12708 char *data, *data2, *data3;
12712 pagesize = getpagesize ();
12714 /* First, make a file with some known garbage in it. */
12715 data = (char *) malloc (pagesize);
12718 for (i = 0; i < pagesize; ++i)
12719 *(data + i) = rand ();
12721 fd = creat ("conftest.mmap
", 0600);
12724 if (write (fd, data, pagesize) != pagesize)
12728 /* Next, try to mmap the file at a fixed address which already has
12729 something else allocated at it. If we can, also make sure that
12730 we see the same garbage. */
12731 fd = open ("conftest.mmap
", O_RDWR);
12734 data2 = (char *) malloc (2 * pagesize);
12737 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12738 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12739 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12741 for (i = 0; i < pagesize; ++i)
12742 if (*(data + i) != *(data2 + i))
12745 /* Finally, make sure that changes to the mapped area do not
12746 percolate back to the file as seen by read(). (This is a bug on
12747 some variants of i386 svr4.0.) */
12748 for (i = 0; i < pagesize; ++i)
12749 *(data2 + i) = *(data2 + i) + 1;
12750 data3 = (char *) malloc (pagesize);
12753 if (read (fd, data3, pagesize) != pagesize)
12755 for (i = 0; i < pagesize; ++i)
12756 if (*(data + i) != *(data3 + i))
12762 rm -f conftest$ac_exeext
12763 if { (ac_try="$ac_link"
12764 case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_link") 2>&5
12771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12773 { (case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
12780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12781 (exit $ac_status); }; }; then
12782 ac_cv_func_mmap_fixed_mapped=yes
12784 echo "$as_me: program exited with status
$ac_status" >&5
12785 echo "$as_me: failed program was
:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12788 ( exit $ac_status )
12789 ac_cv_func_mmap_fixed_mapped=no
12791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12796 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
12797 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12798 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12800 cat >>confdefs.h <<\_ACEOF
12801 #define HAVE_MMAP 1
12805 rm -f conftest.mmap
12809 for ac_header in sys/select.h sys/socket.h
12811 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12812 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12813 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12814 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12815 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12816 echo $ECHO_N "(cached
) $ECHO_C" >&6
12818 ac_res=`eval echo '${'$as_ac_Header'}'`
12819 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12820 echo "${ECHO_T}$ac_res" >&6; }
12822 # Is the header compilable?
12823 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12824 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12825 cat >conftest.$ac_ext <<_ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12831 $ac_includes_default
12832 #include <$ac_header>
12834 rm -f conftest.$ac_objext
12835 if { (ac_try="$ac_compile"
12836 case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12841 (eval "$ac_compile") 2>conftest.er1
12843 grep -v '^ *+' conftest.er1 >conftest.err
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12847 (exit $ac_status); } && {
12848 test -z "$ac_c_werror_flag" ||
12849 test ! -s conftest.err
12850 } && test -s conftest.$ac_objext; then
12851 ac_header_compiler=yes
12853 echo "$as_me: failed program was
:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12856 ac_header_compiler=no
12859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12860 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12861 echo "${ECHO_T}$ac_header_compiler" >&6; }
12863 # Is the header present?
12864 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12865 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12866 cat >conftest.$ac_ext <<_ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 #include <$ac_header>
12874 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12882 grep -v '^ *+' conftest.er1 >conftest.err
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12886 (exit $ac_status); } >/dev/null && {
12887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12890 ac_header_preproc=yes
12892 echo "$as_me: failed program was
:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 ac_header_preproc=no
12898 rm -f conftest.err conftest.$ac_ext
12899 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12900 echo "${ECHO_T}$ac_header_preproc" >&6; }
12902 # So? What about this header?
12903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12905 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12906 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12907 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12909 ac_header_preproc=yes
12912 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12913 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12914 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12915 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12916 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12917 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12918 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12919 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12920 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12922 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12923 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12925 ## ------------------------------- ##
12926 ## Report this to www.asterisk.org ##
12927 ## ------------------------------- ##
12929 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12932 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12933 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12934 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12935 echo $ECHO_N "(cached
) $ECHO_C" >&6
12937 eval "$as_ac_Header=\
$ac_header_preproc"
12939 ac_res=`eval echo '${'$as_ac_Header'}'`
12940 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12941 echo "${ECHO_T}$ac_res" >&6; }
12944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12945 cat >>confdefs.h <<_ACEOF
12946 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12953 { echo "$as_me:$LINENO: checking types of arguments
for select" >&5
12954 echo $ECHO_N "checking types of arguments
for select...
$ECHO_C" >&6; }
12955 if test "${ac_cv_func_select_args+set}" = set; then
12956 echo $ECHO_N "(cached
) $ECHO_C" >&6
12958 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12959 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12960 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12961 cat >conftest.$ac_ext <<_ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 $ac_includes_default
12968 #ifdef HAVE_SYS_SELECT_H
12969 # include <sys/select.h>
12971 #ifdef HAVE_SYS_SOCKET_H
12972 # include <sys/socket.h>
12978 extern int select ($ac_arg1,
12979 $ac_arg234, $ac_arg234, $ac_arg234,
12985 rm -f conftest.$ac_objext
12986 if { (ac_try="$ac_compile"
12987 case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_compile") 2>conftest.er1
12994 grep -v '^ *+' conftest.er1 >conftest.err
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12998 (exit $ac_status); } && {
12999 test -z "$ac_c_werror_flag" ||
13000 test ! -s conftest.err
13001 } && test -s conftest.$ac_objext; then
13002 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13004 echo "$as_me: failed program was
:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014 # Provide a safe default value.
13015 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13018 { echo "$as_me:$LINENO: result
: $ac_cv_func_select_args" >&5
13019 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13020 ac_save_IFS=$IFS; IFS=','
13021 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13025 cat >>confdefs.h <<_ACEOF
13026 #define SELECT_TYPE_ARG1 $1
13030 cat >>confdefs.h <<_ACEOF
13031 #define SELECT_TYPE_ARG234 ($2)
13035 cat >>confdefs.h <<_ACEOF
13036 #define SELECT_TYPE_ARG5 ($3)
13041 { echo "$as_me:$LINENO: checking
for function prototypes
" >&5
13042 echo $ECHO_N "checking
for function prototypes...
$ECHO_C" >&6; }
13043 if test "$ac_cv_prog_cc_c89" != no; then
13044 { echo "$as_me:$LINENO: result
: yes" >&5
13045 echo "${ECHO_T}yes" >&6; }
13047 cat >>confdefs.h <<\_ACEOF
13048 #define PROTOTYPES 1
13052 cat >>confdefs.h <<\_ACEOF
13053 #define __PROTOTYPES 1
13057 { echo "$as_me:$LINENO: result
: no
" >&5
13058 echo "${ECHO_T}no
" >&6; }
13061 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed
" >&5
13062 echo $ECHO_N "checking whether setvbuf arguments are reversed...
$ECHO_C" >&6; }
13063 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13064 echo $ECHO_N "(cached
) $ECHO_C" >&6
13066 ac_cv_func_setvbuf_reversed=no
13067 cat >conftest.$ac_ext <<_ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13075 int (setvbuf) (FILE *, int, char *, size_t);
13080 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (ac_try="$ac_link"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_link") 2>conftest.er1
13094 grep -v '^ *+' conftest.er1 >conftest.err
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13098 (exit $ac_status); } && {
13099 test -z "$ac_c_werror_flag" ||
13100 test ! -s conftest.err
13101 } && test -s conftest$ac_exeext &&
13102 $as_test_x conftest$ac_exeext; then
13103 cat >conftest.$ac_ext <<_ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13111 int (setvbuf) (FILE *, int, char *, size_t);
13116 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (ac_try="$ac_link"
13123 case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13128 (eval "$ac_link") 2>conftest.er1
13130 grep -v '^ *+' conftest.er1 >conftest.err
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13134 (exit $ac_status); } && {
13135 test -z "$ac_c_werror_flag" ||
13136 test ! -s conftest.err
13137 } && test -s conftest$ac_exeext &&
13138 $as_test_x conftest$ac_exeext; then
13139 # It compiles and links either way, so it must not be declared
13140 # with a prototype and most likely this is a K&R C compiler.
13142 if test "$cross_compiling" = yes; then
13143 : # Assume setvbuf is not reversed when cross-compiling.
13145 cat >conftest.$ac_ext <<_ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13151 $ac_includes_default
13155 /* This call has the arguments reversed.
13156 A reversed system may check and see that the address of buf
13157 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13159 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13162 return 0; /* Non-reversed systems SEGV here. */
13167 rm -f conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_link") 2>&5
13176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13178 { (case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_try") 2>&5
13185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_cv_func_setvbuf_reversed=yes
13189 echo "$as_me: program exited with status
$ac_status" >&5
13190 echo "$as_me: failed program was
:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13198 ac_cv_func_setvbuf_reversed=yes
13200 echo "$as_me: failed program was
:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13207 conftest$ac_exeext conftest.$ac_ext
13209 echo "$as_me: failed program was
:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13216 conftest$ac_exeext conftest.$ac_ext
13218 { echo "$as_me:$LINENO: result
: $ac_cv_func_setvbuf_reversed" >&5
13219 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13220 if test $ac_cv_func_setvbuf_reversed = yes; then
13222 cat >>confdefs.h <<\_ACEOF
13223 #define SETVBUF_REVERSED 1
13228 { echo "$as_me:$LINENO: checking
return type of signal handlers
" >&5
13229 echo $ECHO_N "checking
return type of signal handlers...
$ECHO_C" >&6; }
13230 if test "${ac_cv_type_signal+set}" = set; then
13231 echo $ECHO_N "(cached
) $ECHO_C" >&6
13233 cat >conftest.$ac_ext <<_ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 #include <sys/types.h>
13240 #include <signal.h>
13245 return *(signal (0, 0)) (0) == 1;
13250 rm -f conftest.$ac_objext
13251 if { (ac_try="$ac_compile"
13252 case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_compile") 2>conftest.er1
13259 grep -v '^ *+' conftest.er1 >conftest.err
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13263 (exit $ac_status); } && {
13264 test -z "$ac_c_werror_flag" ||
13265 test ! -s conftest.err
13266 } && test -s conftest.$ac_objext; then
13267 ac_cv_type_signal=int
13269 echo "$as_me: failed program was
:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_cv_type_signal=void
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 { echo "$as_me:$LINENO: result
: $ac_cv_type_signal" >&5
13278 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13280 cat >>confdefs.h <<_ACEOF
13281 #define RETSIGTYPE $ac_cv_type_signal
13285 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash
" >&5
13286 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash...
$ECHO_C" >&6; }
13287 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13288 echo $ECHO_N "(cached
) $ECHO_C" >&6
13290 rm -f conftest.sym conftest.file
13291 echo >conftest.file
13292 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13293 if test "$cross_compiling" = yes; then
13294 ac_cv_func_lstat_dereferences_slashed_symlink=no
13296 cat >conftest.$ac_ext <<_ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 $ac_includes_default
13307 /* Linux will dereference the symlink and fail.
13308 That is better in the sense that it means we will not
13309 have to compile and use the lstat wrapper. */
13310 return lstat ("conftest.sym
/", &sbuf) == 0;
13315 rm -f conftest$ac_exeext
13316 if { (ac_try="$ac_link"
13317 case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_link") 2>&5
13324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13326 { (case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_try") 2>&5
13333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13337 echo "$as_me: program exited with status
$ac_status" >&5
13338 echo "$as_me: failed program was
:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 ( exit $ac_status )
13342 ac_cv_func_lstat_dereferences_slashed_symlink=no
13344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13349 # If the `ln -s' command failed, then we probably don't even
13350 # have an lstat function.
13351 ac_cv_func_lstat_dereferences_slashed_symlink=no
13353 rm -f conftest.sym conftest.file
13356 { echo "$as_me:$LINENO: result
: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13357 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13359 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13361 cat >>confdefs.h <<_ACEOF
13362 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13366 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13367 case " $LIBOBJS " in
13368 *" lstat.
$ac_objext "* ) ;;
13369 *) LIBOBJS="$LIBOBJS lstat.
$ac_objext"
13375 { echo "$as_me:$LINENO: checking whether stat accepts an empty string
" >&5
13376 echo $ECHO_N "checking whether stat accepts an empty string...
$ECHO_C" >&6; }
13377 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13378 echo $ECHO_N "(cached
) $ECHO_C" >&6
13380 if test "$cross_compiling" = yes; then
13381 ac_cv_func_stat_empty_string_bug=yes
13383 cat >conftest.$ac_ext <<_ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13389 $ac_includes_default
13394 return stat ("", &sbuf) == 0;
13399 rm -f conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_link") 2>&5
13408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_cv_func_stat_empty_string_bug=no
13421 echo "$as_me: program exited with status
$ac_status" >&5
13422 echo "$as_me: failed program was
:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13425 ( exit $ac_status )
13426 ac_cv_func_stat_empty_string_bug=yes
13428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13433 { echo "$as_me:$LINENO: result
: $ac_cv_func_stat_empty_string_bug" >&5
13434 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13435 if test $ac_cv_func_stat_empty_string_bug = yes; then
13436 case " $LIBOBJS " in
13437 *" stat.
$ac_objext "* ) ;;
13438 *) LIBOBJS="$LIBOBJS stat.
$ac_objext"
13443 cat >>confdefs.h <<_ACEOF
13444 #define HAVE_STAT_EMPTY_STRING_BUG 1
13449 { echo "$as_me:$LINENO: checking
for working strcoll
" >&5
13450 echo $ECHO_N "checking
for working strcoll...
$ECHO_C" >&6; }
13451 if test "${ac_cv_func_strcoll_works+set}" = set; then
13452 echo $ECHO_N "(cached
) $ECHO_C" >&6
13454 if test "$cross_compiling" = yes; then
13455 ac_cv_func_strcoll_works=no
13457 cat >conftest.$ac_ext <<_ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 $ac_includes_default
13467 return (strcoll ("abc
", "def
") >= 0 ||
13468 strcoll ("ABC
", "DEF
") >= 0 ||
13469 strcoll ("123", "456") >= 0)
13474 rm -f conftest$ac_exeext
13475 if { (ac_try="$ac_link"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_link") 2>&5
13483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13485 { (case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_try") 2>&5
13492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_cv_func_strcoll_works=yes
13496 echo "$as_me: program exited with status
$ac_status" >&5
13497 echo "$as_me: failed program was
:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 ( exit $ac_status )
13501 ac_cv_func_strcoll_works=no
13503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13508 { echo "$as_me:$LINENO: result
: $ac_cv_func_strcoll_works" >&5
13509 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13510 if test $ac_cv_func_strcoll_works = yes; then
13512 cat >>confdefs.h <<\_ACEOF
13513 #define HAVE_STRCOLL 1
13519 for ac_func in strftime
13521 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
13522 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
13523 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
13524 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
13525 echo $ECHO_N "(cached
) $ECHO_C" >&6
13527 cat >conftest.$ac_ext <<_ACEOF
13530 cat confdefs.h >>conftest.$ac_ext
13531 cat >>conftest.$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13535 #define $ac_func innocuous_$ac_func
13537 /* System header to define __stub macros and hopefully few prototypes,
13538 which can conflict with char $ac_func (); below.
13539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13540 <limits.h> exists even on freestanding compilers. */
13543 # include <limits.h>
13545 # include <assert.h>
13550 /* Override any GCC internal prototype to avoid an error.
13551 Use char because int might match the return type of a GCC
13552 builtin and then its argument prototype would still apply. */
13557 /* The GNU C library defines this for functions which it implements
13558 to always fail with ENOSYS. Some functions are actually named
13559 something starting with __ and the normal name is an alias. */
13560 #if defined __stub_$ac_func || defined __stub___$ac_func
13567 return $ac_func ();
13572 rm -f conftest.$ac_objext conftest$ac_exeext
13573 if { (ac_try="$ac_link"
13574 case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_link") 2>conftest.er1
13581 grep -v '^ *+' conftest.er1 >conftest.err
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest$ac_exeext &&
13589 $as_test_x conftest$ac_exeext; then
13590 eval "$as_ac_var=yes"
13592 echo "$as_me: failed program was
:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13595 eval "$as_ac_var=no
"
13598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13599 conftest$ac_exeext conftest.$ac_ext
13601 ac_res=`eval echo '${'$as_ac_var'}'`
13602 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13603 echo "${ECHO_T}$ac_res" >&6; }
13604 if test `eval echo '${'$as_ac_var'}'` = yes; then
13605 cat >>confdefs.h <<_ACEOF
13606 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
13610 # strftime is in -lintl on SCO UNIX.
13611 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
13612 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
13613 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13614 echo $ECHO_N "(cached
) $ECHO_C" >&6
13616 ac_check_lib_save_LIBS=$LIBS
13617 LIBS="-lintl $LIBS"
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13625 /* Override any GCC internal prototype to avoid an error.
13626 Use char because int might match the return type of a GCC
13627 builtin and then its argument prototype would still apply. */
13635 return strftime ();
13640 rm -f conftest.$ac_objext conftest$ac_exeext
13641 if { (ac_try="$ac_link"
13642 case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_link") 2>conftest.er1
13649 grep -v '^ *+' conftest.er1 >conftest.err
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13653 (exit $ac_status); } && {
13654 test -z "$ac_c_werror_flag" ||
13655 test ! -s conftest.err
13656 } && test -s conftest$ac_exeext &&
13657 $as_test_x conftest$ac_exeext; then
13658 ac_cv_lib_intl_strftime=yes
13660 echo "$as_me: failed program was
:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13663 ac_cv_lib_intl_strftime=no
13666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13667 conftest$ac_exeext conftest.$ac_ext
13668 LIBS=$ac_check_lib_save_LIBS
13670 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
13671 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13672 if test $ac_cv_lib_intl_strftime = yes; then
13673 cat >>confdefs.h <<\_ACEOF
13674 #define HAVE_STRFTIME 1
13677 LIBS="-lintl $LIBS"
13683 { echo "$as_me:$LINENO: checking
for working strnlen
" >&5
13684 echo $ECHO_N "checking
for working strnlen...
$ECHO_C" >&6; }
13685 if test "${ac_cv_func_strnlen_working+set}" = set; then
13686 echo $ECHO_N "(cached
) $ECHO_C" >&6
13688 if test "$cross_compiling" = yes; then
13689 ac_cv_func_strnlen_working=no
13691 cat >conftest.$ac_ext <<_ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697 $ac_includes_default
13703 #define S_LEN (sizeof S - 1)
13705 /* At least one implementation is buggy: that of AIX 4.3 would
13706 give strnlen (S, 1) == 3. */
13709 for (i = 0; i < S_LEN + 1; ++i)
13711 int expected = i <= S_LEN ? i : S_LEN;
13712 if (strnlen (S, i) != expected)
13721 rm -f conftest$ac_exeext
13722 if { (ac_try="$ac_link"
13723 case "(($ac_try" in
13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_link") 2>&5
13730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13732 { (case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_try") 2>&5
13739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 ac_cv_func_strnlen_working=yes
13743 echo "$as_me: program exited with status
$ac_status" >&5
13744 echo "$as_me: failed program was
:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13747 ( exit $ac_status )
13748 ac_cv_func_strnlen_working=no
13750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13755 { echo "$as_me:$LINENO: result
: $ac_cv_func_strnlen_working" >&5
13756 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13757 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13758 *" strnlen.
$ac_objext "* ) ;;
13759 *) LIBOBJS="$LIBOBJS strnlen.
$ac_objext"
13764 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
13765 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
13766 if test "${ac_cv_func_strtod+set}" = set; then
13767 echo $ECHO_N "(cached
) $ECHO_C" >&6
13769 if test "$cross_compiling" = yes; then
13770 ac_cv_func_strtod=no
13772 cat >conftest.$ac_ext <<_ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13779 $ac_includes_default
13787 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13788 char *string = " +69";
13791 value = strtod (string, &term);
13792 if (value != 69 || term != (string + 4))
13797 /* Under Solaris 2.4, strtod returns the wrong value for the
13798 terminating character under some conditions. */
13799 char *string = "NaN
";
13801 strtod (string, &term);
13802 if (term != string && *(term - 1) == 0)
13809 rm -f conftest$ac_exeext
13810 if { (ac_try="$ac_link"
13811 case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_link") 2>&5
13818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13820 { (case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_try") 2>&5
13827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 ac_cv_func_strtod=yes
13831 echo "$as_me: program exited with status
$ac_status" >&5
13832 echo "$as_me: failed program was
:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 ( exit $ac_status )
13836 ac_cv_func_strtod=no
13838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13843 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
13844 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13845 if test $ac_cv_func_strtod = no; then
13846 case " $LIBOBJS " in
13847 *" strtod.
$ac_objext "* ) ;;
13848 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
13852 { echo "$as_me:$LINENO: checking
for pow
" >&5
13853 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
13854 if test "${ac_cv_func_pow+set}" = set; then
13855 echo $ECHO_N "(cached
) $ECHO_C" >&6
13857 cat >conftest.$ac_ext <<_ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13863 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13865 #define pow innocuous_pow
13867 /* System header to define __stub macros and hopefully few prototypes,
13868 which can conflict with char pow (); below.
13869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13870 <limits.h> exists even on freestanding compilers. */
13873 # include <limits.h>
13875 # include <assert.h>
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply. */
13887 /* The GNU C library defines this for functions which it implements
13888 to always fail with ENOSYS. Some functions are actually named
13889 something starting with __ and the normal name is an alias. */
13890 #if defined __stub_pow || defined __stub___pow
13902 rm -f conftest.$ac_objext conftest$ac_exeext
13903 if { (ac_try="$ac_link"
13904 case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_link") 2>conftest.er1
13911 grep -v '^ *+' conftest.er1 >conftest.err
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13915 (exit $ac_status); } && {
13916 test -z "$ac_c_werror_flag" ||
13917 test ! -s conftest.err
13918 } && test -s conftest$ac_exeext &&
13919 $as_test_x conftest$ac_exeext; then
13922 echo "$as_me: failed program was
:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13929 conftest$ac_exeext conftest.$ac_ext
13931 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
13932 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13934 if test $ac_cv_func_pow = no; then
13935 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
13936 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
13937 if test "${ac_cv_lib_m_pow+set}" = set; then
13938 echo $ECHO_N "(cached
) $ECHO_C" >&6
13940 ac_check_lib_save_LIBS=$LIBS
13942 cat >conftest.$ac_ext <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (ac_try="$ac_link"
13966 case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_link") 2>conftest.er1
13973 grep -v '^ *+' conftest.er1 >conftest.err
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13977 (exit $ac_status); } && {
13978 test -z "$ac_c_werror_flag" ||
13979 test ! -s conftest.err
13980 } && test -s conftest$ac_exeext &&
13981 $as_test_x conftest$ac_exeext; then
13982 ac_cv_lib_m_pow=yes
13984 echo "$as_me: failed program was
:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13991 conftest$ac_exeext conftest.$ac_ext
13992 LIBS=$ac_check_lib_save_LIBS
13994 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
13995 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13996 if test $ac_cv_lib_m_pow = yes; then
13999 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
14000 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
14011 for ac_header in $ac_header_list
14013 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14014 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14015 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14016 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14017 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14018 echo $ECHO_N "(cached
) $ECHO_C" >&6
14020 ac_res=`eval echo '${'$as_ac_Header'}'`
14021 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14022 echo "${ECHO_T}$ac_res" >&6; }
14024 # Is the header compilable?
14025 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14026 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
14027 cat >conftest.$ac_ext <<_ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14033 $ac_includes_default
14034 #include <$ac_header>
14036 rm -f conftest.$ac_objext
14037 if { (ac_try="$ac_compile"
14038 case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_compile") 2>conftest.er1
14045 grep -v '^ *+' conftest.er1 >conftest.err
14047 cat conftest.err >&5
14048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14049 (exit $ac_status); } && {
14050 test -z "$ac_c_werror_flag" ||
14051 test ! -s conftest.err
14052 } && test -s conftest.$ac_objext; then
14053 ac_header_compiler=yes
14055 echo "$as_me: failed program was
:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14058 ac_header_compiler=no
14061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14063 echo "${ECHO_T}$ac_header_compiler" >&6; }
14065 # Is the header present?
14066 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14067 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14068 cat >conftest.$ac_ext <<_ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 #include <$ac_header>
14076 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14077 case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14084 grep -v '^ *+' conftest.er1 >conftest.err
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14088 (exit $ac_status); } >/dev/null && {
14089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14090 test ! -s conftest.err
14092 ac_header_preproc=yes
14094 echo "$as_me: failed program was
:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 ac_header_preproc=no
14100 rm -f conftest.err conftest.$ac_ext
14101 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14102 echo "${ECHO_T}$ac_header_preproc" >&6; }
14104 # So? What about this header?
14105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14107 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14108 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14109 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14111 ac_header_preproc=yes
14114 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14115 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14116 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14117 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14118 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14119 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14120 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14121 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14122 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14124 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14125 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14127 ## ------------------------------- ##
14128 ## Report this to www.asterisk.org ##
14129 ## ------------------------------- ##
14131 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
14134 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14135 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14136 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14137 echo $ECHO_N "(cached
) $ECHO_C" >&6
14139 eval "$as_ac_Header=\
$ac_header_preproc"
14141 ac_res=`eval echo '${'$as_ac_Header'}'`
14142 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14143 echo "${ECHO_T}$ac_res" >&6; }
14146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14147 cat >>confdefs.h <<_ACEOF
14148 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14163 { echo "$as_me:$LINENO: checking whether utime accepts a null argument
" >&5
14164 echo $ECHO_N "checking whether utime accepts a null argument...
$ECHO_C" >&6; }
14165 if test "${ac_cv_func_utime_null+set}" = set; then
14166 echo $ECHO_N "(cached
) $ECHO_C" >&6
14168 rm -f conftest.data; >conftest.data
14169 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14170 if test "$cross_compiling" = yes; then
14171 ac_cv_func_utime_null=no
14173 cat >conftest.$ac_ext <<_ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 $ac_includes_default
14180 #ifdef HAVE_UTIME_H
14181 # include <utime.h>
14187 return ! (stat ("conftest.data
", &s) == 0
14188 && utime ("conftest.data
", 0) == 0
14189 && stat ("conftest.data
", &t) == 0
14190 && t.st_mtime >= s.st_mtime
14191 && t.st_mtime - s.st_mtime < 120);
14196 rm -f conftest$ac_exeext
14197 if { (ac_try="$ac_link"
14198 case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_link") 2>&5
14205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 ac_cv_func_utime_null=yes
14218 echo "$as_me: program exited with status
$ac_status" >&5
14219 echo "$as_me: failed program was
:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14222 ( exit $ac_status )
14223 ac_cv_func_utime_null=no
14225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14230 { echo "$as_me:$LINENO: result
: $ac_cv_func_utime_null" >&5
14231 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14232 if test $ac_cv_func_utime_null = yes; then
14234 cat >>confdefs.h <<\_ACEOF
14235 #define HAVE_UTIME_NULL 1
14239 rm -f conftest.data
14242 for ac_func in vprintf
14244 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14245 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14246 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14247 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14248 echo $ECHO_N "(cached
) $ECHO_C" >&6
14250 cat >conftest.$ac_ext <<_ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14258 #define $ac_func innocuous_$ac_func
14260 /* System header to define __stub macros and hopefully few prototypes,
14261 which can conflict with char $ac_func (); below.
14262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14263 <limits.h> exists even on freestanding compilers. */
14266 # include <limits.h>
14268 # include <assert.h>
14273 /* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14280 /* The GNU C library defines this for functions which it implements
14281 to always fail with ENOSYS. Some functions are actually named
14282 something starting with __ and the normal name is an alias. */
14283 #if defined __stub_$ac_func || defined __stub___$ac_func
14290 return $ac_func ();
14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (ac_try="$ac_link"
14297 case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_link") 2>conftest.er1
14304 grep -v '^ *+' conftest.er1 >conftest.err
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14308 (exit $ac_status); } && {
14309 test -z "$ac_c_werror_flag" ||
14310 test ! -s conftest.err
14311 } && test -s conftest$ac_exeext &&
14312 $as_test_x conftest$ac_exeext; then
14313 eval "$as_ac_var=yes"
14315 echo "$as_me: failed program was
:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14318 eval "$as_ac_var=no
"
14321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14322 conftest$ac_exeext conftest.$ac_ext
14324 ac_res=`eval echo '${'$as_ac_var'}'`
14325 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14326 echo "${ECHO_T}$ac_res" >&6; }
14327 if test `eval echo '${'$as_ac_var'}'` = yes; then
14328 cat >>confdefs.h <<_ACEOF
14329 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14332 { echo "$as_me:$LINENO: checking
for _doprnt
" >&5
14333 echo $ECHO_N "checking
for _doprnt...
$ECHO_C" >&6; }
14334 if test "${ac_cv_func__doprnt+set}" = set; then
14335 echo $ECHO_N "(cached
) $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14345 #define _doprnt innocuous__doprnt
14347 /* System header to define __stub macros and hopefully few prototypes,
14348 which can conflict with char _doprnt (); below.
14349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14350 <limits.h> exists even on freestanding compilers. */
14353 # include <limits.h>
14355 # include <assert.h>
14360 /* Override any GCC internal prototype to avoid an error.
14361 Use char because int might match the return type of a GCC
14362 builtin and then its argument prototype would still apply. */
14367 /* The GNU C library defines this for functions which it implements
14368 to always fail with ENOSYS. Some functions are actually named
14369 something starting with __ and the normal name is an alias. */
14370 #if defined __stub__doprnt || defined __stub____doprnt
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (ac_try="$ac_link"
14384 case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_link") 2>conftest.er1
14391 grep -v '^ *+' conftest.er1 >conftest.err
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14395 (exit $ac_status); } && {
14396 test -z "$ac_c_werror_flag" ||
14397 test ! -s conftest.err
14398 } && test -s conftest$ac_exeext &&
14399 $as_test_x conftest$ac_exeext; then
14400 ac_cv_func__doprnt=yes
14402 echo "$as_me: failed program was
:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14405 ac_cv_func__doprnt=no
14408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14409 conftest$ac_exeext conftest.$ac_ext
14411 { echo "$as_me:$LINENO: result
: $ac_cv_func__doprnt" >&5
14412 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14413 if test $ac_cv_func__doprnt = yes; then
14415 cat >>confdefs.h <<\_ACEOF
14416 #define HAVE_DOPRNT 1
14474 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
14476 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14477 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14478 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14479 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14480 echo $ECHO_N "(cached
) $ECHO_C" >&6
14482 cat >conftest.$ac_ext <<_ACEOF
14485 cat confdefs.h >>conftest.$ac_ext
14486 cat >>conftest.$ac_ext <<_ACEOF
14487 /* end confdefs.h. */
14488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14490 #define $ac_func innocuous_$ac_func
14492 /* System header to define __stub macros and hopefully few prototypes,
14493 which can conflict with char $ac_func (); below.
14494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14495 <limits.h> exists even on freestanding compilers. */
14498 # include <limits.h>
14500 # include <assert.h>
14505 /* Override any GCC internal prototype to avoid an error.
14506 Use char because int might match the return type of a GCC
14507 builtin and then its argument prototype would still apply. */
14512 /* The GNU C library defines this for functions which it implements
14513 to always fail with ENOSYS. Some functions are actually named
14514 something starting with __ and the normal name is an alias. */
14515 #if defined __stub_$ac_func || defined __stub___$ac_func
14522 return $ac_func ();
14527 rm -f conftest.$ac_objext conftest$ac_exeext
14528 if { (ac_try="$ac_link"
14529 case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_link") 2>conftest.er1
14536 grep -v '^ *+' conftest.er1 >conftest.err
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14540 (exit $ac_status); } && {
14541 test -z "$ac_c_werror_flag" ||
14542 test ! -s conftest.err
14543 } && test -s conftest$ac_exeext &&
14544 $as_test_x conftest$ac_exeext; then
14545 eval "$as_ac_var=yes"
14547 echo "$as_me: failed program was
:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 eval "$as_ac_var=no
"
14553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14554 conftest$ac_exeext conftest.$ac_ext
14556 ac_res=`eval echo '${'$as_ac_var'}'`
14557 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14558 echo "${ECHO_T}$ac_res" >&6; }
14559 if test `eval echo '${'$as_ac_var'}'` = yes; then
14560 cat >>confdefs.h <<_ACEOF
14561 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14568 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14569 { echo "$as_me:$LINENO: checking
for library containing gethostbyname_r
" >&5
14570 echo $ECHO_N "checking
for library containing gethostbyname_r...
$ECHO_C" >&6; }
14571 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14572 echo $ECHO_N "(cached
) $ECHO_C" >&6
14574 ac_func_search_save_LIBS=$LIBS
14575 cat >conftest.$ac_ext <<_ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14582 /* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14588 char gethostbyname_r ();
14592 return gethostbyname_r ();
14597 for ac_lib in '' socket nsl; do
14598 if test -z "$ac_lib"; then
14599 ac_res="none required
"
14602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14604 rm -f conftest.$ac_objext conftest$ac_exeext
14605 if { (ac_try="$ac_link"
14606 case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_link") 2>conftest.er1
14613 grep -v '^ *+' conftest.er1 >conftest.err
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14617 (exit $ac_status); } && {
14618 test -z "$ac_c_werror_flag" ||
14619 test ! -s conftest.err
14620 } && test -s conftest$ac_exeext &&
14621 $as_test_x conftest$ac_exeext; then
14622 ac_cv_search_gethostbyname_r=$ac_res
14624 echo "$as_me: failed program was
:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14632 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14636 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14639 ac_cv_search_gethostbyname_r=no
14641 rm conftest.$ac_ext
14642 LIBS=$ac_func_search_save_LIBS
14644 { echo "$as_me:$LINENO: result
: $ac_cv_search_gethostbyname_r" >&5
14645 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14646 ac_res=$ac_cv_search_gethostbyname_r
14647 if test "$ac_res" != no; then
14648 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14653 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
6 arguments
" >&5
14654 echo $ECHO_N "checking
for gethostbyname_r with
6 arguments...
$ECHO_C" >&6; }
14655 cat >conftest.$ac_ext <<_ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661 #include <stdlib.h>
14666 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14671 rm -f conftest.$ac_objext conftest$ac_exeext
14672 if { (ac_try="$ac_link"
14673 case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_link") 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14684 (exit $ac_status); } && {
14685 test -z "$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14687 } && test -s conftest$ac_exeext &&
14688 $as_test_x conftest$ac_exeext; then
14689 { echo "$as_me:$LINENO: result
: yes" >&5
14690 echo "${ECHO_T}yes" >&6; }
14692 cat >>confdefs.h <<\_ACEOF
14693 #define HAVE_GETHOSTBYNAME_R_6 1
14697 echo "$as_me: failed program was
:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14700 { echo "$as_me:$LINENO: result
: no
" >&5
14701 echo "${ECHO_T}no
" >&6; }
14705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14706 conftest$ac_exeext conftest.$ac_ext
14708 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
5 arguments
" >&5
14709 echo $ECHO_N "checking
for gethostbyname_r with
5 arguments...
$ECHO_C" >&6; }
14710 cat >conftest.$ac_ext <<_ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 #include <stdlib.h>
14721 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14726 rm -f conftest.$ac_objext conftest$ac_exeext
14727 if { (ac_try="$ac_link"
14728 case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_link") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14739 (exit $ac_status); } && {
14740 test -z "$ac_c_werror_flag" ||
14741 test ! -s conftest.err
14742 } && test -s conftest$ac_exeext &&
14743 $as_test_x conftest$ac_exeext; then
14744 { echo "$as_me:$LINENO: result
: yes" >&5
14745 echo "${ECHO_T}yes" >&6; }
14747 cat >>confdefs.h <<\_ACEOF
14748 #define HAVE_GETHOSTBYNAME_R_5 1
14752 echo "$as_me: failed program was
:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 { echo "$as_me:$LINENO: result
: no
" >&5
14756 echo "${ECHO_T}no
" >&6; }
14760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14761 conftest$ac_exeext conftest.$ac_ext
14763 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_INITIALIZER
" >&5
14764 echo $ECHO_N "checking
for PTHREAD_RWLOCK_INITIALIZER...
$ECHO_C" >&6; }
14765 cat >conftest.$ac_ext <<_ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14771 #include <pthread.h>
14775 int foo = PTHREAD_RWLOCK_INITIALIZER;
14780 rm -f conftest.$ac_objext conftest$ac_exeext
14781 if { (ac_try="$ac_link"
14782 case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14787 (eval "$ac_link") 2>conftest.er1
14789 grep -v '^ *+' conftest.er1 >conftest.err
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14793 (exit $ac_status); } && {
14794 test -z "$ac_c_werror_flag" ||
14795 test ! -s conftest.err
14796 } && test -s conftest$ac_exeext &&
14797 $as_test_x conftest$ac_exeext; then
14798 { echo "$as_me:$LINENO: result
: yes" >&5
14799 echo "${ECHO_T}yes" >&6; }
14801 cat >>confdefs.h <<\_ACEOF
14802 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14806 echo "$as_me: failed program was
:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 { echo "$as_me:$LINENO: result
: no
" >&5
14810 echo "${ECHO_T}no
" >&6; }
14814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14815 conftest$ac_exeext conftest.$ac_ext
14817 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP
" >&5
14818 echo $ECHO_N "checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP...
$ECHO_C" >&6; }
14819 cat >conftest.$ac_ext <<_ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 #include <pthread.h>
14829 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14834 rm -f conftest.$ac_objext conftest$ac_exeext
14835 if { (ac_try="$ac_link"
14836 case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_link") 2>conftest.er1
14843 grep -v '^ *+' conftest.er1 >conftest.err
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14847 (exit $ac_status); } && {
14848 test -z "$ac_c_werror_flag" ||
14849 test ! -s conftest.err
14850 } && test -s conftest$ac_exeext &&
14851 $as_test_x conftest$ac_exeext; then
14852 { echo "$as_me:$LINENO: result
: yes" >&5
14853 echo "${ECHO_T}yes" >&6; }
14855 cat >>confdefs.h <<\_ACEOF
14856 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14860 echo "$as_me: failed program was
:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 { echo "$as_me:$LINENO: result
: no
" >&5
14864 echo "${ECHO_T}no
" >&6; }
14868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14869 conftest$ac_exeext conftest.$ac_ext
14871 { echo "$as_me:$LINENO: checking
for compiler atomic operations
" >&5
14872 echo $ECHO_N "checking
for compiler atomic operations...
$ECHO_C" >&6; }
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14883 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (ac_try="$ac_link"
14890 case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_link") 2>conftest.er1
14897 grep -v '^ *+' conftest.er1 >conftest.err
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14901 (exit $ac_status); } && {
14902 test -z "$ac_c_werror_flag" ||
14903 test ! -s conftest.err
14904 } && test -s conftest$ac_exeext &&
14905 $as_test_x conftest$ac_exeext; then
14906 { echo "$as_me:$LINENO: result
: yes" >&5
14907 echo "${ECHO_T}yes" >&6; }
14909 cat >>confdefs.h <<\_ACEOF
14910 #define HAVE_GCC_ATOMICS 1
14914 echo "$as_me: failed program was
:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14917 { echo "$as_me:$LINENO: result
: no
" >&5
14918 echo "${ECHO_T}no
" >&6; }
14922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14923 conftest$ac_exeext conftest.$ac_ext
14926 { echo "$as_me:$LINENO: checking
for compiler
'attribute pure' support
" >&5
14927 echo $ECHO_N "checking
for compiler
'attribute pure' support...
$ECHO_C" >&6; }
14928 saved_CFLAGS="$CFLAGS"
14929 CFLAGS="$CFLAGS -Werror"
14930 cat >conftest.$ac_ext <<_ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 static void __attribute__((pure)) *test(void *muffin, ...) {}
14945 rm -f conftest.$ac_objext
14946 if { (ac_try="$ac_compile"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_compile") 2>conftest.er1
14954 grep -v '^ *+' conftest.er1 >conftest.err
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14958 (exit $ac_status); } && {
14959 test -z "$ac_c_werror_flag" ||
14960 test ! -s conftest.err
14961 } && test -s conftest.$ac_objext; then
14962 { echo "$as_me:$LINENO: result
: yes" >&5
14963 echo "${ECHO_T}yes" >&6; }
14965 cat >>confdefs.h <<_ACEOF
14966 #define HAVE_ATTRIBUTE_pure 1
14970 echo "$as_me: failed program was
:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 { echo "$as_me:$LINENO: result
: no
" >&5
14974 echo "${ECHO_T}no
" >&6; }
14977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14979 CFLAGS="$saved_CFLAGS"
14982 { echo "$as_me:$LINENO: checking
for compiler
'attribute malloc' support
" >&5
14983 echo $ECHO_N "checking
for compiler
'attribute malloc' support...
$ECHO_C" >&6; }
14984 saved_CFLAGS="$CFLAGS"
14985 CFLAGS="$CFLAGS -Werror"
14986 cat >conftest.$ac_ext <<_ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992 static void __attribute__((malloc)) *test(void *muffin, ...) {}
15001 rm -f conftest.$ac_objext
15002 if { (ac_try="$ac_compile"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_compile") 2>conftest.er1
15010 grep -v '^ *+' conftest.er1 >conftest.err
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
15017 } && test -s conftest.$ac_objext; then
15018 { echo "$as_me:$LINENO: result
: yes" >&5
15019 echo "${ECHO_T}yes" >&6; }
15021 cat >>confdefs.h <<_ACEOF
15022 #define HAVE_ATTRIBUTE_malloc 1
15026 echo "$as_me: failed program was
:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15029 { echo "$as_me:$LINENO: result
: no
" >&5
15030 echo "${ECHO_T}no
" >&6; }
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15035 CFLAGS="$saved_CFLAGS"
15038 { echo "$as_me:$LINENO: checking
for compiler
'attribute const' support
" >&5
15039 echo $ECHO_N "checking
for compiler
'attribute const' support...
$ECHO_C" >&6; }
15040 saved_CFLAGS="$CFLAGS"
15041 CFLAGS="$CFLAGS -Werror"
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 static void __attribute__((const)) *test(void *muffin, ...) {}
15057 rm -f conftest.$ac_objext
15058 if { (ac_try="$ac_compile"
15059 case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_compile") 2>conftest.er1
15066 grep -v '^ *+' conftest.er1 >conftest.err
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15070 (exit $ac_status); } && {
15071 test -z "$ac_c_werror_flag" ||
15072 test ! -s conftest.err
15073 } && test -s conftest.$ac_objext; then
15074 { echo "$as_me:$LINENO: result
: yes" >&5
15075 echo "${ECHO_T}yes" >&6; }
15077 cat >>confdefs.h <<_ACEOF
15078 #define HAVE_ATTRIBUTE_const 1
15082 echo "$as_me: failed program was
:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15085 { echo "$as_me:$LINENO: result
: no
" >&5
15086 echo "${ECHO_T}no
" >&6; }
15089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091 CFLAGS="$saved_CFLAGS"
15094 { echo "$as_me:$LINENO: checking
for compiler
'attribute unused' support
" >&5
15095 echo $ECHO_N "checking
for compiler
'attribute unused' support...
$ECHO_C" >&6; }
15096 saved_CFLAGS="$CFLAGS"
15097 CFLAGS="$CFLAGS -Werror"
15098 cat >conftest.$ac_ext <<_ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 static void __attribute__((unused)) *test(void *muffin, ...) {}
15113 rm -f conftest.$ac_objext
15114 if { (ac_try="$ac_compile"
15115 case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_compile") 2>conftest.er1
15122 grep -v '^ *+' conftest.er1 >conftest.err
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15126 (exit $ac_status); } && {
15127 test -z "$ac_c_werror_flag" ||
15128 test ! -s conftest.err
15129 } && test -s conftest.$ac_objext; then
15130 { echo "$as_me:$LINENO: result
: yes" >&5
15131 echo "${ECHO_T}yes" >&6; }
15133 cat >>confdefs.h <<_ACEOF
15134 #define HAVE_ATTRIBUTE_unused 1
15138 echo "$as_me: failed program was
:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15141 { echo "$as_me:$LINENO: result
: no
" >&5
15142 echo "${ECHO_T}no
" >&6; }
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 CFLAGS="$saved_CFLAGS"
15150 { echo "$as_me:$LINENO: checking
for compiler
'attribute always_inline' support
" >&5
15151 echo $ECHO_N "checking
for compiler
'attribute always_inline' support...
$ECHO_C" >&6; }
15152 saved_CFLAGS="$CFLAGS"
15153 CFLAGS="$CFLAGS -Werror"
15154 cat >conftest.$ac_ext <<_ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15160 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
15169 rm -f conftest.$ac_objext
15170 if { (ac_try="$ac_compile"
15171 case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15175 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15176 (eval "$ac_compile") 2>conftest.er1
15178 grep -v '^ *+' conftest.er1 >conftest.err
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15182 (exit $ac_status); } && {
15183 test -z "$ac_c_werror_flag" ||
15184 test ! -s conftest.err
15185 } && test -s conftest.$ac_objext; then
15186 { echo "$as_me:$LINENO: result
: yes" >&5
15187 echo "${ECHO_T}yes" >&6; }
15189 cat >>confdefs.h <<_ACEOF
15190 #define HAVE_ATTRIBUTE_always_inline 1
15194 echo "$as_me: failed program was
:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15197 { echo "$as_me:$LINENO: result
: no
" >&5
15198 echo "${ECHO_T}no
" >&6; }
15201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203 CFLAGS="$saved_CFLAGS"
15206 { echo "$as_me:$LINENO: checking
for compiler
'attribute deprecated' support
" >&5
15207 echo $ECHO_N "checking
for compiler
'attribute deprecated' support...
$ECHO_C" >&6; }
15208 saved_CFLAGS="$CFLAGS"
15209 CFLAGS="$CFLAGS -Werror"
15210 cat >conftest.$ac_ext <<_ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
15225 rm -f conftest.$ac_objext
15226 if { (ac_try="$ac_compile"
15227 case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_compile") 2>conftest.er1
15234 grep -v '^ *+' conftest.er1 >conftest.err
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15238 (exit $ac_status); } && {
15239 test -z "$ac_c_werror_flag" ||
15240 test ! -s conftest.err
15241 } && test -s conftest.$ac_objext; then
15242 { echo "$as_me:$LINENO: result
: yes" >&5
15243 echo "${ECHO_T}yes" >&6; }
15245 cat >>confdefs.h <<_ACEOF
15246 #define HAVE_ATTRIBUTE_deprecated 1
15250 echo "$as_me: failed program was
:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 { echo "$as_me:$LINENO: result
: no
" >&5
15254 echo "${ECHO_T}no
" >&6; }
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 CFLAGS="$saved_CFLAGS"
15262 { echo "$as_me:$LINENO: checking
for -ffunction-sections support
" >&5
15263 echo $ECHO_N "checking
for -ffunction-sections support...
$ECHO_C" >&6; }
15264 saved_CFLAGS="${CFLAGS}"
15265 CFLAGS="${CFLAGS} -ffunction-sections"
15266 cat >conftest.$ac_ext <<_ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15281 rm -f conftest.$ac_objext
15282 if { (ac_try="$ac_compile"
15283 case "(($ac_try" in
15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15288 (eval "$ac_compile") 2>conftest.er1
15290 grep -v '^ *+' conftest.er1 >conftest.err
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15294 (exit $ac_status); } && {
15295 test -z "$ac_c_werror_flag" ||
15296 test ! -s conftest.err
15297 } && test -s conftest.$ac_objext; then
15298 { echo "$as_me:$LINENO: result
: yes" >&5
15299 echo "${ECHO_T}yes" >&6; }
15300 saved_LDFLAGS="${LDFLAGS}"
15301 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15302 { echo "$as_me:$LINENO: checking
for --gc-sections support
" >&5
15303 echo $ECHO_N "checking
for --gc-sections support...
$ECHO_C" >&6; }
15304 cat >conftest.$ac_ext <<_ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15319 rm -f conftest.$ac_objext conftest$ac_exeext
15320 if { (ac_try="$ac_link"
15321 case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_link") 2>conftest.er1
15328 grep -v '^ *+' conftest.er1 >conftest.err
15330 cat conftest.err >&5
15331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15332 (exit $ac_status); } && {
15333 test -z "$ac_c_werror_flag" ||
15334 test ! -s conftest.err
15335 } && test -s conftest$ac_exeext &&
15336 $as_test_x conftest$ac_exeext; then
15337 { echo "$as_me:$LINENO: result
: yes" >&5
15338 echo "${ECHO_T}yes" >&6; }
15339 GC_CFLAGS="-ffunction-sections"
15340 GC_LDFLAGS="-Wl,--gc-sections"
15342 echo "$as_me: failed program was
:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 { echo "$as_me:$LINENO: result
: no
" >&5
15346 echo "${ECHO_T}no
" >&6; }
15350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15351 conftest$ac_exeext conftest.$ac_ext
15352 LDFLAGS="${saved_LDFLAGS}"
15354 echo "$as_me: failed program was
:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 { echo "$as_me:$LINENO: result
: no
" >&5
15358 echo "${ECHO_T}no
" >&6; }
15362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15363 CFLAGS="${saved_CFLAGS}"
15367 { echo "$as_me:$LINENO: checking
for -Wdeclaration-after-statement support
" >&5
15368 echo $ECHO_N "checking
for -Wdeclaration-after-statement support...
$ECHO_C" >&6; }
15369 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15370 { echo "$as_me:$LINENO: result
: yes" >&5
15371 echo "${ECHO_T}yes" >&6; }
15372 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15374 { echo "$as_me:$LINENO: result
: no
" >&5
15375 echo "${ECHO_T}no
" >&6; }
15376 AST_DECLARATION_AFTER_STATEMENT=
15380 { echo "$as_me:$LINENO: checking
for -fno-strict-overflow" >&5
15381 echo $ECHO_N "checking
for -fno-strict-overflow...
$ECHO_C" >&6; }
15382 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15383 { echo "$as_me:$LINENO: result
: yes" >&5
15384 echo "${ECHO_T}yes" >&6; }
15385 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15387 { echo "$as_me:$LINENO: result
: no
" >&5
15388 echo "${ECHO_T}no
" >&6; }
15389 AST_NO_STRICT_OVERFLOW=
15393 { echo "$as_me:$LINENO: checking
for library containing res_9_ninit
" >&5
15394 echo $ECHO_N "checking
for library containing res_9_ninit...
$ECHO_C" >&6; }
15395 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15396 echo $ECHO_N "(cached
) $ECHO_C" >&6
15398 ac_func_search_save_LIBS=$LIBS
15399 cat >conftest.$ac_ext <<_ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15406 /* Override any GCC internal prototype to avoid an error.
15407 Use char because int might match the return type of a GCC
15408 builtin and then its argument prototype would still apply. */
15412 char res_9_ninit ();
15416 return res_9_ninit ();
15421 for ac_lib in '' resolv; do
15422 if test -z "$ac_lib"; then
15423 ac_res="none required
"
15426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (ac_try="$ac_link"
15430 case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_link") 2>conftest.er1
15437 grep -v '^ *+' conftest.er1 >conftest.err
15439 cat conftest.err >&5
15440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15441 (exit $ac_status); } && {
15442 test -z "$ac_c_werror_flag" ||
15443 test ! -s conftest.err
15444 } && test -s conftest$ac_exeext &&
15445 $as_test_x conftest$ac_exeext; then
15446 ac_cv_search_res_9_ninit=$ac_res
15448 echo "$as_me: failed program was
:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15456 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15460 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15463 ac_cv_search_res_9_ninit=no
15465 rm conftest.$ac_ext
15466 LIBS=$ac_func_search_save_LIBS
15468 { echo "$as_me:$LINENO: result
: $ac_cv_search_res_9_ninit" >&5
15469 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
15470 ac_res=$ac_cv_search_res_9_ninit
15471 if test "$ac_res" != no; then
15472 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
15476 { echo "$as_me:$LINENO: checking
for res_ninit
" >&5
15477 echo $ECHO_N "checking
for res_ninit...
$ECHO_C" >&6; }
15478 cat >conftest.$ac_ext <<_ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15485 #ifdef HAVE_SYS_SOCKET_H
15486 #include <sys/socket.h>
15488 #ifdef HAVE_NETINET_IN_H
15489 #include <netinet/in.h>
15491 #ifdef HAVE_ARPA_NAMESER_H
15492 #include <arpa/nameser.h>
15494 #include <resolv.h>
15498 int foo = res_ninit(NULL);
15503 rm -f conftest.$ac_objext conftest$ac_exeext
15504 if { (ac_try="$ac_link"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_link") 2>conftest.er1
15512 grep -v '^ *+' conftest.er1 >conftest.err
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15516 (exit $ac_status); } && {
15517 test -z "$ac_c_werror_flag" ||
15518 test ! -s conftest.err
15519 } && test -s conftest$ac_exeext &&
15520 $as_test_x conftest$ac_exeext; then
15521 { echo "$as_me:$LINENO: result
: yes" >&5
15522 echo "${ECHO_T}yes" >&6; }
15524 cat >>confdefs.h <<\_ACEOF
15525 #define HAVE_RES_NINIT 1
15528 { echo "$as_me:$LINENO: checking
for library containing res_9_ndestroy
" >&5
15529 echo $ECHO_N "checking
for library containing res_9_ndestroy...
$ECHO_C" >&6; }
15530 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15531 echo $ECHO_N "(cached
) $ECHO_C" >&6
15533 ac_func_search_save_LIBS=$LIBS
15534 cat >conftest.$ac_ext <<_ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15541 /* Override any GCC internal prototype to avoid an error.
15542 Use char because int might match the return type of a GCC
15543 builtin and then its argument prototype would still apply. */
15547 char res_9_ndestroy ();
15551 return res_9_ndestroy ();
15556 for ac_lib in '' resolv; do
15557 if test -z "$ac_lib"; then
15558 ac_res="none required
"
15561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15563 rm -f conftest.$ac_objext conftest$ac_exeext
15564 if { (ac_try="$ac_link"
15565 case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_link") 2>conftest.er1
15572 grep -v '^ *+' conftest.er1 >conftest.err
15574 cat conftest.err >&5
15575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15576 (exit $ac_status); } && {
15577 test -z "$ac_c_werror_flag" ||
15578 test ! -s conftest.err
15579 } && test -s conftest$ac_exeext &&
15580 $as_test_x conftest$ac_exeext; then
15581 ac_cv_search_res_9_ndestroy=$ac_res
15583 echo "$as_me: failed program was
:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15591 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15595 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15598 ac_cv_search_res_9_ndestroy=no
15600 rm conftest.$ac_ext
15601 LIBS=$ac_func_search_save_LIBS
15603 { echo "$as_me:$LINENO: result
: $ac_cv_search_res_9_ndestroy" >&5
15604 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
15605 ac_res=$ac_cv_search_res_9_ndestroy
15606 if test "$ac_res" != no; then
15607 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
15611 { echo "$as_me:$LINENO: checking
for res_ndestroy
" >&5
15612 echo $ECHO_N "checking
for res_ndestroy...
$ECHO_C" >&6; }
15613 cat >conftest.$ac_ext <<_ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15620 #ifdef HAVE_SYS_SOCKET_H
15621 #include <sys/socket.h>
15623 #ifdef HAVE_NETINET_IN_H
15624 #include <netinet/in.h>
15626 #ifdef HAVE_ARPA_NAMESER_H
15627 #include <arpa/nameser.h>
15629 #include <resolv.h>
15633 res_ndestroy(NULL);
15638 rm -f conftest.$ac_objext conftest$ac_exeext
15639 if { (ac_try="$ac_link"
15640 case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_link") 2>conftest.er1
15647 grep -v '^ *+' conftest.er1 >conftest.err
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15651 (exit $ac_status); } && {
15652 test -z "$ac_c_werror_flag" ||
15653 test ! -s conftest.err
15654 } && test -s conftest$ac_exeext &&
15655 $as_test_x conftest$ac_exeext; then
15656 { echo "$as_me:$LINENO: result
: yes" >&5
15657 echo "${ECHO_T}yes" >&6; }
15659 cat >>confdefs.h <<\_ACEOF
15660 #define HAVE_RES_NDESTROY 1
15664 echo "$as_me: failed program was
:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15667 { echo "$as_me:$LINENO: result
: no
" >&5
15668 echo "${ECHO_T}no
" >&6; }
15672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15673 conftest$ac_exeext conftest.$ac_ext
15675 echo "$as_me: failed program was
:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 { echo "$as_me:$LINENO: result
: no
" >&5
15679 echo "${ECHO_T}no
" >&6; }
15683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15684 conftest$ac_exeext conftest.$ac_ext
15686 { echo "$as_me:$LINENO: checking
for RTLD_NOLOAD
" >&5
15687 echo $ECHO_N "checking
for RTLD_NOLOAD...
$ECHO_C" >&6; }
15688 cat >conftest.$ac_ext <<_ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15698 int foo = RTLD_NOLOAD;
15703 rm -f conftest.$ac_objext conftest$ac_exeext
15704 if { (ac_try="$ac_link"
15705 case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15709 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_link") 2>conftest.er1
15712 grep -v '^ *+' conftest.er1 >conftest.err
15714 cat conftest.err >&5
15715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15716 (exit $ac_status); } && {
15717 test -z "$ac_c_werror_flag" ||
15718 test ! -s conftest.err
15719 } && test -s conftest$ac_exeext &&
15720 $as_test_x conftest$ac_exeext; then
15721 { echo "$as_me:$LINENO: result
: yes" >&5
15722 echo "${ECHO_T}yes" >&6; }
15724 cat >>confdefs.h <<\_ACEOF
15725 #define HAVE_RTLD_NOLOAD 1
15729 echo "$as_me: failed program was
:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 { echo "$as_me:$LINENO: result
: no
" >&5
15733 echo "${ECHO_T}no
" >&6; }
15737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15738 conftest$ac_exeext conftest.$ac_ext
15740 { echo "$as_me:$LINENO: checking
for IP_MTU_DISCOVER
" >&5
15741 echo $ECHO_N "checking
for IP_MTU_DISCOVER...
$ECHO_C" >&6; }
15742 cat >conftest.$ac_ext <<_ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15748 #include <netinet/in.h>
15752 int foo = IP_MTU_DISCOVER;
15757 rm -f conftest.$ac_objext conftest$ac_exeext
15758 if { (ac_try="$ac_link"
15759 case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_link") 2>conftest.er1
15766 grep -v '^ *+' conftest.er1 >conftest.err
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15770 (exit $ac_status); } && {
15771 test -z "$ac_c_werror_flag" ||
15772 test ! -s conftest.err
15773 } && test -s conftest$ac_exeext &&
15774 $as_test_x conftest$ac_exeext; then
15775 { echo "$as_me:$LINENO: result
: yes" >&5
15776 echo "${ECHO_T}yes" >&6; }
15778 cat >>confdefs.h <<\_ACEOF
15779 #define HAVE_IP_MTU_DISCOVER 1
15783 echo "$as_me: failed program was
:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 { echo "$as_me:$LINENO: result
: no
" >&5
15787 echo "${ECHO_T}no
" >&6; }
15791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15792 conftest$ac_exeext conftest.$ac_ext
15794 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15795 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15796 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15797 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15798 echo $ECHO_N "(cached
) $ECHO_C" >&6
15800 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15801 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15803 # Is the header compilable?
15804 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h usability
" >&5
15805 echo $ECHO_N "checking libkern
/OSAtomic.h usability...
$ECHO_C" >&6; }
15806 cat >conftest.$ac_ext <<_ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15812 $ac_includes_default
15813 #include <libkern/OSAtomic.h>
15815 rm -f conftest.$ac_objext
15816 if { (ac_try="$ac_compile"
15817 case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15821 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15822 (eval "$ac_compile") 2>conftest.er1
15824 grep -v '^ *+' conftest.er1 >conftest.err
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15828 (exit $ac_status); } && {
15829 test -z "$ac_c_werror_flag" ||
15830 test ! -s conftest.err
15831 } && test -s conftest.$ac_objext; then
15832 ac_header_compiler=yes
15834 echo "$as_me: failed program was
:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 ac_header_compiler=no
15840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15841 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15842 echo "${ECHO_T}$ac_header_compiler" >&6; }
15844 # Is the header present?
15845 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h presence
" >&5
15846 echo $ECHO_N "checking libkern
/OSAtomic.h presence...
$ECHO_C" >&6; }
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 #include <libkern/OSAtomic.h>
15855 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15856 case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15863 grep -v '^ *+' conftest.er1 >conftest.err
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15867 (exit $ac_status); } >/dev/null && {
15868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15869 test ! -s conftest.err
15871 ac_header_preproc=yes
15873 echo "$as_me: failed program was
:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15876 ac_header_preproc=no
15879 rm -f conftest.err conftest.$ac_ext
15880 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15881 echo "${ECHO_T}$ac_header_preproc" >&6; }
15883 # So? What about this header?
15884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15886 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15887 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15888 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the compiler
's result" >&5
15889 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result
" >&2;}
15890 ac_header_preproc=yes
15893 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&5
15894 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&2;}
15895 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&5
15896 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&2;}
15897 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&5
15898 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&2;}
15899 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15900 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15901 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the preprocessor
's result" >&5
15902 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result
" >&2;}
15903 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&5
15904 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&2;}
15906 ## ------------------------------- ##
15907 ## Report this to www.asterisk.org ##
15908 ## ------------------------------- ##
15910 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15913 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15914 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15915 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15916 echo $ECHO_N "(cached
) $ECHO_C" >&6
15918 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15920 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15921 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15924 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15926 cat >>confdefs.h <<_ACEOF
15927 #define HAVE_OSX_ATOMICS 1
15934 { echo "$as_me:$LINENO: checking
for int
" >&5
15935 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
15936 if test "${ac_cv_type_int+set}" = set; then
15937 echo $ECHO_N "(cached
) $ECHO_C" >&6
15939 cat >conftest.$ac_ext <<_ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 $ac_includes_default
15946 typedef int ac__type_new_;
15950 if ((ac__type_new_ *) 0)
15952 if (sizeof (ac__type_new_))
15958 rm -f conftest.$ac_objext
15959 if { (ac_try="$ac_compile"
15960 case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15965 (eval "$ac_compile") 2>conftest.er1
15967 grep -v '^ *+' conftest.er1 >conftest.err
15969 cat conftest.err >&5
15970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15971 (exit $ac_status); } && {
15972 test -z "$ac_c_werror_flag" ||
15973 test ! -s conftest.err
15974 } && test -s conftest.$ac_objext; then
15977 echo "$as_me: failed program was
:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15985 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
15986 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15988 # The cast to long int works around a bug in the HP C Compiler
15989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15991 # This bug is HP SR number 8606223364.
15992 { echo "$as_me:$LINENO: checking size of int
" >&5
15993 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
15994 if test "${ac_cv_sizeof_int+set}" = set; then
15995 echo $ECHO_N "(cached
) $ECHO_C" >&6
15997 if test "$cross_compiling" = yes; then
15998 # Depending upon the size, compute the lo and hi bounds.
15999 cat >conftest.$ac_ext <<_ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16005 $ac_includes_default
16006 typedef int ac__type_sizeof_;
16010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
16017 rm -f conftest.$ac_objext
16018 if { (ac_try="$ac_compile"
16019 case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_compile") 2>conftest.er1
16026 grep -v '^ *+' conftest.er1 >conftest.err
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16030 (exit $ac_status); } && {
16031 test -z "$ac_c_werror_flag" ||
16032 test ! -s conftest.err
16033 } && test -s conftest.$ac_objext; then
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 $ac_includes_default
16043 typedef int ac__type_sizeof_;
16047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16054 rm -f conftest.$ac_objext
16055 if { (ac_try="$ac_compile"
16056 case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_compile") 2>conftest.er1
16063 grep -v '^ *+' conftest.er1 >conftest.err
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16067 (exit $ac_status); } && {
16068 test -z "$ac_c_werror_flag" ||
16069 test ! -s conftest.err
16070 } && test -s conftest.$ac_objext; then
16071 ac_hi=$ac_mid; break
16073 echo "$as_me: failed program was
:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 ac_lo=`expr $ac_mid + 1`
16077 if test $ac_lo -le $ac_mid; then
16081 ac_mid=`expr 2 '*' $ac_mid + 1`
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16087 echo "$as_me: failed program was
:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 cat >conftest.$ac_ext <<_ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 $ac_includes_default
16097 typedef int ac__type_sizeof_;
16101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
16108 rm -f conftest.$ac_objext
16109 if { (ac_try="$ac_compile"
16110 case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16115 (eval "$ac_compile") 2>conftest.er1
16117 grep -v '^ *+' conftest.er1 >conftest.err
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16121 (exit $ac_status); } && {
16122 test -z "$ac_c_werror_flag" ||
16123 test ! -s conftest.err
16124 } && test -s conftest.$ac_objext; then
16127 cat >conftest.$ac_ext <<_ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16133 $ac_includes_default
16134 typedef int ac__type_sizeof_;
16138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16145 rm -f conftest.$ac_objext
16146 if { (ac_try="$ac_compile"
16147 case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16152 (eval "$ac_compile") 2>conftest.er1
16154 grep -v '^ *+' conftest.er1 >conftest.err
16156 cat conftest.err >&5
16157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16158 (exit $ac_status); } && {
16159 test -z "$ac_c_werror_flag" ||
16160 test ! -s conftest.err
16161 } && test -s conftest.$ac_objext; then
16162 ac_lo=$ac_mid; break
16164 echo "$as_me: failed program was
:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 ac_hi=`expr '(' $ac_mid ')' - 1`
16168 if test $ac_mid -le $ac_hi; then
16172 ac_mid=`expr 2 '*' $ac_mid`
16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178 echo "$as_me: failed program was
:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188 # Binary search between lo and hi bounds.
16189 while test "x
$ac_lo" != "x
$ac_hi"; do
16190 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 $ac_includes_default
16198 typedef int ac__type_sizeof_;
16202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_compile") 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest.$ac_objext; then
16228 echo "$as_me: failed program was
:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ac_lo=`expr '(' $ac_mid ')' + 1`
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16237 ?*) ac_cv_sizeof_int=$ac_lo;;
16238 '') if test "$ac_cv_type_int" = yes; then
16239 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
16240 See \
`config.log' for more details." >&5
16241 echo "$as_me: error: cannot compute sizeof (int)
16242 See \`config.log
' for more details." >&2;}
16243 { (exit 77); exit 77; }; }
16249 cat >conftest.$ac_ext <<_ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 $ac_includes_default
16256 typedef int ac__type_sizeof_;
16257 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16258 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16260 #include <stdlib.h>
16265 FILE *f = fopen ("conftest.val", "w");
16268 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16270 long int i = longval ();
16271 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16273 fprintf (f, "%ld\n", i);
16277 unsigned long int i = ulongval ();
16278 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16280 fprintf (f, "%lu\n", i);
16282 return ferror (f) || fclose (f) != 0;
16288 rm -f conftest$ac_exeext
16289 if { (ac_try="$ac_link"
16290 case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_link") 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16299 { (case "(($ac_try" in
16300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301 *) ac_try_echo=$ac_try;;
16303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304 (eval "$ac_try") 2>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; }; then
16308 ac_cv_sizeof_int=`cat conftest.val`
16310 echo "$as_me: program exited with status $ac_status" >&5
16311 echo "$as_me: failed program was:" >&5
16312 sed 's
/^
/|
/' conftest.$ac_ext >&5
16314 ( exit $ac_status )
16315 if test "$ac_cv_type_int" = yes; then
16316 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16317 See \`config.log' for more details.
" >&5
16318 echo "$as_me: error
: cannot compute sizeof
(int
)
16319 See \
`config.log' for more details." >&2;}
16320 { (exit 77); exit 77; }; }
16325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16329 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16330 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16334 cat >>confdefs.h <<_ACEOF
16335 #define SIZEOF_INT $ac_cv_sizeof_int
16340 # do the package library checks now
16343 if test "${USE_ALSA}" != "no"; then
16345 if test "x${ALSA_DIR}" != "x"; then
16346 if test -d ${ALSA_DIR}/lib; then
16347 pbxlibdir="-L${ALSA_DIR}/lib"
16349 pbxlibdir="-L${ALSA_DIR}"
16352 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16353 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16354 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 ac_check_lib_save_LIBS=$LIBS
16358 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16359 cat >conftest.$ac_ext <<_ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16366 /* Override any GCC internal prototype to avoid an error.
16367 Use char because int might match the return type of a GCC
16368 builtin and then its argument prototype would still apply. */
16372 char snd_spcm_init ();
16376 return snd_spcm_init ();
16381 rm -f conftest.$ac_objext conftest$ac_exeext
16382 if { (ac_try="$ac_link"
16383 case "(($ac_try" in
16384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16385 *) ac_try_echo
=$ac_try;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_link") 2>conftest.er1
16390 grep -v '^ *+' conftest.er1
>conftest.err
16392 cat conftest.err
>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } && {
16395 test -z "$ac_c_werror_flag" ||
16396 test ! -s conftest.err
16397 } && test -s conftest
$ac_exeext &&
16398 $as_test_x conftest
$ac_exeext; then
16399 ac_cv_lib_asound_snd_spcm_init
=yes
16401 echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.
$ac_ext >&5
16404 ac_cv_lib_asound_snd_spcm_init
=no
16407 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16408 conftest
$ac_exeext conftest.
$ac_ext
16409 LIBS
=$ac_check_lib_save_LIBS
16411 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16412 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16413 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16420 if test "${AST_ALSA_FOUND}" = "yes"; then
16421 ALSA_LIB
="-lasound -lm -ldl"
16422 ALSA_HEADER_FOUND
="1"
16423 if test "x${ALSA_DIR}" != "x"; then
16424 ALSA_LIB
="${pbxlibdir} ${ALSA_LIB}"
16425 ALSA_INCLUDE
="-I${ALSA_DIR}/include"
16427 ALSA_INCLUDE
="${ALSA_INCLUDE} "
16428 saved_cppflags
="${CPPFLAGS}"
16429 CPPFLAGS
="${CPPFLAGS} ${ALSA_INCLUDE}"
16430 if test "xalsa/asoundlib.h" != "x" ; then
16431 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16432 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16433 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16434 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16438 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16440 # Is the header compilable?
16441 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16442 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16443 cat >conftest.
$ac_ext <<_ACEOF
16446 cat confdefs.h
>>conftest.
$ac_ext
16447 cat >>conftest.
$ac_ext <<_ACEOF
16448 /* end confdefs.h. */
16449 $ac_includes_default
16450 #include <alsa/asoundlib.h>
16452 rm -f conftest.
$ac_objext
16453 if { (ac_try
="$ac_compile"
16454 case "(($ac_try" in
16455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_compile") 2>conftest.er1
16461 grep -v '^ *+' conftest.er1 >conftest.err
16463 cat conftest.err >&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } && {
16466 test -z "$ac_c_werror_flag" ||
16467 test ! -s conftest.err
16468 } && test -s conftest.$ac_objext; then
16469 ac_header_compiler=yes
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16474 ac_header_compiler=no
16477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16479 echo "${ECHO_T}$ac_header_compiler" >&6; }
16481 # Is the header present?
16482 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16483 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16484 cat >conftest.$ac_ext <<_ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 #include <alsa/asoundlib.h>
16492 if { (ac_try="$ac_cpp conftest.$ac_ext"
16493 case "(($ac_try" in
16494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16495 *) ac_try_echo
=$ac_try;;
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16500 grep -v '^ *+' conftest.er1
>conftest.err
16502 cat conftest.err
>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } >/dev
/null
&& {
16505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16506 test ! -s conftest.err
16508 ac_header_preproc
=yes
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.
$ac_ext >&5
16513 ac_header_preproc
=no
16516 rm -f conftest.err conftest.
$ac_ext
16517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16518 echo "${ECHO_T}$ac_header_preproc" >&6; }
16520 # So? What about this header?
16521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16523 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16524 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16525 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16526 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16527 ac_header_preproc
=yes
16530 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16531 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16532 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16533 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16534 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16535 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16536 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16537 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16538 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16539 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16540 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16541 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16543 ## ------------------------------- ##
16544 ## Report this to www.asterisk.org ##
16545 ## ------------------------------- ##
16547 ) |
sed "s/^/$as_me: WARNING: /" >&2
16550 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16551 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16552 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
16557 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16558 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16561 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16562 ALSA_HEADER_FOUND
=1
16564 ALSA_HEADER_FOUND
=0
16569 CPPFLAGS
="${saved_cppflags}"
16570 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16571 if test -n "${ALSA_MANDATORY}" ;
16573 { echo "$as_me:$LINENO: ***" >&5
16574 echo "$as_me: ***" >&6;}
16575 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16576 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16577 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16578 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16579 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16580 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16589 cat >>confdefs.h
<<_ACEOF
16590 #define HAVE_ALSA 1
16594 elif test -n "${ALSA_MANDATORY}";
16596 { echo "$as_me:$LINENO: ***" >&5
16597 echo "$as_me: ***" >&6;}
16598 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16599 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16600 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16601 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16602 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16603 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16610 if test "${USE_CURSES}" != "no"; then
16612 if test "x${CURSES_DIR}" != "x"; then
16613 if test -d ${CURSES_DIR}/lib
; then
16614 pbxlibdir
="-L${CURSES_DIR}/lib"
16616 pbxlibdir
="-L${CURSES_DIR}"
16619 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16620 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16621 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 ac_check_lib_save_LIBS
=$LIBS
16625 LIBS
="-lcurses ${pbxlibdir} $LIBS"
16626 cat >conftest.
$ac_ext <<_ACEOF
16629 cat confdefs.h
>>conftest.
$ac_ext
16630 cat >>conftest.
$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16633 /* Override any GCC internal prototype to avoid an error.
16634 Use char because int might match the return type of a GCC
16635 builtin and then its argument prototype would still apply. */
16648 rm -f conftest.
$ac_objext conftest
$ac_exeext
16649 if { (ac_try
="$ac_link"
16650 case "(($ac_try" in
16651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_link") 2>conftest.er1
16657 grep -v '^ *+' conftest.er1 >conftest.err
16659 cat conftest.err >&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } && {
16662 test -z "$ac_c_werror_flag" ||
16663 test ! -s conftest.err
16664 } && test -s conftest$ac_exeext &&
16665 $as_test_x conftest$ac_exeext; then
16666 ac_cv_lib_curses_initscr=yes
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 ac_cv_lib_curses_initscr=no
16674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16675 conftest$ac_exeext conftest.$ac_ext
16676 LIBS=$ac_check_lib_save_LIBS
16678 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16679 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16680 if test $ac_cv_lib_curses_initscr = yes; then
16681 AST_CURSES_FOUND=yes
16683 AST_CURSES_FOUND=no
16687 if test "${AST_CURSES_FOUND}" = "yes"; then
16688 CURSES_LIB="-lcurses "
16689 CURSES_HEADER_FOUND="1"
16690 if test "x${CURSES_DIR}" != "x"; then
16691 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16692 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16694 CURSES_INCLUDE="${CURSES_INCLUDE} "
16695 saved_cppflags="${CPPFLAGS}"
16696 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
16697 if test "xcurses.h" != "x" ; then
16698 if test "${ac_cv_header_curses_h+set}" = set; then
16699 { echo "$as_me:$LINENO: checking for curses.h" >&5
16700 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16701 if test "${ac_cv_header_curses_h+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16705 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16707 # Is the header compilable?
16708 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16709 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 $ac_includes_default
16717 #include <curses.h>
16719 rm -f conftest.$ac_objext
16720 if { (ac_try="$ac_compile"
16721 case "(($ac_try" in
16722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16723 *) ac_try_echo
=$ac_try;;
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16728 grep -v '^ *+' conftest.er1
>conftest.err
16730 cat conftest.err
>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest.
$ac_objext; then
16736 ac_header_compiler
=yes
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.
$ac_ext >&5
16741 ac_header_compiler
=no
16744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16746 echo "${ECHO_T}$ac_header_compiler" >&6; }
16748 # Is the header present?
16749 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16750 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16751 cat >conftest.
$ac_ext <<_ACEOF
16754 cat confdefs.h
>>conftest.
$ac_ext
16755 cat >>conftest.
$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 #include <curses.h>
16759 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16760 case "(($ac_try" in
16761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16767 grep -v '^ *+' conftest.er1 >conftest.err
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } >/dev/null && {
16772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16773 test ! -s conftest.err
16775 ac_header_preproc=yes
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 ac_header_preproc=no
16783 rm -f conftest.err conftest.$ac_ext
16784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16785 echo "${ECHO_T}$ac_header_preproc" >&6; }
16787 # So? What about this header?
16788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16790 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16791 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16792 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16793 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16794 ac_header_preproc=yes
16797 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16798 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16800 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16802 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16804 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16806 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16808 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16810 ## ------------------------------- ##
16811 ## Report this to www.asterisk.org ##
16812 ## ------------------------------- ##
16814 ) | sed "s/^/$as_me: WARNING: /" >&2
16817 { echo "$as_me:$LINENO: checking for curses.h" >&5
16818 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16819 if test "${ac_cv_header_curses_h+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16822 ac_cv_header_curses_h=$ac_header_preproc
16824 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16825 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16828 if test $ac_cv_header_curses_h = yes; then
16829 CURSES_HEADER_FOUND=1
16831 CURSES_HEADER_FOUND=0
16836 CPPFLAGS="${saved_cppflags}"
16837 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16838 if test -n "${CURSES_MANDATORY}" ;
16840 { echo "$as_me:$LINENO: ***" >&5
16841 echo "$as_me: ***" >&6;}
16842 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16843 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16844 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16845 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16846 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16847 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16856 cat >>confdefs.h <<_ACEOF
16857 #define HAVE_CURSES 1
16861 elif test -n "${CURSES_MANDATORY}";
16863 { echo "$as_me:$LINENO: ***" >&5
16864 echo "$as_me: ***" >&6;}
16865 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16866 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16867 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16868 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16869 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16870 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16876 if test "x${host_os}" = "xlinux-gnu" ; then
16878 if test "${USE_CAP}" != "no"; then
16880 if test "x${CAP_DIR}" != "x"; then
16881 if test -d ${CAP_DIR}/lib; then
16882 pbxlibdir="-L${CAP_DIR}/lib"
16884 pbxlibdir="-L${CAP_DIR}"
16887 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
16888 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
16889 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
16890 echo $ECHO_N "(cached) $ECHO_C" >&6
16892 ac_check_lib_save_LIBS=$LIBS
16893 LIBS="-lcap ${pbxlibdir} $LIBS"
16894 cat >conftest.$ac_ext <<_ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16901 /* Override any GCC internal prototype to avoid an error.
16902 Use char because int might match the return type of a GCC
16903 builtin and then its argument prototype would still apply. */
16907 char cap_from_text ();
16911 return cap_from_text ();
16916 rm -f conftest.$ac_objext conftest$ac_exeext
16917 if { (ac_try="$ac_link"
16918 case "(($ac_try" in
16919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16920 *) ac_try_echo
=$ac_try;;
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_link") 2>conftest.er1
16925 grep -v '^ *+' conftest.er1
>conftest.err
16927 cat conftest.err
>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } && {
16930 test -z "$ac_c_werror_flag" ||
16931 test ! -s conftest.err
16932 } && test -s conftest
$ac_exeext &&
16933 $as_test_x conftest
$ac_exeext; then
16934 ac_cv_lib_cap_cap_from_text
=yes
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.
$ac_ext >&5
16939 ac_cv_lib_cap_cap_from_text
=no
16942 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16943 conftest
$ac_exeext conftest.
$ac_ext
16944 LIBS
=$ac_check_lib_save_LIBS
16946 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
16947 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
16948 if test $ac_cv_lib_cap_cap_from_text = yes; then
16955 if test "${AST_CAP_FOUND}" = "yes"; then
16957 CAP_HEADER_FOUND
="1"
16958 if test "x${CAP_DIR}" != "x"; then
16959 CAP_LIB
="${pbxlibdir} ${CAP_LIB}"
16960 CAP_INCLUDE
="-I${CAP_DIR}/include"
16962 CAP_INCLUDE
="${CAP_INCLUDE} "
16963 saved_cppflags
="${CPPFLAGS}"
16964 CPPFLAGS
="${CPPFLAGS} ${CAP_INCLUDE}"
16965 if test "xsys/capability.h" != "x" ; then
16966 if test "${ac_cv_header_sys_capability_h+set}" = set; then
16967 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
16968 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
16969 if test "${ac_cv_header_sys_capability_h+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
16973 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
16975 # Is the header compilable?
16976 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
16977 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
16978 cat >conftest.
$ac_ext <<_ACEOF
16981 cat confdefs.h
>>conftest.
$ac_ext
16982 cat >>conftest.
$ac_ext <<_ACEOF
16983 /* end confdefs.h. */
16984 $ac_includes_default
16985 #include <sys/capability.h>
16987 rm -f conftest.
$ac_objext
16988 if { (ac_try
="$ac_compile"
16989 case "(($ac_try" in
16990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_compile") 2>conftest.er1
16996 grep -v '^ *+' conftest.er1 >conftest.err
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } && {
17001 test -z "$ac_c_werror_flag" ||
17002 test ! -s conftest.err
17003 } && test -s conftest.$ac_objext; then
17004 ac_header_compiler=yes
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 ac_header_compiler=no
17012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17014 echo "${ECHO_T}$ac_header_compiler" >&6; }
17016 # Is the header present?
17017 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17018 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17019 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 #include <sys/capability.h>
17027 if { (ac_try="$ac_cpp conftest.$ac_ext"
17028 case "(($ac_try" in
17029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17030 *) ac_try_echo
=$ac_try;;
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17035 grep -v '^ *+' conftest.er1
>conftest.err
17037 cat conftest.err
>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } >/dev
/null
&& {
17040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17041 test ! -s conftest.err
17043 ac_header_preproc
=yes
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.
$ac_ext >&5
17048 ac_header_preproc
=no
17051 rm -f conftest.err conftest.
$ac_ext
17052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17053 echo "${ECHO_T}$ac_header_preproc" >&6; }
17055 # So? What about this header?
17056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17058 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17059 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17060 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17061 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17062 ac_header_preproc
=yes
17065 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17066 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17067 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17068 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17069 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17070 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17071 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17072 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17073 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17074 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17075 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17076 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17078 ## ------------------------------- ##
17079 ## Report this to www.asterisk.org ##
17080 ## ------------------------------- ##
17082 ) |
sed "s/^/$as_me: WARNING: /" >&2
17085 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17086 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17087 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17090 ac_cv_header_sys_capability_h
=$ac_header_preproc
17092 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17093 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17096 if test $ac_cv_header_sys_capability_h = yes; then
17104 CPPFLAGS
="${saved_cppflags}"
17105 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17106 if test -n "${CAP_MANDATORY}" ;
17108 { echo "$as_me:$LINENO: ***" >&5
17109 echo "$as_me: ***" >&6;}
17110 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17111 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17112 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17113 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17114 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17115 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17124 cat >>confdefs.h
<<_ACEOF
17129 elif test -n "${CAP_MANDATORY}";
17131 { echo "$as_me:$LINENO: ***" >&5
17132 echo "$as_me: ***" >&6;}
17133 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17134 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17135 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17136 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17137 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17138 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17145 if test "${USE_DAHDI}" != "no" ; then
17147 if test "x${PBX_DAHDI}" != "x1"; then
17148 { echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5
17149 echo $ECHO_N "checking for DAHDI_CODE in dahdi/user.h... $ECHO_C" >&6; }
17150 saved_cppflags
="${CPPFLAGS}"
17151 if test "x${DAHDI_DIR}" != "x"; then
17152 DAHDI_INCLUDE
="-I${DAHDI_DIR}/include"
17154 CPPFLAGS
="${CPPFLAGS} ${DAHDI_INCLUDE}"
17156 cat >conftest.
$ac_ext <<_ACEOF
17159 cat confdefs.h
>>conftest.
$ac_ext
17160 cat >>conftest.
$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 #include <dahdi/user.h>
17166 #if defined(DAHDI_CODE)
17177 rm -f conftest.
$ac_objext
17178 if { (ac_try
="$ac_compile"
17179 case "(($ac_try" in
17180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_compile") 2>conftest.er1
17186 grep -v '^ *+' conftest.er1 >conftest.err
17188 cat conftest.err >&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } && {
17191 test -z "$ac_c_werror_flag" ||
17192 test ! -s conftest.err
17193 } && test -s conftest.$ac_objext; then
17194 { echo "$as_me:$LINENO: result: yes" >&5
17195 echo "${ECHO_T}yes" >&6; }
17198 cat >>confdefs.h <<\_ACEOF
17199 #define HAVE_DAHDI 1
17203 cat >>confdefs.h <<\_ACEOF
17204 #define HAVE_DAHDI_VERSION
17209 echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17212 { echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6; }
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218 CPPFLAGS="${saved_cppflags}"
17222 if test "x${PBX_DAHDI}" = "x1" ; then
17223 PBX_DAHDI_TRANSCODE=1
17229 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17230 if test "xgetifaddrs() support" != "x"; then
17231 { echo "$as_me:$LINENO: checking for getifaddrs() support" >&5
17232 echo $ECHO_N "checking for getifaddrs() support... $ECHO_C" >&6; }
17234 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17235 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17237 saved_cppflags="${CPPFLAGS}"
17238 if test "x${GETIFADDRS_DIR}" != "x"; then
17239 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
17241 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17243 cat >conftest.$ac_ext <<_ACEOF
17246 cat confdefs.h >>conftest.$ac_ext
17247 cat >>conftest.$ac_ext <<_ACEOF
17248 /* end confdefs.h. */
17249 #include <ifaddrs.h>
17253 struct ifaddrs *p; getifaddrs(&p);
17259 rm -f conftest.$ac_objext
17260 if { (ac_try="$ac_compile"
17261 case "(($ac_try" in
17262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17263 *) ac_try_echo
=$ac_try;;
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_compile") 2>conftest.er1
17268 grep -v '^ *+' conftest.er1
>conftest.err
17270 cat conftest.err
>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } && {
17273 test -z "$ac_c_werror_flag" ||
17274 test ! -s conftest.err
17275 } && test -s conftest.
$ac_objext; then
17276 { echo "$as_me:$LINENO: result: yes" >&5
17277 echo "${ECHO_T}yes" >&6; }
17280 cat >>confdefs.h
<<\_ACEOF
17281 #define HAVE_GETIFADDRS 1
17285 cat >>confdefs.h
<<\_ACEOF
17286 #define HAVE_GETIFADDRS_VERSION
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.
$ac_ext >&5
17294 { echo "$as_me:$LINENO: result: no" >&5
17295 echo "${ECHO_T}no" >&6; }
17299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17300 CPPFLAGS
="${saved_cppflags}"
17307 if test "${USE_GSM}" != "no"; then
17308 if test "${GSM_DIR}" = "internal"; then
17310 elif test "${GSM_DIR}" != ""; then
17313 if test "${GSM_SYSTEM}" = "yes"; then
17315 if test "x${GSM_DIR}" != "x"; then
17316 if test -d ${GSM_DIR}/lib
; then
17317 gsmlibdir
="-L${GSM_DIR}/lib"
17319 gsmlibdir
="-L${GSM_DIR}"
17322 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17323 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17324 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 ac_check_lib_save_LIBS
=$LIBS
17328 LIBS
="-lgsm ${gsmlibdir} $LIBS"
17329 cat >conftest.
$ac_ext <<_ACEOF
17332 cat confdefs.h
>>conftest.
$ac_ext
17333 cat >>conftest.
$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17336 /* Override any GCC internal prototype to avoid an error.
17337 Use char because int might match the return type of a GCC
17338 builtin and then its argument prototype would still apply. */
17342 char gsm_create ();
17346 return gsm_create ();
17351 rm -f conftest.
$ac_objext conftest
$ac_exeext
17352 if { (ac_try
="$ac_link"
17353 case "(($ac_try" in
17354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_link") 2>conftest.er1
17360 grep -v '^ *+' conftest.er1 >conftest.err
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } && {
17365 test -z "$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest$ac_exeext &&
17368 $as_test_x conftest$ac_exeext; then
17369 ac_cv_lib_gsm_gsm_create=yes
17371 echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17374 ac_cv_lib_gsm_gsm_create=no
17377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17378 conftest$ac_exeext conftest.$ac_ext
17379 LIBS=$ac_check_lib_save_LIBS
17381 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17382 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17383 if test $ac_cv_lib_gsm_gsm_create = yes; then
17385 cat >>confdefs.h <<_ACEOF
17391 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17392 if test "x${GSM_DIR}" != "x" ; then
17393 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" |
$as_tr_sh`
17394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17395 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17396 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17400 ac_res=`eval echo '${'$as_ac_Header'}'`
17401 { echo "$as_me:$LINENO: result: $ac_res" >&5
17402 echo "${ECHO_T}$ac_res" >&6; }
17404 # Is the header compilable?
17405 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17406 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 $ac_includes_default
17414 #include <${GSM_DIR}/include/gsm.h>
17416 rm -f conftest.$ac_objext
17417 if { (ac_try="$ac_compile"
17418 case "(($ac_try" in
17419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17420 *) ac_try_echo
=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_compile") 2>conftest.er1
17425 grep -v '^ *+' conftest.er1
>conftest.err
17427 cat conftest.err
>&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } && {
17430 test -z "$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17432 } && test -s conftest.
$ac_objext; then
17433 ac_header_compiler
=yes
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.
$ac_ext >&5
17438 ac_header_compiler
=no
17441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17443 echo "${ECHO_T}$ac_header_compiler" >&6; }
17445 # Is the header present?
17446 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17447 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17448 cat >conftest.
$ac_ext <<_ACEOF
17451 cat confdefs.h
>>conftest.
$ac_ext
17452 cat >>conftest.
$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 #include <${GSM_DIR}/include/gsm.h>
17456 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17457 case "(($ac_try" in
17458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17464 grep -v '^ *+' conftest.er1 >conftest.err
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } >/dev/null && {
17469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17470 test ! -s conftest.err
17472 ac_header_preproc=yes
17474 echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17477 ac_header_preproc=no
17480 rm -f conftest.err conftest.$ac_ext
17481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17482 echo "${ECHO_T}$ac_header_preproc" >&6; }
17484 # So? What about this header?
17485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17487 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17488 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17489 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17490 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17491 ac_header_preproc=yes
17494 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17495 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17496 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17497 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17498 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17499 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17500 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17501 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17502 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17503 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17504 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17505 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17507 ## ------------------------------- ##
17508 ## Report this to www.asterisk.org ##
17509 ## ------------------------------- ##
17511 ) | sed "s/^/$as_me: WARNING: /" >&2
17514 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17515 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 eval "$as_ac_Header=\$ac_header_preproc"
17521 ac_res=`eval echo '${'$as_ac_Header'}'`
17522 { echo "$as_me:$LINENO: result: $ac_res" >&5
17523 echo "${ECHO_T}$ac_res" >&6; }
17526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17533 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" |
$as_tr_sh`
17534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17535 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17536 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 ac_res=`eval echo '${'$as_ac_Header'}'`
17541 { echo "$as_me:$LINENO: result: $ac_res" >&5
17542 echo "${ECHO_T}$ac_res" >&6; }
17544 # Is the header compilable?
17545 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17546 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17547 cat >conftest.$ac_ext <<_ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 $ac_includes_default
17554 #include <${GSM_DIR}/include/gsm/gsm.h>
17556 rm -f conftest.$ac_objext
17557 if { (ac_try="$ac_compile"
17558 case "(($ac_try" in
17559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17560 *) ac_try_echo
=$ac_try;;
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_compile") 2>conftest.er1
17565 grep -v '^ *+' conftest.er1
>conftest.err
17567 cat conftest.err
>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && {
17570 test -z "$ac_c_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest.
$ac_objext; then
17573 ac_header_compiler
=yes
17575 echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.
$ac_ext >&5
17578 ac_header_compiler
=no
17581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17583 echo "${ECHO_T}$ac_header_compiler" >&6; }
17585 # Is the header present?
17586 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17587 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17588 cat >conftest.
$ac_ext <<_ACEOF
17591 cat confdefs.h
>>conftest.
$ac_ext
17592 cat >>conftest.
$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 #include <${GSM_DIR}/include/gsm/gsm.h>
17596 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17597 case "(($ac_try" in
17598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17599 *) ac_try_echo=$ac_try;;
17601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17604 grep -v '^ *+' conftest.er1 >conftest.err
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } >/dev/null && {
17609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17610 test ! -s conftest.err
17612 ac_header_preproc=yes
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 ac_header_preproc=no
17620 rm -f conftest.err conftest.$ac_ext
17621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17622 echo "${ECHO_T}$ac_header_preproc" >&6; }
17624 # So? What about this header?
17625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17627 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17628 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17629 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17630 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17631 ac_header_preproc=yes
17634 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17635 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17636 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17637 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17638 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17639 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17640 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17641 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17643 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17644 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17645 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17647 ## ------------------------------- ##
17648 ## Report this to www.asterisk.org ##
17649 ## ------------------------------- ##
17651 ) | sed "s/^/$as_me: WARNING: /" >&2
17654 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17655 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 eval "$as_ac_Header=\$ac_header_preproc"
17661 ac_res=`eval echo '${'$as_ac_Header'}'`
17662 { echo "$as_me:$LINENO: result: $ac_res" >&5
17663 echo "${ECHO_T}$ac_res" >&6; }
17666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17667 GSM_GSM_HEADER_FOUND=1
17669 GSM_GSM_HEADER_FOUND=0
17674 if test "${ac_cv_header_gsm_h+set}" = set; then
17675 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17676 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17677 if test "${ac_cv_header_gsm_h+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17681 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17683 # Is the header compilable?
17684 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17685 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 $ac_includes_default
17695 rm -f conftest.$ac_objext
17696 if { (ac_try="$ac_compile"
17697 case "(($ac_try" in
17698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17699 *) ac_try_echo
=$ac_try;;
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_compile") 2>conftest.er1
17704 grep -v '^ *+' conftest.er1
>conftest.err
17706 cat conftest.err
>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } && {
17709 test -z "$ac_c_werror_flag" ||
17710 test ! -s conftest.err
17711 } && test -s conftest.
$ac_objext; then
17712 ac_header_compiler
=yes
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.
$ac_ext >&5
17717 ac_header_compiler
=no
17720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17722 echo "${ECHO_T}$ac_header_compiler" >&6; }
17724 # Is the header present?
17725 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17726 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17727 cat >conftest.
$ac_ext <<_ACEOF
17730 cat confdefs.h
>>conftest.
$ac_ext
17731 cat >>conftest.
$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17735 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17736 case "(($ac_try" in
17737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17743 grep -v '^ *+' conftest.er1 >conftest.err
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } >/dev/null && {
17748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17749 test ! -s conftest.err
17751 ac_header_preproc=yes
17753 echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17756 ac_header_preproc=no
17759 rm -f conftest.err conftest.$ac_ext
17760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17761 echo "${ECHO_T}$ac_header_preproc" >&6; }
17763 # So? What about this header?
17764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17766 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17767 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17768 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17769 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17770 ac_header_preproc=yes
17773 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17774 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17775 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17776 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17777 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17778 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17779 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17780 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17781 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17782 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17783 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17784 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17786 ## ------------------------------- ##
17787 ## Report this to www.asterisk.org ##
17788 ## ------------------------------- ##
17790 ) | sed "s/^/$as_me: WARNING: /" >&2
17793 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17794 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17795 if test "${ac_cv_header_gsm_h+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 ac_cv_header_gsm_h=$ac_header_preproc
17800 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17801 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17804 if test $ac_cv_header_gsm_h = yes; then
17811 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17812 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17813 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17814 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17818 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17820 # Is the header compilable?
17821 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17822 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 $ac_includes_default
17830 #include <gsm/gsm.h>
17832 rm -f conftest.$ac_objext
17833 if { (ac_try="$ac_compile"
17834 case "(($ac_try" in
17835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17836 *) ac_try_echo
=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_compile") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1
>conftest.err
17843 cat conftest.err
>&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest.
$ac_objext; then
17849 ac_header_compiler
=yes
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.
$ac_ext >&5
17854 ac_header_compiler
=no
17857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17859 echo "${ECHO_T}$ac_header_compiler" >&6; }
17861 # Is the header present?
17862 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17863 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17864 cat >conftest.
$ac_ext <<_ACEOF
17867 cat confdefs.h
>>conftest.
$ac_ext
17868 cat >>conftest.
$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17870 #include <gsm/gsm.h>
17872 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17873 case "(($ac_try" in
17874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } >/dev/null && {
17885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17886 test ! -s conftest.err
17888 ac_header_preproc=yes
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17893 ac_header_preproc=no
17896 rm -f conftest.err conftest.$ac_ext
17897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17898 echo "${ECHO_T}$ac_header_preproc" >&6; }
17900 # So? What about this header?
17901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17903 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17904 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17905 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
17906 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
17907 ac_header_preproc=yes
17910 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
17911 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
17912 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
17913 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17914 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
17915 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
17916 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17917 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17918 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
17919 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
17921 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17923 ## ------------------------------- ##
17924 ## Report this to www.asterisk.org ##
17925 ## ------------------------------- ##
17927 ) | sed "s/^/$as_me: WARNING: /" >&2
17930 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17931 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17932 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17935 ac_cv_header_gsm_gsm_h=$ac_header_preproc
17937 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17938 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17941 if test $ac_cv_header_gsm_gsm_h = yes; then
17942 GSM_GSM_HEADER_FOUND=1
17944 GSM_GSM_HEADER_FOUND=0
17949 if test "${GSM_HEADER_FOUND}" = "0" ; then
17950 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
17951 if test "x${GSM_MANDATORY}" = "xyes" ; then
17952 { echo "$as_me:$LINENO: ***" >&5
17953 echo "$as_me: ***" >&6;}
17954 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
17955 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
17956 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
17957 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
17958 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
17959 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
17965 if test "${GSM_HEADER_FOUND}" = "1" ; then
17967 cat >>confdefs.h <<_ACEOF
17968 #define HAVE_GSM_HEADER 1
17973 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
17975 cat >>confdefs.h <<_ACEOF
17976 #define HAVE_GSM_GSM_HEADER 1
17982 if test "${GSM_OK}" = "1" ; then
17984 if test "x${GSM_DIR}" != "x"; then
17985 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
17986 GSM_INCLUDE="-I${GSM_DIR}/include"
17993 if test "${GSM_INTERNAL}" = "yes"; then
17996 cat >>confdefs.h <<_ACEOF
17997 #define HAVE_GSM_HEADER 1
18004 if test "${USE_IKSEMEL}" != "no"; then
18006 if test "x${IKSEMEL_DIR}" != "x"; then
18007 if test -d ${IKSEMEL_DIR}/lib; then
18008 pbxlibdir="-L${IKSEMEL_DIR}/lib"
18010 pbxlibdir="-L${IKSEMEL_DIR}"
18013 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18014 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18015 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18016 echo $ECHO_N "(cached) $ECHO_C" >&6
18018 ac_check_lib_save_LIBS=$LIBS
18019 LIBS="-liksemel ${pbxlibdir} $LIBS"
18020 cat >conftest.$ac_ext <<_ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h. */
18027 /* Override any GCC internal prototype to avoid an error.
18028 Use char because int might match the return type of a GCC
18029 builtin and then its argument prototype would still apply. */
18033 char iks_start_sasl ();
18037 return iks_start_sasl ();
18042 rm -f conftest.$ac_objext conftest$ac_exeext
18043 if { (ac_try="$ac_link"
18044 case "(($ac_try" in
18045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18046 *) ac_try_echo
=$ac_try;;
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_link") 2>conftest.er1
18051 grep -v '^ *+' conftest.er1
>conftest.err
18053 cat conftest.err
>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } && {
18056 test -z "$ac_c_werror_flag" ||
18057 test ! -s conftest.err
18058 } && test -s conftest
$ac_exeext &&
18059 $as_test_x conftest
$ac_exeext; then
18060 ac_cv_lib_iksemel_iks_start_sasl
=yes
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.
$ac_ext >&5
18065 ac_cv_lib_iksemel_iks_start_sasl
=no
18068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18069 conftest
$ac_exeext conftest.
$ac_ext
18070 LIBS
=$ac_check_lib_save_LIBS
18072 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18073 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18074 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18075 AST_IKSEMEL_FOUND
=yes
18077 AST_IKSEMEL_FOUND
=no
18081 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18082 IKSEMEL_LIB
="-liksemel "
18083 IKSEMEL_HEADER_FOUND
="1"
18084 if test "x${IKSEMEL_DIR}" != "x"; then
18085 IKSEMEL_LIB
="${pbxlibdir} ${IKSEMEL_LIB}"
18086 IKSEMEL_INCLUDE
="-I${IKSEMEL_DIR}/include"
18088 IKSEMEL_INCLUDE
="${IKSEMEL_INCLUDE} "
18089 saved_cppflags
="${CPPFLAGS}"
18090 CPPFLAGS
="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
18091 if test "xiksemel.h" != "x" ; then
18092 if test "${ac_cv_header_iksemel_h+set}" = set; then
18093 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18094 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18095 if test "${ac_cv_header_iksemel_h+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18099 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18101 # Is the header compilable?
18102 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18103 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18104 cat >conftest.
$ac_ext <<_ACEOF
18107 cat confdefs.h
>>conftest.
$ac_ext
18108 cat >>conftest.
$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18110 $ac_includes_default
18111 #include <iksemel.h>
18113 rm -f conftest.
$ac_objext
18114 if { (ac_try
="$ac_compile"
18115 case "(($ac_try" in
18116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_compile") 2>conftest.er1
18122 grep -v '^ *+' conftest.er1 >conftest.err
18124 cat conftest.err >&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } && {
18127 test -z "$ac_c_werror_flag" ||
18128 test ! -s conftest.err
18129 } && test -s conftest.$ac_objext; then
18130 ac_header_compiler=yes
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 ac_header_compiler=no
18138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18140 echo "${ECHO_T}$ac_header_compiler" >&6; }
18142 # Is the header present?
18143 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18144 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18145 cat >conftest.$ac_ext <<_ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18151 #include <iksemel.h>
18153 if { (ac_try="$ac_cpp conftest.$ac_ext"
18154 case "(($ac_try" in
18155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18156 *) ac_try_echo
=$ac_try;;
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18161 grep -v '^ *+' conftest.er1
>conftest.err
18163 cat conftest.err
>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } >/dev
/null
&& {
18166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18167 test ! -s conftest.err
18169 ac_header_preproc
=yes
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.
$ac_ext >&5
18174 ac_header_preproc
=no
18177 rm -f conftest.err conftest.
$ac_ext
18178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18179 echo "${ECHO_T}$ac_header_preproc" >&6; }
18181 # So? What about this header?
18182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18184 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18185 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18186 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18187 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18188 ac_header_preproc
=yes
18191 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18192 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18193 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18194 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18195 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18196 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18197 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18198 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18199 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18200 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18201 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18202 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18204 ## ------------------------------- ##
18205 ## Report this to www.asterisk.org ##
18206 ## ------------------------------- ##
18208 ) |
sed "s/^/$as_me: WARNING: /" >&2
18211 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18212 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18213 if test "${ac_cv_header_iksemel_h+set}" = set; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 ac_cv_header_iksemel_h
=$ac_header_preproc
18218 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18219 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18222 if test $ac_cv_header_iksemel_h = yes; then
18223 IKSEMEL_HEADER_FOUND
=1
18225 IKSEMEL_HEADER_FOUND
=0
18230 CPPFLAGS
="${saved_cppflags}"
18231 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18232 if test -n "${IKSEMEL_MANDATORY}" ;
18234 { echo "$as_me:$LINENO: ***" >&5
18235 echo "$as_me: ***" >&6;}
18236 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18237 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18238 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18239 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18240 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18241 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18250 cat >>confdefs.h
<<_ACEOF
18251 #define HAVE_IKSEMEL 1
18255 elif test -n "${IKSEMEL_MANDATORY}";
18257 { echo "$as_me:$LINENO: ***" >&5
18258 echo "$as_me: ***" >&6;}
18259 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18260 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18261 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18262 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18263 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18264 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18270 if test "${PBX_IKSEMEL}" = 1; then
18272 if test "${USE_GNUTLS}" != "no"; then
18274 if test "x${GNUTLS_DIR}" != "x"; then
18275 if test -d ${GNUTLS_DIR}/lib
; then
18276 pbxlibdir
="-L${GNUTLS_DIR}/lib"
18278 pbxlibdir
="-L${GNUTLS_DIR}"
18281 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18282 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18283 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18284 echo $ECHO_N "(cached) $ECHO_C" >&6
18286 ac_check_lib_save_LIBS
=$LIBS
18287 LIBS
="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18288 cat >conftest.
$ac_ext <<_ACEOF
18291 cat confdefs.h
>>conftest.
$ac_ext
18292 cat >>conftest.
$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18295 /* Override any GCC internal prototype to avoid an error.
18296 Use char because int might match the return type of a GCC
18297 builtin and then its argument prototype would still apply. */
18301 char gnutls_bye ();
18305 return gnutls_bye ();
18310 rm -f conftest.
$ac_objext conftest
$ac_exeext
18311 if { (ac_try
="$ac_link"
18312 case "(($ac_try" in
18313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317 (eval "$ac_link") 2>conftest.er1
18319 grep -v '^ *+' conftest.er1 >conftest.err
18321 cat conftest.err >&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } && {
18324 test -z "$ac_c_werror_flag" ||
18325 test ! -s conftest.err
18326 } && test -s conftest$ac_exeext &&
18327 $as_test_x conftest$ac_exeext; then
18328 ac_cv_lib_gnutls_gnutls_bye=yes
18330 echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18333 ac_cv_lib_gnutls_gnutls_bye=no
18336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18337 conftest$ac_exeext conftest.$ac_ext
18338 LIBS=$ac_check_lib_save_LIBS
18340 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18341 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18342 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18343 AST_GNUTLS_FOUND=yes
18345 AST_GNUTLS_FOUND=no
18349 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18350 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
18351 GNUTLS_HEADER_FOUND="1"
18352 if test "x${GNUTLS_DIR}" != "x"; then
18353 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
18354 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
18356 GNUTLS_INCLUDE="${GNUTLS_INCLUDE} "
18357 saved_cppflags="${CPPFLAGS}"
18358 CPPFLAGS="${CPPFLAGS} ${GNUTLS_INCLUDE}"
18359 if test "xgnutls/gnutls.h" != "x" ; then
18360 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18361 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18362 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18363 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18364 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18367 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18369 # Is the header compilable?
18370 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18371 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18372 cat >conftest.$ac_ext <<_ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 $ac_includes_default
18379 #include <gnutls/gnutls.h>
18381 rm -f conftest.$ac_objext
18382 if { (ac_try="$ac_compile"
18383 case "(($ac_try" in
18384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18385 *) ac_try_echo
=$ac_try;;
18387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388 (eval "$ac_compile") 2>conftest.er1
18390 grep -v '^ *+' conftest.er1
>conftest.err
18392 cat conftest.err
>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } && {
18395 test -z "$ac_c_werror_flag" ||
18396 test ! -s conftest.err
18397 } && test -s conftest.
$ac_objext; then
18398 ac_header_compiler
=yes
18400 echo "$as_me: failed program was:" >&5
18401 sed 's/^/| /' conftest.
$ac_ext >&5
18403 ac_header_compiler
=no
18406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18408 echo "${ECHO_T}$ac_header_compiler" >&6; }
18410 # Is the header present?
18411 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18412 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18413 cat >conftest.
$ac_ext <<_ACEOF
18416 cat confdefs.h
>>conftest.
$ac_ext
18417 cat >>conftest.
$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419 #include <gnutls/gnutls.h>
18421 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18422 case "(($ac_try" in
18423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18424 *) ac_try_echo=$ac_try;;
18426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18429 grep -v '^ *+' conftest.er1 >conftest.err
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } >/dev/null && {
18434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18435 test ! -s conftest.err
18437 ac_header_preproc=yes
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18442 ac_header_preproc=no
18445 rm -f conftest.err conftest.$ac_ext
18446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18447 echo "${ECHO_T}$ac_header_preproc" >&6; }
18449 # So? What about this header?
18450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18452 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18453 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18454 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18455 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18456 ac_header_preproc=yes
18459 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18460 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18462 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18463 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18464 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18465 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18466 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18467 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18468 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18469 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18470 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18472 ## ------------------------------- ##
18473 ## Report this to www.asterisk.org ##
18474 ## ------------------------------- ##
18476 ) | sed "s/^/$as_me: WARNING: /" >&2
18479 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18480 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18481 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18484 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
18486 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18487 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18490 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18491 GNUTLS_HEADER_FOUND=1
18493 GNUTLS_HEADER_FOUND=0
18498 CPPFLAGS="${saved_cppflags}"
18499 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18500 if test -n "${GNUTLS_MANDATORY}" ;
18502 { echo "$as_me:$LINENO: ***" >&5
18503 echo "$as_me: ***" >&6;}
18504 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18505 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18506 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18507 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18508 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18509 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18518 cat >>confdefs.h <<_ACEOF
18519 #define HAVE_GNUTLS 1
18523 elif test -n "${GNUTLS_MANDATORY}";
18525 { echo "$as_me:$LINENO: ***" >&5
18526 echo "$as_me: ***" >&6;}
18527 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18528 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18529 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18530 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18531 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18532 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18539 if test "${USE_IMAP_TK}" != "no"; then
18540 saved_cppflags="${CPPFLAGS}"
18541 saved_libs="${LIBS}"
18542 switch_to_system_on_failure="no"
18543 if test "${IMAP_TK_DIR}" = ""; then
18544 IMAP_TK_DIR=`pwd`"/../imap-2004g"
18545 switch_to_system_on_failure="yes"
18547 if test "${IMAP_TK_DIR}" != "system"; then
18548 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18549 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18550 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
18551 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client
/LDFLAGS
`
18553 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
18554 imap_include="-I${IMAP_TK_DIR}/c-client"
18555 CPPFLAGS="${CPPFLAGS} ${imap_include}"
18556 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18557 cat >conftest.
$ac_ext <<_ACEOF
18560 cat confdefs.h
>>conftest.
$ac_ext
18561 cat >>conftest.
$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18563 #include "c-client.h"
18564 void mm_searched (MAILSTREAM *stream,unsigned long number)
18567 void mm_exists (MAILSTREAM *stream,unsigned long number)
18570 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18573 void mm_flags (MAILSTREAM *stream,unsigned long number)
18576 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18579 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18582 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18585 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18588 void mm_log (char *string,long errflg)
18591 void mm_dlog (char *string)
18594 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18597 void mm_critical (MAILSTREAM *stream)
18600 void mm_nocritical (MAILSTREAM *stream)
18603 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18606 void mm_fatal (char *string)
18613 MAILSTREAM *foo = mail_open(NULL, "", 0);
18620 rm -f conftest.
$ac_objext conftest
$ac_exeext
18621 if { (ac_try
="$ac_link"
18622 case "(($ac_try" in
18623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_link") 2>conftest.er1
18629 grep -v '^ *+' conftest.er1 >conftest.err
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest$ac_exeext &&
18637 $as_test_x conftest$ac_exeext; then
18638 ac_cv_imap_tk="yes"
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18648 conftest$ac_exeext conftest.$ac_ext
18649 if test "${ac_cv_imap_tk}" = "yes"; then
18650 cat >conftest.$ac_ext <<_ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18656 #include "c-client.h"
18657 void mm_searched (MAILSTREAM *stream,unsigned long number)
18660 void mm_exists (MAILSTREAM *stream,unsigned long number)
18663 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18666 void mm_flags (MAILSTREAM *stream,unsigned long number)
18669 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18672 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18675 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18678 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18681 void mm_log (char *string,long errflg)
18684 void mm_dlog (char *string)
18687 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18690 void mm_critical (MAILSTREAM *stream)
18693 void mm_nocritical (MAILSTREAM *stream)
18696 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18699 void mm_fatal (char *string)
18706 long check = mail_expunge_full(NULL, "", 0);
18713 rm -f conftest.$ac_objext conftest$ac_exeext
18714 if { (ac_try="$ac_link"
18715 case "(($ac_try" in
18716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18717 *) ac_try_echo
=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_link") 2>conftest.er1
18722 grep -v '^ *+' conftest.er1
>conftest.err
18724 cat conftest.err
>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } && {
18727 test -z "$ac_c_werror_flag" ||
18728 test ! -s conftest.err
18729 } && test -s conftest
$ac_exeext &&
18730 $as_test_x conftest
$ac_exeext; then
18731 ac_cv_imap_tk2006
="yes"
18733 echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.
$ac_ext >&5
18736 ac_cv_imap_tk2006
="no"
18740 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18741 conftest
$ac_exeext conftest.
$ac_ext
18743 CPPFLAGS
="${saved_cppflags}"
18744 LIBS
="${saved_libs}"
18745 if test "${ac_cv_imap_tk}" = "no"; then
18746 { echo "$as_me:$LINENO: result: no" >&5
18747 echo "${ECHO_T}no" >&6; }
18748 if test "${switch_to_system_on_failure}" = "yes"; then
18749 IMAP_TK_DIR
="system"
18750 else #This means they specified a directory. Search for a package installation there too
18751 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
18752 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
18753 CPPFLAGS
="${saved_cppflags}"
18754 LIBS
="${saved_libs}"
18755 imap_include
="-I${IMAP_TK_DIR}/include"
18756 imap_ldflags
="-L${IMAP_TK_DIR}/lib"
18757 imap_libs
="-lc-client"
18758 CPPFLAGS
="${CPPFLAGS} ${imap_include}"
18759 LIBS
="${LIBS} ${imap_libs} ${imap_ldflags}"
18760 cat >conftest.
$ac_ext <<_ACEOF
18763 cat confdefs.h
>>conftest.
$ac_ext
18764 cat >>conftest.
$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 #include "c-client.h"
18767 void mm_searched (MAILSTREAM *stream,unsigned long number)
18770 void mm_exists (MAILSTREAM *stream,unsigned long number)
18773 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18776 void mm_flags (MAILSTREAM *stream,unsigned long number)
18779 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18782 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18785 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18788 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18791 void mm_log (char *string,long errflg)
18794 void mm_dlog (char *string)
18797 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18800 void mm_critical (MAILSTREAM *stream)
18803 void mm_nocritical (MAILSTREAM *stream)
18806 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18809 void mm_fatal (char *string)
18816 MAILSTREAM *foo = mail_open(NULL, "", 0);
18823 rm -f conftest.
$ac_objext conftest
$ac_exeext
18824 if { (ac_try
="$ac_link"
18825 case "(($ac_try" in
18826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_link") 2>conftest.er1
18832 grep -v '^ *+' conftest.er1 >conftest.err
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } && {
18837 test -z "$ac_c_werror_flag" ||
18838 test ! -s conftest.err
18839 } && test -s conftest$ac_exeext &&
18840 $as_test_x conftest$ac_exeext; then
18841 ac_cv_imap_tk="yes"
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18851 conftest$ac_exeext conftest.$ac_ext
18852 if test "${ac_cv_imap_tk}" = "yes"; then
18853 cat >conftest.$ac_ext <<_ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18859 #include "c-client.h"
18860 void mm_searched (MAILSTREAM *stream,unsigned long number)
18863 void mm_exists (MAILSTREAM *stream,unsigned long number)
18866 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18869 void mm_flags (MAILSTREAM *stream,unsigned long number)
18872 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18875 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18878 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18881 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18884 void mm_log (char *string,long errflg)
18887 void mm_dlog (char *string)
18890 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18893 void mm_critical (MAILSTREAM *stream)
18896 void mm_nocritical (MAILSTREAM *stream)
18899 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18902 void mm_fatal (char *string)
18909 long check = mail_expunge_full(NULL, "", 0);
18916 rm -f conftest.$ac_objext conftest$ac_exeext
18917 if { (ac_try="$ac_link"
18918 case "(($ac_try" in
18919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18920 *) ac_try_echo
=$ac_try;;
18922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18923 (eval "$ac_link") 2>conftest.er1
18925 grep -v '^ *+' conftest.er1
>conftest.err
18927 cat conftest.err
>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } && {
18930 test -z "$ac_c_werror_flag" ||
18931 test ! -s conftest.err
18932 } && test -s conftest
$ac_exeext &&
18933 $as_test_x conftest
$ac_exeext; then
18934 ac_cv_imap_tk2006
="yes"
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.
$ac_ext >&5
18939 ac_cv_imap_tk2006
="no"
18943 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18944 conftest
$ac_exeext conftest.
$ac_ext
18949 if test "${IMAP_TK_DIR}" = "system"; then
18950 #We will enter here if user specified "system" or if any of above checks failed
18951 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
18952 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
18953 CPPFLAGS
="${saved_cppflags}"
18954 LIBS
="${saved_libs}"
18956 imap_libs
="-lc-client"
18957 imap_include
="-DUSE_SYSTEM_IMAP" #Try the imap directory first
18958 CPPFLAGS
="${CPPFLAGS} ${imap_include}"
18959 LIBS
="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18967 #include <imap/c-client.h>
18968 void mm_searched (MAILSTREAM *stream,unsigned long number)
18971 void mm_exists (MAILSTREAM *stream,unsigned long number)
18974 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18977 void mm_flags (MAILSTREAM *stream,unsigned long number)
18980 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18983 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18986 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18989 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18992 void mm_log (char *string,long errflg)
18995 void mm_dlog (char *string)
18998 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19001 void mm_critical (MAILSTREAM *stream)
19004 void mm_nocritical (MAILSTREAM *stream)
19007 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19010 void mm_fatal (char *string)
19017 MAILSTREAM *foo = mail_open(NULL, "", 0);
19024 rm -f conftest.$ac_objext conftest$ac_exeext
19025 if { (ac_try="$ac_link"
19026 case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_link") 2>conftest.er1
19033 grep -v '^ *+' conftest.er1 >conftest.err
19035 cat conftest.err >&5
19036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19037 (exit $ac_status); } && {
19038 test -z "$ac_c_werror_flag" ||
19039 test ! -s conftest.err
19040 } && test -s conftest$ac_exeext &&
19041 $as_test_x conftest$ac_exeext; then
19042 ac_cv_imap_tk="yes"
19044 echo "$as_me: failed program was
:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19052 conftest$ac_exeext conftest.$ac_ext
19053 if test "${ac_cv_imap_tk}" = "yes"; then
19054 cat >conftest.$ac_ext <<_ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19061 #include <imap/c-client.h>
19062 void mm_searched (MAILSTREAM *stream,unsigned long number)
19065 void mm_exists (MAILSTREAM *stream,unsigned long number)
19068 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19071 void mm_flags (MAILSTREAM *stream,unsigned long number)
19074 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19077 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19080 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19083 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19086 void mm_log (char *string,long errflg)
19089 void mm_dlog (char *string)
19092 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19095 void mm_critical (MAILSTREAM *stream)
19098 void mm_nocritical (MAILSTREAM *stream)
19101 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19104 void mm_fatal (char *string)
19111 long check = mail_expunge_full(NULL, "", 0);
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (ac_try="$ac_link"
19120 case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19131 (exit $ac_status); } && {
19132 test -z "$ac_c_werror_flag" ||
19133 test ! -s conftest.err
19134 } && test -s conftest$ac_exeext &&
19135 $as_test_x conftest$ac_exeext; then
19136 ac_cv_imap_tk2006="yes"
19138 echo "$as_me: failed program was
:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19141 ac_cv_imap_tk2006="no
"
19145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19146 conftest$ac_exeext conftest.$ac_ext
19147 else #looking in imap directory didn't work, try c-client
19149 imap_libs="-lc-client"
19150 imap_include="-DUSE_SYSTEM_CCLIENT"
19151 CPPFLAGS="${saved_cppflags}"
19152 LIBS="${saved_libs}"
19153 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19154 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19162 #include <c-client/c-client.h>
19163 void mm_searched (MAILSTREAM *stream,unsigned long number)
19166 void mm_exists (MAILSTREAM *stream,unsigned long number)
19169 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19172 void mm_flags (MAILSTREAM *stream,unsigned long number)
19175 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19178 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19181 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19184 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19187 void mm_log (char *string,long errflg)
19190 void mm_dlog (char *string)
19193 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19196 void mm_critical (MAILSTREAM *stream)
19199 void mm_nocritical (MAILSTREAM *stream)
19202 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19205 void mm_fatal (char *string)
19212 MAILSTREAM *foo = mail_open(NULL, "", 0);
19219 rm -f conftest.$ac_objext conftest$ac_exeext
19220 if { (ac_try="$ac_link"
19221 case "(($ac_try" in
19222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19223 *) ac_try_echo
=$ac_try;;
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_link") 2>conftest.er1
19228 grep -v '^ *+' conftest.er1
>conftest.err
19230 cat conftest.err
>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } && {
19233 test -z "$ac_c_werror_flag" ||
19234 test ! -s conftest.err
19235 } && test -s conftest
$ac_exeext &&
19236 $as_test_x conftest
$ac_exeext; then
19237 ac_cv_imap_tk
="yes"
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.
$ac_ext >&5
19246 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19247 conftest
$ac_exeext conftest.
$ac_ext
19248 if test "${ac_cv_imap_tk}" = "yes"; then
19249 cat >conftest.
$ac_ext <<_ACEOF
19252 cat confdefs.h
>>conftest.
$ac_ext
19253 cat >>conftest.
$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19256 #include <c-client/c-client.h>
19257 void mm_searched (MAILSTREAM *stream,unsigned long number)
19260 void mm_exists (MAILSTREAM *stream,unsigned long number)
19263 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19266 void mm_flags (MAILSTREAM *stream,unsigned long number)
19269 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19272 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19275 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19278 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19281 void mm_log (char *string,long errflg)
19284 void mm_dlog (char *string)
19287 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19290 void mm_critical (MAILSTREAM *stream)
19293 void mm_nocritical (MAILSTREAM *stream)
19296 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19299 void mm_fatal (char *string)
19306 long check = mail_expunge_full(NULL, "", 0);
19313 rm -f conftest.
$ac_objext conftest
$ac_exeext
19314 if { (ac_try
="$ac_link"
19315 case "(($ac_try" in
19316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_link") 2>conftest.er1
19322 grep -v '^ *+' conftest.er1 >conftest.err
19324 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } && {
19327 test -z "$ac_c_werror_flag" ||
19328 test ! -s conftest.err
19329 } && test -s conftest$ac_exeext &&
19330 $as_test_x conftest$ac_exeext; then
19331 ac_cv_imap_tk2006="yes"
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_cv_imap_tk2006="no"
19340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19341 conftest$ac_exeext conftest.$ac_ext
19345 if test "${ac_cv_imap_tk}" = "yes"; then
19346 { echo "$as_me:$LINENO: result: yes" >&5
19347 echo "${ECHO_T}yes" >&6; }
19348 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
19349 IMAP_TK_INCLUDE="${imap_include}"
19352 cat >>confdefs.h <<\_ACEOF
19353 #define HAVE_IMAP_TK 1
19356 if test "${ac_cv_imap_tk2006}" = "yes"; then
19358 cat >>confdefs.h <<\_ACEOF
19359 #define HAVE_IMAP_TK2006 1
19363 elif test -n "${IMAP_TK_MANDATORY}"; then
19364 { echo "$as_me:$LINENO: result: no" >&5
19365 echo "${ECHO_T}no" >&6; }
19366 { echo "$as_me:$LINENO: ***" >&5
19367 echo "$as_me: ***" >&6;}
19368 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19369 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19370 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19371 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19372 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19373 echo "$as_me: *** including --without-imap." >&6;}
19376 { echo "$as_me:$LINENO: result: no" >&5
19377 echo "${ECHO_T}no" >&6; }
19379 CPPFLAGS="${saved_cppflags}"
19380 LIBS="${saved_libs}"
19383 # Needed by unixodbc
19385 if test "${USE_LTDL}" != "no"; then
19387 if test "x${LTDL_DIR}" != "x"; then
19388 if test -d ${LTDL_DIR}/lib; then
19389 pbxlibdir="-L${LTDL_DIR}/lib"
19391 pbxlibdir="-L${LTDL_DIR}"
19394 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19395 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19396 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 ac_check_lib_save_LIBS=$LIBS
19400 LIBS="-lltdl ${pbxlibdir} $LIBS"
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19418 return lt_dlinit ();
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19427 *) ac_try_echo
=$ac_try;;
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_link") 2>conftest.er1
19432 grep -v '^ *+' conftest.er1
>conftest.err
19434 cat conftest.err
>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && {
19437 test -z "$ac_c_werror_flag" ||
19438 test ! -s conftest.err
19439 } && test -s conftest
$ac_exeext &&
19440 $as_test_x conftest
$ac_exeext; then
19441 ac_cv_lib_ltdl_lt_dlinit
=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.
$ac_ext >&5
19446 ac_cv_lib_ltdl_lt_dlinit
=no
19449 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19450 conftest
$ac_exeext conftest.
$ac_ext
19451 LIBS
=$ac_check_lib_save_LIBS
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
19454 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
19455 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
19462 if test "${AST_LTDL_FOUND}" = "yes"; then
19464 LTDL_HEADER_FOUND
="1"
19465 if test "x${LTDL_DIR}" != "x"; then
19466 LTDL_LIB
="${pbxlibdir} ${LTDL_LIB}"
19467 LTDL_INCLUDE
="-I${LTDL_DIR}/include"
19469 LTDL_INCLUDE
="${LTDL_INCLUDE} "
19470 saved_cppflags
="${CPPFLAGS}"
19471 CPPFLAGS
="${CPPFLAGS} ${LTDL_INCLUDE}"
19472 if test "xltdl.h" != "x" ; then
19473 if test "${ac_cv_header_ltdl_h+set}" = set; then
19474 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19475 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19476 if test "${ac_cv_header_ltdl_h+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
19480 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19482 # Is the header compilable?
19483 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
19484 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
19485 cat >conftest.
$ac_ext <<_ACEOF
19488 cat confdefs.h
>>conftest.
$ac_ext
19489 cat >>conftest.
$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19491 $ac_includes_default
19494 rm -f conftest.
$ac_objext
19495 if { (ac_try
="$ac_compile"
19496 case "(($ac_try" in
19497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_compile") 2>conftest.er1
19503 grep -v '^ *+' conftest.er1 >conftest.err
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } && {
19508 test -z "$ac_c_werror_flag" ||
19509 test ! -s conftest.err
19510 } && test -s conftest.$ac_objext; then
19511 ac_header_compiler=yes
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 ac_header_compiler=no
19519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19521 echo "${ECHO_T}$ac_header_compiler" >&6; }
19523 # Is the header present?
19524 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
19525 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
19526 cat >conftest.$ac_ext <<_ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19534 if { (ac_try="$ac_cpp conftest.$ac_ext"
19535 case "(($ac_try" in
19536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19537 *) ac_try_echo
=$ac_try;;
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19542 grep -v '^ *+' conftest.er1
>conftest.err
19544 cat conftest.err
>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } >/dev
/null
&& {
19547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19548 test ! -s conftest.err
19550 ac_header_preproc
=yes
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.
$ac_ext >&5
19555 ac_header_preproc
=no
19558 rm -f conftest.err conftest.
$ac_ext
19559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19560 echo "${ECHO_T}$ac_header_preproc" >&6; }
19562 # So? What about this header?
19563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19565 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19566 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19567 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
19568 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
19569 ac_header_preproc
=yes
19572 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
19573 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
19574 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
19575 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
19577 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19579 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
19581 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
19582 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
19583 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
19585 ## ------------------------------- ##
19586 ## Report this to www.asterisk.org ##
19587 ## ------------------------------- ##
19589 ) |
sed "s/^/$as_me: WARNING: /" >&2
19592 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19593 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19594 if test "${ac_cv_header_ltdl_h+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 ac_cv_header_ltdl_h
=$ac_header_preproc
19599 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
19600 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19603 if test $ac_cv_header_ltdl_h = yes; then
19604 LTDL_HEADER_FOUND
=1
19606 LTDL_HEADER_FOUND
=0
19611 CPPFLAGS
="${saved_cppflags}"
19612 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
19613 if test -n "${LTDL_MANDATORY}" ;
19615 { echo "$as_me:$LINENO: ***" >&5
19616 echo "$as_me: ***" >&6;}
19617 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
19618 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
19619 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
19620 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
19621 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
19622 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
19631 cat >>confdefs.h
<<_ACEOF
19632 #define HAVE_LTDL 1
19636 elif test -n "${LTDL_MANDATORY}";
19638 { echo "$as_me:$LINENO: ***" >&5
19639 echo "$as_me: ***" >&6;}
19640 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
19641 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
19642 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19643 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19644 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
19645 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
19652 ac_cpp
='$CXXCPP $CPPFLAGS'
19653 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19654 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19655 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19658 if test "${USE_KDE}" != "no"; then
19659 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
19660 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
19661 saved_libs
="${LIBS}"
19662 saved_cppflags
="${CPPFLAGS}"
19663 CPPFLAGS
="${CPPFLAGS} -I${KDE_DIR}/include"
19664 if test -d ${KDE_DIR}/lib
; then
19665 kdelibdir
="${KDE_DIR}/lib"
19667 kdelibdir
="${KDE_DIR}"
19669 LIBS
="${LIBS} -L${kdelibdir} -lkdecore"
19672 cat >conftest.
$ac_ext <<_ACEOF
19675 cat confdefs.h
>>conftest.
$ac_ext
19676 cat >>conftest.
$ac_ext <<_ACEOF
19677 /* end confdefs.h. */
19678 #include "kcrash.h"
19682 KCrash::defaultCrashHandler(1);
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_cxx_werror_flag" ||
19703 test ! -s conftest.err
19704 } && test -s conftest$ac_exeext &&
19705 $as_test_x conftest$ac_exeext; then
19706 ac_cv_lib_kde_crash="yes"
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ac_cv_lib_kde_crash="no"
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715 conftest$ac_exeext conftest.$ac_ext
19717 LIBS="${saved_libs}"
19718 CPPFLAGS="${saved_cppflags}"
19720 if test "${ac_cv_lib_kde_crash}" = "yes"; then
19721 { echo "$as_me:$LINENO: result: yes" >&5
19722 echo "${ECHO_T}yes" >&6; }
19723 KDE_LIB="-lkdecore -lkdeui"
19724 if test "${KDE_DIR}" != ""; then
19725 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
19726 KDE_INCLUDE="-I${KDE_DIR}/include"
19730 cat >>confdefs.h <<\_ACEOF
19731 #define HAVE_LIBKDE 1
19734 elif test -n "${KDE_MANDATORY}"; then
19735 { echo "$as_me:$LINENO: result: no" >&5
19736 echo "${ECHO_T}no" >&6; }
19737 { echo "$as_me:$LINENO: ***" >&5
19738 echo "$as_me: ***" >&6;}
19739 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
19740 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
19741 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19742 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19743 { echo "$as_me:$LINENO: *** including --without-kde." >&5
19744 echo "$as_me: *** including --without-kde." >&6;}
19747 { echo "$as_me:$LINENO: result: no" >&5
19748 echo "${ECHO_T}no" >&6; }
19751 if test "${PBX_KDE}" = 1; then
19752 if test -n "$ac_tool_prefix"; then
19753 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
19754 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
19755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19757 if test "${ac_cv_path_KDEINIT+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
19765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19766 for as_dir in $PATH
19769 test -z "$as_dir" && as_dir=.
19770 for ac_exec_ext in '' $ac_executable_extensions; do
19771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19772 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19783 KDEINIT=$ac_cv_path_KDEINIT
19784 if test -n "$KDEINIT"; then
19785 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
19786 echo "${ECHO_T}$KDEINIT" >&6; }
19788 { echo "$as_me:$LINENO: result: no" >&5
19789 echo "${ECHO_T}no" >&6; }
19794 if test -z "$ac_cv_path_KDEINIT"; then
19795 ac_pt_KDEINIT=$KDEINIT
19796 # Extract the first word of "kdeinit", so it can be a program name with args.
19797 set dummy kdeinit; ac_word=$2
19798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19800 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 case $ac_pt_KDEINIT in
19805 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
19808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19809 for as_dir in $PATH
19812 test -z "$as_dir" && as_dir=.
19813 for ac_exec_ext in '' $ac_executable_extensions; do
19814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19815 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19826 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
19827 if test -n "$ac_pt_KDEINIT"; then
19828 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
19829 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
19831 { echo "$as_me:$LINENO: result: no" >&5
19832 echo "${ECHO_T}no" >&6; }
19835 if test "x$ac_pt_KDEINIT" = x; then
19838 case $cross_compiling:$ac_tool_warned in
19840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19841 whose name does not start with the host triplet. If you think this
19842 configuration is useful to you, please write to autoconf@gnu.org." >&5
19843 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19844 whose name does not start with the host triplet. If you think this
19845 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19846 ac_tool_warned=yes ;;
19848 KDEINIT=$ac_pt_KDEINIT
19851 KDEINIT="$ac_cv_path_KDEINIT"
19854 if test ! x"${KDEINIT}" = xNo; then
19855 KDEDIR=$(${DIRNAME} ${KDEINIT})
19856 KDEDIR=$(${DIRNAME} ${KDEDIR})
19862 ac_cpp='$CPP $CPPFLAGS'
19863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19869 if test "${USE_MISDN}" != "no"; then
19871 if test "x${MISDN_DIR}" != "x"; then
19872 if test -d ${MISDN_DIR}/lib; then
19873 pbxlibdir="-L${MISDN_DIR}/lib"
19875 pbxlibdir="-L${MISDN_DIR}"
19878 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
19879 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
19880 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 ac_check_lib_save_LIBS=$LIBS
19884 LIBS="-lmISDN ${pbxlibdir} $LIBS"
19885 cat >conftest.$ac_ext <<_ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19892 /* Override any GCC internal prototype to avoid an error.
19893 Use char because int might match the return type of a GCC
19894 builtin and then its argument prototype would still apply. */
19898 char mISDN_open ();
19902 return mISDN_open ();
19907 rm -f conftest.$ac_objext conftest$ac_exeext
19908 if { (ac_try="$ac_link"
19909 case "(($ac_try" in
19910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19911 *) ac_try_echo
=$ac_try;;
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_link") 2>conftest.er1
19916 grep -v '^ *+' conftest.er1
>conftest.err
19918 cat conftest.err
>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } && {
19921 test -z "$ac_c_werror_flag" ||
19922 test ! -s conftest.err
19923 } && test -s conftest
$ac_exeext &&
19924 $as_test_x conftest
$ac_exeext; then
19925 ac_cv_lib_mISDN_mISDN_open
=yes
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.
$ac_ext >&5
19930 ac_cv_lib_mISDN_mISDN_open
=no
19933 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19934 conftest
$ac_exeext conftest.
$ac_ext
19935 LIBS
=$ac_check_lib_save_LIBS
19937 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
19938 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
19939 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
19940 AST_MISDN_FOUND
=yes
19946 if test "${AST_MISDN_FOUND}" = "yes"; then
19947 MISDN_LIB
="-lmISDN "
19948 MISDN_HEADER_FOUND
="1"
19949 if test "x${MISDN_DIR}" != "x"; then
19950 MISDN_LIB
="${pbxlibdir} ${MISDN_LIB}"
19951 MISDN_INCLUDE
="-I${MISDN_DIR}/include"
19953 MISDN_INCLUDE
="${MISDN_INCLUDE} "
19954 saved_cppflags
="${CPPFLAGS}"
19955 CPPFLAGS
="${CPPFLAGS} ${MISDN_INCLUDE}"
19956 if test "xmISDNuser/mISDNlib.h" != "x" ; then
19957 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19958 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
19959 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19960 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19964 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19966 # Is the header compilable?
19967 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
19968 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
19969 cat >conftest.
$ac_ext <<_ACEOF
19972 cat confdefs.h
>>conftest.
$ac_ext
19973 cat >>conftest.
$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19976 #include <mISDNuser/mISDNlib.h>
19978 rm -f conftest.
$ac_objext
19979 if { (ac_try
="$ac_compile"
19980 case "(($ac_try" in
19981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_compile") 2>conftest.er1
19987 grep -v '^ *+' conftest.er1 >conftest.err
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest.$ac_objext; then
19995 ac_header_compiler=yes
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_header_compiler=no
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20005 echo "${ECHO_T}$ac_header_compiler" >&6; }
20007 # Is the header present?
20008 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20009 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 #include <mISDNuser/mISDNlib.h>
20018 if { (ac_try="$ac_cpp conftest.$ac_ext"
20019 case "(($ac_try" in
20020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20021 *) ac_try_echo
=$ac_try;;
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20026 grep -v '^ *+' conftest.er1
>conftest.err
20028 cat conftest.err
>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } >/dev
/null
&& {
20031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20034 ac_header_preproc
=yes
20036 echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.
$ac_ext >&5
20039 ac_header_preproc
=no
20042 rm -f conftest.err conftest.
$ac_ext
20043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20044 echo "${ECHO_T}$ac_header_preproc" >&6; }
20046 # So? What about this header?
20047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20049 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20050 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20051 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20052 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20053 ac_header_preproc
=yes
20056 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20057 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20058 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20059 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20060 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20061 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20062 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20063 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20064 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20065 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20067 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20069 ## ------------------------------- ##
20070 ## Report this to www.asterisk.org ##
20071 ## ------------------------------- ##
20073 ) |
sed "s/^/$as_me: WARNING: /" >&2
20076 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20077 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20078 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 ac_cv_header_mISDNuser_mISDNlib_h
=$ac_header_preproc
20083 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20084 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20087 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20088 MISDN_HEADER_FOUND
=1
20090 MISDN_HEADER_FOUND
=0
20095 CPPFLAGS
="${saved_cppflags}"
20096 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20097 if test -n "${MISDN_MANDATORY}" ;
20099 { echo "$as_me:$LINENO: ***" >&5
20100 echo "$as_me: ***" >&6;}
20101 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20102 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20103 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20104 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20105 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20106 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20115 cat >>confdefs.h
<<_ACEOF
20116 #define HAVE_MISDN 1
20120 elif test -n "${MISDN_MANDATORY}";
20122 { echo "$as_me:$LINENO: ***" >&5
20123 echo "$as_me: ***" >&6;}
20124 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
20125 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
20126 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20127 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20128 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20129 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20135 if test "${PBX_MISDN}" = 1; then
20137 if test "${USE_ISDNNET}" != "no"; then
20139 if test "x${ISDNNET_DIR}" != "x"; then
20140 if test -d ${ISDNNET_DIR}/lib
; then
20141 pbxlibdir
="-L${ISDNNET_DIR}/lib"
20143 pbxlibdir
="-L${ISDNNET_DIR}"
20146 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
20147 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
20148 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 ac_check_lib_save_LIBS
=$LIBS
20152 LIBS
="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
20153 cat >conftest.
$ac_ext <<_ACEOF
20156 cat confdefs.h
>>conftest.
$ac_ext
20157 cat >>conftest.
$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20160 /* Override any GCC internal prototype to avoid an error.
20161 Use char because int might match the return type of a GCC
20162 builtin and then its argument prototype would still apply. */
20166 char init_manager ();
20170 return init_manager ();
20175 rm -f conftest.
$ac_objext conftest
$ac_exeext
20176 if { (ac_try
="$ac_link"
20177 case "(($ac_try" in
20178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_link") 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && {
20189 test -z "$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20191 } && test -s conftest$ac_exeext &&
20192 $as_test_x conftest$ac_exeext; then
20193 ac_cv_lib_isdnnet_init_manager=yes
20195 echo "$as_me: failed program was:" >&5
20196 sed 's/^/| /' conftest.$ac_ext >&5
20198 ac_cv_lib_isdnnet_init_manager=no
20201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20202 conftest$ac_exeext conftest.$ac_ext
20203 LIBS=$ac_check_lib_save_LIBS
20205 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20206 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20207 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20208 AST_ISDNNET_FOUND=yes
20210 AST_ISDNNET_FOUND=no
20214 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20215 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
20216 ISDNNET_HEADER_FOUND="1"
20217 if test "x${ISDNNET_DIR}" != "x"; then
20218 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
20219 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
20221 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
20222 saved_cppflags="${CPPFLAGS}"
20223 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
20224 if test "xmISDNuser/isdn_net.h" != "x" ; then
20225 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20226 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
20227 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20228 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
20232 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
20234 # Is the header compilable?
20235 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
20236 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243 $ac_includes_default
20244 #include <mISDNuser/isdn_net.h>
20246 rm -f conftest.$ac_objext
20247 if { (ac_try="$ac_compile"
20248 case "(($ac_try" in
20249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20250 *) ac_try_echo
=$ac_try;;
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253 (eval "$ac_compile") 2>conftest.er1
20255 grep -v '^ *+' conftest.er1
>conftest.err
20257 cat conftest.err
>&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } && {
20260 test -z "$ac_c_werror_flag" ||
20261 test ! -s conftest.err
20262 } && test -s conftest.
$ac_objext; then
20263 ac_header_compiler
=yes
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.
$ac_ext >&5
20268 ac_header_compiler
=no
20271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20273 echo "${ECHO_T}$ac_header_compiler" >&6; }
20275 # Is the header present?
20276 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
20277 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20278 cat >conftest.
$ac_ext <<_ACEOF
20281 cat confdefs.h
>>conftest.
$ac_ext
20282 cat >>conftest.
$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 #include <mISDNuser/isdn_net.h>
20286 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20287 case "(($ac_try" in
20288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20289 *) ac_try_echo=$ac_try;;
20291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20294 grep -v '^ *+' conftest.er1 >conftest.err
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } >/dev/null && {
20299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20300 test ! -s conftest.err
20302 ac_header_preproc=yes
20304 echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20307 ac_header_preproc=no
20310 rm -f conftest.err conftest.$ac_ext
20311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20312 echo "${ECHO_T}$ac_header_preproc" >&6; }
20314 # So? What about this header?
20315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20317 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
20318 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20319 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
20320 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
20321 ac_header_preproc=yes
20324 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
20325 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
20327 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
20328 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
20329 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
20330 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
20331 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
20332 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
20333 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
20334 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
20335 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
20337 ## ------------------------------- ##
20338 ## Report this to www.asterisk.org ##
20339 ## ------------------------------- ##
20341 ) | sed "s/^/$as_me: WARNING: /" >&2
20344 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
20345 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20346 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
20351 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
20352 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
20355 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
20356 ISDNNET_HEADER_FOUND=1
20358 ISDNNET_HEADER_FOUND=0
20363 CPPFLAGS="${saved_cppflags}"
20364 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
20365 if test -n "${ISDNNET_MANDATORY}" ;
20367 { echo "$as_me:$LINENO: ***" >&5
20368 echo "$as_me: ***" >&6;}
20369 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
20370 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
20371 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
20372 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
20373 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
20374 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
20383 cat >>confdefs.h <<_ACEOF
20384 #define HAVE_ISDNNET 1
20388 elif test -n "${ISDNNET_MANDATORY}";
20390 { echo "$as_me:$LINENO: ***" >&5
20391 echo "$as_me: ***" >&6;}
20392 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
20393 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
20394 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20395 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20396 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
20397 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
20403 if test "${USE_SUPPSERV}" != "no"; then
20405 if test "x${SUPPSERV_DIR}" != "x"; then
20406 if test -d ${SUPPSERV_DIR}/lib; then
20407 pbxlibdir="-L${SUPPSERV_DIR}/lib"
20409 pbxlibdir="-L${SUPPSERV_DIR}"
20412 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
20413 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
20414 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 ac_check_lib_save_LIBS=$LIBS
20418 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
20419 cat >conftest.$ac_ext <<_ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20426 /* Override any GCC internal prototype to avoid an error.
20427 Use char because int might match the return type of a GCC
20428 builtin and then its argument prototype would still apply. */
20436 return encodeFac ();
20441 rm -f conftest.$ac_objext conftest$ac_exeext
20442 if { (ac_try="$ac_link"
20443 case "(($ac_try" in
20444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20445 *) ac_try_echo
=$ac_try;;
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_link") 2>conftest.er1
20450 grep -v '^ *+' conftest.er1
>conftest.err
20452 cat conftest.err
>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } && {
20455 test -z "$ac_c_werror_flag" ||
20456 test ! -s conftest.err
20457 } && test -s conftest
$ac_exeext &&
20458 $as_test_x conftest
$ac_exeext; then
20459 ac_cv_lib_suppserv_encodeFac
=yes
20461 echo "$as_me: failed program was:" >&5
20462 sed 's/^/| /' conftest.
$ac_ext >&5
20464 ac_cv_lib_suppserv_encodeFac
=no
20467 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20468 conftest
$ac_exeext conftest.
$ac_ext
20469 LIBS
=$ac_check_lib_save_LIBS
20471 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
20472 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
20473 if test $ac_cv_lib_suppserv_encodeFac = yes; then
20474 AST_SUPPSERV_FOUND
=yes
20476 AST_SUPPSERV_FOUND
=no
20480 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
20481 SUPPSERV_LIB
="-lsuppserv "
20482 SUPPSERV_HEADER_FOUND
="1"
20483 if test "x${SUPPSERV_DIR}" != "x"; then
20484 SUPPSERV_LIB
="${pbxlibdir} ${SUPPSERV_LIB}"
20485 SUPPSERV_INCLUDE
="-I${SUPPSERV_DIR}/include"
20487 SUPPSERV_INCLUDE
="${SUPPSERV_INCLUDE} "
20488 saved_cppflags
="${CPPFLAGS}"
20489 CPPFLAGS
="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
20490 if test "xmISDNuser/suppserv.h" != "x" ; then
20491 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20492 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20493 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20494 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20498 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20500 # Is the header compilable?
20501 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
20502 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
20503 cat >conftest.
$ac_ext <<_ACEOF
20506 cat confdefs.h
>>conftest.
$ac_ext
20507 cat >>conftest.
$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 $ac_includes_default
20510 #include <mISDNuser/suppserv.h>
20512 rm -f conftest.
$ac_objext
20513 if { (ac_try
="$ac_compile"
20514 case "(($ac_try" in
20515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20516 *) ac_try_echo=$ac_try;;
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519 (eval "$ac_compile") 2>conftest.er1
20521 grep -v '^ *+' conftest.er1 >conftest.err
20523 cat conftest.err >&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); } && {
20526 test -z "$ac_c_werror_flag" ||
20527 test ! -s conftest.err
20528 } && test -s conftest.$ac_objext; then
20529 ac_header_compiler=yes
20531 echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20534 ac_header_compiler=no
20537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20539 echo "${ECHO_T}$ac_header_compiler" >&6; }
20541 # Is the header present?
20542 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
20543 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20550 #include <mISDNuser/suppserv.h>
20552 if { (ac_try="$ac_cpp conftest.$ac_ext"
20553 case "(($ac_try" in
20554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20555 *) ac_try_echo
=$ac_try;;
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20560 grep -v '^ *+' conftest.er1
>conftest.err
20562 cat conftest.err
>&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } >/dev
/null
&& {
20565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20566 test ! -s conftest.err
20568 ac_header_preproc
=yes
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.
$ac_ext >&5
20573 ac_header_preproc
=no
20576 rm -f conftest.err conftest.
$ac_ext
20577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20578 echo "${ECHO_T}$ac_header_preproc" >&6; }
20580 # So? What about this header?
20581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20583 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20584 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20585 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
20586 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
20587 ac_header_preproc
=yes
20590 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
20591 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
20593 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
20594 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
20595 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
20596 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
20597 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
20599 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
20600 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
20601 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
20603 ## ------------------------------- ##
20604 ## Report this to www.asterisk.org ##
20605 ## ------------------------------- ##
20607 ) |
sed "s/^/$as_me: WARNING: /" >&2
20610 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20611 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20612 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20615 ac_cv_header_mISDNuser_suppserv_h
=$ac_header_preproc
20617 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20618 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20621 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
20622 SUPPSERV_HEADER_FOUND
=1
20624 SUPPSERV_HEADER_FOUND
=0
20629 CPPFLAGS
="${saved_cppflags}"
20630 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
20631 if test -n "${SUPPSERV_MANDATORY}" ;
20633 { echo "$as_me:$LINENO: ***" >&5
20634 echo "$as_me: ***" >&6;}
20635 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
20636 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
20637 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
20638 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
20639 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20640 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20644 SUPPSERV_INCLUDE
=""
20649 cat >>confdefs.h
<<_ACEOF
20650 #define HAVE_SUPPSERV 1
20654 elif test -n "${SUPPSERV_MANDATORY}";
20656 { echo "$as_me:$LINENO: ***" >&5
20657 echo "$as_me: ***" >&6;}
20658 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
20659 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
20660 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20661 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20662 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20663 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20668 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20669 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20670 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20671 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20674 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20675 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20677 # Is the header compilable?
20678 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
20679 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
20680 cat >conftest.
$ac_ext <<_ACEOF
20683 cat confdefs.h
>>conftest.
$ac_ext
20684 cat >>conftest.
$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20686 $ac_includes_default
20687 #include <linux/mISDNdsp.h>
20689 rm -f conftest.
$ac_objext
20690 if { (ac_try
="$ac_compile"
20691 case "(($ac_try" in
20692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_compile") 2>conftest.er1
20698 grep -v '^ *+' conftest.er1 >conftest.err
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } && {
20703 test -z "$ac_c_werror_flag" ||
20704 test ! -s conftest.err
20705 } && test -s conftest.$ac_objext; then
20706 ac_header_compiler=yes
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20711 ac_header_compiler=no
20714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20716 echo "${ECHO_T}$ac_header_compiler" >&6; }
20718 # Is the header present?
20719 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
20720 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 #include <linux/mISDNdsp.h>
20729 if { (ac_try="$ac_cpp conftest.$ac_ext"
20730 case "(($ac_try" in
20731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20732 *) ac_try_echo
=$ac_try;;
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20737 grep -v '^ *+' conftest.er1
>conftest.err
20739 cat conftest.err
>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } >/dev
/null
&& {
20742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20745 ac_header_preproc
=yes
20747 echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.
$ac_ext >&5
20750 ac_header_preproc
=no
20753 rm -f conftest.err conftest.
$ac_ext
20754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20755 echo "${ECHO_T}$ac_header_preproc" >&6; }
20757 # So? What about this header?
20758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20760 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20761 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20762 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
20763 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
20764 ac_header_preproc
=yes
20767 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
20768 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
20769 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
20770 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
20772 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
20773 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
20774 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20775 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
20776 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
20778 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
20780 ## ------------------------------- ##
20781 ## Report this to www.asterisk.org ##
20782 ## ------------------------------- ##
20784 ) |
sed "s/^/$as_me: WARNING: /" >&2
20787 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20788 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20789 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20792 ac_cv_header_linux_mISDNdsp_h
=$ac_header_preproc
20794 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20795 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20798 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
20800 cat >>confdefs.h
<<_ACEOF
20801 #define MISDN_1_2 1
20810 if test "${USE_NBS}" != "no"; then
20812 if test "x${NBS_DIR}" != "x"; then
20813 if test -d ${NBS_DIR}/lib
; then
20814 pbxlibdir
="-L${NBS_DIR}/lib"
20816 pbxlibdir
="-L${NBS_DIR}"
20819 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
20820 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
20821 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20824 ac_check_lib_save_LIBS
=$LIBS
20825 LIBS
="-lnbs ${pbxlibdir} $LIBS"
20826 cat >conftest.
$ac_ext <<_ACEOF
20829 cat confdefs.h
>>conftest.
$ac_ext
20830 cat >>conftest.
$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20833 /* Override any GCC internal prototype to avoid an error.
20834 Use char because int might match the return type of a GCC
20835 builtin and then its argument prototype would still apply. */
20839 char nbs_connect ();
20843 return nbs_connect ();
20848 rm -f conftest.
$ac_objext conftest
$ac_exeext
20849 if { (ac_try
="$ac_link"
20850 case "(($ac_try" in
20851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_link") 2>conftest.er1
20857 grep -v '^ *+' conftest.er1 >conftest.err
20859 cat conftest.err >&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } && {
20862 test -z "$ac_c_werror_flag" ||
20863 test ! -s conftest.err
20864 } && test -s conftest$ac_exeext &&
20865 $as_test_x conftest$ac_exeext; then
20866 ac_cv_lib_nbs_nbs_connect=yes
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 ac_cv_lib_nbs_nbs_connect=no
20874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20875 conftest$ac_exeext conftest.$ac_ext
20876 LIBS=$ac_check_lib_save_LIBS
20878 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
20879 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
20880 if test $ac_cv_lib_nbs_nbs_connect = yes; then
20887 if test "${AST_NBS_FOUND}" = "yes"; then
20889 NBS_HEADER_FOUND="1"
20890 if test "x${NBS_DIR}" != "x"; then
20891 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
20892 NBS_INCLUDE="-I${NBS_DIR}/include"
20894 NBS_INCLUDE="${NBS_INCLUDE} "
20895 saved_cppflags="${CPPFLAGS}"
20896 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
20897 if test "xnbs.h" != "x" ; then
20898 if test "${ac_cv_header_nbs_h+set}" = set; then
20899 { echo "$as_me:$LINENO: checking for nbs.h" >&5
20900 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
20901 if test "${ac_cv_header_nbs_h+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
20905 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
20907 # Is the header compilable?
20908 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
20909 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
20910 cat >conftest.$ac_ext <<_ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20916 $ac_includes_default
20919 rm -f conftest.$ac_objext
20920 if { (ac_try="$ac_compile"
20921 case "(($ac_try" in
20922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20923 *) ac_try_echo
=$ac_try;;
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_compile") 2>conftest.er1
20928 grep -v '^ *+' conftest.er1
>conftest.err
20930 cat conftest.err
>&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } && {
20933 test -z "$ac_c_werror_flag" ||
20934 test ! -s conftest.err
20935 } && test -s conftest.
$ac_objext; then
20936 ac_header_compiler
=yes
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.
$ac_ext >&5
20941 ac_header_compiler
=no
20944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20946 echo "${ECHO_T}$ac_header_compiler" >&6; }
20948 # Is the header present?
20949 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
20950 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
20951 cat >conftest.
$ac_ext <<_ACEOF
20954 cat confdefs.h
>>conftest.
$ac_ext
20955 cat >>conftest.
$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20959 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20960 case "(($ac_try" in
20961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20967 grep -v '^ *+' conftest.er1 >conftest.err
20969 cat conftest.err >&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); } >/dev/null && {
20972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20973 test ! -s conftest.err
20975 ac_header_preproc=yes
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 ac_header_preproc=no
20983 rm -f conftest.err conftest.$ac_ext
20984 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20985 echo "${ECHO_T}$ac_header_preproc" >&6; }
20987 # So? What about this header?
20988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20990 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20991 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20992 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
20993 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
20994 ac_header_preproc=yes
20997 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
20998 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
20999 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
21000 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
21001 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
21002 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
21003 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21004 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21005 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
21006 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
21007 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
21008 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
21010 ## ------------------------------- ##
21011 ## Report this to www.asterisk.org ##
21012 ## ------------------------------- ##
21014 ) | sed "s/^/$as_me: WARNING: /" >&2
21017 { echo "$as_me:$LINENO: checking for nbs.h" >&5
21018 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
21019 if test "${ac_cv_header_nbs_h+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21022 ac_cv_header_nbs_h=$ac_header_preproc
21024 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
21025 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
21028 if test $ac_cv_header_nbs_h = yes; then
21036 CPPFLAGS="${saved_cppflags}"
21037 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
21038 if test -n "${NBS_MANDATORY}" ;
21040 { echo "$as_me:$LINENO: ***" >&5
21041 echo "$as_me: ***" >&6;}
21042 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
21043 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
21044 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
21045 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
21046 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
21047 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
21056 cat >>confdefs.h <<_ACEOF
21061 elif test -n "${NBS_MANDATORY}";
21063 { echo "$as_me:$LINENO: ***" >&5
21064 echo "$as_me: ***" >&6;}
21065 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
21066 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
21067 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21068 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21069 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
21070 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
21077 if test "${USE_NCURSES}" != "no"; then
21079 if test "x${NCURSES_DIR}" != "x"; then
21080 if test -d ${NCURSES_DIR}/lib; then
21081 pbxlibdir="-L${NCURSES_DIR}/lib"
21083 pbxlibdir="-L${NCURSES_DIR}"
21086 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
21087 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
21088 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
21089 echo $ECHO_N "(cached) $ECHO_C" >&6
21091 ac_check_lib_save_LIBS=$LIBS
21092 LIBS="-lncurses ${pbxlibdir} $LIBS"
21093 cat >conftest.$ac_ext <<_ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21100 /* Override any GCC internal prototype to avoid an error.
21101 Use char because int might match the return type of a GCC
21102 builtin and then its argument prototype would still apply. */
21115 rm -f conftest.$ac_objext conftest$ac_exeext
21116 if { (ac_try="$ac_link"
21117 case "(($ac_try" in
21118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21119 *) ac_try_echo
=$ac_try;;
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_link") 2>conftest.er1
21124 grep -v '^ *+' conftest.er1
>conftest.err
21126 cat conftest.err
>&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } && {
21129 test -z "$ac_c_werror_flag" ||
21130 test ! -s conftest.err
21131 } && test -s conftest
$ac_exeext &&
21132 $as_test_x conftest
$ac_exeext; then
21133 ac_cv_lib_ncurses_initscr
=yes
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.
$ac_ext >&5
21138 ac_cv_lib_ncurses_initscr
=no
21141 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21142 conftest
$ac_exeext conftest.
$ac_ext
21143 LIBS
=$ac_check_lib_save_LIBS
21145 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
21146 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
21147 if test $ac_cv_lib_ncurses_initscr = yes; then
21148 AST_NCURSES_FOUND
=yes
21150 AST_NCURSES_FOUND
=no
21154 if test "${AST_NCURSES_FOUND}" = "yes"; then
21155 NCURSES_LIB
="-lncurses "
21156 NCURSES_HEADER_FOUND
="1"
21157 if test "x${NCURSES_DIR}" != "x"; then
21158 NCURSES_LIB
="${pbxlibdir} ${NCURSES_LIB}"
21159 NCURSES_INCLUDE
="-I${NCURSES_DIR}/include"
21161 NCURSES_INCLUDE
="${NCURSES_INCLUDE} "
21162 saved_cppflags
="${CPPFLAGS}"
21163 CPPFLAGS
="${CPPFLAGS} ${NCURSES_INCLUDE}"
21164 if test "xcurses.h" != "x" ; then
21165 if test "${ac_cv_header_curses_h+set}" = set; then
21166 { echo "$as_me:$LINENO: checking for curses.h" >&5
21167 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21168 if test "${ac_cv_header_curses_h+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21172 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21174 # Is the header compilable?
21175 { echo "$as_me:$LINENO: checking curses.h usability" >&5
21176 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
21177 cat >conftest.
$ac_ext <<_ACEOF
21180 cat confdefs.h
>>conftest.
$ac_ext
21181 cat >>conftest.
$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 $ac_includes_default
21184 #include <curses.h>
21186 rm -f conftest.
$ac_objext
21187 if { (ac_try
="$ac_compile"
21188 case "(($ac_try" in
21189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21193 (eval "$ac_compile") 2>conftest.er1
21195 grep -v '^ *+' conftest.er1 >conftest.err
21197 cat conftest.err >&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } && {
21200 test -z "$ac_c_werror_flag" ||
21201 test ! -s conftest.err
21202 } && test -s conftest.$ac_objext; then
21203 ac_header_compiler=yes
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 ac_header_compiler=no
21211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21213 echo "${ECHO_T}$ac_header_compiler" >&6; }
21215 # Is the header present?
21216 { echo "$as_me:$LINENO: checking curses.h presence" >&5
21217 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
21218 cat >conftest.$ac_ext <<_ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 #include <curses.h>
21226 if { (ac_try="$ac_cpp conftest.$ac_ext"
21227 case "(($ac_try" in
21228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21229 *) ac_try_echo
=$ac_try;;
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21234 grep -v '^ *+' conftest.er1
>conftest.err
21236 cat conftest.err
>&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } >/dev
/null
&& {
21239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21242 ac_header_preproc
=yes
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.
$ac_ext >&5
21247 ac_header_preproc
=no
21250 rm -f conftest.err conftest.
$ac_ext
21251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21252 echo "${ECHO_T}$ac_header_preproc" >&6; }
21254 # So? What about this header?
21255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21257 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
21258 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21259 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
21260 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
21261 ac_header_preproc
=yes
21264 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
21265 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
21266 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
21267 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
21268 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
21269 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
21270 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
21271 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
21272 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
21273 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
21274 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
21275 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
21277 ## ------------------------------- ##
21278 ## Report this to www.asterisk.org ##
21279 ## ------------------------------- ##
21281 ) |
sed "s/^/$as_me: WARNING: /" >&2
21284 { echo "$as_me:$LINENO: checking for curses.h" >&5
21285 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21286 if test "${ac_cv_header_curses_h+set}" = set; then
21287 echo $ECHO_N "(cached) $ECHO_C" >&6
21289 ac_cv_header_curses_h
=$ac_header_preproc
21291 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21292 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21295 if test $ac_cv_header_curses_h = yes; then
21296 NCURSES_HEADER_FOUND
=1
21298 NCURSES_HEADER_FOUND
=0
21303 CPPFLAGS
="${saved_cppflags}"
21304 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
21305 if test -n "${NCURSES_MANDATORY}" ;
21307 { echo "$as_me:$LINENO: ***" >&5
21308 echo "$as_me: ***" >&6;}
21309 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
21310 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
21311 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
21312 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
21313 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21314 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21323 cat >>confdefs.h
<<_ACEOF
21324 #define HAVE_NCURSES 1
21328 elif test -n "${NCURSES_MANDATORY}";
21330 { echo "$as_me:$LINENO: ***" >&5
21331 echo "$as_me: ***" >&6;}
21332 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
21333 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
21334 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21335 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21336 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21337 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21344 if test "${USE_NETSNMP}" != "no"; then
21345 if test "x${NETSNMP_DIR}" != "x"; then
21346 if test -n "$ac_tool_prefix"; then
21347 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21348 set dummy
${ac_tool_prefix}net-snmp-config
; ac_word
=$2
21349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21351 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 case $NETSNMP_CONFIG in
21356 ac_cv_path_NETSNMP_CONFIG
="$NETSNMP_CONFIG" # Let the user override the test with a path.
21359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21360 for as_dir
in ${NETSNMP_DIR}/bin
21363 test -z "$as_dir" && as_dir
=.
21364 for ac_exec_ext
in '' $ac_executable_extensions; do
21365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21366 ac_cv_path_NETSNMP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
21367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21377 NETSNMP_CONFIG
=$ac_cv_path_NETSNMP_CONFIG
21378 if test -n "$NETSNMP_CONFIG"; then
21379 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21380 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21382 { echo "$as_me:$LINENO: result: no" >&5
21383 echo "${ECHO_T}no" >&6; }
21388 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21389 ac_pt_NETSNMP_CONFIG
=$NETSNMP_CONFIG
21390 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21391 set dummy net-snmp-config
; ac_word
=$2
21392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21394 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21397 case $ac_pt_NETSNMP_CONFIG in
21399 ac_cv_path_ac_pt_NETSNMP_CONFIG
="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21403 for as_dir
in ${NETSNMP_DIR}/bin
21406 test -z "$as_dir" && as_dir
=.
21407 for ac_exec_ext
in '' $ac_executable_extensions; do
21408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21409 ac_cv_path_ac_pt_NETSNMP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
21410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21420 ac_pt_NETSNMP_CONFIG
=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21421 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21422 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21423 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21425 { echo "$as_me:$LINENO: result: no" >&5
21426 echo "${ECHO_T}no" >&6; }
21429 if test "x$ac_pt_NETSNMP_CONFIG" = x
; then
21430 NETSNMP_CONFIG
="No"
21432 case $cross_compiling:$ac_tool_warned in
21434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21435 whose name does not start with the host triplet. If you think this
21436 configuration is useful to you, please write to autoconf@gnu.org." >&5
21437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21438 whose name does not start with the host triplet. If you think this
21439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21440 ac_tool_warned
=yes ;;
21442 NETSNMP_CONFIG
=$ac_pt_NETSNMP_CONFIG
21445 NETSNMP_CONFIG
="$ac_cv_path_NETSNMP_CONFIG"
21448 if test x
"${NETSNMP_CONFIG}" = xNo
; then
21449 { echo "$as_me:$LINENO: ***" >&5
21450 echo "$as_me: ***" >&6;}
21451 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
21452 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
21453 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
21454 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
21455 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21456 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21457 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21458 echo "$as_me: *** including --without-netsnmp" >&6;}
21462 if test -n "$ac_tool_prefix"; then
21463 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21464 set dummy
${ac_tool_prefix}net-snmp-config
; ac_word
=$2
21465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21467 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21468 echo $ECHO_N "(cached) $ECHO_C" >&6
21470 case $NETSNMP_CONFIG in
21472 ac_cv_path_NETSNMP_CONFIG
="$NETSNMP_CONFIG" # Let the user override the test with a path.
21475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21476 for as_dir
in $PATH
21479 test -z "$as_dir" && as_dir
=.
21480 for ac_exec_ext
in '' $ac_executable_extensions; do
21481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21482 ac_cv_path_NETSNMP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
21483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21493 NETSNMP_CONFIG
=$ac_cv_path_NETSNMP_CONFIG
21494 if test -n "$NETSNMP_CONFIG"; then
21495 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21496 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21498 { echo "$as_me:$LINENO: result: no" >&5
21499 echo "${ECHO_T}no" >&6; }
21504 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21505 ac_pt_NETSNMP_CONFIG
=$NETSNMP_CONFIG
21506 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21507 set dummy net-snmp-config
; ac_word
=$2
21508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21510 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 case $ac_pt_NETSNMP_CONFIG in
21515 ac_cv_path_ac_pt_NETSNMP_CONFIG
="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21519 for as_dir
in $PATH
21522 test -z "$as_dir" && as_dir
=.
21523 for ac_exec_ext
in '' $ac_executable_extensions; do
21524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21525 ac_cv_path_ac_pt_NETSNMP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
21526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21536 ac_pt_NETSNMP_CONFIG
=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21537 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21538 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21539 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21541 { echo "$as_me:$LINENO: result: no" >&5
21542 echo "${ECHO_T}no" >&6; }
21545 if test "x$ac_pt_NETSNMP_CONFIG" = x
; then
21546 NETSNMP_CONFIG
="No"
21548 case $cross_compiling:$ac_tool_warned in
21550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21551 whose name does not start with the host triplet. If you think this
21552 configuration is useful to you, please write to autoconf@gnu.org." >&5
21553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21554 whose name does not start with the host triplet. If you think this
21555 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21556 ac_tool_warned
=yes ;;
21558 NETSNMP_CONFIG
=$ac_pt_NETSNMP_CONFIG
21561 NETSNMP_CONFIG
="$ac_cv_path_NETSNMP_CONFIG"
21566 if test x
"${NETSNMP_CONFIG}" != xNo
; then
21567 NETSNMP_libs
=`${NETSNMP_CONFIG} --agent-libs`
21569 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
21570 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
21571 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21574 ac_check_lib_save_LIBS
=$LIBS
21575 LIBS
="-lnetsnmp ${NETSNMP_libs} $LIBS"
21576 cat >conftest.
$ac_ext <<_ACEOF
21579 cat confdefs.h
>>conftest.
$ac_ext
21580 cat >>conftest.
$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21583 /* Override any GCC internal prototype to avoid an error.
21584 Use char because int might match the return type of a GCC
21585 builtin and then its argument prototype would still apply. */
21589 char snmp_register_callback ();
21593 return snmp_register_callback ();
21598 rm -f conftest.
$ac_objext conftest
$ac_exeext
21599 if { (ac_try
="$ac_link"
21600 case "(($ac_try" in
21601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21602 *) ac_try_echo=$ac_try;;
21604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605 (eval "$ac_link") 2>conftest.er1
21607 grep -v '^ *+' conftest.er1 >conftest.err
21609 cat conftest.err >&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); } && {
21612 test -z "$ac_c_werror_flag" ||
21613 test ! -s conftest.err
21614 } && test -s conftest$ac_exeext &&
21615 $as_test_x conftest$ac_exeext; then
21616 ac_cv_lib_netsnmp_snmp_register_callback=yes
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 ac_cv_lib_netsnmp_snmp_register_callback=no
21624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21625 conftest$ac_exeext conftest.$ac_ext
21626 LIBS=$ac_check_lib_save_LIBS
21628 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
21629 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
21630 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
21632 cat >>confdefs.h <<_ACEOF
21633 #define HAVE_NETSNMP 1
21639 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
21640 NETSNMP_LIB="${NETSNMP_libs}"
21642 elif test -n "${NETSNMP_MANDATORY}";
21644 { echo "$as_me:$LINENO: ***" >&5
21645 echo "$as_me: ***" >&6;}
21646 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21647 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21648 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21649 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21650 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21651 echo "$as_me: *** including --without-netsnmp" >&6;}
21654 elif test -n "${NETSNMP_MANDATORY}";
21656 { echo "$as_me:$LINENO: ***" >&5
21657 echo "$as_me: ***" >&6;}
21658 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21659 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21660 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21661 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21662 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21663 echo "$as_me: *** including --without-netsnmp" >&6;}
21668 if test "${USE_NEWT}" != "no"; then
21670 if test "x${NEWT_DIR}" != "x"; then
21671 if test -d ${NEWT_DIR}/lib; then
21672 pbxlibdir="-L${NEWT_DIR}/lib"
21674 pbxlibdir="-L${NEWT_DIR}"
21677 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
21678 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
21679 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 ac_check_lib_save_LIBS=$LIBS
21683 LIBS="-lnewt ${pbxlibdir} $LIBS"
21684 cat >conftest.$ac_ext <<_ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21691 /* Override any GCC internal prototype to avoid an error.
21692 Use char because int might match the return type of a GCC
21693 builtin and then its argument prototype would still apply. */
21701 return newtBell ();
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (ac_try="$ac_link"
21708 case "(($ac_try" in
21709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21710 *) ac_try_echo
=$ac_try;;
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_link") 2>conftest.er1
21715 grep -v '^ *+' conftest.er1
>conftest.err
21717 cat conftest.err
>&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } && {
21720 test -z "$ac_c_werror_flag" ||
21721 test ! -s conftest.err
21722 } && test -s conftest
$ac_exeext &&
21723 $as_test_x conftest
$ac_exeext; then
21724 ac_cv_lib_newt_newtBell
=yes
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.
$ac_ext >&5
21729 ac_cv_lib_newt_newtBell
=no
21732 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21733 conftest
$ac_exeext conftest.
$ac_ext
21734 LIBS
=$ac_check_lib_save_LIBS
21736 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
21737 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
21738 if test $ac_cv_lib_newt_newtBell = yes; then
21745 if test "${AST_NEWT_FOUND}" = "yes"; then
21747 NEWT_HEADER_FOUND
="1"
21748 if test "x${NEWT_DIR}" != "x"; then
21749 NEWT_LIB
="${pbxlibdir} ${NEWT_LIB}"
21750 NEWT_INCLUDE
="-I${NEWT_DIR}/include"
21752 NEWT_INCLUDE
="${NEWT_INCLUDE} "
21753 saved_cppflags
="${CPPFLAGS}"
21754 CPPFLAGS
="${CPPFLAGS} ${NEWT_INCLUDE}"
21755 if test "xnewt.h" != "x" ; then
21756 if test "${ac_cv_header_newt_h+set}" = set; then
21757 { echo "$as_me:$LINENO: checking for newt.h" >&5
21758 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
21759 if test "${ac_cv_header_newt_h+set}" = set; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
21762 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
21763 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
21765 # Is the header compilable?
21766 { echo "$as_me:$LINENO: checking newt.h usability" >&5
21767 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
21768 cat >conftest.
$ac_ext <<_ACEOF
21771 cat confdefs.h
>>conftest.
$ac_ext
21772 cat >>conftest.
$ac_ext <<_ACEOF
21773 /* end confdefs.h. */
21774 $ac_includes_default
21777 rm -f conftest.
$ac_objext
21778 if { (ac_try
="$ac_compile"
21779 case "(($ac_try" in
21780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784 (eval "$ac_compile") 2>conftest.er1
21786 grep -v '^ *+' conftest.er1 >conftest.err
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } && {
21791 test -z "$ac_c_werror_flag" ||
21792 test ! -s conftest.err
21793 } && test -s conftest.$ac_objext; then
21794 ac_header_compiler=yes
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21799 ac_header_compiler=no
21802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21804 echo "${ECHO_T}$ac_header_compiler" >&6; }
21806 # Is the header present?
21807 { echo "$as_me:$LINENO: checking newt.h presence" >&5
21808 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
21809 cat >conftest.$ac_ext <<_ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h. */
21817 if { (ac_try="$ac_cpp conftest.$ac_ext"
21818 case "(($ac_try" in
21819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21820 *) ac_try_echo
=$ac_try;;
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21825 grep -v '^ *+' conftest.er1
>conftest.err
21827 cat conftest.err
>&5
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); } >/dev
/null
&& {
21830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21831 test ! -s conftest.err
21833 ac_header_preproc
=yes
21835 echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.
$ac_ext >&5
21838 ac_header_preproc
=no
21841 rm -f conftest.err conftest.
$ac_ext
21842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21843 echo "${ECHO_T}$ac_header_preproc" >&6; }
21845 # So? What about this header?
21846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21848 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21849 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21850 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
21851 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
21852 ac_header_preproc
=yes
21855 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
21856 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
21857 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
21858 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
21859 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
21860 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
21862 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21863 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
21864 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
21866 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
21868 ## ------------------------------- ##
21869 ## Report this to www.asterisk.org ##
21870 ## ------------------------------- ##
21872 ) |
sed "s/^/$as_me: WARNING: /" >&2
21875 { echo "$as_me:$LINENO: checking for newt.h" >&5
21876 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
21877 if test "${ac_cv_header_newt_h+set}" = set; then
21878 echo $ECHO_N "(cached) $ECHO_C" >&6
21880 ac_cv_header_newt_h
=$ac_header_preproc
21882 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
21883 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
21886 if test $ac_cv_header_newt_h = yes; then
21887 NEWT_HEADER_FOUND
=1
21889 NEWT_HEADER_FOUND
=0
21894 CPPFLAGS
="${saved_cppflags}"
21895 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
21896 if test -n "${NEWT_MANDATORY}" ;
21898 { echo "$as_me:$LINENO: ***" >&5
21899 echo "$as_me: ***" >&6;}
21900 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
21901 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
21902 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
21903 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
21904 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
21905 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
21914 cat >>confdefs.h
<<_ACEOF
21915 #define HAVE_NEWT 1
21919 elif test -n "${NEWT_MANDATORY}";
21921 { echo "$as_me:$LINENO: ***" >&5
21922 echo "$as_me: ***" >&6;}
21923 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
21924 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
21925 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21926 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21927 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
21928 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
21935 if test "${USE_UNIXODBC}" != "no"; then
21937 if test "x${UNIXODBC_DIR}" != "x"; then
21938 if test -d ${UNIXODBC_DIR}/lib
; then
21939 pbxlibdir
="-L${UNIXODBC_DIR}/lib"
21941 pbxlibdir
="-L${UNIXODBC_DIR}"
21944 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
21945 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
21946 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21949 ac_check_lib_save_LIBS
=$LIBS
21950 LIBS
="-lodbc ${pbxlibdir} $LIBS"
21951 cat >conftest.
$ac_ext <<_ACEOF
21954 cat confdefs.h
>>conftest.
$ac_ext
21955 cat >>conftest.
$ac_ext <<_ACEOF
21956 /* end confdefs.h. */
21958 /* Override any GCC internal prototype to avoid an error.
21959 Use char because int might match the return type of a GCC
21960 builtin and then its argument prototype would still apply. */
21964 char SQLConnect ();
21968 return SQLConnect ();
21973 rm -f conftest.
$ac_objext conftest
$ac_exeext
21974 if { (ac_try
="$ac_link"
21975 case "(($ac_try" in
21976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980 (eval "$ac_link") 2>conftest.er1
21982 grep -v '^ *+' conftest.er1 >conftest.err
21984 cat conftest.err >&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } && {
21987 test -z "$ac_c_werror_flag" ||
21988 test ! -s conftest.err
21989 } && test -s conftest$ac_exeext &&
21990 $as_test_x conftest$ac_exeext; then
21991 ac_cv_lib_odbc_SQLConnect=yes
21993 echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21996 ac_cv_lib_odbc_SQLConnect=no
21999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22000 conftest$ac_exeext conftest.$ac_ext
22001 LIBS=$ac_check_lib_save_LIBS
22003 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
22004 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
22005 if test $ac_cv_lib_odbc_SQLConnect = yes; then
22006 AST_UNIXODBC_FOUND=yes
22008 AST_UNIXODBC_FOUND=no
22012 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
22013 UNIXODBC_LIB="-lodbc "
22014 UNIXODBC_HEADER_FOUND="1"
22015 if test "x${UNIXODBC_DIR}" != "x"; then
22016 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
22017 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
22019 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
22020 saved_cppflags="${CPPFLAGS}"
22021 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
22022 if test "xsql.h" != "x" ; then
22023 if test "${ac_cv_header_sql_h+set}" = set; then
22024 { echo "$as_me:$LINENO: checking for sql.h" >&5
22025 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22026 if test "${ac_cv_header_sql_h+set}" = set; then
22027 echo $ECHO_N "(cached) $ECHO_C" >&6
22029 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22030 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22032 # Is the header compilable?
22033 { echo "$as_me:$LINENO: checking sql.h usability" >&5
22034 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
22035 cat >conftest.$ac_ext <<_ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 $ac_includes_default
22044 rm -f conftest.$ac_objext
22045 if { (ac_try="$ac_compile"
22046 case "(($ac_try" in
22047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22048 *) ac_try_echo
=$ac_try;;
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_compile") 2>conftest.er1
22053 grep -v '^ *+' conftest.er1
>conftest.err
22055 cat conftest.err
>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); } && {
22058 test -z "$ac_c_werror_flag" ||
22059 test ! -s conftest.err
22060 } && test -s conftest.
$ac_objext; then
22061 ac_header_compiler
=yes
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.
$ac_ext >&5
22066 ac_header_compiler
=no
22069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22071 echo "${ECHO_T}$ac_header_compiler" >&6; }
22073 # Is the header present?
22074 { echo "$as_me:$LINENO: checking sql.h presence" >&5
22075 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
22076 cat >conftest.
$ac_ext <<_ACEOF
22079 cat confdefs.h
>>conftest.
$ac_ext
22080 cat >>conftest.
$ac_ext <<_ACEOF
22081 /* end confdefs.h. */
22084 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22085 case "(($ac_try" in
22086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22092 grep -v '^ *+' conftest.er1 >conftest.err
22094 cat conftest.err >&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); } >/dev/null && {
22097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22098 test ! -s conftest.err
22100 ac_header_preproc=yes
22102 echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22105 ac_header_preproc=no
22108 rm -f conftest.err conftest.$ac_ext
22109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22110 echo "${ECHO_T}$ac_header_preproc" >&6; }
22112 # So? What about this header?
22113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22115 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
22116 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22117 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
22118 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
22119 ac_header_preproc=yes
22122 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
22123 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
22124 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
22125 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
22126 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
22127 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
22128 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
22129 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
22130 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
22131 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
22132 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
22133 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
22135 ## ------------------------------- ##
22136 ## Report this to www.asterisk.org ##
22137 ## ------------------------------- ##
22139 ) | sed "s/^/$as_me: WARNING: /" >&2
22142 { echo "$as_me:$LINENO: checking for sql.h" >&5
22143 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22144 if test "${ac_cv_header_sql_h+set}" = set; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22147 ac_cv_header_sql_h=$ac_header_preproc
22149 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22150 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22153 if test $ac_cv_header_sql_h = yes; then
22154 UNIXODBC_HEADER_FOUND=1
22156 UNIXODBC_HEADER_FOUND=0
22161 CPPFLAGS="${saved_cppflags}"
22162 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
22163 if test -n "${UNIXODBC_MANDATORY}" ;
22165 { echo "$as_me:$LINENO: ***" >&5
22166 echo "$as_me: ***" >&6;}
22167 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
22168 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
22169 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
22170 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
22171 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22172 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22176 UNIXODBC_INCLUDE=""
22181 cat >>confdefs.h <<_ACEOF
22182 #define HAVE_UNIXODBC 1
22186 elif test -n "${UNIXODBC_MANDATORY}";
22188 { echo "$as_me:$LINENO: ***" >&5
22189 echo "$as_me: ***" >&6;}
22190 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
22191 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
22192 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22193 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22194 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22195 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22202 if test "${USE_OGG}" != "no"; then
22204 if test "x${OGG_DIR}" != "x"; then
22205 if test -d ${OGG_DIR}/lib; then
22206 pbxlibdir="-L${OGG_DIR}/lib"
22208 pbxlibdir="-L${OGG_DIR}"
22211 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
22212 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
22213 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 ac_check_lib_save_LIBS=$LIBS
22217 LIBS="-logg ${pbxlibdir} $LIBS"
22218 cat >conftest.$ac_ext <<_ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h. */
22225 /* Override any GCC internal prototype to avoid an error.
22226 Use char because int might match the return type of a GCC
22227 builtin and then its argument prototype would still apply. */
22231 char ogg_sync_init ();
22235 return ogg_sync_init ();
22240 rm -f conftest.$ac_objext conftest$ac_exeext
22241 if { (ac_try="$ac_link"
22242 case "(($ac_try" in
22243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22244 *) ac_try_echo
=$ac_try;;
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_link") 2>conftest.er1
22249 grep -v '^ *+' conftest.er1
>conftest.err
22251 cat conftest.err
>&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } && {
22254 test -z "$ac_c_werror_flag" ||
22255 test ! -s conftest.err
22256 } && test -s conftest
$ac_exeext &&
22257 $as_test_x conftest
$ac_exeext; then
22258 ac_cv_lib_ogg_ogg_sync_init
=yes
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.
$ac_ext >&5
22263 ac_cv_lib_ogg_ogg_sync_init
=no
22266 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22267 conftest
$ac_exeext conftest.
$ac_ext
22268 LIBS
=$ac_check_lib_save_LIBS
22270 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
22271 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
22272 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
22279 if test "${AST_OGG_FOUND}" = "yes"; then
22281 OGG_HEADER_FOUND
="1"
22282 if test "x${OGG_DIR}" != "x"; then
22283 OGG_LIB
="${pbxlibdir} ${OGG_LIB}"
22284 OGG_INCLUDE
="-I${OGG_DIR}/include"
22286 OGG_INCLUDE
="${OGG_INCLUDE} "
22287 saved_cppflags
="${CPPFLAGS}"
22288 CPPFLAGS
="${CPPFLAGS} ${OGG_INCLUDE}"
22289 if test "x" != "x" ; then
22290 if test "${ac_cv_header_+set}" = set; then
22291 { echo "$as_me:$LINENO: checking for " >&5
22292 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22293 if test "${ac_cv_header_+set}" = set; then
22294 echo $ECHO_N "(cached) $ECHO_C" >&6
22296 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22297 echo "${ECHO_T}$ac_cv_header_" >&6; }
22299 # Is the header compilable?
22300 { echo "$as_me:$LINENO: checking usability" >&5
22301 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22302 cat >conftest.
$ac_ext <<_ACEOF
22305 cat confdefs.h
>>conftest.
$ac_ext
22306 cat >>conftest.
$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22308 $ac_includes_default
22311 rm -f conftest.
$ac_objext
22312 if { (ac_try
="$ac_compile"
22313 case "(($ac_try" in
22314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_compile") 2>conftest.er1
22320 grep -v '^ *+' conftest.er1 >conftest.err
22322 cat conftest.err >&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); } && {
22325 test -z "$ac_c_werror_flag" ||
22326 test ! -s conftest.err
22327 } && test -s conftest.$ac_objext; then
22328 ac_header_compiler=yes
22330 echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22333 ac_header_compiler=no
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22338 echo "${ECHO_T}$ac_header_compiler" >&6; }
22340 # Is the header present?
22341 { echo "$as_me:$LINENO: checking presence" >&5
22342 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22343 cat >conftest.$ac_ext <<_ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22351 if { (ac_try="$ac_cpp conftest.$ac_ext"
22352 case "(($ac_try" in
22353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22354 *) ac_try_echo
=$ac_try;;
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22359 grep -v '^ *+' conftest.er1
>conftest.err
22361 cat conftest.err
>&5
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } >/dev
/null
&& {
22364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22365 test ! -s conftest.err
22367 ac_header_preproc
=yes
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.
$ac_ext >&5
22372 ac_header_preproc
=no
22375 rm -f conftest.err conftest.
$ac_ext
22376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22377 echo "${ECHO_T}$ac_header_preproc" >&6; }
22379 # So? What about this header?
22380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22382 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22383 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22384 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22385 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22386 ac_header_preproc
=yes
22389 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22390 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22391 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22392 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22393 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22394 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22395 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22396 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22397 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22398 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22399 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22400 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22402 ## ------------------------------- ##
22403 ## Report this to www.asterisk.org ##
22404 ## ------------------------------- ##
22406 ) |
sed "s/^/$as_me: WARNING: /" >&2
22409 { echo "$as_me:$LINENO: checking for " >&5
22410 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22411 if test "${ac_cv_header_+set}" = set; then
22412 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 ac_cv_header_
=$ac_header_preproc
22416 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22417 echo "${ECHO_T}$ac_cv_header_" >&6; }
22420 if test $ac_cv_header_ = yes; then
22428 CPPFLAGS
="${saved_cppflags}"
22429 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
22430 if test -n "${OGG_MANDATORY}" ;
22432 { echo "$as_me:$LINENO: ***" >&5
22433 echo "$as_me: ***" >&6;}
22434 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
22435 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
22436 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
22437 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
22438 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22439 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22448 cat >>confdefs.h
<<_ACEOF
22453 elif test -n "${OGG_MANDATORY}";
22455 { echo "$as_me:$LINENO: ***" >&5
22456 echo "$as_me: ***" >&6;}
22457 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
22458 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
22459 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22460 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22461 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22462 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22468 if test "${USE_OSS}" != "no"; then
22470 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22471 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22472 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22473 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22474 echo $ECHO_N "(cached) $ECHO_C" >&6
22476 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22477 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22479 # Is the header compilable?
22480 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
22481 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
22482 cat >conftest.
$ac_ext <<_ACEOF
22485 cat confdefs.h
>>conftest.
$ac_ext
22486 cat >>conftest.
$ac_ext <<_ACEOF
22487 /* end confdefs.h. */
22488 $ac_includes_default
22489 #include <linux/soundcard.h>
22491 rm -f conftest.
$ac_objext
22492 if { (ac_try
="$ac_compile"
22493 case "(($ac_try" in
22494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_compile") 2>conftest.er1
22500 grep -v '^ *+' conftest.er1 >conftest.err
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } && {
22505 test -z "$ac_c_werror_flag" ||
22506 test ! -s conftest.err
22507 } && test -s conftest.$ac_objext; then
22508 ac_header_compiler=yes
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 ac_header_compiler=no
22516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22518 echo "${ECHO_T}$ac_header_compiler" >&6; }
22520 # Is the header present?
22521 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
22522 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
22523 cat >conftest.$ac_ext <<_ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h. */
22529 #include <linux/soundcard.h>
22531 if { (ac_try="$ac_cpp conftest.$ac_ext"
22532 case "(($ac_try" in
22533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22534 *) ac_try_echo
=$ac_try;;
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22539 grep -v '^ *+' conftest.er1
>conftest.err
22541 cat conftest.err
>&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } >/dev
/null
&& {
22544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22545 test ! -s conftest.err
22547 ac_header_preproc
=yes
22549 echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.
$ac_ext >&5
22552 ac_header_preproc
=no
22555 rm -f conftest.err conftest.
$ac_ext
22556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22557 echo "${ECHO_T}$ac_header_preproc" >&6; }
22559 # So? What about this header?
22560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22562 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22563 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22564 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
22565 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
22566 ac_header_preproc
=yes
22569 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
22570 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
22571 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
22572 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
22573 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
22574 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
22575 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22576 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22577 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
22578 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
22579 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
22580 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
22582 ## ------------------------------- ##
22583 ## Report this to www.asterisk.org ##
22584 ## ------------------------------- ##
22586 ) |
sed "s/^/$as_me: WARNING: /" >&2
22589 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22590 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22591 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 ac_cv_header_linux_soundcard_h
=$ac_header_preproc
22596 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22597 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22600 if test $ac_cv_header_linux_soundcard_h = yes; then
22604 cat >>confdefs.h
<<_ACEOF
22612 if test "$PBX_OSS" = "0"; then
22613 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22614 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22615 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22616 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22617 echo $ECHO_N "(cached) $ECHO_C" >&6
22619 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22620 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22622 # Is the header compilable?
22623 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
22624 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
22625 cat >conftest.
$ac_ext <<_ACEOF
22628 cat confdefs.h
>>conftest.
$ac_ext
22629 cat >>conftest.
$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22631 $ac_includes_default
22632 #include <sys/soundcard.h>
22634 rm -f conftest.
$ac_objext
22635 if { (ac_try
="$ac_compile"
22636 case "(($ac_try" in
22637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22638 *) ac_try_echo=$ac_try;;
22640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22641 (eval "$ac_compile") 2>conftest.er1
22643 grep -v '^ *+' conftest.er1 >conftest.err
22645 cat conftest.err >&5
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); } && {
22648 test -z "$ac_c_werror_flag" ||
22649 test ! -s conftest.err
22650 } && test -s conftest.$ac_objext; then
22651 ac_header_compiler=yes
22653 echo "$as_me: failed program was:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22656 ac_header_compiler=no
22659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22661 echo "${ECHO_T}$ac_header_compiler" >&6; }
22663 # Is the header present?
22664 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
22665 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
22666 cat >conftest.$ac_ext <<_ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22672 #include <sys/soundcard.h>
22674 if { (ac_try="$ac_cpp conftest.$ac_ext"
22675 case "(($ac_try" in
22676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22677 *) ac_try_echo
=$ac_try;;
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22682 grep -v '^ *+' conftest.er1
>conftest.err
22684 cat conftest.err
>&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } >/dev
/null
&& {
22687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22688 test ! -s conftest.err
22690 ac_header_preproc
=yes
22692 echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.
$ac_ext >&5
22695 ac_header_preproc
=no
22698 rm -f conftest.err conftest.
$ac_ext
22699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22700 echo "${ECHO_T}$ac_header_preproc" >&6; }
22702 # So? What about this header?
22703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22705 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22706 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22707 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
22708 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
22709 ac_header_preproc
=yes
22712 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
22713 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
22714 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
22715 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
22716 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
22717 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
22718 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22719 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22720 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
22721 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
22722 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
22723 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
22725 ## ------------------------------- ##
22726 ## Report this to www.asterisk.org ##
22727 ## ------------------------------- ##
22729 ) |
sed "s/^/$as_me: WARNING: /" >&2
22732 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22733 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22734 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
22737 ac_cv_header_sys_soundcard_h
=$ac_header_preproc
22739 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22740 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22743 if test $ac_cv_header_sys_soundcard_h = yes; then
22747 cat >>confdefs.h
<<_ACEOF
22756 if test "$PBX_OSS" = "0"; then
22758 if test "${USE_OSS}" != "no"; then
22760 if test "x${OSS_DIR}" != "x"; then
22761 if test -d ${OSS_DIR}/lib
; then
22762 pbxlibdir
="-L${OSS_DIR}/lib"
22764 pbxlibdir
="-L${OSS_DIR}"
22767 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
22768 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
22769 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 ac_check_lib_save_LIBS
=$LIBS
22773 LIBS
="-lossaudio ${pbxlibdir} $LIBS"
22774 cat >conftest.
$ac_ext <<_ACEOF
22777 cat confdefs.h
>>conftest.
$ac_ext
22778 cat >>conftest.
$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22781 /* Override any GCC internal prototype to avoid an error.
22782 Use char because int might match the return type of a GCC
22783 builtin and then its argument prototype would still apply. */
22787 char oss_ioctl_mixer ();
22791 return oss_ioctl_mixer ();
22796 rm -f conftest.
$ac_objext conftest
$ac_exeext
22797 if { (ac_try
="$ac_link"
22798 case "(($ac_try" in
22799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22800 *) ac_try_echo=$ac_try;;
22802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803 (eval "$ac_link") 2>conftest.er1
22805 grep -v '^ *+' conftest.er1 >conftest.err
22807 cat conftest.err >&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } && {
22810 test -z "$ac_c_werror_flag" ||
22811 test ! -s conftest.err
22812 } && test -s conftest$ac_exeext &&
22813 $as_test_x conftest$ac_exeext; then
22814 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
22816 echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22819 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
22822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22823 conftest$ac_exeext conftest.$ac_ext
22824 LIBS=$ac_check_lib_save_LIBS
22826 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
22827 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
22828 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
22835 if test "${AST_OSS_FOUND}" = "yes"; then
22836 OSS_LIB="-lossaudio "
22837 OSS_HEADER_FOUND="1"
22838 if test "x${OSS_DIR}" != "x"; then
22839 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
22840 OSS_INCLUDE="-I${OSS_DIR}/include"
22842 OSS_INCLUDE="${OSS_INCLUDE} "
22843 saved_cppflags="${CPPFLAGS}"
22844 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
22845 if test "xsoundcard.h" != "x" ; then
22846 if test "${ac_cv_header_soundcard_h+set}" = set; then
22847 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22848 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22849 if test "${ac_cv_header_soundcard_h+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22852 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22853 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22855 # Is the header compilable?
22856 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
22857 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
22858 cat >conftest.$ac_ext <<_ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22864 $ac_includes_default
22865 #include <soundcard.h>
22867 rm -f conftest.$ac_objext
22868 if { (ac_try="$ac_compile"
22869 case "(($ac_try" in
22870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22871 *) ac_try_echo
=$ac_try;;
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874 (eval "$ac_compile") 2>conftest.er1
22876 grep -v '^ *+' conftest.er1
>conftest.err
22878 cat conftest.err
>&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } && {
22881 test -z "$ac_c_werror_flag" ||
22882 test ! -s conftest.err
22883 } && test -s conftest.
$ac_objext; then
22884 ac_header_compiler
=yes
22886 echo "$as_me: failed program was:" >&5
22887 sed 's/^/| /' conftest.
$ac_ext >&5
22889 ac_header_compiler
=no
22892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22894 echo "${ECHO_T}$ac_header_compiler" >&6; }
22896 # Is the header present?
22897 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
22898 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
22899 cat >conftest.
$ac_ext <<_ACEOF
22902 cat confdefs.h
>>conftest.
$ac_ext
22903 cat >>conftest.
$ac_ext <<_ACEOF
22904 /* end confdefs.h. */
22905 #include <soundcard.h>
22907 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22908 case "(($ac_try" in
22909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22910 *) ac_try_echo=$ac_try;;
22912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22915 grep -v '^ *+' conftest.er1 >conftest.err
22917 cat conftest.err >&5
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } >/dev/null && {
22920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22921 test ! -s conftest.err
22923 ac_header_preproc=yes
22925 echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22928 ac_header_preproc=no
22931 rm -f conftest.err conftest.$ac_ext
22932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22933 echo "${ECHO_T}$ac_header_preproc" >&6; }
22935 # So? What about this header?
22936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22938 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22939 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22940 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
22941 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
22942 ac_header_preproc=yes
22945 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
22946 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
22947 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
22948 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
22949 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
22950 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
22951 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22952 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22953 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
22954 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
22955 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
22956 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
22958 ## ------------------------------- ##
22959 ## Report this to www.asterisk.org ##
22960 ## ------------------------------- ##
22962 ) | sed "s/^/$as_me: WARNING: /" >&2
22965 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22966 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22967 if test "${ac_cv_header_soundcard_h+set}" = set; then
22968 echo $ECHO_N "(cached) $ECHO_C" >&6
22970 ac_cv_header_soundcard_h=$ac_header_preproc
22972 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22973 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22976 if test $ac_cv_header_soundcard_h = yes; then
22984 CPPFLAGS="${saved_cppflags}"
22985 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
22986 if test -n "${OSS_MANDATORY}" ;
22988 { echo "$as_me:$LINENO: ***" >&5
22989 echo "$as_me: ***" >&6;}
22990 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
22991 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
22992 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
22993 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
22994 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22995 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23004 cat >>confdefs.h <<_ACEOF
23009 elif test -n "${OSS_MANDATORY}";
23011 { echo "$as_me:$LINENO: ***" >&5
23012 echo "$as_me: ***" >&6;}
23013 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
23014 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
23015 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23016 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23017 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23018 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23027 if test "${USE_PGSQL}" != "no"; then
23028 if test "x${PGSQL_DIR}" != "x"; then
23029 if test -n "$ac_tool_prefix"; then
23030 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23031 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23034 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23039 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23043 for as_dir in ${PGSQL_DIR}/bin
23046 test -z "$as_dir" && as_dir=.
23047 for ac_exec_ext in '' $ac_executable_extensions; do
23048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23049 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23060 PG_CONFIG=$ac_cv_path_PG_CONFIG
23061 if test -n "$PG_CONFIG"; then
23062 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23063 echo "${ECHO_T}$PG_CONFIG" >&6; }
23065 { echo "$as_me:$LINENO: result: no" >&5
23066 echo "${ECHO_T}no" >&6; }
23071 if test -z "$ac_cv_path_PG_CONFIG"; then
23072 ac_pt_PG_CONFIG=$PG_CONFIG
23073 # Extract the first word of "pg_config", so it can be a program name with args.
23074 set dummy pg_config; ac_word=$2
23075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23077 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23080 case $ac_pt_PG_CONFIG in
23082 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23086 for as_dir in ${PGSQL_DIR}/bin
23089 test -z "$as_dir" && as_dir=.
23090 for ac_exec_ext in '' $ac_executable_extensions; do
23091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23092 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23103 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23104 if test -n "$ac_pt_PG_CONFIG"; then
23105 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23106 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23108 { echo "$as_me:$LINENO: result: no" >&5
23109 echo "${ECHO_T}no" >&6; }
23112 if test "x$ac_pt_PG_CONFIG" = x; then
23115 case $cross_compiling:$ac_tool_warned in
23117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23118 whose name does not start with the host triplet. If you think this
23119 configuration is useful to you, please write to autoconf@gnu.org." >&5
23120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23121 whose name does not start with the host triplet. If you think this
23122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23123 ac_tool_warned=yes ;;
23125 PG_CONFIG=$ac_pt_PG_CONFIG
23128 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23131 if test x"${PG_CONFIG}" = xNo; then
23132 { echo "$as_me:$LINENO: ***" >&5
23133 echo "$as_me: ***" >&6;}
23134 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
23135 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
23136 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
23137 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
23138 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23139 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23140 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23141 echo "$as_me: *** including --without-postgres" >&6;}
23145 if test -n "$ac_tool_prefix"; then
23146 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23147 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23150 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23151 echo $ECHO_N "(cached) $ECHO_C" >&6
23155 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23159 for as_dir in $PATH
23162 test -z "$as_dir" && as_dir=.
23163 for ac_exec_ext in '' $ac_executable_extensions; do
23164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23165 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23176 PG_CONFIG=$ac_cv_path_PG_CONFIG
23177 if test -n "$PG_CONFIG"; then
23178 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23179 echo "${ECHO_T}$PG_CONFIG" >&6; }
23181 { echo "$as_me:$LINENO: result: no" >&5
23182 echo "${ECHO_T}no" >&6; }
23187 if test -z "$ac_cv_path_PG_CONFIG"; then
23188 ac_pt_PG_CONFIG=$PG_CONFIG
23189 # Extract the first word of "pg_config", so it can be a program name with args.
23190 set dummy pg_config; ac_word=$2
23191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23193 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23194 echo $ECHO_N "(cached) $ECHO_C" >&6
23196 case $ac_pt_PG_CONFIG in
23198 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23202 for as_dir in $PATH
23205 test -z "$as_dir" && as_dir=.
23206 for ac_exec_ext in '' $ac_executable_extensions; do
23207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23208 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23219 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23220 if test -n "$ac_pt_PG_CONFIG"; then
23221 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23222 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23224 { echo "$as_me:$LINENO: result: no" >&5
23225 echo "${ECHO_T}no" >&6; }
23228 if test "x$ac_pt_PG_CONFIG" = x; then
23231 case $cross_compiling:$ac_tool_warned in
23233 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23234 whose name does not start with the host triplet. If you think this
23235 configuration is useful to you, please write to autoconf@gnu.org." >&5
23236 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23237 whose name does not start with the host triplet. If you think this
23238 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23239 ac_tool_warned=yes ;;
23241 PG_CONFIG=$ac_pt_PG_CONFIG
23244 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23249 if test "${PG_CONFIG}" != No; then
23250 PGSQL_libdir=`${PG_CONFIG} --libdir`
23251 PGSQL_includedir=`${PG_CONFIG} --includedir`
23253 if test "x$?" != "x0" ; then
23254 if test -n "${PGSQL_MANDATORY}" ; then
23255 { echo "$as_me:$LINENO: ***" >&5
23256 echo "$as_me: ***" >&6;}
23257 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23258 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23259 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23260 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23261 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23262 echo "$as_me: *** including --without-postgres" >&6;}
23266 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
23267 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
23268 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23271 ac_check_lib_save_LIBS=$LIBS
23272 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
23273 cat >conftest.$ac_ext <<_ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23280 /* Override any GCC internal prototype to avoid an error.
23281 Use char because int might match the return type of a GCC
23282 builtin and then its argument prototype would still apply. */
23286 char PQescapeStringConn ();
23290 return PQescapeStringConn ();
23295 rm -f conftest.$ac_objext conftest$ac_exeext
23296 if { (ac_try="$ac_link"
23297 case "(($ac_try" in
23298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23299 *) ac_try_echo
=$ac_try;;
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_link") 2>conftest.er1
23304 grep -v '^ *+' conftest.er1
>conftest.err
23306 cat conftest.err
>&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest
$ac_exeext &&
23312 $as_test_x conftest
$ac_exeext; then
23313 ac_cv_lib_pq_PQescapeStringConn
=yes
23315 echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.
$ac_ext >&5
23318 ac_cv_lib_pq_PQescapeStringConn
=no
23321 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23322 conftest
$ac_exeext conftest.
$ac_ext
23323 LIBS
=$ac_check_lib_save_LIBS
23325 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
23326 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
23327 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
23329 cat >>confdefs.h
<<_ACEOF
23330 #define HAVE_PGSQL 1
23336 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
23337 PGSQL_LIB
="-L${PGSQL_libdir} -lpq -lz"
23338 PGSQL_INCLUDE
="-I${PGSQL_includedir}"
23340 elif test -n "${PGSQL_MANDATORY}";
23342 { echo "$as_me:$LINENO: ***" >&5
23343 echo "$as_me: ***" >&6;}
23344 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23345 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23346 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23347 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23348 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23349 echo "$as_me: *** including --without-postgres" >&6;}
23353 elif test -n "${PGSQL_MANDATORY}";
23355 { echo "$as_me:$LINENO: ***" >&5
23356 echo "$as_me: ***" >&6;}
23357 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23358 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23359 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23360 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23361 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23362 echo "$as_me: *** including --without-postgres" >&6;}
23367 if test "${USE_POPT}" != "no"; then
23369 if test "x${POPT_DIR}" != "x"; then
23370 if test -d ${POPT_DIR}/lib
; then
23371 pbxlibdir
="-L${POPT_DIR}/lib"
23373 pbxlibdir
="-L${POPT_DIR}"
23376 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
23377 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
23378 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
23381 ac_check_lib_save_LIBS
=$LIBS
23382 LIBS
="-lpopt ${pbxlibdir} $LIBS"
23383 cat >conftest.
$ac_ext <<_ACEOF
23386 cat confdefs.h
>>conftest.
$ac_ext
23387 cat >>conftest.
$ac_ext <<_ACEOF
23388 /* end confdefs.h. */
23390 /* Override any GCC internal prototype to avoid an error.
23391 Use char because int might match the return type of a GCC
23392 builtin and then its argument prototype would still apply. */
23396 char poptStrerror ();
23400 return poptStrerror ();
23405 rm -f conftest.
$ac_objext conftest
$ac_exeext
23406 if { (ac_try
="$ac_link"
23407 case "(($ac_try" in
23408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23409 *) ac_try_echo=$ac_try;;
23411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23412 (eval "$ac_link") 2>conftest.er1
23414 grep -v '^ *+' conftest.er1 >conftest.err
23416 cat conftest.err >&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } && {
23419 test -z "$ac_c_werror_flag" ||
23420 test ! -s conftest.err
23421 } && test -s conftest$ac_exeext &&
23422 $as_test_x conftest$ac_exeext; then
23423 ac_cv_lib_popt_poptStrerror=yes
23425 echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23428 ac_cv_lib_popt_poptStrerror=no
23431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23432 conftest$ac_exeext conftest.$ac_ext
23433 LIBS=$ac_check_lib_save_LIBS
23435 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
23436 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
23437 if test $ac_cv_lib_popt_poptStrerror = yes; then
23444 if test "${AST_POPT_FOUND}" = "yes"; then
23446 POPT_HEADER_FOUND="1"
23447 if test "x${POPT_DIR}" != "x"; then
23448 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
23449 POPT_INCLUDE="-I${POPT_DIR}/include"
23451 POPT_INCLUDE="${POPT_INCLUDE} "
23452 saved_cppflags="${CPPFLAGS}"
23453 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
23454 if test "xpopt.h" != "x" ; then
23455 if test "${ac_cv_header_popt_h+set}" = set; then
23456 { echo "$as_me:$LINENO: checking for popt.h" >&5
23457 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23458 if test "${ac_cv_header_popt_h+set}" = set; then
23459 echo $ECHO_N "(cached) $ECHO_C" >&6
23461 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23462 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23464 # Is the header compilable?
23465 { echo "$as_me:$LINENO: checking popt.h usability" >&5
23466 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
23467 cat >conftest.$ac_ext <<_ACEOF
23470 cat confdefs.h >>conftest.$ac_ext
23471 cat >>conftest.$ac_ext <<_ACEOF
23472 /* end confdefs.h. */
23473 $ac_includes_default
23476 rm -f conftest.$ac_objext
23477 if { (ac_try="$ac_compile"
23478 case "(($ac_try" in
23479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23480 *) ac_try_echo
=$ac_try;;
23482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23483 (eval "$ac_compile") 2>conftest.er1
23485 grep -v '^ *+' conftest.er1
>conftest.err
23487 cat conftest.err
>&5
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); } && {
23490 test -z "$ac_c_werror_flag" ||
23491 test ! -s conftest.err
23492 } && test -s conftest.
$ac_objext; then
23493 ac_header_compiler
=yes
23495 echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.
$ac_ext >&5
23498 ac_header_compiler
=no
23501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23503 echo "${ECHO_T}$ac_header_compiler" >&6; }
23505 # Is the header present?
23506 { echo "$as_me:$LINENO: checking popt.h presence" >&5
23507 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
23508 cat >conftest.
$ac_ext <<_ACEOF
23511 cat confdefs.h
>>conftest.
$ac_ext
23512 cat >>conftest.
$ac_ext <<_ACEOF
23513 /* end confdefs.h. */
23516 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23517 case "(($ac_try" in
23518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23519 *) ac_try_echo=$ac_try;;
23521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23524 grep -v '^ *+' conftest.er1 >conftest.err
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } >/dev/null && {
23529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23530 test ! -s conftest.err
23532 ac_header_preproc=yes
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23537 ac_header_preproc=no
23540 rm -f conftest.err conftest.$ac_ext
23541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23542 echo "${ECHO_T}$ac_header_preproc" >&6; }
23544 # So? What about this header?
23545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23547 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23548 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23549 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
23550 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
23551 ac_header_preproc=yes
23554 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
23555 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
23556 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
23557 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
23558 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
23559 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
23560 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
23561 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23562 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
23563 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
23564 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
23565 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
23567 ## ------------------------------- ##
23568 ## Report this to www.asterisk.org ##
23569 ## ------------------------------- ##
23571 ) | sed "s/^/$as_me: WARNING: /" >&2
23574 { echo "$as_me:$LINENO: checking for popt.h" >&5
23575 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23576 if test "${ac_cv_header_popt_h+set}" = set; then
23577 echo $ECHO_N "(cached) $ECHO_C" >&6
23579 ac_cv_header_popt_h=$ac_header_preproc
23581 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23582 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23585 if test $ac_cv_header_popt_h = yes; then
23586 POPT_HEADER_FOUND=1
23588 POPT_HEADER_FOUND=0
23593 CPPFLAGS="${saved_cppflags}"
23594 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
23595 if test -n "${POPT_MANDATORY}" ;
23597 { echo "$as_me:$LINENO: ***" >&5
23598 echo "$as_me: ***" >&6;}
23599 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
23600 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
23601 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
23602 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
23603 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23604 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23613 cat >>confdefs.h <<_ACEOF
23614 #define HAVE_POPT 1
23618 elif test -n "${POPT_MANDATORY}";
23620 { echo "$as_me:$LINENO: ***" >&5
23621 echo "$as_me: ***" >&6;}
23622 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
23623 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
23624 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23625 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23626 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23627 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23634 if test "${USE_PRI}" != "no"; then
23636 if test "x${PRI_DIR}" != "x"; then
23637 if test -d ${PRI_DIR}/lib; then
23638 pbxlibdir="-L${PRI_DIR}/lib"
23640 pbxlibdir="-L${PRI_DIR}"
23643 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
23644 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
23645 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23648 ac_check_lib_save_LIBS=$LIBS
23649 LIBS="-lpri ${pbxlibdir} $LIBS"
23650 cat >conftest.$ac_ext <<_ACEOF
23653 cat confdefs.h >>conftest.$ac_ext
23654 cat >>conftest.$ac_ext <<_ACEOF
23655 /* end confdefs.h. */
23657 /* Override any GCC internal prototype to avoid an error.
23658 Use char because int might match the return type of a GCC
23659 builtin and then its argument prototype would still apply. */
23663 char pri_keypad_facility ();
23667 return pri_keypad_facility ();
23672 rm -f conftest.$ac_objext conftest$ac_exeext
23673 if { (ac_try="$ac_link"
23674 case "(($ac_try" in
23675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23676 *) ac_try_echo
=$ac_try;;
23678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23679 (eval "$ac_link") 2>conftest.er1
23681 grep -v '^ *+' conftest.er1
>conftest.err
23683 cat conftest.err
>&5
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } && {
23686 test -z "$ac_c_werror_flag" ||
23687 test ! -s conftest.err
23688 } && test -s conftest
$ac_exeext &&
23689 $as_test_x conftest
$ac_exeext; then
23690 ac_cv_lib_pri_pri_keypad_facility
=yes
23692 echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.
$ac_ext >&5
23695 ac_cv_lib_pri_pri_keypad_facility
=no
23698 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23699 conftest
$ac_exeext conftest.
$ac_ext
23700 LIBS
=$ac_check_lib_save_LIBS
23702 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
23703 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
23704 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
23711 if test "${AST_PRI_FOUND}" = "yes"; then
23713 PRI_HEADER_FOUND
="1"
23714 if test "x${PRI_DIR}" != "x"; then
23715 PRI_LIB
="${pbxlibdir} ${PRI_LIB}"
23716 PRI_INCLUDE
="-I${PRI_DIR}/include"
23718 PRI_INCLUDE
="${PRI_INCLUDE} "
23719 saved_cppflags
="${CPPFLAGS}"
23720 CPPFLAGS
="${CPPFLAGS} ${PRI_INCLUDE}"
23721 if test "xlibpri.h" != "x" ; then
23722 if test "${ac_cv_header_libpri_h+set}" = set; then
23723 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23724 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23725 if test "${ac_cv_header_libpri_h+set}" = set; then
23726 echo $ECHO_N "(cached) $ECHO_C" >&6
23728 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23729 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23731 # Is the header compilable?
23732 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
23733 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
23734 cat >conftest.
$ac_ext <<_ACEOF
23737 cat confdefs.h
>>conftest.
$ac_ext
23738 cat >>conftest.
$ac_ext <<_ACEOF
23739 /* end confdefs.h. */
23740 $ac_includes_default
23741 #include <libpri.h>
23743 rm -f conftest.
$ac_objext
23744 if { (ac_try
="$ac_compile"
23745 case "(($ac_try" in
23746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23750 (eval "$ac_compile") 2>conftest.er1
23752 grep -v '^ *+' conftest.er1 >conftest.err
23754 cat conftest.err >&5
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); } && {
23757 test -z "$ac_c_werror_flag" ||
23758 test ! -s conftest.err
23759 } && test -s conftest.$ac_objext; then
23760 ac_header_compiler=yes
23762 echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23765 ac_header_compiler=no
23768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23770 echo "${ECHO_T}$ac_header_compiler" >&6; }
23772 # Is the header present?
23773 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23774 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23775 cat >conftest.$ac_ext <<_ACEOF
23778 cat confdefs.h >>conftest.$ac_ext
23779 cat >>conftest.$ac_ext <<_ACEOF
23780 /* end confdefs.h. */
23781 #include <libpri.h>
23783 if { (ac_try="$ac_cpp conftest.$ac_ext"
23784 case "(($ac_try" in
23785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23786 *) ac_try_echo
=$ac_try;;
23788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23791 grep -v '^ *+' conftest.er1
>conftest.err
23793 cat conftest.err
>&5
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); } >/dev
/null
&& {
23796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23797 test ! -s conftest.err
23799 ac_header_preproc
=yes
23801 echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.
$ac_ext >&5
23804 ac_header_preproc
=no
23807 rm -f conftest.err conftest.
$ac_ext
23808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23809 echo "${ECHO_T}$ac_header_preproc" >&6; }
23811 # So? What about this header?
23812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23814 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23815 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23816 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
23817 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
23818 ac_header_preproc
=yes
23821 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
23822 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
23823 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
23824 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
23825 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
23826 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
23827 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23828 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23829 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
23830 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
23831 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
23832 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
23834 ## ------------------------------- ##
23835 ## Report this to www.asterisk.org ##
23836 ## ------------------------------- ##
23838 ) |
sed "s/^/$as_me: WARNING: /" >&2
23841 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23842 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23843 if test "${ac_cv_header_libpri_h+set}" = set; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
23846 ac_cv_header_libpri_h
=$ac_header_preproc
23848 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23849 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23852 if test $ac_cv_header_libpri_h = yes; then
23860 CPPFLAGS
="${saved_cppflags}"
23861 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
23862 if test -n "${PRI_MANDATORY}" ;
23864 { echo "$as_me:$LINENO: ***" >&5
23865 echo "$as_me: ***" >&6;}
23866 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
23867 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
23868 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
23869 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
23870 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23871 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23880 cat >>confdefs.h
<<_ACEOF
23885 elif test -n "${PRI_MANDATORY}";
23887 { echo "$as_me:$LINENO: ***" >&5
23888 echo "$as_me: ***" >&6;}
23889 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
23890 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
23891 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23892 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23893 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23894 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23901 if test "${USE_PRI_VERSION}" != "no"; then
23903 if test "x${PRI_VERSION_DIR}" != "x"; then
23904 if test -d ${PRI_VERSION_DIR}/lib
; then
23905 pbxlibdir
="-L${PRI_VERSION_DIR}/lib"
23907 pbxlibdir
="-L${PRI_VERSION_DIR}"
23910 { echo "$as_me:$LINENO: checking for pri_get_version in -lpri" >&5
23911 echo $ECHO_N "checking for pri_get_version in -lpri... $ECHO_C" >&6; }
23912 if test "${ac_cv_lib_pri_pri_get_version+set}" = set; then
23913 echo $ECHO_N "(cached) $ECHO_C" >&6
23915 ac_check_lib_save_LIBS
=$LIBS
23916 LIBS
="-lpri ${pbxlibdir} $LIBS"
23917 cat >conftest.
$ac_ext <<_ACEOF
23920 cat confdefs.h
>>conftest.
$ac_ext
23921 cat >>conftest.
$ac_ext <<_ACEOF
23922 /* end confdefs.h. */
23924 /* Override any GCC internal prototype to avoid an error.
23925 Use char because int might match the return type of a GCC
23926 builtin and then its argument prototype would still apply. */
23930 char pri_get_version ();
23934 return pri_get_version ();
23939 rm -f conftest.
$ac_objext conftest
$ac_exeext
23940 if { (ac_try
="$ac_link"
23941 case "(($ac_try" in
23942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23943 *) ac_try_echo=$ac_try;;
23945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23946 (eval "$ac_link") 2>conftest.er1
23948 grep -v '^ *+' conftest.er1 >conftest.err
23950 cat conftest.err >&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } && {
23953 test -z "$ac_c_werror_flag" ||
23954 test ! -s conftest.err
23955 } && test -s conftest$ac_exeext &&
23956 $as_test_x conftest$ac_exeext; then
23957 ac_cv_lib_pri_pri_get_version=yes
23959 echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23962 ac_cv_lib_pri_pri_get_version=no
23965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23966 conftest$ac_exeext conftest.$ac_ext
23967 LIBS=$ac_check_lib_save_LIBS
23969 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_get_version" >&5
23970 echo "${ECHO_T}$ac_cv_lib_pri_pri_get_version" >&6; }
23971 if test $ac_cv_lib_pri_pri_get_version = yes; then
23972 AST_PRI_VERSION_FOUND=yes
23974 AST_PRI_VERSION_FOUND=no
23978 if test "${AST_PRI_VERSION_FOUND}" = "yes"; then
23979 PRI_VERSION_LIB="-lpri "
23980 PRI_VERSION_HEADER_FOUND="1"
23981 if test "x${PRI_VERSION_DIR}" != "x"; then
23982 PRI_VERSION_LIB="${pbxlibdir} ${PRI_VERSION_LIB}"
23983 PRI_VERSION_INCLUDE="-I${PRI_VERSION_DIR}/include"
23985 PRI_VERSION_INCLUDE="${PRI_VERSION_INCLUDE} "
23986 saved_cppflags="${CPPFLAGS}"
23987 CPPFLAGS="${CPPFLAGS} ${PRI_VERSION_INCLUDE}"
23988 if test "xlibpri.h" != "x" ; then
23989 if test "${ac_cv_header_libpri_h+set}" = set; then
23990 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23991 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23992 if test "${ac_cv_header_libpri_h+set}" = set; then
23993 echo $ECHO_N "(cached) $ECHO_C" >&6
23995 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23996 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23998 # Is the header compilable?
23999 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
24000 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
24001 cat >conftest.$ac_ext <<_ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h. */
24007 $ac_includes_default
24008 #include <libpri.h>
24010 rm -f conftest.$ac_objext
24011 if { (ac_try="$ac_compile"
24012 case "(($ac_try" in
24013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24014 *) ac_try_echo
=$ac_try;;
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017 (eval "$ac_compile") 2>conftest.er1
24019 grep -v '^ *+' conftest.er1
>conftest.err
24021 cat conftest.err
>&5
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); } && {
24024 test -z "$ac_c_werror_flag" ||
24025 test ! -s conftest.err
24026 } && test -s conftest.
$ac_objext; then
24027 ac_header_compiler
=yes
24029 echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.
$ac_ext >&5
24032 ac_header_compiler
=no
24035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24037 echo "${ECHO_T}$ac_header_compiler" >&6; }
24039 # Is the header present?
24040 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
24041 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
24042 cat >conftest.
$ac_ext <<_ACEOF
24045 cat confdefs.h
>>conftest.
$ac_ext
24046 cat >>conftest.
$ac_ext <<_ACEOF
24047 /* end confdefs.h. */
24048 #include <libpri.h>
24050 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24051 case "(($ac_try" in
24052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24053 *) ac_try_echo=$ac_try;;
24055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24058 grep -v '^ *+' conftest.er1 >conftest.err
24060 cat conftest.err >&5
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); } >/dev/null && {
24063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24064 test ! -s conftest.err
24066 ac_header_preproc=yes
24068 echo "$as_me: failed program was:" >&5
24069 sed 's/^/| /' conftest.$ac_ext >&5
24071 ac_header_preproc=no
24074 rm -f conftest.err conftest.$ac_ext
24075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24076 echo "${ECHO_T}$ac_header_preproc" >&6; }
24078 # So? What about this header?
24079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24081 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24082 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24083 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24084 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24085 ac_header_preproc=yes
24088 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24089 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24090 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24091 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24092 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24093 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24094 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24095 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24096 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24097 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24098 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24099 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24101 ## ------------------------------- ##
24102 ## Report this to www.asterisk.org ##
24103 ## ------------------------------- ##
24105 ) | sed "s/^/$as_me: WARNING: /" >&2
24108 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24109 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24110 if test "${ac_cv_header_libpri_h+set}" = set; then
24111 echo $ECHO_N "(cached) $ECHO_C" >&6
24113 ac_cv_header_libpri_h=$ac_header_preproc
24115 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24116 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24119 if test $ac_cv_header_libpri_h = yes; then
24120 PRI_VERSION_HEADER_FOUND=1
24122 PRI_VERSION_HEADER_FOUND=0
24127 CPPFLAGS="${saved_cppflags}"
24128 if test "x${PRI_VERSION_HEADER_FOUND}" = "x0" ; then
24129 if test -n "${PRI_VERSION_MANDATORY}" ;
24131 { echo "$as_me:$LINENO: ***" >&5
24132 echo "$as_me: ***" >&6;}
24133 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24134 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24135 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&5
24136 echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&6;}
24137 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
24138 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
24142 PRI_VERSION_INCLUDE=""
24147 cat >>confdefs.h <<_ACEOF
24148 #define HAVE_PRI_VERSION 1
24152 elif test -n "${PRI_VERSION_MANDATORY}";
24154 { echo "$as_me:$LINENO: ***" >&5
24155 echo "$as_me: ***" >&6;}
24156 { echo "$as_me:$LINENO: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&5
24157 echo "$as_me: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&6;}
24158 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24159 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24160 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
24161 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
24168 if test "${USE_PRI_INBANDDISCONNECT}" != "no"; then
24170 if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
24171 if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
24172 pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
24174 pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
24177 { echo "$as_me:$LINENO: checking for pri_set_inbanddisconnect in -lpri" >&5
24178 echo $ECHO_N "checking for pri_set_inbanddisconnect in -lpri... $ECHO_C" >&6; }
24179 if test "${ac_cv_lib_pri_pri_set_inbanddisconnect+set}" = set; then
24180 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 ac_check_lib_save_LIBS=$LIBS
24183 LIBS="-lpri ${pbxlibdir} $LIBS"
24184 cat >conftest.$ac_ext <<_ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24191 /* Override any GCC internal prototype to avoid an error.
24192 Use char because int might match the return type of a GCC
24193 builtin and then its argument prototype would still apply. */
24197 char pri_set_inbanddisconnect ();
24201 return pri_set_inbanddisconnect ();
24206 rm -f conftest.$ac_objext conftest$ac_exeext
24207 if { (ac_try="$ac_link"
24208 case "(($ac_try" in
24209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24210 *) ac_try_echo
=$ac_try;;
24212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24213 (eval "$ac_link") 2>conftest.er1
24215 grep -v '^ *+' conftest.er1
>conftest.err
24217 cat conftest.err
>&5
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } && {
24220 test -z "$ac_c_werror_flag" ||
24221 test ! -s conftest.err
24222 } && test -s conftest
$ac_exeext &&
24223 $as_test_x conftest
$ac_exeext; then
24224 ac_cv_lib_pri_pri_set_inbanddisconnect
=yes
24226 echo "$as_me: failed program was:" >&5
24227 sed 's/^/| /' conftest.
$ac_ext >&5
24229 ac_cv_lib_pri_pri_set_inbanddisconnect
=no
24232 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24233 conftest
$ac_exeext conftest.
$ac_ext
24234 LIBS
=$ac_check_lib_save_LIBS
24236 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_set_inbanddisconnect" >&5
24237 echo "${ECHO_T}$ac_cv_lib_pri_pri_set_inbanddisconnect" >&6; }
24238 if test $ac_cv_lib_pri_pri_set_inbanddisconnect = yes; then
24239 AST_PRI_INBANDDISCONNECT_FOUND
=yes
24241 AST_PRI_INBANDDISCONNECT_FOUND
=no
24245 if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
24246 PRI_INBANDDISCONNECT_LIB
="-lpri "
24247 PRI_INBANDDISCONNECT_HEADER_FOUND
="1"
24248 if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
24249 PRI_INBANDDISCONNECT_LIB
="${pbxlibdir} ${PRI_INBANDDISCONNECT_LIB}"
24250 PRI_INBANDDISCONNECT_INCLUDE
="-I${PRI_INBANDDISCONNECT_DIR}/include"
24252 PRI_INBANDDISCONNECT_INCLUDE
="${PRI_INBANDDISCONNECT_INCLUDE} "
24253 saved_cppflags
="${CPPFLAGS}"
24254 CPPFLAGS
="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
24255 if test "xlibpri.h" != "x" ; then
24256 if test "${ac_cv_header_libpri_h+set}" = set; then
24257 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24258 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24259 if test "${ac_cv_header_libpri_h+set}" = set; then
24260 echo $ECHO_N "(cached) $ECHO_C" >&6
24262 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24263 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24265 # Is the header compilable?
24266 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
24267 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
24268 cat >conftest.
$ac_ext <<_ACEOF
24271 cat confdefs.h
>>conftest.
$ac_ext
24272 cat >>conftest.
$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24274 $ac_includes_default
24275 #include <libpri.h>
24277 rm -f conftest.
$ac_objext
24278 if { (ac_try
="$ac_compile"
24279 case "(($ac_try" in
24280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24281 *) ac_try_echo=$ac_try;;
24283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284 (eval "$ac_compile") 2>conftest.er1
24286 grep -v '^ *+' conftest.er1 >conftest.err
24288 cat conftest.err >&5
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } && {
24291 test -z "$ac_c_werror_flag" ||
24292 test ! -s conftest.err
24293 } && test -s conftest.$ac_objext; then
24294 ac_header_compiler=yes
24296 echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24299 ac_header_compiler=no
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24304 echo "${ECHO_T}$ac_header_compiler" >&6; }
24306 # Is the header present?
24307 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
24308 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
24309 cat >conftest.$ac_ext <<_ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h. */
24315 #include <libpri.h>
24317 if { (ac_try="$ac_cpp conftest.$ac_ext"
24318 case "(($ac_try" in
24319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24320 *) ac_try_echo
=$ac_try;;
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24325 grep -v '^ *+' conftest.er1
>conftest.err
24327 cat conftest.err
>&5
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); } >/dev
/null
&& {
24330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24331 test ! -s conftest.err
24333 ac_header_preproc
=yes
24335 echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.
$ac_ext >&5
24338 ac_header_preproc
=no
24341 rm -f conftest.err conftest.
$ac_ext
24342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24343 echo "${ECHO_T}$ac_header_preproc" >&6; }
24345 # So? What about this header?
24346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24348 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24349 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24350 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24351 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24352 ac_header_preproc
=yes
24355 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24356 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24357 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24358 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24359 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24360 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24361 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24362 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24363 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24364 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24365 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24366 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24368 ## ------------------------------- ##
24369 ## Report this to www.asterisk.org ##
24370 ## ------------------------------- ##
24372 ) |
sed "s/^/$as_me: WARNING: /" >&2
24375 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24376 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24377 if test "${ac_cv_header_libpri_h+set}" = set; then
24378 echo $ECHO_N "(cached) $ECHO_C" >&6
24380 ac_cv_header_libpri_h
=$ac_header_preproc
24382 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24383 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24386 if test $ac_cv_header_libpri_h = yes; then
24387 PRI_INBANDDISCONNECT_HEADER_FOUND
=1
24389 PRI_INBANDDISCONNECT_HEADER_FOUND
=0
24394 CPPFLAGS
="${saved_cppflags}"
24395 if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
24396 if test -n "${PRI_INBANDDISCONNECT_MANDATORY}" ;
24398 { echo "$as_me:$LINENO: ***" >&5
24399 echo "$as_me: ***" >&6;}
24400 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24401 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24402 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support, or re-run configure" >&5
24403 echo "$as_me: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support, or re-run configure" >&6;}
24404 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&5
24405 echo "$as_me: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&6;}
24408 PRI_INBANDDISCONNECT_LIB
=""
24409 PRI_INBANDDISCONNECT_INCLUDE
=""
24410 PBX_PRI_INBANDDISCONNECT
=0
24412 PBX_PRI_INBANDDISCONNECT
=1
24414 cat >>confdefs.h
<<_ACEOF
24415 #define HAVE_PRI_INBANDDISCONNECT 1
24419 elif test -n "${PRI_INBANDDISCONNECT_MANDATORY}";
24421 { echo "$as_me:$LINENO: ***" >&5
24422 echo "$as_me: ***" >&6;}
24423 { echo "$as_me:$LINENO: *** The ${PRI_INBANDDISCONNECT_DESCRIP} installation on this system appears to be broken." >&5
24424 echo "$as_me: *** The ${PRI_INBANDDISCONNECT_DESCRIP} installation on this system appears to be broken." >&6;}
24425 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24426 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24427 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&5
24428 echo "$as_me: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&6;}
24434 if test "${USE_PWLIB}" != "no"; then
24435 if test -n "${PWLIB_DIR}"; then
24436 PWLIBDIR
="${PWLIB_DIR}"
24443 ac_cpp
='$CXXCPP $CPPFLAGS'
24444 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24445 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24446 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24448 if test "${PWLIBDIR:-unset}" != "unset" ; then
24449 as_ac_Header
=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
24450 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24451 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24452 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24453 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24454 echo $ECHO_N "(cached) $ECHO_C" >&6
24456 ac_res
=`eval echo '${'$as_ac_Header'}'`
24457 { echo "$as_me:$LINENO: result: $ac_res" >&5
24458 echo "${ECHO_T}$ac_res" >&6; }
24460 # Is the header compilable?
24461 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
24462 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
24463 cat >conftest.
$ac_ext <<_ACEOF
24466 cat confdefs.h
>>conftest.
$ac_ext
24467 cat >>conftest.
$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24469 $ac_includes_default
24470 #include <${PWLIBDIR}/version.h>
24472 rm -f conftest.
$ac_objext
24473 if { (ac_try
="$ac_compile"
24474 case "(($ac_try" in
24475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24476 *) ac_try_echo=$ac_try;;
24478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479 (eval "$ac_compile") 2>conftest.er1
24481 grep -v '^ *+' conftest.er1 >conftest.err
24483 cat conftest.err >&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); } && {
24486 test -z "$ac_cxx_werror_flag" ||
24487 test ! -s conftest.err
24488 } && test -s conftest.$ac_objext; then
24489 ac_header_compiler=yes
24491 echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24494 ac_header_compiler=no
24497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24499 echo "${ECHO_T}$ac_header_compiler" >&6; }
24501 # Is the header present?
24502 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
24503 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
24504 cat >conftest.$ac_ext <<_ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24510 #include <${PWLIBDIR}/version.h>
24512 if { (ac_try="$ac_cpp conftest.$ac_ext"
24513 case "(($ac_try" in
24514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24515 *) ac_try_echo
=$ac_try;;
24517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24520 grep -v '^ *+' conftest.er1
>conftest.err
24522 cat conftest.err
>&5
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); } >/dev
/null
&& {
24525 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24526 test ! -s conftest.err
24528 ac_header_preproc
=yes
24530 echo "$as_me: failed program was:" >&5
24531 sed 's/^/| /' conftest.
$ac_ext >&5
24533 ac_header_preproc
=no
24536 rm -f conftest.err conftest.
$ac_ext
24537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24538 echo "${ECHO_T}$ac_header_preproc" >&6; }
24540 # So? What about this header?
24541 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24543 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
24544 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24545 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
24546 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
24547 ac_header_preproc
=yes
24550 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
24551 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
24552 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
24553 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
24554 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
24555 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
24556 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
24557 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
24558 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
24559 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
24560 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
24561 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
24563 ## ------------------------------- ##
24564 ## Report this to www.asterisk.org ##
24565 ## ------------------------------- ##
24567 ) |
sed "s/^/$as_me: WARNING: /" >&2
24570 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24571 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24572 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24575 eval "$as_ac_Header=\$ac_header_preproc"
24577 ac_res
=`eval echo '${'$as_ac_Header'}'`
24578 { echo "$as_me:$LINENO: result: $ac_res" >&5
24579 echo "${ECHO_T}$ac_res" >&6; }
24582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24588 if test "${HAS_PWLIB:-unset}" = "unset" ; then
24589 if test "${OPENH323DIR:-unset}" != "unset"; then
24590 as_ac_Header
=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
24591 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24592 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24593 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24594 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24595 echo $ECHO_N "(cached) $ECHO_C" >&6
24597 ac_res
=`eval echo '${'$as_ac_Header'}'`
24598 { echo "$as_me:$LINENO: result: $ac_res" >&5
24599 echo "${ECHO_T}$ac_res" >&6; }
24601 # Is the header compilable?
24602 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
24603 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
24604 cat >conftest.
$ac_ext <<_ACEOF
24607 cat confdefs.h
>>conftest.
$ac_ext
24608 cat >>conftest.
$ac_ext <<_ACEOF
24609 /* end confdefs.h. */
24610 $ac_includes_default
24611 #include <${OPENH323DIR}/../pwlib/version.h>
24613 rm -f conftest.
$ac_objext
24614 if { (ac_try
="$ac_compile"
24615 case "(($ac_try" in
24616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24617 *) ac_try_echo=$ac_try;;
24619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24620 (eval "$ac_compile") 2>conftest.er1
24622 grep -v '^ *+' conftest.er1 >conftest.err
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } && {
24627 test -z "$ac_cxx_werror_flag" ||
24628 test ! -s conftest.err
24629 } && test -s conftest.$ac_objext; then
24630 ac_header_compiler=yes
24632 echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24635 ac_header_compiler=no
24638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24640 echo "${ECHO_T}$ac_header_compiler" >&6; }
24642 # Is the header present?
24643 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
24644 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
24645 cat >conftest.$ac_ext <<_ACEOF
24648 cat confdefs.h >>conftest.$ac_ext
24649 cat >>conftest.$ac_ext <<_ACEOF
24650 /* end confdefs.h. */
24651 #include <${OPENH323DIR}/../pwlib/version.h>
24653 if { (ac_try="$ac_cpp conftest.$ac_ext"
24654 case "(($ac_try" in
24655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24656 *) ac_try_echo
=$ac_try;;
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24661 grep -v '^ *+' conftest.er1
>conftest.err
24663 cat conftest.err
>&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } >/dev
/null
&& {
24666 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24667 test ! -s conftest.err
24669 ac_header_preproc
=yes
24671 echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.
$ac_ext >&5
24674 ac_header_preproc
=no
24677 rm -f conftest.err conftest.
$ac_ext
24678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24679 echo "${ECHO_T}$ac_header_preproc" >&6; }
24681 # So? What about this header?
24682 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24684 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
24685 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24686 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
24687 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
24688 ac_header_preproc
=yes
24691 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
24692 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
24693 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
24694 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
24695 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
24696 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
24697 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
24698 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
24699 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
24700 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
24701 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
24702 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
24704 ## ------------------------------- ##
24705 ## Report this to www.asterisk.org ##
24706 ## ------------------------------- ##
24708 ) |
sed "s/^/$as_me: WARNING: /" >&2
24711 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24712 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24713 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24714 echo $ECHO_N "(cached) $ECHO_C" >&6
24716 eval "$as_ac_Header=\$ac_header_preproc"
24718 ac_res
=`eval echo '${'$as_ac_Header'}'`
24719 { echo "$as_me:$LINENO: result: $ac_res" >&5
24720 echo "${ECHO_T}$ac_res" >&6; }
24723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24729 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24730 PWLIBDIR
="${OPENH323DIR}/../pwlib"
24732 as_ac_Header
=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
24733 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24734 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24735 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24736 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24737 echo $ECHO_N "(cached) $ECHO_C" >&6
24739 ac_res
=`eval echo '${'$as_ac_Header'}'`
24740 { echo "$as_me:$LINENO: result: $ac_res" >&5
24741 echo "${ECHO_T}$ac_res" >&6; }
24743 # Is the header compilable?
24744 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
24745 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
24746 cat >conftest.
$ac_ext <<_ACEOF
24749 cat confdefs.h
>>conftest.
$ac_ext
24750 cat >>conftest.
$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24752 $ac_includes_default
24753 #include <${HOME}/pwlib/include/ptlib.h>
24755 rm -f conftest.
$ac_objext
24756 if { (ac_try
="$ac_compile"
24757 case "(($ac_try" in
24758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24759 *) ac_try_echo=$ac_try;;
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762 (eval "$ac_compile") 2>conftest.er1
24764 grep -v '^ *+' conftest.er1 >conftest.err
24766 cat conftest.err >&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); } && {
24769 test -z "$ac_cxx_werror_flag" ||
24770 test ! -s conftest.err
24771 } && test -s conftest.$ac_objext; then
24772 ac_header_compiler=yes
24774 echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24777 ac_header_compiler=no
24780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24782 echo "${ECHO_T}$ac_header_compiler" >&6; }
24784 # Is the header present?
24785 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
24786 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
24787 cat >conftest.$ac_ext <<_ACEOF
24790 cat confdefs.h >>conftest.$ac_ext
24791 cat >>conftest.$ac_ext <<_ACEOF
24792 /* end confdefs.h. */
24793 #include <${HOME}/pwlib/include/ptlib.h>
24795 if { (ac_try="$ac_cpp conftest.$ac_ext"
24796 case "(($ac_try" in
24797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24798 *) ac_try_echo
=$ac_try;;
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24803 grep -v '^ *+' conftest.er1
>conftest.err
24805 cat conftest.err
>&5
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); } >/dev
/null
&& {
24808 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24809 test ! -s conftest.err
24811 ac_header_preproc
=yes
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.
$ac_ext >&5
24816 ac_header_preproc
=no
24819 rm -f conftest.err conftest.
$ac_ext
24820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24821 echo "${ECHO_T}$ac_header_preproc" >&6; }
24823 # So? What about this header?
24824 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24826 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24827 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24828 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
24829 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
24830 ac_header_preproc
=yes
24833 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
24834 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
24835 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
24836 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
24837 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
24838 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
24839 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
24840 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24841 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
24842 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
24843 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
24844 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
24846 ## ------------------------------- ##
24847 ## Report this to www.asterisk.org ##
24848 ## ------------------------------- ##
24850 ) |
sed "s/^/$as_me: WARNING: /" >&2
24853 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24854 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24855 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24856 echo $ECHO_N "(cached) $ECHO_C" >&6
24858 eval "$as_ac_Header=\$ac_header_preproc"
24860 ac_res
=`eval echo '${'$as_ac_Header'}'`
24861 { echo "$as_me:$LINENO: result: $ac_res" >&5
24862 echo "${ECHO_T}$ac_res" >&6; }
24865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24870 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24871 PWLIBDIR
="${HOME}/pwlib"
24873 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
24874 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
24875 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
24876 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
24877 echo $ECHO_N "(cached) $ECHO_C" >&6
24879 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
24880 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
24882 # Is the header compilable?
24883 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
24884 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
24885 cat >conftest.
$ac_ext <<_ACEOF
24888 cat confdefs.h
>>conftest.
$ac_ext
24889 cat >>conftest.
$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24891 $ac_includes_default
24892 #include </usr/local/include/ptlib.h>
24894 rm -f conftest.
$ac_objext
24895 if { (ac_try
="$ac_compile"
24896 case "(($ac_try" in
24897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24898 *) ac_try_echo=$ac_try;;
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901 (eval "$ac_compile") 2>conftest.er1
24903 grep -v '^ *+' conftest.er1 >conftest.err
24905 cat conftest.err >&5
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); } && {
24908 test -z "$ac_cxx_werror_flag" ||
24909 test ! -s conftest.err
24910 } && test -s conftest.$ac_objext; then
24911 ac_header_compiler=yes
24913 echo "$as_me: failed program was:" >&5
24914 sed 's/^/| /' conftest.$ac_ext >&5
24916 ac_header_compiler=no
24919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24921 echo "${ECHO_T}$ac_header_compiler" >&6; }
24923 # Is the header present?
24924 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
24925 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
24926 cat >conftest.$ac_ext <<_ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h. */
24932 #include </usr/local/include/ptlib.h>
24934 if { (ac_try="$ac_cpp conftest.$ac_ext"
24935 case "(($ac_try" in
24936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24937 *) ac_try_echo
=$ac_try;;
24939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24942 grep -v '^ *+' conftest.er1
>conftest.err
24944 cat conftest.err
>&5
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); } >/dev
/null
&& {
24947 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24948 test ! -s conftest.err
24950 ac_header_preproc
=yes
24952 echo "$as_me: failed program was:" >&5
24953 sed 's/^/| /' conftest.
$ac_ext >&5
24955 ac_header_preproc
=no
24958 rm -f conftest.err conftest.
$ac_ext
24959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24960 echo "${ECHO_T}$ac_header_preproc" >&6; }
24962 # So? What about this header?
24963 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24965 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24966 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24967 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
24968 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
24969 ac_header_preproc
=yes
24972 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
24973 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
24974 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
24975 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
24976 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
24977 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
24978 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
24979 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24980 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
24981 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
24982 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
24983 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
24985 ## ------------------------------- ##
24986 ## Report this to www.asterisk.org ##
24987 ## ------------------------------- ##
24989 ) |
sed "s/^/$as_me: WARNING: /" >&2
24992 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
24993 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
24994 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24997 ac_cv_header__usr_local_include_ptlib_h
=$ac_header_preproc
24999 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
25000 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
25003 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
25008 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25009 # Extract the first word of "ptlib-config", so it can be a program name with args.
25010 set dummy ptlib-config
; ac_word
=$2
25011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25013 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25014 echo $ECHO_N "(cached) $ECHO_C" >&6
25016 case $PTLIB_CONFIG in
25018 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
25021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25022 for as_dir
in /usr
/local
/bin
25025 test -z "$as_dir" && as_dir
=.
25026 for ac_exec_ext
in '' $ac_executable_extensions; do
25027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25028 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25039 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
25040 if test -n "$PTLIB_CONFIG"; then
25041 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25042 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25044 { echo "$as_me:$LINENO: result: no" >&5
25045 echo "${ECHO_T}no" >&6; }
25049 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
25050 # Extract the first word of "ptlib-config", so it can be a program name with args.
25051 set dummy ptlib-config
; ac_word
=$2
25052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25054 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25055 echo $ECHO_N "(cached) $ECHO_C" >&6
25057 case $PTLIB_CONFIG in
25059 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
25062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25063 for as_dir
in /usr
/local
/share
/pwlib
/make
25066 test -z "$as_dir" && as_dir
=.
25067 for ac_exec_ext
in '' $ac_executable_extensions; do
25068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25069 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25080 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
25081 if test -n "$PTLIB_CONFIG"; then
25082 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25083 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25085 { echo "$as_me:$LINENO: result: no" >&5
25086 echo "${ECHO_T}no" >&6; }
25091 PWLIB_INCDIR
="/usr/local/include"
25092 PWLIB_LIBDIR
=`${PTLIB_CONFIG} --pwlibdir`
25093 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25094 if test "x$LIB64" != "x"; then
25095 PWLIB_LIBDIR
="/usr/local/lib64"
25097 PWLIB_LIBDIR
="/usr/local/lib"
25100 PWLIB_LIB
=`${PTLIB_CONFIG} --ldflags --libs`
25101 PWLIB_LIB
="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25103 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25104 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25105 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25106 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25107 echo $ECHO_N "(cached) $ECHO_C" >&6
25109 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25110 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25112 # Is the header compilable?
25113 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
25114 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
25115 cat >conftest.
$ac_ext <<_ACEOF
25118 cat confdefs.h
>>conftest.
$ac_ext
25119 cat >>conftest.
$ac_ext <<_ACEOF
25120 /* end confdefs.h. */
25121 $ac_includes_default
25122 #include </usr/include/ptlib.h>
25124 rm -f conftest.
$ac_objext
25125 if { (ac_try
="$ac_compile"
25126 case "(($ac_try" in
25127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25128 *) ac_try_echo=$ac_try;;
25130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25131 (eval "$ac_compile") 2>conftest.er1
25133 grep -v '^ *+' conftest.er1 >conftest.err
25135 cat conftest.err >&5
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); } && {
25138 test -z "$ac_cxx_werror_flag" ||
25139 test ! -s conftest.err
25140 } && test -s conftest.$ac_objext; then
25141 ac_header_compiler=yes
25143 echo "$as_me: failed program was:" >&5
25144 sed 's/^/| /' conftest.$ac_ext >&5
25146 ac_header_compiler=no
25149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25151 echo "${ECHO_T}$ac_header_compiler" >&6; }
25153 # Is the header present?
25154 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
25155 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
25156 cat >conftest.$ac_ext <<_ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h. */
25162 #include </usr/include/ptlib.h>
25164 if { (ac_try="$ac_cpp conftest.$ac_ext"
25165 case "(($ac_try" in
25166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25167 *) ac_try_echo
=$ac_try;;
25169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25172 grep -v '^ *+' conftest.er1
>conftest.err
25174 cat conftest.err
>&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); } >/dev
/null
&& {
25177 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25178 test ! -s conftest.err
25180 ac_header_preproc
=yes
25182 echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.
$ac_ext >&5
25185 ac_header_preproc
=no
25188 rm -f conftest.err conftest.
$ac_ext
25189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25190 echo "${ECHO_T}$ac_header_preproc" >&6; }
25192 # So? What about this header?
25193 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25195 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25196 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25197 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
25198 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
25199 ac_header_preproc
=yes
25202 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
25203 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
25204 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
25205 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25206 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
25207 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
25208 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25209 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25210 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
25211 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25212 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
25213 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25215 ## ------------------------------- ##
25216 ## Report this to www.asterisk.org ##
25217 ## ------------------------------- ##
25219 ) |
sed "s/^/$as_me: WARNING: /" >&2
25222 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25223 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25224 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25225 echo $ECHO_N "(cached) $ECHO_C" >&6
25227 ac_cv_header__usr_include_ptlib_h
=$ac_header_preproc
25229 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25230 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25233 if test $ac_cv_header__usr_include_ptlib_h = yes; then
25238 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25239 # Extract the first word of "ptlib-config", so it can be a program name with args.
25240 set dummy ptlib-config
; ac_word
=$2
25241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25243 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25244 echo $ECHO_N "(cached) $ECHO_C" >&6
25246 case $PTLIB_CONFIG in
25248 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
25251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25252 for as_dir
in /usr
/share
/pwlib
/make
25255 test -z "$as_dir" && as_dir
=.
25256 for ac_exec_ext
in '' $ac_executable_extensions; do
25257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25258 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25269 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
25270 if test -n "$PTLIB_CONFIG"; then
25271 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25272 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25274 { echo "$as_me:$LINENO: result: no" >&5
25275 echo "${ECHO_T}no" >&6; }
25279 PWLIB_INCDIR
="/usr/include"
25280 PWLIB_LIBDIR
=`${PTLIB_CONFIG} --pwlibdir`
25281 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25282 if test "x$LIB64" != "x"; then
25283 PWLIB_LIBDIR
="/usr/lib64"
25285 PWLIB_LIBDIR
="/usr/lib"
25288 PWLIB_LIB
=`${PTLIB_CONFIG} --ldflags --libs`
25289 PWLIB_LIB
="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25296 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
25297 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
25301 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25302 if test "${PWLIBDIR:-unset}" = "unset" ; then
25303 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
25304 PWLIBDIR
=`$PTLIB_CONFIG --prefix`
25306 echo "Cannot find ptlib-config - please install and try again"
25311 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
25312 PWLIBDIR
="/usr/share/pwlib"
25313 PWLIB_INCDIR
="/usr/include"
25314 if test "x$LIB64" != "x"; then
25315 PWLIB_LIBDIR
="/usr/lib64"
25317 PWLIB_LIBDIR
="/usr/lib"
25320 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
25321 PWLIBDIR
="/usr/local/share/pwlib"
25322 PWLIB_INCDIR
="/usr/local/include"
25323 if test "x$LIB64" != "x"; then
25324 PWLIB_LIBDIR
="/usr/local/lib64"
25326 PWLIB_LIBDIR
="/usr/local/lib"
25330 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
25331 PWLIB_INCDIR
="${PWLIBDIR}/include"
25333 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25334 PWLIB_LIBDIR
="${PWLIBDIR}/lib"
25342 ac_cpp
='$CPP $CPPFLAGS'
25343 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25344 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25345 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
25349 if test "${HAS_PWLIB:-unset}" != "unset"; then
25350 PWLIB_VERSION
=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
25351 PWLIB_MAJOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f1 -d.`
25352 PWLIB_MINOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f2 -d.`
25353 PWLIB_BUILD_NUMBER
=`echo ${PWLIB_VERSION} | cut -f3 -d.`
25354 let PWLIB_VER
=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
25355 let PWLIB_REQ
=1*10000+9*100+2
25357 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
25358 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
25359 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
25360 { echo "$as_me:$LINENO: result: no" >&5
25361 echo "${ECHO_T}no" >&6; }
25364 { echo "$as_me:$LINENO: result: yes" >&5
25365 echo "${ECHO_T}yes" >&6; }
25370 if test "${HAS_PWLIB:-unset}" != "unset"; then
25374 linux
*) PWLIB_OSTYPE
=linux
;
25376 freebsd
* ) PWLIB_OSTYPE
=FreeBSD
;
25378 openbsd
* ) PWLIB_OSTYPE
=OpenBSD
;
25379 ENDLDLIBS
="-lossaudio" ;
25381 netbsd
* ) PWLIB_OSTYPE
=NetBSD
;
25382 ENDLDLIBS
="-lossaudio" ;
25384 solaris
* | sunos
* ) PWLIB_OSTYPE
=solaris
;
25386 darwin
* ) PWLIB_OSTYPE
=Darwin
;
25388 beos
*) PWLIB_OSTYPE
=beos
;
25389 STDCCFLAGS
="$STDCCFLAGS -D__BEOS__"
25391 cygwin
*) PWLIB_OSTYPE
=cygwin
;
25393 mingw
*) PWLIB_OSTYPE
=mingw
;
25394 STDCCFLAGS
="$STDCCFLAGS -mms-bitfields" ;
25395 ENDLDLIBS
="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
25397 * ) PWLIB_OSTYPE
="$host_os" ;
25398 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
25399 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
25404 case "$host_cpu" in
25405 x86 | i686 | i586 | i486 | i386
) PWLIB_MACHTYPE
=x86
25408 x86_64
) PWLIB_MACHTYPE
=x86_64
;
25413 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7
) PWLIB_MACHTYPE
=alpha
;
25417 sparc
) PWLIB_MACHTYPE
=sparc
;
25420 powerpc
) PWLIB_MACHTYPE
=ppc
;
25423 ppc
) PWLIB_MACHTYPE
=ppc
;
25426 powerpc64
) PWLIB_MACHTYPE
=ppc64
;
25431 ppc64
) PWLIB_MACHTYPE
=ppc64
;
25436 ia64
) PWLIB_MACHTYPE
=ia64
;
25440 s390x
) PWLIB_MACHTYPE
=s390x
;
25445 s390
) PWLIB_MACHTYPE
=s390
;
25448 * ) PWLIB_MACHTYPE
="$host_cpu";
25449 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
25450 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
25453 PWLIB_PLATFORM
="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
25458 PLATFORM_PWLIB
="pt_${PWLIB_PLATFORM}_r"
25461 if test "${HAS_PWLIB:-unset}" != "unset"; then
25462 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
25463 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
25465 saved_cppflags
="${CPPFLAGS}"
25466 saved_libs
="${LIBS}"
25467 if test "${PWLIB_LIB:-unset}" != "unset"; then
25468 LIBS
="${LIBS} ${PWLIB_LIB} "
25470 LIBS
="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
25472 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_INCDIR} "
25475 ac_cpp
='$CXXCPP $CPPFLAGS'
25476 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25477 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25478 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
25481 cat >conftest.
$ac_ext <<_ACEOF
25484 cat confdefs.h
>>conftest.
$ac_ext
25485 cat >>conftest.
$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25491 BOOL q = PTime::IsDaylightSavings();
25496 rm -f conftest.
$ac_objext conftest
$ac_exeext
25497 if { (ac_try
="$ac_link"
25498 case "(($ac_try" in
25499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25500 *) ac_try_echo=$ac_try;;
25502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25503 (eval "$ac_link") 2>conftest.er1
25505 grep -v '^ *+' conftest.er1 >conftest.err
25507 cat conftest.err >&5
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); } && {
25510 test -z "$ac_cxx_werror_flag" ||
25511 test ! -s conftest.err
25512 } && test -s conftest$ac_exeext &&
25513 $as_test_x conftest$ac_exeext; then
25514 { echo "$as_me:$LINENO: result: yes" >&5
25515 echo "${ECHO_T}yes" >&6; }
25516 ac_cv_lib_PWLIB="yes"
25519 echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25522 { echo "$as_me:$LINENO: result: no" >&5
25523 echo "${ECHO_T}no" >&6; }
25524 ac_cv_lib_PWLIB="no"
25529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25530 conftest$ac_exeext conftest.$ac_ext
25533 ac_cpp='$CPP $CPPFLAGS'
25534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25539 LIBS="${saved_libs}"
25540 CPPFLAGS="${saved_cppflags}"
25542 if test "${ac_cv_lib_PWLIB}" = "yes"; then
25543 if test "${PWLIB_LIB:-undef}" = "undef"; then
25544 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
25545 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
25547 PWLIB_LIB="-l${PLATFORM_PWLIB}"
25550 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
25551 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
25555 cat >>confdefs.h <<\_ACEOF
25556 #define HAVE_PWLIB 1
25565 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
25566 { echo "$as_me:$LINENO: ***" >&5
25567 echo "$as_me: ***" >&6;}
25568 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
25569 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
25570 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25571 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25572 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
25573 echo "$as_me: *** including --without-pwlib" >&6;}
25577 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
25578 if test -n "${OPENH323_DIR}"; then
25579 OPENH323DIR="${OPENH323_DIR}"
25585 ac_cpp='$CXXCPP $CPPFLAGS'
25586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25590 if test "${OPENH323DIR:-unset}" != "unset" ; then
25591 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" |
$as_tr_sh`
25592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25593 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
25594 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
25595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25596 echo $ECHO_N "(cached) $ECHO_C" >&6
25598 ac_res=`eval echo '${'$as_ac_Header'}'`
25599 { echo "$as_me:$LINENO: result: $ac_res" >&5
25600 echo "${ECHO_T}$ac_res" >&6; }
25602 # Is the header compilable?
25603 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
25604 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
25605 cat >conftest.$ac_ext <<_ACEOF
25608 cat confdefs.h >>conftest.$ac_ext
25609 cat >>conftest.$ac_ext <<_ACEOF
25610 /* end confdefs.h. */
25611 $ac_includes_default
25612 #include <${OPENH323DIR}/version.h>
25614 rm -f conftest.$ac_objext
25615 if { (ac_try="$ac_compile"
25616 case "(($ac_try" in
25617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25618 *) ac_try_echo
=$ac_try;;
25620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25621 (eval "$ac_compile") 2>conftest.er1
25623 grep -v '^ *+' conftest.er1
>conftest.err
25625 cat conftest.err
>&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); } && {
25628 test -z "$ac_cxx_werror_flag" ||
25629 test ! -s conftest.err
25630 } && test -s conftest.
$ac_objext; then
25631 ac_header_compiler
=yes
25633 echo "$as_me: failed program was:" >&5
25634 sed 's/^/| /' conftest.
$ac_ext >&5
25636 ac_header_compiler
=no
25639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25641 echo "${ECHO_T}$ac_header_compiler" >&6; }
25643 # Is the header present?
25644 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
25645 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
25646 cat >conftest.
$ac_ext <<_ACEOF
25649 cat confdefs.h
>>conftest.
$ac_ext
25650 cat >>conftest.
$ac_ext <<_ACEOF
25651 /* end confdefs.h. */
25652 #include <${OPENH323DIR}/version.h>
25654 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25655 case "(($ac_try" in
25656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25657 *) ac_try_echo=$ac_try;;
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25662 grep -v '^ *+' conftest.er1 >conftest.err
25664 cat conftest.err >&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); } >/dev/null && {
25667 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25668 test ! -s conftest.err
25670 ac_header_preproc=yes
25672 echo "$as_me: failed program was:" >&5
25673 sed 's/^/| /' conftest.$ac_ext >&5
25675 ac_header_preproc=no
25678 rm -f conftest.err conftest.$ac_ext
25679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25680 echo "${ECHO_T}$ac_header_preproc" >&6; }
25682 # So? What about this header?
25683 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25685 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
25686 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25687 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
25688 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
25689 ac_header_preproc=yes
25692 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
25693 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
25694 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
25695 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
25696 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
25697 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
25698 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
25699 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
25700 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
25701 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
25702 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
25703 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
25705 ## ------------------------------- ##
25706 ## Report this to www.asterisk.org ##
25707 ## ------------------------------- ##
25709 ) | sed "s/^/$as_me: WARNING: /" >&2
25712 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
25713 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
25714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25715 echo $ECHO_N "(cached) $ECHO_C" >&6
25717 eval "$as_ac_Header=\$ac_header_preproc"
25719 ac_res=`eval echo '${'$as_ac_Header'}'`
25720 { echo "$as_me:$LINENO: result: $ac_res" >&5
25721 echo "${ECHO_T}$ac_res" >&6; }
25724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25730 if test "${HAS_OPENH323:-unset}" = "unset" ; then
25731 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" |
$as_tr_sh`
25732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25733 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
25734 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
25735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25736 echo $ECHO_N "(cached) $ECHO_C" >&6
25738 ac_res=`eval echo '${'$as_ac_Header'}'`
25739 { echo "$as_me:$LINENO: result: $ac_res" >&5
25740 echo "${ECHO_T}$ac_res" >&6; }
25742 # Is the header compilable?
25743 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
25744 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
25745 cat >conftest.$ac_ext <<_ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h. */
25751 $ac_includes_default
25752 #include <${PWLIBDIR}/../openh323/version.h>
25754 rm -f conftest.$ac_objext
25755 if { (ac_try="$ac_compile"
25756 case "(($ac_try" in
25757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25758 *) ac_try_echo
=$ac_try;;
25760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25761 (eval "$ac_compile") 2>conftest.er1
25763 grep -v '^ *+' conftest.er1
>conftest.err
25765 cat conftest.err
>&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); } && {
25768 test -z "$ac_cxx_werror_flag" ||
25769 test ! -s conftest.err
25770 } && test -s conftest.
$ac_objext; then
25771 ac_header_compiler
=yes
25773 echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.
$ac_ext >&5
25776 ac_header_compiler
=no
25779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25781 echo "${ECHO_T}$ac_header_compiler" >&6; }
25783 # Is the header present?
25784 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
25785 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
25786 cat >conftest.
$ac_ext <<_ACEOF
25789 cat confdefs.h
>>conftest.
$ac_ext
25790 cat >>conftest.
$ac_ext <<_ACEOF
25791 /* end confdefs.h. */
25792 #include <${PWLIBDIR}/../openh323/version.h>
25794 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25795 case "(($ac_try" in
25796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25797 *) ac_try_echo=$ac_try;;
25799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25802 grep -v '^ *+' conftest.er1 >conftest.err
25804 cat conftest.err >&5
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); } >/dev/null && {
25807 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25808 test ! -s conftest.err
25810 ac_header_preproc=yes
25812 echo "$as_me: failed program was:" >&5
25813 sed 's/^/| /' conftest.$ac_ext >&5
25815 ac_header_preproc=no
25818 rm -f conftest.err conftest.$ac_ext
25819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25820 echo "${ECHO_T}$ac_header_preproc" >&6; }
25822 # So? What about this header?
25823 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25825 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
25826 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25827 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
25828 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
25829 ac_header_preproc=yes
25832 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
25833 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
25834 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
25835 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
25836 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
25837 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
25838 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
25839 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
25840 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
25841 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
25842 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
25843 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
25845 ## ------------------------------- ##
25846 ## Report this to www.asterisk.org ##
25847 ## ------------------------------- ##
25849 ) | sed "s/^/$as_me: WARNING: /" >&2
25852 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
25853 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
25854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25855 echo $ECHO_N "(cached) $ECHO_C" >&6
25857 eval "$as_ac_Header=\$ac_header_preproc"
25859 ac_res=`eval echo '${'$as_ac_Header'}'`
25860 { echo "$as_me:$LINENO: result: $ac_res" >&5
25861 echo "${ECHO_T}$ac_res" >&6; }
25864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25865 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
25869 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25870 OPENH323DIR="${PWLIBDIR}/../openh323"
25871 saved_cppflags="${CPPFLAGS}"
25872 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
25873 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" |
$as_tr_sh`
25874 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
25875 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
25876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25877 echo $ECHO_N "(cached) $ECHO_C" >&6
25879 cat >conftest.$ac_ext <<_ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h. */
25887 #include <${OPENH323DIR}/include/h323.h>
25889 rm -f conftest.$ac_objext
25890 if { (ac_try="$ac_compile"
25891 case "(($ac_try" in
25892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25893 *) ac_try_echo
=$ac_try;;
25895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25896 (eval "$ac_compile") 2>conftest.er1
25898 grep -v '^ *+' conftest.er1
>conftest.err
25900 cat conftest.err
>&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } && {
25903 test -z "$ac_cxx_werror_flag" ||
25904 test ! -s conftest.err
25905 } && test -s conftest.
$ac_objext; then
25906 eval "$as_ac_Header=yes"
25908 echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.
$ac_ext >&5
25911 eval "$as_ac_Header=no"
25914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25916 ac_res
=`eval echo '${'$as_ac_Header'}'`
25917 { echo "$as_me:$LINENO: result: $ac_res" >&5
25918 echo "${ECHO_T}$ac_res" >&6; }
25919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25922 OPENH323_INCDIR
="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR
="${PWLIB_LIBDIR}"
25926 CPPFLAGS
="${saved_cppflags}"
25928 saved_cppflags
="${CPPFLAGS}"
25929 CPPFLAGS
="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
25930 as_ac_Header
=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
25931 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25932 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
25933 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
25934 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25935 echo $ECHO_N "(cached) $ECHO_C" >&6
25937 ac_res
=`eval echo '${'$as_ac_Header'}'`
25938 { echo "$as_me:$LINENO: result: $ac_res" >&5
25939 echo "${ECHO_T}$ac_res" >&6; }
25941 # Is the header compilable?
25942 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
25943 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
25944 cat >conftest.
$ac_ext <<_ACEOF
25947 cat confdefs.h
>>conftest.
$ac_ext
25948 cat >>conftest.
$ac_ext <<_ACEOF
25949 /* end confdefs.h. */
25950 $ac_includes_default
25951 #include <${HOME}/openh323/include/h323.h>
25953 rm -f conftest.
$ac_objext
25954 if { (ac_try
="$ac_compile"
25955 case "(($ac_try" in
25956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25957 *) ac_try_echo=$ac_try;;
25959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25960 (eval "$ac_compile") 2>conftest.er1
25962 grep -v '^ *+' conftest.er1 >conftest.err
25964 cat conftest.err >&5
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); } && {
25967 test -z "$ac_cxx_werror_flag" ||
25968 test ! -s conftest.err
25969 } && test -s conftest.$ac_objext; then
25970 ac_header_compiler=yes
25972 echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25975 ac_header_compiler=no
25978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25980 echo "${ECHO_T}$ac_header_compiler" >&6; }
25982 # Is the header present?
25983 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
25984 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
25985 cat >conftest.$ac_ext <<_ACEOF
25988 cat confdefs.h >>conftest.$ac_ext
25989 cat >>conftest.$ac_ext <<_ACEOF
25990 /* end confdefs.h. */
25991 #include <${HOME}/openh323/include/h323.h>
25993 if { (ac_try="$ac_cpp conftest.$ac_ext"
25994 case "(($ac_try" in
25995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25996 *) ac_try_echo
=$ac_try;;
25998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26001 grep -v '^ *+' conftest.er1
>conftest.err
26003 cat conftest.err
>&5
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); } >/dev
/null
&& {
26006 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26007 test ! -s conftest.err
26009 ac_header_preproc
=yes
26011 echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.
$ac_ext >&5
26014 ac_header_preproc
=no
26017 rm -f conftest.err conftest.
$ac_ext
26018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26019 echo "${ECHO_T}$ac_header_preproc" >&6; }
26021 # So? What about this header?
26022 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26024 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26025 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26026 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
26027 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
26028 ac_header_preproc
=yes
26031 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
26032 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
26033 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
26034 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
26035 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
26036 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
26037 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26038 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26039 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
26040 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
26041 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
26042 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
26044 ## ------------------------------- ##
26045 ## Report this to www.asterisk.org ##
26046 ## ------------------------------- ##
26048 ) |
sed "s/^/$as_me: WARNING: /" >&2
26051 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
26052 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
26053 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26054 echo $ECHO_N "(cached) $ECHO_C" >&6
26056 eval "$as_ac_Header=\$ac_header_preproc"
26058 ac_res
=`eval echo '${'$as_ac_Header'}'`
26059 { echo "$as_me:$LINENO: result: $ac_res" >&5
26060 echo "${ECHO_T}$ac_res" >&6; }
26063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26068 CPPFLAGS
="${saved_cppflags}"
26069 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26070 OPENH323DIR
="${HOME}/openh323"
26072 saved_cppflags
="${CPPFLAGS}"
26073 CPPFLAGS
="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
26074 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26075 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26076 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26077 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26078 echo $ECHO_N "(cached) $ECHO_C" >&6
26080 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26081 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26083 # Is the header compilable?
26084 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
26085 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
26086 cat >conftest.
$ac_ext <<_ACEOF
26089 cat confdefs.h
>>conftest.
$ac_ext
26090 cat >>conftest.
$ac_ext <<_ACEOF
26091 /* end confdefs.h. */
26092 $ac_includes_default
26093 #include </usr/local/include/openh323/h323.h>
26095 rm -f conftest.
$ac_objext
26096 if { (ac_try
="$ac_compile"
26097 case "(($ac_try" in
26098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26099 *) ac_try_echo=$ac_try;;
26101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26102 (eval "$ac_compile") 2>conftest.er1
26104 grep -v '^ *+' conftest.er1 >conftest.err
26106 cat conftest.err >&5
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } && {
26109 test -z "$ac_cxx_werror_flag" ||
26110 test ! -s conftest.err
26111 } && test -s conftest.$ac_objext; then
26112 ac_header_compiler=yes
26114 echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26117 ac_header_compiler=no
26120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26122 echo "${ECHO_T}$ac_header_compiler" >&6; }
26124 # Is the header present?
26125 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
26126 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
26127 cat >conftest.$ac_ext <<_ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h. */
26133 #include </usr/local/include/openh323/h323.h>
26135 if { (ac_try="$ac_cpp conftest.$ac_ext"
26136 case "(($ac_try" in
26137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26138 *) ac_try_echo
=$ac_try;;
26140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26143 grep -v '^ *+' conftest.er1
>conftest.err
26145 cat conftest.err
>&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); } >/dev
/null
&& {
26148 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26149 test ! -s conftest.err
26151 ac_header_preproc
=yes
26153 echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.
$ac_ext >&5
26156 ac_header_preproc
=no
26159 rm -f conftest.err conftest.
$ac_ext
26160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26161 echo "${ECHO_T}$ac_header_preproc" >&6; }
26163 # So? What about this header?
26164 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26166 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26167 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26168 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
26169 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
26170 ac_header_preproc
=yes
26173 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
26174 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
26175 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
26176 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
26177 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
26178 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
26179 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26180 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26181 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
26182 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
26183 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
26184 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
26186 ## ------------------------------- ##
26187 ## Report this to www.asterisk.org ##
26188 ## ------------------------------- ##
26190 ) |
sed "s/^/$as_me: WARNING: /" >&2
26193 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26194 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26195 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26196 echo $ECHO_N "(cached) $ECHO_C" >&6
26198 ac_cv_header__usr_local_include_openh323_h323_h
=$ac_header_preproc
26200 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26201 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26204 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
26209 CPPFLAGS
="${saved_cppflags}"
26210 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26211 OPENH323DIR
="/usr/local/share/openh323"
26212 OPENH323_INCDIR
="/usr/local/include/openh323"
26213 if test "x$LIB64" != "x"; then
26214 OPENH323_LIBDIR
="/usr/local/lib64"
26216 OPENH323_LIBDIR
="/usr/local/lib"
26219 saved_cppflags
="${CPPFLAGS}"
26220 CPPFLAGS
="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
26221 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
26222 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
26223 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
26224 echo $ECHO_N "(cached) $ECHO_C" >&6
26226 cat >conftest.
$ac_ext <<_ACEOF
26229 cat confdefs.h
>>conftest.
$ac_ext
26230 cat >>conftest.
$ac_ext <<_ACEOF
26231 /* end confdefs.h. */
26234 #include </usr/include/openh323/h323.h>
26236 rm -f conftest.
$ac_objext
26237 if { (ac_try
="$ac_compile"
26238 case "(($ac_try" in
26239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26240 *) ac_try_echo=$ac_try;;
26242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26243 (eval "$ac_compile") 2>conftest.er1
26245 grep -v '^ *+' conftest.er1 >conftest.err
26247 cat conftest.err >&5
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); } && {
26250 test -z "$ac_cxx_werror_flag" ||
26251 test ! -s conftest.err
26252 } && test -s conftest.$ac_objext; then
26253 ac_cv_header__usr_include_openh323_h323_h=yes
26255 echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26258 ac_cv_header__usr_include_openh323_h323_h=no
26261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26263 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
26264 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
26265 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
26270 CPPFLAGS="${saved_cppflags}"
26271 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26272 OPENH323DIR="/usr/share/openh323"
26273 OPENH323_INCDIR="/usr/include/openh323"
26274 if test "x$LIB64" != "x"; then
26275 OPENH323_LIBDIR="/usr/lib64"
26277 OPENH323_LIBDIR="/usr/lib"
26285 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26286 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
26287 OPENH323_INCDIR="${OPENH323DIR}/include"
26289 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
26290 OPENH323_LIBDIR="${OPENH323DIR}/lib"
26293 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
26294 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
26295 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
26302 ac_cpp='$CPP $CPPFLAGS'
26303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26309 if test "${HAS_OPENH323:-unset}" != "unset"; then
26310 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h |
sed -e 's/[[:space:]]\{1,\}/ /g' | cut
-f3 -d ' ' |
sed -e 's/"//g'`
26311 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f1 -d.
`
26312 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f2 -d.
`
26313 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut
-f3 -d.
`
26314 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
26315 let OPENH323_REQ=1*10000+17*100+3
26317 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
26318 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
26319 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
26320 { echo "$as_me:$LINENO: result: no" >&5
26321 echo "${ECHO_T}no" >&6; }
26324 { echo "$as_me:$LINENO: result: yes" >&5
26325 echo "${ECHO_T}yes" >&6; }
26330 if test "${HAS_OPENH323:-unset}" != "unset"; then
26331 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
26332 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
26334 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
26335 for pfx in $prefixes; do
26336 files=`ls -l ${OPENH323_LIBDIR}/lib
${pfx}*.so
* 2>/dev
/null
`
26338 if test -n "$files"; then
26339 for f in $files; do
26340 if test -f $f -a ! -L $f; then
26341 libfile=`basename $f`
26346 if test -n "$libfile"; then
26347 OPENH323_PREFIX=$pfx
26351 if test "${libfile:-unset}" != "unset"; then
26352 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
26354 case "${OPENH323_SUFFIX}" in
26356 OPENH323_BUILD="notrace";;
26358 OPENH323_BUILD="opt";;
26360 OPENH323_BUILD="debug";;
26362 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
26363 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
26364 if test "x$notrace" = "x"; then
26367 if test "$notrace" -ne 0; then
26368 OPENH323_BUILD="notrace"
26370 OPENH323_BUILD="opt"
26372 OPENH323_LIB="-l${OPENH323_PREFIX}"
26374 OPENH323_BUILD="notrace"
26378 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
26379 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
26385 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
26387 if test "${HAS_OPENH323:-unset}" != "unset"; then
26388 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
26389 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
26391 saved_cppflags="${CPPFLAGS}"
26392 saved_libs="${LIBS}"
26393 if test "${OPENH323_LIB:-unset}" != "unset"; then
26394 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
26396 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
26398 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
26401 ac_cpp='$CXXCPP $CPPFLAGS'
26402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26407 cat >conftest.$ac_ext <<_ACEOF
26410 cat confdefs.h >>conftest.$ac_ext
26411 cat >>conftest.$ac_ext <<_ACEOF
26412 /* end confdefs.h. */
26415 #include "h323ep.h"
26419 H323EndPoint ep = H323EndPoint();
26424 rm -f conftest.$ac_objext conftest$ac_exeext
26425 if { (ac_try="$ac_link"
26426 case "(($ac_try" in
26427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26428 *) ac_try_echo
=$ac_try;;
26430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26431 (eval "$ac_link") 2>conftest.er1
26433 grep -v '^ *+' conftest.er1
>conftest.err
26435 cat conftest.err
>&5
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); } && {
26438 test -z "$ac_cxx_werror_flag" ||
26439 test ! -s conftest.err
26440 } && test -s conftest
$ac_exeext &&
26441 $as_test_x conftest
$ac_exeext; then
26442 { echo "$as_me:$LINENO: result: yes" >&5
26443 echo "${ECHO_T}yes" >&6; }
26444 ac_cv_lib_OPENH323
="yes"
26447 echo "$as_me: failed program was:" >&5
26448 sed 's/^/| /' conftest.
$ac_ext >&5
26450 { echo "$as_me:$LINENO: result: no" >&5
26451 echo "${ECHO_T}no" >&6; }
26452 ac_cv_lib_OPENH323
="no"
26457 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26458 conftest
$ac_exeext conftest.
$ac_ext
26461 ac_cpp
='$CPP $CPPFLAGS'
26462 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26463 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26464 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26467 LIBS
="${saved_libs}"
26468 CPPFLAGS
="${saved_cppflags}"
26470 if test "${ac_cv_lib_OPENH323}" = "yes"; then
26471 if test "${OPENH323_LIB:-undef}" = "undef"; then
26472 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
26473 OPENH323_LIB
="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
26475 OPENH323_LIB
="-l${PLATFORM_OPENH323}"
26478 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
26479 OPENH323_INCLUDE
="-I${OPENH323_INCDIR}"
26483 cat >>confdefs.h
<<\_ACEOF
26484 #define HAVE_OPENH323 1
26491 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
26492 { echo "$as_me:$LINENO: ***" >&5
26493 echo "$as_me: ***" >&6;}
26494 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
26495 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
26496 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26497 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26498 { echo "$as_me:$LINENO: *** including --without-h323" >&5
26499 echo "$as_me: *** including --without-h323" >&6;}
26504 if test "${USE_RADIUS}" != "no"; then
26506 if test "x${RADIUS_DIR}" != "x"; then
26507 if test -d ${RADIUS_DIR}/lib
; then
26508 pbxlibdir
="-L${RADIUS_DIR}/lib"
26510 pbxlibdir
="-L${RADIUS_DIR}"
26513 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
26514 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
26515 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
26516 echo $ECHO_N "(cached) $ECHO_C" >&6
26518 ac_check_lib_save_LIBS
=$LIBS
26519 LIBS
="-lradiusclient-ng ${pbxlibdir} $LIBS"
26520 cat >conftest.
$ac_ext <<_ACEOF
26523 cat confdefs.h
>>conftest.
$ac_ext
26524 cat >>conftest.
$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26527 /* Override any GCC internal prototype to avoid an error.
26528 Use char because int might match the return type of a GCC
26529 builtin and then its argument prototype would still apply. */
26533 char rc_read_config ();
26537 return rc_read_config ();
26542 rm -f conftest.
$ac_objext conftest
$ac_exeext
26543 if { (ac_try
="$ac_link"
26544 case "(($ac_try" in
26545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26546 *) ac_try_echo=$ac_try;;
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549 (eval "$ac_link") 2>conftest.er1
26551 grep -v '^ *+' conftest.er1 >conftest.err
26553 cat conftest.err >&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } && {
26556 test -z "$ac_c_werror_flag" ||
26557 test ! -s conftest.err
26558 } && test -s conftest$ac_exeext &&
26559 $as_test_x conftest$ac_exeext; then
26560 ac_cv_lib_radiusclient_ng_rc_read_config=yes
26562 echo "$as_me: failed program was:" >&5
26563 sed 's/^/| /' conftest.$ac_ext >&5
26565 ac_cv_lib_radiusclient_ng_rc_read_config=no
26568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26569 conftest$ac_exeext conftest.$ac_ext
26570 LIBS=$ac_check_lib_save_LIBS
26572 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
26573 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
26574 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
26575 AST_RADIUS_FOUND=yes
26577 AST_RADIUS_FOUND=no
26581 if test "${AST_RADIUS_FOUND}" = "yes"; then
26582 RADIUS_LIB="-lradiusclient-ng "
26583 RADIUS_HEADER_FOUND="1"
26584 if test "x${RADIUS_DIR}" != "x"; then
26585 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
26586 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
26588 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
26589 saved_cppflags="${CPPFLAGS}"
26590 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
26591 if test "xradiusclient-ng.h" != "x" ; then
26592 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
26593 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
26594 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
26595 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
26596 echo $ECHO_N "(cached) $ECHO_C" >&6
26598 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
26599 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
26601 # Is the header compilable?
26602 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
26603 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
26604 cat >conftest.$ac_ext <<_ACEOF
26607 cat confdefs.h >>conftest.$ac_ext
26608 cat >>conftest.$ac_ext <<_ACEOF
26609 /* end confdefs.h. */
26610 $ac_includes_default
26611 #include <radiusclient-ng.h>
26613 rm -f conftest.$ac_objext
26614 if { (ac_try="$ac_compile"
26615 case "(($ac_try" in
26616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26617 *) ac_try_echo
=$ac_try;;
26619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26620 (eval "$ac_compile") 2>conftest.er1
26622 grep -v '^ *+' conftest.er1
>conftest.err
26624 cat conftest.err
>&5
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); } && {
26627 test -z "$ac_c_werror_flag" ||
26628 test ! -s conftest.err
26629 } && test -s conftest.
$ac_objext; then
26630 ac_header_compiler
=yes
26632 echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.
$ac_ext >&5
26635 ac_header_compiler
=no
26638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26640 echo "${ECHO_T}$ac_header_compiler" >&6; }
26642 # Is the header present?
26643 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
26644 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
26645 cat >conftest.
$ac_ext <<_ACEOF
26648 cat confdefs.h
>>conftest.
$ac_ext
26649 cat >>conftest.
$ac_ext <<_ACEOF
26650 /* end confdefs.h. */
26651 #include <radiusclient-ng.h>
26653 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26654 case "(($ac_try" in
26655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26656 *) ac_try_echo=$ac_try;;
26658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26661 grep -v '^ *+' conftest.er1 >conftest.err
26663 cat conftest.err >&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); } >/dev/null && {
26666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26667 test ! -s conftest.err
26669 ac_header_preproc=yes
26671 echo "$as_me: failed program was:" >&5
26672 sed 's/^/| /' conftest.$ac_ext >&5
26674 ac_header_preproc=no
26677 rm -f conftest.err conftest.$ac_ext
26678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26679 echo "${ECHO_T}$ac_header_preproc" >&6; }
26681 # So? What about this header?
26682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26684 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
26685 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26686 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
26687 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
26688 ac_header_preproc=yes
26691 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
26692 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
26693 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
26694 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
26695 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
26696 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
26697 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
26698 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
26699 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
26700 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
26701 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
26702 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
26704 ## ------------------------------- ##
26705 ## Report this to www.asterisk.org ##
26706 ## ------------------------------- ##
26708 ) | sed "s/^/$as_me: WARNING: /" >&2
26711 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
26712 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
26713 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
26714 echo $ECHO_N "(cached) $ECHO_C" >&6
26716 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
26718 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
26719 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
26722 if test $ac_cv_header_radiusclient_ng_h = yes; then
26723 RADIUS_HEADER_FOUND=1
26725 RADIUS_HEADER_FOUND=0
26730 CPPFLAGS="${saved_cppflags}"
26731 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
26732 if test -n "${RADIUS_MANDATORY}" ;
26734 { echo "$as_me:$LINENO: ***" >&5
26735 echo "$as_me: ***" >&6;}
26736 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
26737 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
26738 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
26739 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
26740 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
26741 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
26750 cat >>confdefs.h <<_ACEOF
26751 #define HAVE_RADIUS 1
26755 elif test -n "${RADIUS_MANDATORY}";
26757 { echo "$as_me:$LINENO: ***" >&5
26758 echo "$as_me: ***" >&6;}
26759 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
26760 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
26761 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26762 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26763 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
26764 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
26771 if test "${USE_SPEEX}" != "no"; then
26773 if test "x${SPEEX_DIR}" != "x"; then
26774 if test -d ${SPEEX_DIR}/lib; then
26775 pbxlibdir="-L${SPEEX_DIR}/lib"
26777 pbxlibdir="-L${SPEEX_DIR}"
26780 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
26781 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
26782 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
26783 echo $ECHO_N "(cached) $ECHO_C" >&6
26785 ac_check_lib_save_LIBS=$LIBS
26786 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
26787 cat >conftest.$ac_ext <<_ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26794 /* Override any GCC internal prototype to avoid an error.
26795 Use char because int might match the return type of a GCC
26796 builtin and then its argument prototype would still apply. */
26800 char speex_encode ();
26804 return speex_encode ();
26809 rm -f conftest.$ac_objext conftest$ac_exeext
26810 if { (ac_try="$ac_link"
26811 case "(($ac_try" in
26812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26813 *) ac_try_echo
=$ac_try;;
26815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26816 (eval "$ac_link") 2>conftest.er1
26818 grep -v '^ *+' conftest.er1
>conftest.err
26820 cat conftest.err
>&5
26821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); } && {
26823 test -z "$ac_c_werror_flag" ||
26824 test ! -s conftest.err
26825 } && test -s conftest
$ac_exeext &&
26826 $as_test_x conftest
$ac_exeext; then
26827 ac_cv_lib_speex_speex_encode
=yes
26829 echo "$as_me: failed program was:" >&5
26830 sed 's/^/| /' conftest.
$ac_ext >&5
26832 ac_cv_lib_speex_speex_encode
=no
26835 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26836 conftest
$ac_exeext conftest.
$ac_ext
26837 LIBS
=$ac_check_lib_save_LIBS
26839 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
26840 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
26841 if test $ac_cv_lib_speex_speex_encode = yes; then
26842 AST_SPEEX_FOUND
=yes
26848 if test "${AST_SPEEX_FOUND}" = "yes"; then
26849 SPEEX_LIB
="-lspeex -lm"
26850 SPEEX_HEADER_FOUND
="1"
26851 if test "x${SPEEX_DIR}" != "x"; then
26852 SPEEX_LIB
="${pbxlibdir} ${SPEEX_LIB}"
26853 SPEEX_INCLUDE
="-I${SPEEX_DIR}/include"
26855 SPEEX_INCLUDE
="${SPEEX_INCLUDE} "
26856 saved_cppflags
="${CPPFLAGS}"
26857 CPPFLAGS
="${CPPFLAGS} ${SPEEX_INCLUDE}"
26858 if test "xspeex/speex.h" != "x" ; then
26859 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26860 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26861 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26862 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26863 echo $ECHO_N "(cached) $ECHO_C" >&6
26865 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26866 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26868 # Is the header compilable?
26869 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
26870 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
26871 cat >conftest.
$ac_ext <<_ACEOF
26874 cat confdefs.h
>>conftest.
$ac_ext
26875 cat >>conftest.
$ac_ext <<_ACEOF
26876 /* end confdefs.h. */
26877 $ac_includes_default
26878 #include <speex/speex.h>
26880 rm -f conftest.
$ac_objext
26881 if { (ac_try
="$ac_compile"
26882 case "(($ac_try" in
26883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26884 *) ac_try_echo=$ac_try;;
26886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26887 (eval "$ac_compile") 2>conftest.er1
26889 grep -v '^ *+' conftest.er1 >conftest.err
26891 cat conftest.err >&5
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); } && {
26894 test -z "$ac_c_werror_flag" ||
26895 test ! -s conftest.err
26896 } && test -s conftest.$ac_objext; then
26897 ac_header_compiler=yes
26899 echo "$as_me: failed program was:" >&5
26900 sed 's/^/| /' conftest.$ac_ext >&5
26902 ac_header_compiler=no
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26907 echo "${ECHO_T}$ac_header_compiler" >&6; }
26909 # Is the header present?
26910 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
26911 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
26912 cat >conftest.$ac_ext <<_ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h. */
26918 #include <speex/speex.h>
26920 if { (ac_try="$ac_cpp conftest.$ac_ext"
26921 case "(($ac_try" in
26922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26923 *) ac_try_echo
=$ac_try;;
26925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26928 grep -v '^ *+' conftest.er1
>conftest.err
26930 cat conftest.err
>&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); } >/dev
/null
&& {
26933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26934 test ! -s conftest.err
26936 ac_header_preproc
=yes
26938 echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.
$ac_ext >&5
26941 ac_header_preproc
=no
26944 rm -f conftest.err conftest.
$ac_ext
26945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26946 echo "${ECHO_T}$ac_header_preproc" >&6; }
26948 # So? What about this header?
26949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26951 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
26952 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26953 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
26954 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
26955 ac_header_preproc
=yes
26958 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
26959 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
26960 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
26961 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
26962 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
26963 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
26964 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
26965 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
26966 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
26967 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
26968 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
26969 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
26971 ## ------------------------------- ##
26972 ## Report this to www.asterisk.org ##
26973 ## ------------------------------- ##
26975 ) |
sed "s/^/$as_me: WARNING: /" >&2
26978 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26979 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26980 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26983 ac_cv_header_speex_speex_h
=$ac_header_preproc
26985 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26986 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26989 if test $ac_cv_header_speex_speex_h = yes; then
26990 SPEEX_HEADER_FOUND
=1
26992 SPEEX_HEADER_FOUND
=0
26997 CPPFLAGS
="${saved_cppflags}"
26998 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
26999 if test -n "${SPEEX_MANDATORY}" ;
27001 { echo "$as_me:$LINENO: ***" >&5
27002 echo "$as_me: ***" >&6;}
27003 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
27004 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
27005 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
27006 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
27007 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
27008 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
27017 cat >>confdefs.h
<<_ACEOF
27018 #define HAVE_SPEEX 1
27022 elif test -n "${SPEEX_MANDATORY}";
27024 { echo "$as_me:$LINENO: ***" >&5
27025 echo "$as_me: ***" >&6;}
27026 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
27027 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
27028 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27029 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27030 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
27031 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
27037 # See if the main speex library contains the preprocess functions
27039 if test "${USE_SPEEX_PREPROCESS}" != "no"; then
27041 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
27042 if test -d ${SPEEX_PREPROCESS_DIR}/lib
; then
27043 pbxlibdir
="-L${SPEEX_PREPROCESS_DIR}/lib"
27045 pbxlibdir
="-L${SPEEX_PREPROCESS_DIR}"
27048 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeex" >&5
27049 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeex... $ECHO_C" >&6; }
27050 if test "${ac_cv_lib_speex_speex_preprocess_ctl+set}" = set; then
27051 echo $ECHO_N "(cached) $ECHO_C" >&6
27053 ac_check_lib_save_LIBS
=$LIBS
27054 LIBS
="-lspeex ${pbxlibdir} -lm $LIBS"
27055 cat >conftest.
$ac_ext <<_ACEOF
27058 cat confdefs.h
>>conftest.
$ac_ext
27059 cat >>conftest.
$ac_ext <<_ACEOF
27060 /* end confdefs.h. */
27062 /* Override any GCC internal prototype to avoid an error.
27063 Use char because int might match the return type of a GCC
27064 builtin and then its argument prototype would still apply. */
27068 char speex_preprocess_ctl ();
27072 return speex_preprocess_ctl ();
27077 rm -f conftest.
$ac_objext conftest
$ac_exeext
27078 if { (ac_try
="$ac_link"
27079 case "(($ac_try" in
27080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27081 *) ac_try_echo=$ac_try;;
27083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084 (eval "$ac_link") 2>conftest.er1
27086 grep -v '^ *+' conftest.er1 >conftest.err
27088 cat conftest.err >&5
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); } && {
27091 test -z "$ac_c_werror_flag" ||
27092 test ! -s conftest.err
27093 } && test -s conftest$ac_exeext &&
27094 $as_test_x conftest$ac_exeext; then
27095 ac_cv_lib_speex_speex_preprocess_ctl=yes
27097 echo "$as_me: failed program was:" >&5
27098 sed 's/^/| /' conftest.$ac_ext >&5
27100 ac_cv_lib_speex_speex_preprocess_ctl=no
27103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27104 conftest$ac_exeext conftest.$ac_ext
27105 LIBS=$ac_check_lib_save_LIBS
27107 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_preprocess_ctl" >&5
27108 echo "${ECHO_T}$ac_cv_lib_speex_speex_preprocess_ctl" >&6; }
27109 if test $ac_cv_lib_speex_speex_preprocess_ctl = yes; then
27110 AST_SPEEX_PREPROCESS_FOUND=yes
27112 AST_SPEEX_PREPROCESS_FOUND=no
27116 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
27117 SPEEX_PREPROCESS_LIB="-lspeex -lm"
27118 SPEEX_PREPROCESS_HEADER_FOUND="1"
27119 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
27120 SPEEX_PREPROCESS_LIB="${pbxlibdir} ${SPEEX_PREPROCESS_LIB}"
27121 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
27123 SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
27124 saved_cppflags="${CPPFLAGS}"
27125 CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
27126 if test "xspeex/speex.h" != "x" ; then
27127 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27128 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27129 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27130 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27131 echo $ECHO_N "(cached) $ECHO_C" >&6
27133 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27134 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27136 # Is the header compilable?
27137 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
27138 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
27139 cat >conftest.$ac_ext <<_ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h. */
27145 $ac_includes_default
27146 #include <speex/speex.h>
27148 rm -f conftest.$ac_objext
27149 if { (ac_try="$ac_compile"
27150 case "(($ac_try" in
27151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27152 *) ac_try_echo
=$ac_try;;
27154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27155 (eval "$ac_compile") 2>conftest.er1
27157 grep -v '^ *+' conftest.er1
>conftest.err
27159 cat conftest.err
>&5
27160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161 (exit $ac_status); } && {
27162 test -z "$ac_c_werror_flag" ||
27163 test ! -s conftest.err
27164 } && test -s conftest.
$ac_objext; then
27165 ac_header_compiler
=yes
27167 echo "$as_me: failed program was:" >&5
27168 sed 's/^/| /' conftest.
$ac_ext >&5
27170 ac_header_compiler
=no
27173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27175 echo "${ECHO_T}$ac_header_compiler" >&6; }
27177 # Is the header present?
27178 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
27179 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
27180 cat >conftest.
$ac_ext <<_ACEOF
27183 cat confdefs.h
>>conftest.
$ac_ext
27184 cat >>conftest.
$ac_ext <<_ACEOF
27185 /* end confdefs.h. */
27186 #include <speex/speex.h>
27188 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27189 case "(($ac_try" in
27190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27191 *) ac_try_echo=$ac_try;;
27193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27196 grep -v '^ *+' conftest.er1 >conftest.err
27198 cat conftest.err >&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } >/dev/null && {
27201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27202 test ! -s conftest.err
27204 ac_header_preproc=yes
27206 echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27209 ac_header_preproc=no
27212 rm -f conftest.err conftest.$ac_ext
27213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27214 echo "${ECHO_T}$ac_header_preproc" >&6; }
27216 # So? What about this header?
27217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27219 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
27220 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27221 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
27222 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
27223 ac_header_preproc=yes
27226 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
27227 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
27228 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
27229 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
27230 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
27231 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
27232 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
27233 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
27234 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
27235 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
27236 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
27237 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
27239 ## ------------------------------- ##
27240 ## Report this to www.asterisk.org ##
27241 ## ------------------------------- ##
27243 ) | sed "s/^/$as_me: WARNING: /" >&2
27246 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27247 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27248 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27249 echo $ECHO_N "(cached) $ECHO_C" >&6
27251 ac_cv_header_speex_speex_h=$ac_header_preproc
27253 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27254 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27257 if test $ac_cv_header_speex_speex_h = yes; then
27258 SPEEX_PREPROCESS_HEADER_FOUND=1
27260 SPEEX_PREPROCESS_HEADER_FOUND=0
27265 CPPFLAGS="${saved_cppflags}"
27266 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
27267 if test -n "${SPEEX_PREPROCESS_MANDATORY}" ;
27269 { echo "$as_me:$LINENO: ***" >&5
27270 echo "$as_me: ***" >&6;}
27271 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
27272 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
27273 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&5
27274 echo "$as_me: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&6;}
27275 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
27276 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
27279 SPEEX_PREPROCESS_LIB=""
27280 SPEEX_PREPROCESS_INCLUDE=""
27281 PBX_SPEEX_PREPROCESS=0
27283 PBX_SPEEX_PREPROCESS=1
27285 cat >>confdefs.h <<_ACEOF
27286 #define HAVE_SPEEX_PREPROCESS 1
27290 elif test -n "${SPEEX_PREPROCESS_MANDATORY}";
27292 { echo "$as_me:$LINENO: ***" >&5
27293 echo "$as_me: ***" >&6;}
27294 { echo "$as_me:$LINENO: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&5
27295 echo "$as_me: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&6;}
27296 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27297 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27298 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
27299 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
27304 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
27305 PBX_SPEEX_PREPROCESS=1
27309 if test "${USE_SPEEXDSP}" != "no"; then
27311 if test "x${SPEEXDSP_DIR}" != "x"; then
27312 if test -d ${SPEEXDSP_DIR}/lib; then
27313 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
27315 pbxlibdir="-L${SPEEXDSP_DIR}"
27318 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
27319 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
27320 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
27321 echo $ECHO_N "(cached) $ECHO_C" >&6
27323 ac_check_lib_save_LIBS=$LIBS
27324 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
27325 cat >conftest.$ac_ext <<_ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h. */
27332 /* Override any GCC internal prototype to avoid an error.
27333 Use char because int might match the return type of a GCC
27334 builtin and then its argument prototype would still apply. */
27338 char speex_preprocess_ctl ();
27342 return speex_preprocess_ctl ();
27347 rm -f conftest.$ac_objext conftest$ac_exeext
27348 if { (ac_try="$ac_link"
27349 case "(($ac_try" in
27350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27351 *) ac_try_echo
=$ac_try;;
27353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354 (eval "$ac_link") 2>conftest.er1
27356 grep -v '^ *+' conftest.er1
>conftest.err
27358 cat conftest.err
>&5
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); } && {
27361 test -z "$ac_c_werror_flag" ||
27362 test ! -s conftest.err
27363 } && test -s conftest
$ac_exeext &&
27364 $as_test_x conftest
$ac_exeext; then
27365 ac_cv_lib_speexdsp_speex_preprocess_ctl
=yes
27367 echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.
$ac_ext >&5
27370 ac_cv_lib_speexdsp_speex_preprocess_ctl
=no
27373 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27374 conftest
$ac_exeext conftest.
$ac_ext
27375 LIBS
=$ac_check_lib_save_LIBS
27377 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
27378 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
27379 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
27380 AST_SPEEXDSP_FOUND
=yes
27382 AST_SPEEXDSP_FOUND
=no
27386 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
27387 SPEEXDSP_LIB
="-lspeexdsp -lm"
27388 SPEEXDSP_HEADER_FOUND
="1"
27389 if test "x${SPEEXDSP_DIR}" != "x"; then
27390 SPEEXDSP_LIB
="${pbxlibdir} ${SPEEXDSP_LIB}"
27391 SPEEXDSP_INCLUDE
="-I${SPEEXDSP_DIR}/include"
27393 SPEEXDSP_INCLUDE
="${SPEEXDSP_INCLUDE} "
27394 saved_cppflags
="${CPPFLAGS}"
27395 CPPFLAGS
="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
27396 if test "xspeex/speex.h" != "x" ; then
27397 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27398 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27399 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27400 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27401 echo $ECHO_N "(cached) $ECHO_C" >&6
27403 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27404 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27406 # Is the header compilable?
27407 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
27408 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
27409 cat >conftest.
$ac_ext <<_ACEOF
27412 cat confdefs.h
>>conftest.
$ac_ext
27413 cat >>conftest.
$ac_ext <<_ACEOF
27414 /* end confdefs.h. */
27415 $ac_includes_default
27416 #include <speex/speex.h>
27418 rm -f conftest.
$ac_objext
27419 if { (ac_try
="$ac_compile"
27420 case "(($ac_try" in
27421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27422 *) ac_try_echo=$ac_try;;
27424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425 (eval "$ac_compile") 2>conftest.er1
27427 grep -v '^ *+' conftest.er1 >conftest.err
27429 cat conftest.err >&5
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); } && {
27432 test -z "$ac_c_werror_flag" ||
27433 test ! -s conftest.err
27434 } && test -s conftest.$ac_objext; then
27435 ac_header_compiler=yes
27437 echo "$as_me: failed program was:" >&5
27438 sed 's/^/| /' conftest.$ac_ext >&5
27440 ac_header_compiler=no
27443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27445 echo "${ECHO_T}$ac_header_compiler" >&6; }
27447 # Is the header present?
27448 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
27449 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
27450 cat >conftest.$ac_ext <<_ACEOF
27453 cat confdefs.h >>conftest.$ac_ext
27454 cat >>conftest.$ac_ext <<_ACEOF
27455 /* end confdefs.h. */
27456 #include <speex/speex.h>
27458 if { (ac_try="$ac_cpp conftest.$ac_ext"
27459 case "(($ac_try" in
27460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27461 *) ac_try_echo
=$ac_try;;
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27466 grep -v '^ *+' conftest.er1
>conftest.err
27468 cat conftest.err
>&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } >/dev
/null
&& {
27471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27472 test ! -s conftest.err
27474 ac_header_preproc
=yes
27476 echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.
$ac_ext >&5
27479 ac_header_preproc
=no
27482 rm -f conftest.err conftest.
$ac_ext
27483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27484 echo "${ECHO_T}$ac_header_preproc" >&6; }
27486 # So? What about this header?
27487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27489 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
27490 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27491 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
27492 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
27493 ac_header_preproc
=yes
27496 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
27497 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
27498 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
27499 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
27500 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
27501 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
27502 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
27503 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
27504 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
27505 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
27506 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
27507 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
27509 ## ------------------------------- ##
27510 ## Report this to www.asterisk.org ##
27511 ## ------------------------------- ##
27513 ) |
sed "s/^/$as_me: WARNING: /" >&2
27516 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27517 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27518 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27519 echo $ECHO_N "(cached) $ECHO_C" >&6
27521 ac_cv_header_speex_speex_h
=$ac_header_preproc
27523 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27524 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27527 if test $ac_cv_header_speex_speex_h = yes; then
27528 SPEEXDSP_HEADER_FOUND
=1
27530 SPEEXDSP_HEADER_FOUND
=0
27535 CPPFLAGS
="${saved_cppflags}"
27536 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
27537 if test -n "${SPEEXDSP_MANDATORY}" ;
27539 { echo "$as_me:$LINENO: ***" >&5
27540 echo "$as_me: ***" >&6;}
27541 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
27542 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
27543 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
27544 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
27545 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
27546 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
27550 SPEEXDSP_INCLUDE
=""
27555 cat >>confdefs.h
<<_ACEOF
27556 #define HAVE_SPEEXDSP 1
27560 elif test -n "${SPEEXDSP_MANDATORY}";
27562 { echo "$as_me:$LINENO: ***" >&5
27563 echo "$as_me: ***" >&6;}
27564 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
27565 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
27566 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27567 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27568 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
27569 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
27574 if test "${PBX_SPEEXDSP}" = 1; then
27575 PBX_SPEEX_PREPROCESS
=1
27581 if test "${USE_SQLITE}" != "no"; then
27583 if test "x${SQLITE_DIR}" != "x"; then
27584 if test -d ${SQLITE_DIR}/lib
; then
27585 pbxlibdir
="-L${SQLITE_DIR}/lib"
27587 pbxlibdir
="-L${SQLITE_DIR}"
27590 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
27591 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
27592 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
27593 echo $ECHO_N "(cached) $ECHO_C" >&6
27595 ac_check_lib_save_LIBS
=$LIBS
27596 LIBS
="-lsqlite ${pbxlibdir} $LIBS"
27597 cat >conftest.
$ac_ext <<_ACEOF
27600 cat confdefs.h
>>conftest.
$ac_ext
27601 cat >>conftest.
$ac_ext <<_ACEOF
27602 /* end confdefs.h. */
27604 /* Override any GCC internal prototype to avoid an error.
27605 Use char because int might match the return type of a GCC
27606 builtin and then its argument prototype would still apply. */
27610 char sqlite_exec ();
27614 return sqlite_exec ();
27619 rm -f conftest.
$ac_objext conftest
$ac_exeext
27620 if { (ac_try
="$ac_link"
27621 case "(($ac_try" in
27622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27623 *) ac_try_echo=$ac_try;;
27625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27626 (eval "$ac_link") 2>conftest.er1
27628 grep -v '^ *+' conftest.er1 >conftest.err
27630 cat conftest.err >&5
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); } && {
27633 test -z "$ac_c_werror_flag" ||
27634 test ! -s conftest.err
27635 } && test -s conftest$ac_exeext &&
27636 $as_test_x conftest$ac_exeext; then
27637 ac_cv_lib_sqlite_sqlite_exec=yes
27639 echo "$as_me: failed program was:" >&5
27640 sed 's/^/| /' conftest.$ac_ext >&5
27642 ac_cv_lib_sqlite_sqlite_exec=no
27645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27646 conftest$ac_exeext conftest.$ac_ext
27647 LIBS=$ac_check_lib_save_LIBS
27649 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
27650 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
27651 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
27652 AST_SQLITE_FOUND=yes
27654 AST_SQLITE_FOUND=no
27658 if test "${AST_SQLITE_FOUND}" = "yes"; then
27659 SQLITE_LIB="-lsqlite "
27660 SQLITE_HEADER_FOUND="1"
27661 if test "x${SQLITE_DIR}" != "x"; then
27662 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
27663 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
27665 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
27666 saved_cppflags="${CPPFLAGS}"
27667 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
27668 if test "xsqlite.h" != "x" ; then
27669 if test "${ac_cv_header_sqlite_h+set}" = set; then
27670 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
27671 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
27672 if test "${ac_cv_header_sqlite_h+set}" = set; then
27673 echo $ECHO_N "(cached) $ECHO_C" >&6
27675 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
27676 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
27678 # Is the header compilable?
27679 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
27680 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
27681 cat >conftest.$ac_ext <<_ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h. */
27687 $ac_includes_default
27688 #include <sqlite.h>
27690 rm -f conftest.$ac_objext
27691 if { (ac_try="$ac_compile"
27692 case "(($ac_try" in
27693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27694 *) ac_try_echo
=$ac_try;;
27696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_compile") 2>conftest.er1
27699 grep -v '^ *+' conftest.er1
>conftest.err
27701 cat conftest.err
>&5
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); } && {
27704 test -z "$ac_c_werror_flag" ||
27705 test ! -s conftest.err
27706 } && test -s conftest.
$ac_objext; then
27707 ac_header_compiler
=yes
27709 echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.
$ac_ext >&5
27712 ac_header_compiler
=no
27715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27717 echo "${ECHO_T}$ac_header_compiler" >&6; }
27719 # Is the header present?
27720 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
27721 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
27722 cat >conftest.
$ac_ext <<_ACEOF
27725 cat confdefs.h
>>conftest.
$ac_ext
27726 cat >>conftest.
$ac_ext <<_ACEOF
27727 /* end confdefs.h. */
27728 #include <sqlite.h>
27730 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27731 case "(($ac_try" in
27732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27733 *) ac_try_echo=$ac_try;;
27735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27738 grep -v '^ *+' conftest.er1 >conftest.err
27740 cat conftest.err >&5
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); } >/dev/null && {
27743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27744 test ! -s conftest.err
27746 ac_header_preproc=yes
27748 echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27751 ac_header_preproc=no
27754 rm -f conftest.err conftest.$ac_ext
27755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27756 echo "${ECHO_T}$ac_header_preproc" >&6; }
27758 # So? What about this header?
27759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27761 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
27762 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27763 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
27764 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
27765 ac_header_preproc=yes
27768 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
27769 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
27770 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
27771 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
27772 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
27773 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
27774 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
27775 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
27776 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
27777 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
27778 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
27779 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
27781 ## ------------------------------- ##
27782 ## Report this to www.asterisk.org ##
27783 ## ------------------------------- ##
27785 ) | sed "s/^/$as_me: WARNING: /" >&2
27788 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
27789 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
27790 if test "${ac_cv_header_sqlite_h+set}" = set; then
27791 echo $ECHO_N "(cached) $ECHO_C" >&6
27793 ac_cv_header_sqlite_h=$ac_header_preproc
27795 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
27796 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
27799 if test $ac_cv_header_sqlite_h = yes; then
27800 SQLITE_HEADER_FOUND=1
27802 SQLITE_HEADER_FOUND=0
27807 CPPFLAGS="${saved_cppflags}"
27808 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
27809 if test -n "${SQLITE_MANDATORY}" ;
27811 { echo "$as_me:$LINENO: ***" >&5
27812 echo "$as_me: ***" >&6;}
27813 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
27814 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
27815 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
27816 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
27817 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
27818 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
27827 cat >>confdefs.h <<_ACEOF
27828 #define HAVE_SQLITE 1
27832 elif test -n "${SQLITE_MANDATORY}";
27834 { echo "$as_me:$LINENO: ***" >&5
27835 echo "$as_me: ***" >&6;}
27836 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
27837 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
27838 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27839 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27840 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
27841 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
27848 if test "${USE_OPENSSL}" != "no"; then
27850 if test "x${OPENSSL_DIR}" != "x"; then
27851 if test -d ${OPENSSL_DIR}/lib; then
27852 pbxlibdir="-L${OPENSSL_DIR}/lib"
27854 pbxlibdir="-L${OPENSSL_DIR}"
27857 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
27858 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
27859 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
27860 echo $ECHO_N "(cached) $ECHO_C" >&6
27862 ac_check_lib_save_LIBS=$LIBS
27863 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
27864 cat >conftest.$ac_ext <<_ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h. */
27871 /* Override any GCC internal prototype to avoid an error.
27872 Use char because int might match the return type of a GCC
27873 builtin and then its argument prototype would still apply. */
27877 char ssl2_connect ();
27881 return ssl2_connect ();
27886 rm -f conftest.$ac_objext conftest$ac_exeext
27887 if { (ac_try="$ac_link"
27888 case "(($ac_try" in
27889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27890 *) ac_try_echo
=$ac_try;;
27892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893 (eval "$ac_link") 2>conftest.er1
27895 grep -v '^ *+' conftest.er1
>conftest.err
27897 cat conftest.err
>&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } && {
27900 test -z "$ac_c_werror_flag" ||
27901 test ! -s conftest.err
27902 } && test -s conftest
$ac_exeext &&
27903 $as_test_x conftest
$ac_exeext; then
27904 ac_cv_lib_ssl_ssl2_connect
=yes
27906 echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.
$ac_ext >&5
27909 ac_cv_lib_ssl_ssl2_connect
=no
27912 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27913 conftest
$ac_exeext conftest.
$ac_ext
27914 LIBS
=$ac_check_lib_save_LIBS
27916 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
27917 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
27918 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
27919 AST_OPENSSL_FOUND
=yes
27921 AST_OPENSSL_FOUND
=no
27925 if test "${AST_OPENSSL_FOUND}" = "yes"; then
27926 OPENSSL_LIB
="-lssl -lcrypto"
27927 OPENSSL_HEADER_FOUND
="1"
27928 if test "x${OPENSSL_DIR}" != "x"; then
27929 OPENSSL_LIB
="${pbxlibdir} ${OPENSSL_LIB}"
27930 OPENSSL_INCLUDE
="-I${OPENSSL_DIR}/include"
27932 OPENSSL_INCLUDE
="${OPENSSL_INCLUDE} "
27933 saved_cppflags
="${CPPFLAGS}"
27934 CPPFLAGS
="${CPPFLAGS} ${OPENSSL_INCLUDE}"
27935 if test "xopenssl/ssl.h" != "x" ; then
27936 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27937 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
27938 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
27939 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27940 echo $ECHO_N "(cached) $ECHO_C" >&6
27942 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
27943 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
27945 # Is the header compilable?
27946 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
27947 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
27948 cat >conftest.
$ac_ext <<_ACEOF
27951 cat confdefs.h
>>conftest.
$ac_ext
27952 cat >>conftest.
$ac_ext <<_ACEOF
27953 /* end confdefs.h. */
27954 $ac_includes_default
27955 #include <openssl/ssl.h>
27957 rm -f conftest.
$ac_objext
27958 if { (ac_try
="$ac_compile"
27959 case "(($ac_try" in
27960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27961 *) ac_try_echo=$ac_try;;
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964 (eval "$ac_compile") 2>conftest.er1
27966 grep -v '^ *+' conftest.er1 >conftest.err
27968 cat conftest.err >&5
27969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970 (exit $ac_status); } && {
27971 test -z "$ac_c_werror_flag" ||
27972 test ! -s conftest.err
27973 } && test -s conftest.$ac_objext; then
27974 ac_header_compiler=yes
27976 echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27979 ac_header_compiler=no
27982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27984 echo "${ECHO_T}$ac_header_compiler" >&6; }
27986 # Is the header present?
27987 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
27988 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
27989 cat >conftest.$ac_ext <<_ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h. */
27995 #include <openssl/ssl.h>
27997 if { (ac_try="$ac_cpp conftest.$ac_ext"
27998 case "(($ac_try" in
27999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28000 *) ac_try_echo
=$ac_try;;
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28005 grep -v '^ *+' conftest.er1
>conftest.err
28007 cat conftest.err
>&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } >/dev
/null
&& {
28010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28011 test ! -s conftest.err
28013 ac_header_preproc
=yes
28015 echo "$as_me: failed program was:" >&5
28016 sed 's/^/| /' conftest.
$ac_ext >&5
28018 ac_header_preproc
=no
28021 rm -f conftest.err conftest.
$ac_ext
28022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28023 echo "${ECHO_T}$ac_header_preproc" >&6; }
28025 # So? What about this header?
28026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28028 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28029 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28030 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
28031 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
28032 ac_header_preproc
=yes
28035 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
28036 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
28037 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
28038 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
28039 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
28040 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
28041 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
28042 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28043 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
28044 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
28045 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
28046 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
28048 ## ------------------------------- ##
28049 ## Report this to www.asterisk.org ##
28050 ## ------------------------------- ##
28052 ) |
sed "s/^/$as_me: WARNING: /" >&2
28055 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
28056 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
28057 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28058 echo $ECHO_N "(cached) $ECHO_C" >&6
28060 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
28062 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
28063 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
28066 if test $ac_cv_header_openssl_ssl_h = yes; then
28067 OPENSSL_HEADER_FOUND
=1
28069 OPENSSL_HEADER_FOUND
=0
28074 CPPFLAGS
="${saved_cppflags}"
28075 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
28076 if test -n "${OPENSSL_MANDATORY}" ;
28078 { echo "$as_me:$LINENO: ***" >&5
28079 echo "$as_me: ***" >&6;}
28080 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
28081 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
28082 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
28083 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
28084 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
28085 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
28094 cat >>confdefs.h
<<_ACEOF
28095 #define HAVE_OPENSSL 1
28099 elif test -n "${OPENSSL_MANDATORY}";
28101 { echo "$as_me:$LINENO: ***" >&5
28102 echo "$as_me: ***" >&6;}
28103 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
28104 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
28105 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28106 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28107 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
28108 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
28113 if test "$PBX_OPENSSL" = "1";
28116 if test "${USE_OSPTK}" != "no"; then
28118 if test "x${OSPTK_DIR}" != "x"; then
28119 if test -d ${OSPTK_DIR}/lib
; then
28120 pbxlibdir
="-L${OSPTK_DIR}/lib"
28122 pbxlibdir
="-L${OSPTK_DIR}"
28125 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
28126 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
28127 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
28128 echo $ECHO_N "(cached) $ECHO_C" >&6
28130 ac_check_lib_save_LIBS
=$LIBS
28131 LIBS
="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
28132 cat >conftest.
$ac_ext <<_ACEOF
28135 cat confdefs.h
>>conftest.
$ac_ext
28136 cat >>conftest.
$ac_ext <<_ACEOF
28137 /* end confdefs.h. */
28139 /* Override any GCC internal prototype to avoid an error.
28140 Use char because int might match the return type of a GCC
28141 builtin and then its argument prototype would still apply. */
28145 char OSPPCryptoDecrypt ();
28149 return OSPPCryptoDecrypt ();
28154 rm -f conftest.
$ac_objext conftest
$ac_exeext
28155 if { (ac_try
="$ac_link"
28156 case "(($ac_try" in
28157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28158 *) ac_try_echo=$ac_try;;
28160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28161 (eval "$ac_link") 2>conftest.er1
28163 grep -v '^ *+' conftest.er1 >conftest.err
28165 cat conftest.err >&5
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); } && {
28168 test -z "$ac_c_werror_flag" ||
28169 test ! -s conftest.err
28170 } && test -s conftest$ac_exeext &&
28171 $as_test_x conftest$ac_exeext; then
28172 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
28174 echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28177 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
28180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28181 conftest$ac_exeext conftest.$ac_ext
28182 LIBS=$ac_check_lib_save_LIBS
28184 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
28185 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
28186 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
28187 AST_OSPTK_FOUND=yes
28193 if test "${AST_OSPTK_FOUND}" = "yes"; then
28194 OSPTK_LIB="-losptk -lcrypto -lssl"
28195 OSPTK_HEADER_FOUND="1"
28196 if test "x${OSPTK_DIR}" != "x"; then
28197 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
28198 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
28200 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
28201 saved_cppflags="${CPPFLAGS}"
28202 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE}"
28203 if test "xosp/osp.h" != "x" ; then
28204 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28205 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
28206 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
28207 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28210 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
28211 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
28213 # Is the header compilable?
28214 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
28215 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
28216 cat >conftest.$ac_ext <<_ACEOF
28219 cat confdefs.h >>conftest.$ac_ext
28220 cat >>conftest.$ac_ext <<_ACEOF
28221 /* end confdefs.h. */
28222 $ac_includes_default
28223 #include <osp/osp.h>
28225 rm -f conftest.$ac_objext
28226 if { (ac_try="$ac_compile"
28227 case "(($ac_try" in
28228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28229 *) ac_try_echo
=$ac_try;;
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232 (eval "$ac_compile") 2>conftest.er1
28234 grep -v '^ *+' conftest.er1
>conftest.err
28236 cat conftest.err
>&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); } && {
28239 test -z "$ac_c_werror_flag" ||
28240 test ! -s conftest.err
28241 } && test -s conftest.
$ac_objext; then
28242 ac_header_compiler
=yes
28244 echo "$as_me: failed program was:" >&5
28245 sed 's/^/| /' conftest.
$ac_ext >&5
28247 ac_header_compiler
=no
28250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28252 echo "${ECHO_T}$ac_header_compiler" >&6; }
28254 # Is the header present?
28255 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
28256 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
28257 cat >conftest.
$ac_ext <<_ACEOF
28260 cat confdefs.h
>>conftest.
$ac_ext
28261 cat >>conftest.
$ac_ext <<_ACEOF
28262 /* end confdefs.h. */
28263 #include <osp/osp.h>
28265 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28266 case "(($ac_try" in
28267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28268 *) ac_try_echo=$ac_try;;
28270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28273 grep -v '^ *+' conftest.er1 >conftest.err
28275 cat conftest.err >&5
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } >/dev/null && {
28278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28279 test ! -s conftest.err
28281 ac_header_preproc=yes
28283 echo "$as_me: failed program was:" >&5
28284 sed 's/^/| /' conftest.$ac_ext >&5
28286 ac_header_preproc=no
28289 rm -f conftest.err conftest.$ac_ext
28290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28291 echo "${ECHO_T}$ac_header_preproc" >&6; }
28293 # So? What about this header?
28294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28296 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
28297 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28298 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
28299 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
28300 ac_header_preproc=yes
28303 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
28304 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
28305 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
28306 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
28307 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
28308 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
28309 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
28310 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
28311 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
28312 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
28313 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
28314 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
28316 ## ------------------------------- ##
28317 ## Report this to www.asterisk.org ##
28318 ## ------------------------------- ##
28320 ) | sed "s/^/$as_me: WARNING: /" >&2
28323 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
28324 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
28325 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28328 ac_cv_header_osp_osp_h=$ac_header_preproc
28330 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
28331 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
28334 if test $ac_cv_header_osp_osp_h = yes; then
28335 OSPTK_HEADER_FOUND=1
28337 OSPTK_HEADER_FOUND=0
28342 CPPFLAGS="${saved_cppflags}"
28343 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
28344 if test -n "${OSPTK_MANDATORY}" ;
28346 { echo "$as_me:$LINENO: ***" >&5
28347 echo "$as_me: ***" >&6;}
28348 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
28349 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
28350 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
28351 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
28352 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
28353 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
28362 cat >>confdefs.h <<_ACEOF
28363 #define HAVE_OSPTK 1
28367 elif test -n "${OSPTK_MANDATORY}";
28369 { echo "$as_me:$LINENO: ***" >&5
28370 echo "$as_me: ***" >&6;}
28371 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
28372 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
28373 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28374 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28375 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
28376 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
28384 if test "${USE_FREETDS}" != "no"; then
28386 if test "x${FREETDS_DIR}" != "x"; then
28387 if test -d ${FREETDS_DIR}/lib; then
28388 pbxlibdir="-L${FREETDS_DIR}/lib"
28390 pbxlibdir="-L${FREETDS_DIR}"
28393 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
28394 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
28395 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
28396 echo $ECHO_N "(cached) $ECHO_C" >&6
28398 ac_check_lib_save_LIBS=$LIBS
28399 LIBS="-ltds ${pbxlibdir} $LIBS"
28400 cat >conftest.$ac_ext <<_ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h. */
28407 /* Override any GCC internal prototype to avoid an error.
28408 Use char because int might match the return type of a GCC
28409 builtin and then its argument prototype would still apply. */
28413 char tds_version ();
28417 return tds_version ();
28422 rm -f conftest.$ac_objext conftest$ac_exeext
28423 if { (ac_try="$ac_link"
28424 case "(($ac_try" in
28425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28426 *) ac_try_echo
=$ac_try;;
28428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429 (eval "$ac_link") 2>conftest.er1
28431 grep -v '^ *+' conftest.er1
>conftest.err
28433 cat conftest.err
>&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); } && {
28436 test -z "$ac_c_werror_flag" ||
28437 test ! -s conftest.err
28438 } && test -s conftest
$ac_exeext &&
28439 $as_test_x conftest
$ac_exeext; then
28440 ac_cv_lib_tds_tds_version
=yes
28442 echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.
$ac_ext >&5
28445 ac_cv_lib_tds_tds_version
=no
28448 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28449 conftest
$ac_exeext conftest.
$ac_ext
28450 LIBS
=$ac_check_lib_save_LIBS
28452 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
28453 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
28454 if test $ac_cv_lib_tds_tds_version = yes; then
28455 AST_FREETDS_FOUND
=yes
28457 AST_FREETDS_FOUND
=no
28461 if test "${AST_FREETDS_FOUND}" = "yes"; then
28462 FREETDS_LIB
="-ltds "
28463 FREETDS_HEADER_FOUND
="1"
28464 if test "x${FREETDS_DIR}" != "x"; then
28465 FREETDS_LIB
="${pbxlibdir} ${FREETDS_LIB}"
28466 FREETDS_INCLUDE
="-I${FREETDS_DIR}/include"
28468 FREETDS_INCLUDE
="${FREETDS_INCLUDE} "
28469 saved_cppflags
="${CPPFLAGS}"
28470 CPPFLAGS
="${CPPFLAGS} ${FREETDS_INCLUDE}"
28471 if test "xtds.h" != "x" ; then
28472 if test "${ac_cv_header_tds_h+set}" = set; then
28473 { echo "$as_me:$LINENO: checking for tds.h" >&5
28474 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
28475 if test "${ac_cv_header_tds_h+set}" = set; then
28476 echo $ECHO_N "(cached) $ECHO_C" >&6
28478 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
28479 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
28481 # Is the header compilable?
28482 { echo "$as_me:$LINENO: checking tds.h usability" >&5
28483 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
28484 cat >conftest.
$ac_ext <<_ACEOF
28487 cat confdefs.h
>>conftest.
$ac_ext
28488 cat >>conftest.
$ac_ext <<_ACEOF
28489 /* end confdefs.h. */
28490 $ac_includes_default
28493 rm -f conftest.
$ac_objext
28494 if { (ac_try
="$ac_compile"
28495 case "(($ac_try" in
28496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28497 *) ac_try_echo=$ac_try;;
28499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28500 (eval "$ac_compile") 2>conftest.er1
28502 grep -v '^ *+' conftest.er1 >conftest.err
28504 cat conftest.err >&5
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); } && {
28507 test -z "$ac_c_werror_flag" ||
28508 test ! -s conftest.err
28509 } && test -s conftest.$ac_objext; then
28510 ac_header_compiler=yes
28512 echo "$as_me: failed program was:" >&5
28513 sed 's/^/| /' conftest.$ac_ext >&5
28515 ac_header_compiler=no
28518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28520 echo "${ECHO_T}$ac_header_compiler" >&6; }
28522 # Is the header present?
28523 { echo "$as_me:$LINENO: checking tds.h presence" >&5
28524 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
28525 cat >conftest.$ac_ext <<_ACEOF
28528 cat confdefs.h >>conftest.$ac_ext
28529 cat >>conftest.$ac_ext <<_ACEOF
28530 /* end confdefs.h. */
28533 if { (ac_try="$ac_cpp conftest.$ac_ext"
28534 case "(($ac_try" in
28535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28536 *) ac_try_echo
=$ac_try;;
28538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28541 grep -v '^ *+' conftest.er1
>conftest.err
28543 cat conftest.err
>&5
28544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); } >/dev
/null
&& {
28546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28547 test ! -s conftest.err
28549 ac_header_preproc
=yes
28551 echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.
$ac_ext >&5
28554 ac_header_preproc
=no
28557 rm -f conftest.err conftest.
$ac_ext
28558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28559 echo "${ECHO_T}$ac_header_preproc" >&6; }
28561 # So? What about this header?
28562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28564 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
28565 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28566 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
28567 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
28568 ac_header_preproc
=yes
28571 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
28572 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
28573 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
28574 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
28575 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
28576 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
28577 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
28578 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
28579 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
28580 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
28581 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
28582 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
28584 ## ------------------------------- ##
28585 ## Report this to www.asterisk.org ##
28586 ## ------------------------------- ##
28588 ) |
sed "s/^/$as_me: WARNING: /" >&2
28591 { echo "$as_me:$LINENO: checking for tds.h" >&5
28592 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
28593 if test "${ac_cv_header_tds_h+set}" = set; then
28594 echo $ECHO_N "(cached) $ECHO_C" >&6
28596 ac_cv_header_tds_h
=$ac_header_preproc
28598 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
28599 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
28602 if test $ac_cv_header_tds_h = yes; then
28603 FREETDS_HEADER_FOUND
=1
28605 FREETDS_HEADER_FOUND
=0
28610 CPPFLAGS
="${saved_cppflags}"
28611 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
28612 if test -n "${FREETDS_MANDATORY}" ;
28614 { echo "$as_me:$LINENO: ***" >&5
28615 echo "$as_me: ***" >&6;}
28616 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
28617 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
28618 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
28619 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
28620 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
28621 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
28630 cat >>confdefs.h
<<_ACEOF
28631 #define HAVE_FREETDS 1
28635 elif test -n "${FREETDS_MANDATORY}";
28637 { echo "$as_me:$LINENO: ***" >&5
28638 echo "$as_me: ***" >&6;}
28639 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
28640 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
28641 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28642 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28643 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
28644 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
28649 if test "${PBX_FREETDS}" != "0";
28651 if test "${FREETDS_DIR}x" = "x";
28653 for tds_dir
in /usr
/usr
/local;
28655 if test -f "${tds_dir}/include/tdsver.h";
28657 FREETDS_DIR
="${tds_dir}"
28661 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
28663 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_64"
28666 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_63"
28669 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_62"
28672 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
28678 if test "${USE_TERMCAP}" != "no"; then
28680 if test "x${TERMCAP_DIR}" != "x"; then
28681 if test -d ${TERMCAP_DIR}/lib
; then
28682 pbxlibdir
="-L${TERMCAP_DIR}/lib"
28684 pbxlibdir
="-L${TERMCAP_DIR}"
28687 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
28688 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
28689 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
28690 echo $ECHO_N "(cached) $ECHO_C" >&6
28692 ac_check_lib_save_LIBS
=$LIBS
28693 LIBS
="-ltermcap ${pbxlibdir} $LIBS"
28694 cat >conftest.
$ac_ext <<_ACEOF
28697 cat confdefs.h
>>conftest.
$ac_ext
28698 cat >>conftest.
$ac_ext <<_ACEOF
28699 /* end confdefs.h. */
28701 /* Override any GCC internal prototype to avoid an error.
28702 Use char because int might match the return type of a GCC
28703 builtin and then its argument prototype would still apply. */
28716 rm -f conftest.
$ac_objext conftest
$ac_exeext
28717 if { (ac_try
="$ac_link"
28718 case "(($ac_try" in
28719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28720 *) ac_try_echo=$ac_try;;
28722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28723 (eval "$ac_link") 2>conftest.er1
28725 grep -v '^ *+' conftest.er1 >conftest.err
28727 cat conftest.err >&5
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); } && {
28730 test -z "$ac_c_werror_flag" ||
28731 test ! -s conftest.err
28732 } && test -s conftest$ac_exeext &&
28733 $as_test_x conftest$ac_exeext; then
28734 ac_cv_lib_termcap_tgetent=yes
28736 echo "$as_me: failed program was:" >&5
28737 sed 's/^/| /' conftest.$ac_ext >&5
28739 ac_cv_lib_termcap_tgetent=no
28742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28743 conftest$ac_exeext conftest.$ac_ext
28744 LIBS=$ac_check_lib_save_LIBS
28746 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
28747 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
28748 if test $ac_cv_lib_termcap_tgetent = yes; then
28749 AST_TERMCAP_FOUND=yes
28751 AST_TERMCAP_FOUND=no
28755 if test "${AST_TERMCAP_FOUND}" = "yes"; then
28756 TERMCAP_LIB="-ltermcap "
28757 TERMCAP_HEADER_FOUND="1"
28758 if test "x${TERMCAP_DIR}" != "x"; then
28759 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
28760 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
28762 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
28763 saved_cppflags="${CPPFLAGS}"
28764 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
28765 if test "x" != "x" ; then
28766 if test "${ac_cv_header_+set}" = set; then
28767 { echo "$as_me:$LINENO: checking for " >&5
28768 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28769 if test "${ac_cv_header_+set}" = set; then
28770 echo $ECHO_N "(cached) $ECHO_C" >&6
28772 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28773 echo "${ECHO_T}$ac_cv_header_" >&6; }
28775 # Is the header compilable?
28776 { echo "$as_me:$LINENO: checking usability" >&5
28777 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28778 cat >conftest.$ac_ext <<_ACEOF
28781 cat confdefs.h >>conftest.$ac_ext
28782 cat >>conftest.$ac_ext <<_ACEOF
28783 /* end confdefs.h. */
28784 $ac_includes_default
28787 rm -f conftest.$ac_objext
28788 if { (ac_try="$ac_compile"
28789 case "(($ac_try" in
28790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28791 *) ac_try_echo
=$ac_try;;
28793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794 (eval "$ac_compile") 2>conftest.er1
28796 grep -v '^ *+' conftest.er1
>conftest.err
28798 cat conftest.err
>&5
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); } && {
28801 test -z "$ac_c_werror_flag" ||
28802 test ! -s conftest.err
28803 } && test -s conftest.
$ac_objext; then
28804 ac_header_compiler
=yes
28806 echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.
$ac_ext >&5
28809 ac_header_compiler
=no
28812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28814 echo "${ECHO_T}$ac_header_compiler" >&6; }
28816 # Is the header present?
28817 { echo "$as_me:$LINENO: checking presence" >&5
28818 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28819 cat >conftest.
$ac_ext <<_ACEOF
28822 cat confdefs.h
>>conftest.
$ac_ext
28823 cat >>conftest.
$ac_ext <<_ACEOF
28824 /* end confdefs.h. */
28827 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28828 case "(($ac_try" in
28829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28830 *) ac_try_echo=$ac_try;;
28832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28835 grep -v '^ *+' conftest.er1 >conftest.err
28837 cat conftest.err >&5
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839 (exit $ac_status); } >/dev/null && {
28840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28841 test ! -s conftest.err
28843 ac_header_preproc=yes
28845 echo "$as_me: failed program was:" >&5
28846 sed 's/^/| /' conftest.$ac_ext >&5
28848 ac_header_preproc=no
28851 rm -f conftest.err conftest.$ac_ext
28852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28853 echo "${ECHO_T}$ac_header_preproc" >&6; }
28855 # So? What about this header?
28856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28858 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28859 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28860 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28861 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28862 ac_header_preproc=yes
28865 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28866 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28868 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28869 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28870 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28872 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28873 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28874 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28875 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28876 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28878 ## ------------------------------- ##
28879 ## Report this to www.asterisk.org ##
28880 ## ------------------------------- ##
28882 ) | sed "s/^/$as_me: WARNING: /" >&2
28885 { echo "$as_me:$LINENO: checking for " >&5
28886 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28887 if test "${ac_cv_header_+set}" = set; then
28888 echo $ECHO_N "(cached) $ECHO_C" >&6
28890 ac_cv_header_=$ac_header_preproc
28892 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28893 echo "${ECHO_T}$ac_cv_header_" >&6; }
28896 if test $ac_cv_header_ = yes; then
28897 TERMCAP_HEADER_FOUND=1
28899 TERMCAP_HEADER_FOUND=0
28904 CPPFLAGS="${saved_cppflags}"
28905 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
28906 if test -n "${TERMCAP_MANDATORY}" ;
28908 { echo "$as_me:$LINENO: ***" >&5
28909 echo "$as_me: ***" >&6;}
28910 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
28911 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
28912 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
28913 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
28914 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28915 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28924 cat >>confdefs.h <<_ACEOF
28925 #define HAVE_TERMCAP 1
28929 elif test -n "${TERMCAP_MANDATORY}";
28931 { echo "$as_me:$LINENO: ***" >&5
28932 echo "$as_me: ***" >&6;}
28933 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
28934 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
28935 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28936 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28937 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28938 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28945 if test "${USE_TINFO}" != "no"; then
28947 if test "x${TINFO_DIR}" != "x"; then
28948 if test -d ${TINFO_DIR}/lib; then
28949 pbxlibdir="-L${TINFO_DIR}/lib"
28951 pbxlibdir="-L${TINFO_DIR}"
28954 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
28955 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
28956 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
28957 echo $ECHO_N "(cached) $ECHO_C" >&6
28959 ac_check_lib_save_LIBS=$LIBS
28960 LIBS="-ltinfo ${pbxlibdir} $LIBS"
28961 cat >conftest.$ac_ext <<_ACEOF
28964 cat confdefs.h >>conftest.$ac_ext
28965 cat >>conftest.$ac_ext <<_ACEOF
28966 /* end confdefs.h. */
28968 /* Override any GCC internal prototype to avoid an error.
28969 Use char because int might match the return type of a GCC
28970 builtin and then its argument prototype would still apply. */
28983 rm -f conftest.$ac_objext conftest$ac_exeext
28984 if { (ac_try="$ac_link"
28985 case "(($ac_try" in
28986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28987 *) ac_try_echo
=$ac_try;;
28989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28990 (eval "$ac_link") 2>conftest.er1
28992 grep -v '^ *+' conftest.er1
>conftest.err
28994 cat conftest.err
>&5
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); } && {
28997 test -z "$ac_c_werror_flag" ||
28998 test ! -s conftest.err
28999 } && test -s conftest
$ac_exeext &&
29000 $as_test_x conftest
$ac_exeext; then
29001 ac_cv_lib_tinfo_tgetent
=yes
29003 echo "$as_me: failed program was:" >&5
29004 sed 's/^/| /' conftest.
$ac_ext >&5
29006 ac_cv_lib_tinfo_tgetent
=no
29009 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29010 conftest
$ac_exeext conftest.
$ac_ext
29011 LIBS
=$ac_check_lib_save_LIBS
29013 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
29014 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
29015 if test $ac_cv_lib_tinfo_tgetent = yes; then
29016 AST_TINFO_FOUND
=yes
29022 if test "${AST_TINFO_FOUND}" = "yes"; then
29023 TINFO_LIB
="-ltinfo "
29024 TINFO_HEADER_FOUND
="1"
29025 if test "x${TINFO_DIR}" != "x"; then
29026 TINFO_LIB
="${pbxlibdir} ${TINFO_LIB}"
29027 TINFO_INCLUDE
="-I${TINFO_DIR}/include"
29029 TINFO_INCLUDE
="${TINFO_INCLUDE} "
29030 saved_cppflags
="${CPPFLAGS}"
29031 CPPFLAGS
="${CPPFLAGS} ${TINFO_INCLUDE}"
29032 if test "x" != "x" ; then
29033 if test "${ac_cv_header_+set}" = set; then
29034 { echo "$as_me:$LINENO: checking for " >&5
29035 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29036 if test "${ac_cv_header_+set}" = set; then
29037 echo $ECHO_N "(cached) $ECHO_C" >&6
29039 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29040 echo "${ECHO_T}$ac_cv_header_" >&6; }
29042 # Is the header compilable?
29043 { echo "$as_me:$LINENO: checking usability" >&5
29044 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29045 cat >conftest.
$ac_ext <<_ACEOF
29048 cat confdefs.h
>>conftest.
$ac_ext
29049 cat >>conftest.
$ac_ext <<_ACEOF
29050 /* end confdefs.h. */
29051 $ac_includes_default
29054 rm -f conftest.
$ac_objext
29055 if { (ac_try
="$ac_compile"
29056 case "(($ac_try" in
29057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29058 *) ac_try_echo=$ac_try;;
29060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061 (eval "$ac_compile") 2>conftest.er1
29063 grep -v '^ *+' conftest.er1 >conftest.err
29065 cat conftest.err >&5
29066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067 (exit $ac_status); } && {
29068 test -z "$ac_c_werror_flag" ||
29069 test ! -s conftest.err
29070 } && test -s conftest.$ac_objext; then
29071 ac_header_compiler=yes
29073 echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29076 ac_header_compiler=no
29079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29081 echo "${ECHO_T}$ac_header_compiler" >&6; }
29083 # Is the header present?
29084 { echo "$as_me:$LINENO: checking presence" >&5
29085 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29086 cat >conftest.$ac_ext <<_ACEOF
29089 cat confdefs.h >>conftest.$ac_ext
29090 cat >>conftest.$ac_ext <<_ACEOF
29091 /* end confdefs.h. */
29094 if { (ac_try="$ac_cpp conftest.$ac_ext"
29095 case "(($ac_try" in
29096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29097 *) ac_try_echo
=$ac_try;;
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29102 grep -v '^ *+' conftest.er1
>conftest.err
29104 cat conftest.err
>&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } >/dev
/null
&& {
29107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29108 test ! -s conftest.err
29110 ac_header_preproc
=yes
29112 echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.
$ac_ext >&5
29115 ac_header_preproc
=no
29118 rm -f conftest.err conftest.
$ac_ext
29119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29120 echo "${ECHO_T}$ac_header_preproc" >&6; }
29122 # So? What about this header?
29123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29125 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29126 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29127 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29128 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29129 ac_header_preproc
=yes
29132 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29133 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29134 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29135 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29136 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29137 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29138 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29139 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29140 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29141 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29142 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29143 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29145 ## ------------------------------- ##
29146 ## Report this to www.asterisk.org ##
29147 ## ------------------------------- ##
29149 ) |
sed "s/^/$as_me: WARNING: /" >&2
29152 { echo "$as_me:$LINENO: checking for " >&5
29153 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29154 if test "${ac_cv_header_+set}" = set; then
29155 echo $ECHO_N "(cached) $ECHO_C" >&6
29157 ac_cv_header_
=$ac_header_preproc
29159 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29160 echo "${ECHO_T}$ac_cv_header_" >&6; }
29163 if test $ac_cv_header_ = yes; then
29164 TINFO_HEADER_FOUND
=1
29166 TINFO_HEADER_FOUND
=0
29171 CPPFLAGS
="${saved_cppflags}"
29172 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
29173 if test -n "${TINFO_MANDATORY}" ;
29175 { echo "$as_me:$LINENO: ***" >&5
29176 echo "$as_me: ***" >&6;}
29177 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
29178 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
29179 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
29180 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
29181 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
29182 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
29191 cat >>confdefs.h
<<_ACEOF
29192 #define HAVE_TINFO 1
29196 elif test -n "${TINFO_MANDATORY}";
29198 { echo "$as_me:$LINENO: ***" >&5
29199 echo "$as_me: ***" >&6;}
29200 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
29201 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
29202 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29203 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29204 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
29205 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
29211 if test "${host_os}" != "linux-gnu" ; then
29212 tonezone_extra_lib
="-lm"
29215 if test "${PBX_DAHDI}" = "1" ||
test "${USE_ZAPTEL}" = "no"; then
29216 tonezone_dir
="dahdi"
29217 if test "x${DAHDI_DIR}" != "x"; then
29218 tonezone_extra_inc
="${DAHDI_INCLUDE}"
29221 tonezone_dir
="zaptel"
29222 if test "x${ZAPTEL_DIR}" != "x"; then
29223 tonezone_extra_inc
="${ZAPTEL_INCLUDE}"
29228 if test "${USE_TONEZONE}" != "no"; then
29230 if test "x${TONEZONE_DIR}" != "x"; then
29231 if test -d ${TONEZONE_DIR}/lib
; then
29232 pbxlibdir
="-L${TONEZONE_DIR}/lib"
29234 pbxlibdir
="-L${TONEZONE_DIR}"
29237 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
29238 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
29239 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
29240 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 ac_check_lib_save_LIBS
=$LIBS
29243 LIBS
="-ltonezone ${pbxlibdir} ${tonezone_extra_lib} $LIBS"
29244 cat >conftest.
$ac_ext <<_ACEOF
29247 cat confdefs.h
>>conftest.
$ac_ext
29248 cat >>conftest.
$ac_ext <<_ACEOF
29249 /* end confdefs.h. */
29251 /* Override any GCC internal prototype to avoid an error.
29252 Use char because int might match the return type of a GCC
29253 builtin and then its argument prototype would still apply. */
29257 char tone_zone_find ();
29261 return tone_zone_find ();
29266 rm -f conftest.
$ac_objext conftest
$ac_exeext
29267 if { (ac_try
="$ac_link"
29268 case "(($ac_try" in
29269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29270 *) ac_try_echo=$ac_try;;
29272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29273 (eval "$ac_link") 2>conftest.er1
29275 grep -v '^ *+' conftest.er1 >conftest.err
29277 cat conftest.err >&5
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); } && {
29280 test -z "$ac_c_werror_flag" ||
29281 test ! -s conftest.err
29282 } && test -s conftest$ac_exeext &&
29283 $as_test_x conftest$ac_exeext; then
29284 ac_cv_lib_tonezone_tone_zone_find=yes
29286 echo "$as_me: failed program was:" >&5
29287 sed 's/^/| /' conftest.$ac_ext >&5
29289 ac_cv_lib_tonezone_tone_zone_find=no
29292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29293 conftest$ac_exeext conftest.$ac_ext
29294 LIBS=$ac_check_lib_save_LIBS
29296 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
29297 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
29298 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
29299 AST_TONEZONE_FOUND=yes
29301 AST_TONEZONE_FOUND=no
29305 if test "${AST_TONEZONE_FOUND}" = "yes"; then
29306 TONEZONE_LIB="-ltonezone ${tonezone_extra_lib}"
29307 TONEZONE_HEADER_FOUND="1"
29308 if test "x${TONEZONE_DIR}" != "x"; then
29309 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
29310 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
29312 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} ${tonezone_extra_inc}"
29313 saved_cppflags="${CPPFLAGS}"
29314 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
29315 if test "x${tonezone_dir}/tonezone.h" != "x" ; then
29316 as_ac_Header=`echo "ac_cv_header_${tonezone_dir}/tonezone.h" |
$as_tr_sh`
29317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29318 { echo "$as_me:$LINENO: checking for ${tonezone_dir}/tonezone.h" >&5
29319 echo $ECHO_N "checking for ${tonezone_dir}/tonezone.h... $ECHO_C" >&6; }
29320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29321 echo $ECHO_N "(cached) $ECHO_C" >&6
29323 ac_res=`eval echo '${'$as_ac_Header'}'`
29324 { echo "$as_me:$LINENO: result: $ac_res" >&5
29325 echo "${ECHO_T}$ac_res" >&6; }
29327 # Is the header compilable?
29328 { echo "$as_me:$LINENO: checking ${tonezone_dir}/tonezone.h usability" >&5
29329 echo $ECHO_N "checking ${tonezone_dir}/tonezone.h usability... $ECHO_C" >&6; }
29330 cat >conftest.$ac_ext <<_ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h. */
29336 $ac_includes_default
29337 #include <${tonezone_dir}/tonezone.h>
29339 rm -f conftest.$ac_objext
29340 if { (ac_try="$ac_compile"
29341 case "(($ac_try" in
29342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29343 *) ac_try_echo
=$ac_try;;
29345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29346 (eval "$ac_compile") 2>conftest.er1
29348 grep -v '^ *+' conftest.er1
>conftest.err
29350 cat conftest.err
>&5
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); } && {
29353 test -z "$ac_c_werror_flag" ||
29354 test ! -s conftest.err
29355 } && test -s conftest.
$ac_objext; then
29356 ac_header_compiler
=yes
29358 echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.
$ac_ext >&5
29361 ac_header_compiler
=no
29364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29366 echo "${ECHO_T}$ac_header_compiler" >&6; }
29368 # Is the header present?
29369 { echo "$as_me:$LINENO: checking ${tonezone_dir}/tonezone.h presence" >&5
29370 echo $ECHO_N "checking ${tonezone_dir}/tonezone.h presence... $ECHO_C" >&6; }
29371 cat >conftest.
$ac_ext <<_ACEOF
29374 cat confdefs.h
>>conftest.
$ac_ext
29375 cat >>conftest.
$ac_ext <<_ACEOF
29376 /* end confdefs.h. */
29377 #include <${tonezone_dir}/tonezone.h>
29379 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29380 case "(($ac_try" in
29381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29382 *) ac_try_echo=$ac_try;;
29384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29387 grep -v '^ *+' conftest.er1 >conftest.err
29389 cat conftest.err >&5
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); } >/dev/null && {
29392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29393 test ! -s conftest.err
29395 ac_header_preproc=yes
29397 echo "$as_me: failed program was:" >&5
29398 sed 's/^/| /' conftest.$ac_ext >&5
29400 ac_header_preproc=no
29403 rm -f conftest.err conftest.$ac_ext
29404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29405 echo "${ECHO_T}$ac_header_preproc" >&6; }
29407 # So? What about this header?
29408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29410 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
29411 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29412 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the compiler's result" >&5
29413 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the compiler's result" >&2;}
29414 ac_header_preproc=yes
29417 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: present but cannot be compiled" >&5
29418 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: present but cannot be compiled" >&2;}
29419 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: check for missing prerequisite headers?" >&5
29420 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: check for missing prerequisite headers?" >&2;}
29421 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: see the Autoconf documentation" >&5
29422 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: see the Autoconf documentation" >&2;}
29423 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
29424 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
29425 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the preprocessor's result" >&5
29426 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the preprocessor's result" >&2;}
29427 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: in the future, the compiler will take precedence" >&5
29428 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: in the future, the compiler will take precedence" >&2;}
29430 ## ------------------------------- ##
29431 ## Report this to www.asterisk.org ##
29432 ## ------------------------------- ##
29434 ) | sed "s/^/$as_me: WARNING: /" >&2
29437 { echo "$as_me:$LINENO: checking for ${tonezone_dir}/tonezone.h" >&5
29438 echo $ECHO_N "checking for ${tonezone_dir}/tonezone.h... $ECHO_C" >&6; }
29439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29440 echo $ECHO_N "(cached) $ECHO_C" >&6
29442 eval "$as_ac_Header=\$ac_header_preproc"
29444 ac_res=`eval echo '${'$as_ac_Header'}'`
29445 { echo "$as_me:$LINENO: result: $ac_res" >&5
29446 echo "${ECHO_T}$ac_res" >&6; }
29449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29450 TONEZONE_HEADER_FOUND=1
29452 TONEZONE_HEADER_FOUND=0
29457 CPPFLAGS="${saved_cppflags}"
29458 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
29459 if test -n "${TONEZONE_MANDATORY}" ;
29461 { echo "$as_me:$LINENO: ***" >&5
29462 echo "$as_me: ***" >&6;}
29463 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
29464 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
29465 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
29466 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
29467 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
29468 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
29472 TONEZONE_INCLUDE=""
29477 cat >>confdefs.h <<_ACEOF
29478 #define HAVE_TONEZONE 1
29482 elif test -n "${TONEZONE_MANDATORY}";
29484 { echo "$as_me:$LINENO: ***" >&5
29485 echo "$as_me: ***" >&6;}
29486 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
29487 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
29488 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29489 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29490 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
29491 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
29498 if test "${USE_USB}" != "no"; then
29500 if test "x${USB_DIR}" != "x"; then
29501 if test -d ${USB_DIR}/lib; then
29502 pbxlibdir="-L${USB_DIR}/lib"
29504 pbxlibdir="-L${USB_DIR}"
29507 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
29508 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
29509 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
29510 echo $ECHO_N "(cached) $ECHO_C" >&6
29512 ac_check_lib_save_LIBS=$LIBS
29513 LIBS="-lusb ${pbxlibdir} $LIBS"
29514 cat >conftest.$ac_ext <<_ACEOF
29517 cat confdefs.h >>conftest.$ac_ext
29518 cat >>conftest.$ac_ext <<_ACEOF
29519 /* end confdefs.h. */
29521 /* Override any GCC internal prototype to avoid an error.
29522 Use char because int might match the return type of a GCC
29523 builtin and then its argument prototype would still apply. */
29531 return usb_init ();
29536 rm -f conftest.$ac_objext conftest$ac_exeext
29537 if { (ac_try="$ac_link"
29538 case "(($ac_try" in
29539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29540 *) ac_try_echo
=$ac_try;;
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_link") 2>conftest.er1
29545 grep -v '^ *+' conftest.er1
>conftest.err
29547 cat conftest.err
>&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } && {
29550 test -z "$ac_c_werror_flag" ||
29551 test ! -s conftest.err
29552 } && test -s conftest
$ac_exeext &&
29553 $as_test_x conftest
$ac_exeext; then
29554 ac_cv_lib_usb_usb_init
=yes
29556 echo "$as_me: failed program was:" >&5
29557 sed 's/^/| /' conftest.
$ac_ext >&5
29559 ac_cv_lib_usb_usb_init
=no
29562 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29563 conftest
$ac_exeext conftest.
$ac_ext
29564 LIBS
=$ac_check_lib_save_LIBS
29566 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
29567 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
29568 if test $ac_cv_lib_usb_usb_init = yes; then
29575 if test "${AST_USB_FOUND}" = "yes"; then
29577 USB_HEADER_FOUND
="1"
29578 if test "x${USB_DIR}" != "x"; then
29579 USB_LIB
="${pbxlibdir} ${USB_LIB}"
29580 USB_INCLUDE
="-I${USB_DIR}/include"
29582 USB_INCLUDE
="${USB_INCLUDE} "
29583 saved_cppflags
="${CPPFLAGS}"
29584 CPPFLAGS
="${CPPFLAGS} ${USB_INCLUDE}"
29585 if test "xusb.h" != "x" ; then
29586 if test "${ac_cv_header_usb_h+set}" = set; then
29587 { echo "$as_me:$LINENO: checking for usb.h" >&5
29588 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
29589 if test "${ac_cv_header_usb_h+set}" = set; then
29590 echo $ECHO_N "(cached) $ECHO_C" >&6
29592 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
29593 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
29595 # Is the header compilable?
29596 { echo "$as_me:$LINENO: checking usb.h usability" >&5
29597 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
29598 cat >conftest.
$ac_ext <<_ACEOF
29601 cat confdefs.h
>>conftest.
$ac_ext
29602 cat >>conftest.
$ac_ext <<_ACEOF
29603 /* end confdefs.h. */
29604 $ac_includes_default
29607 rm -f conftest.
$ac_objext
29608 if { (ac_try
="$ac_compile"
29609 case "(($ac_try" in
29610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29611 *) ac_try_echo=$ac_try;;
29613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29614 (eval "$ac_compile") 2>conftest.er1
29616 grep -v '^ *+' conftest.er1 >conftest.err
29618 cat conftest.err >&5
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); } && {
29621 test -z "$ac_c_werror_flag" ||
29622 test ! -s conftest.err
29623 } && test -s conftest.$ac_objext; then
29624 ac_header_compiler=yes
29626 echo "$as_me: failed program was:" >&5
29627 sed 's/^/| /' conftest.$ac_ext >&5
29629 ac_header_compiler=no
29632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29634 echo "${ECHO_T}$ac_header_compiler" >&6; }
29636 # Is the header present?
29637 { echo "$as_me:$LINENO: checking usb.h presence" >&5
29638 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
29639 cat >conftest.$ac_ext <<_ACEOF
29642 cat confdefs.h >>conftest.$ac_ext
29643 cat >>conftest.$ac_ext <<_ACEOF
29644 /* end confdefs.h. */
29647 if { (ac_try="$ac_cpp conftest.$ac_ext"
29648 case "(($ac_try" in
29649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29650 *) ac_try_echo
=$ac_try;;
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29655 grep -v '^ *+' conftest.er1
>conftest.err
29657 cat conftest.err
>&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); } >/dev
/null
&& {
29660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29661 test ! -s conftest.err
29663 ac_header_preproc
=yes
29665 echo "$as_me: failed program was:" >&5
29666 sed 's/^/| /' conftest.
$ac_ext >&5
29668 ac_header_preproc
=no
29671 rm -f conftest.err conftest.
$ac_ext
29672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29673 echo "${ECHO_T}$ac_header_preproc" >&6; }
29675 # So? What about this header?
29676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29678 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
29679 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29680 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
29681 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
29682 ac_header_preproc
=yes
29685 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
29686 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
29687 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
29688 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
29689 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
29690 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
29691 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
29692 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
29693 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
29694 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
29695 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
29696 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
29698 ## ------------------------------- ##
29699 ## Report this to www.asterisk.org ##
29700 ## ------------------------------- ##
29702 ) |
sed "s/^/$as_me: WARNING: /" >&2
29705 { echo "$as_me:$LINENO: checking for usb.h" >&5
29706 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
29707 if test "${ac_cv_header_usb_h+set}" = set; then
29708 echo $ECHO_N "(cached) $ECHO_C" >&6
29710 ac_cv_header_usb_h
=$ac_header_preproc
29712 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
29713 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
29716 if test $ac_cv_header_usb_h = yes; then
29724 CPPFLAGS
="${saved_cppflags}"
29725 if test "x${USB_HEADER_FOUND}" = "x0" ; then
29726 if test -n "${USB_MANDATORY}" ;
29728 { echo "$as_me:$LINENO: ***" >&5
29729 echo "$as_me: ***" >&6;}
29730 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
29731 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
29732 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
29733 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
29734 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
29735 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
29744 cat >>confdefs.h
<<_ACEOF
29749 elif test -n "${USB_MANDATORY}";
29751 { echo "$as_me:$LINENO: ***" >&5
29752 echo "$as_me: ***" >&6;}
29753 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
29754 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
29755 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29756 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29757 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
29758 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
29765 if test "${USE_VORBIS}" != "no"; then
29767 if test "x${VORBIS_DIR}" != "x"; then
29768 if test -d ${VORBIS_DIR}/lib
; then
29769 pbxlibdir
="-L${VORBIS_DIR}/lib"
29771 pbxlibdir
="-L${VORBIS_DIR}"
29774 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
29775 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
29776 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
29777 echo $ECHO_N "(cached) $ECHO_C" >&6
29779 ac_check_lib_save_LIBS
=$LIBS
29780 LIBS
="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
29781 cat >conftest.
$ac_ext <<_ACEOF
29784 cat confdefs.h
>>conftest.
$ac_ext
29785 cat >>conftest.
$ac_ext <<_ACEOF
29786 /* end confdefs.h. */
29788 /* Override any GCC internal prototype to avoid an error.
29789 Use char because int might match the return type of a GCC
29790 builtin and then its argument prototype would still apply. */
29794 char vorbis_info_init ();
29798 return vorbis_info_init ();
29803 rm -f conftest.
$ac_objext conftest
$ac_exeext
29804 if { (ac_try
="$ac_link"
29805 case "(($ac_try" in
29806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29807 *) ac_try_echo=$ac_try;;
29809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810 (eval "$ac_link") 2>conftest.er1
29812 grep -v '^ *+' conftest.er1 >conftest.err
29814 cat conftest.err >&5
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); } && {
29817 test -z "$ac_c_werror_flag" ||
29818 test ! -s conftest.err
29819 } && test -s conftest$ac_exeext &&
29820 $as_test_x conftest$ac_exeext; then
29821 ac_cv_lib_vorbis_vorbis_info_init=yes
29823 echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29826 ac_cv_lib_vorbis_vorbis_info_init=no
29829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29830 conftest$ac_exeext conftest.$ac_ext
29831 LIBS=$ac_check_lib_save_LIBS
29833 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
29834 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
29835 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
29836 AST_VORBIS_FOUND=yes
29838 AST_VORBIS_FOUND=no
29842 if test "${AST_VORBIS_FOUND}" = "yes"; then
29843 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
29844 VORBIS_HEADER_FOUND="1"
29845 if test "x${VORBIS_DIR}" != "x"; then
29846 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
29847 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
29849 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
29850 saved_cppflags="${CPPFLAGS}"
29851 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
29852 if test "xvorbis/codec.h" != "x" ; then
29853 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29854 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29855 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29856 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29857 echo $ECHO_N "(cached) $ECHO_C" >&6
29859 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29860 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29862 # Is the header compilable?
29863 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
29864 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
29865 cat >conftest.$ac_ext <<_ACEOF
29868 cat confdefs.h >>conftest.$ac_ext
29869 cat >>conftest.$ac_ext <<_ACEOF
29870 /* end confdefs.h. */
29871 $ac_includes_default
29872 #include <vorbis/codec.h>
29874 rm -f conftest.$ac_objext
29875 if { (ac_try="$ac_compile"
29876 case "(($ac_try" in
29877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29878 *) ac_try_echo
=$ac_try;;
29880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29881 (eval "$ac_compile") 2>conftest.er1
29883 grep -v '^ *+' conftest.er1
>conftest.err
29885 cat conftest.err
>&5
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); } && {
29888 test -z "$ac_c_werror_flag" ||
29889 test ! -s conftest.err
29890 } && test -s conftest.
$ac_objext; then
29891 ac_header_compiler
=yes
29893 echo "$as_me: failed program was:" >&5
29894 sed 's/^/| /' conftest.
$ac_ext >&5
29896 ac_header_compiler
=no
29899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29901 echo "${ECHO_T}$ac_header_compiler" >&6; }
29903 # Is the header present?
29904 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
29905 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
29906 cat >conftest.
$ac_ext <<_ACEOF
29909 cat confdefs.h
>>conftest.
$ac_ext
29910 cat >>conftest.
$ac_ext <<_ACEOF
29911 /* end confdefs.h. */
29912 #include <vorbis/codec.h>
29914 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29915 case "(($ac_try" in
29916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29917 *) ac_try_echo=$ac_try;;
29919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29922 grep -v '^ *+' conftest.er1 >conftest.err
29924 cat conftest.err >&5
29925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926 (exit $ac_status); } >/dev/null && {
29927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29928 test ! -s conftest.err
29930 ac_header_preproc=yes
29932 echo "$as_me: failed program was:" >&5
29933 sed 's/^/| /' conftest.$ac_ext >&5
29935 ac_header_preproc=no
29938 rm -f conftest.err conftest.$ac_ext
29939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29940 echo "${ECHO_T}$ac_header_preproc" >&6; }
29942 # So? What about this header?
29943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29945 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29946 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29947 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
29948 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
29949 ac_header_preproc=yes
29952 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
29953 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
29954 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
29955 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29956 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
29957 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
29958 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29959 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29960 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
29961 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29962 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
29963 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29965 ## ------------------------------- ##
29966 ## Report this to www.asterisk.org ##
29967 ## ------------------------------- ##
29969 ) | sed "s/^/$as_me: WARNING: /" >&2
29972 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29973 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29974 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29975 echo $ECHO_N "(cached) $ECHO_C" >&6
29977 ac_cv_header_vorbis_codec_h=$ac_header_preproc
29979 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29980 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29983 if test $ac_cv_header_vorbis_codec_h = yes; then
29984 VORBIS_HEADER_FOUND=1
29986 VORBIS_HEADER_FOUND=0
29991 CPPFLAGS="${saved_cppflags}"
29992 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
29993 if test -n "${VORBIS_MANDATORY}" ;
29995 { echo "$as_me:$LINENO: ***" >&5
29996 echo "$as_me: ***" >&6;}
29997 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
29998 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
29999 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
30000 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
30001 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
30002 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
30011 cat >>confdefs.h <<_ACEOF
30012 #define HAVE_VORBIS 1
30016 elif test -n "${VORBIS_MANDATORY}";
30018 { echo "$as_me:$LINENO: ***" >&5
30019 echo "$as_me: ***" >&6;}
30020 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
30021 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
30022 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30023 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30024 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
30025 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
30032 ac_cpp='$CXXCPP $CPPFLAGS'
30033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30038 if test "${USE_VPB}" != "no"; then
30039 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
30040 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
30041 saved_libs="${LIBS}"
30042 saved_cppflags="${CPPFLAGS}"
30043 if test "x${VPB_DIR}" != "x"; then
30044 if test -d ${VPB_DIR}/lib; then
30045 vpblibdir=${VPB_DIR}/lib
30047 vpblibdir=${VPB_DIR}
30049 LIBS="${LIBS} -L${vpblibdir}"
30050 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
30052 LIBS="${LIBS} -lvpb -lpthread"
30053 cat >conftest.$ac_ext <<_ACEOF
30057 cat confdefs.h >>conftest.$ac_ext
30058 cat >>conftest.$ac_ext <<_ACEOF
30059 /* end confdefs.h. */
30060 #include <vpbapi.h>
30064 int q = vpb_open(0,0);
30070 rm -f conftest.$ac_objext conftest$ac_exeext
30071 if { (ac_try="$ac_link"
30072 case "(($ac_try" in
30073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30074 *) ac_try_echo
=$ac_try;;
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077 (eval "$ac_link") 2>conftest.er1
30079 grep -v '^ *+' conftest.er1
>conftest.err
30081 cat conftest.err
>&5
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); } && {
30084 test -z "$ac_cxx_werror_flag" ||
30085 test ! -s conftest.err
30086 } && test -s conftest
$ac_exeext &&
30087 $as_test_x conftest
$ac_exeext; then
30088 { echo "$as_me:$LINENO: result: yes" >&5
30089 echo "${ECHO_T}yes" >&6; }
30090 ac_cv_lib_vpb_vpb_open
="yes"
30093 echo "$as_me: failed program was:" >&5
30094 sed 's/^/| /' conftest.
$ac_ext >&5
30096 { echo "$as_me:$LINENO: result: no" >&5
30097 echo "${ECHO_T}no" >&6; }
30098 ac_cv_lib_vpb_vpb_open
="no"
30103 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30104 conftest
$ac_exeext conftest.
$ac_ext
30105 LIBS
="${saved_libs}"
30106 CPPFLAGS
="${saved_cppflags}"
30107 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
30109 if test "${VPB_DIR}" != ""; then
30110 VPB_LIB
="-L${vpblibdir} ${VPB_LIB}"
30111 VPB_INCLUDE
="-I${VPB_DIR}/include"
30115 cat >>confdefs.h
<<\_ACEOF
30119 elif test -n "${VPB_MANDATORY}"; then
30120 { echo "$as_me:$LINENO: ***" >&5
30121 echo "$as_me: ***" >&6;}
30122 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
30123 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
30124 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30125 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30126 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
30127 echo "$as_me: *** including --without-vpb." >&6;}
30133 ac_cpp
='$CPP $CPPFLAGS'
30134 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30135 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30136 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
30140 if test "${USE_ZLIB}" != "no"; then
30142 if test "x${ZLIB_DIR}" != "x"; then
30143 if test -d ${ZLIB_DIR}/lib
; then
30144 pbxlibdir
="-L${ZLIB_DIR}/lib"
30146 pbxlibdir
="-L${ZLIB_DIR}"
30149 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
30150 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
30151 if test "${ac_cv_lib_z_compress+set}" = set; then
30152 echo $ECHO_N "(cached) $ECHO_C" >&6
30154 ac_check_lib_save_LIBS
=$LIBS
30155 LIBS
="-lz ${pbxlibdir} $LIBS"
30156 cat >conftest.
$ac_ext <<_ACEOF
30159 cat confdefs.h
>>conftest.
$ac_ext
30160 cat >>conftest.
$ac_ext <<_ACEOF
30161 /* end confdefs.h. */
30163 /* Override any GCC internal prototype to avoid an error.
30164 Use char because int might match the return type of a GCC
30165 builtin and then its argument prototype would still apply. */
30173 return compress ();
30178 rm -f conftest.
$ac_objext conftest
$ac_exeext
30179 if { (ac_try
="$ac_link"
30180 case "(($ac_try" in
30181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30182 *) ac_try_echo=$ac_try;;
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185 (eval "$ac_link") 2>conftest.er1
30187 grep -v '^ *+' conftest.er1 >conftest.err
30189 cat conftest.err >&5
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); } && {
30192 test -z "$ac_c_werror_flag" ||
30193 test ! -s conftest.err
30194 } && test -s conftest$ac_exeext &&
30195 $as_test_x conftest$ac_exeext; then
30196 ac_cv_lib_z_compress=yes
30198 echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30201 ac_cv_lib_z_compress=no
30204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30205 conftest$ac_exeext conftest.$ac_ext
30206 LIBS=$ac_check_lib_save_LIBS
30208 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
30209 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
30210 if test $ac_cv_lib_z_compress = yes; then
30217 if test "${AST_ZLIB_FOUND}" = "yes"; then
30219 ZLIB_HEADER_FOUND="1"
30220 if test "x${ZLIB_DIR}" != "x"; then
30221 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
30222 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
30224 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
30225 saved_cppflags="${CPPFLAGS}"
30226 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
30227 if test "xzlib.h" != "x" ; then
30228 if test "${ac_cv_header_zlib_h+set}" = set; then
30229 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30230 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30231 if test "${ac_cv_header_zlib_h+set}" = set; then
30232 echo $ECHO_N "(cached) $ECHO_C" >&6
30234 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30235 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30237 # Is the header compilable?
30238 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
30239 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
30240 cat >conftest.$ac_ext <<_ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h. */
30246 $ac_includes_default
30249 rm -f conftest.$ac_objext
30250 if { (ac_try="$ac_compile"
30251 case "(($ac_try" in
30252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30253 *) ac_try_echo
=$ac_try;;
30255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30256 (eval "$ac_compile") 2>conftest.er1
30258 grep -v '^ *+' conftest.er1
>conftest.err
30260 cat conftest.err
>&5
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); } && {
30263 test -z "$ac_c_werror_flag" ||
30264 test ! -s conftest.err
30265 } && test -s conftest.
$ac_objext; then
30266 ac_header_compiler
=yes
30268 echo "$as_me: failed program was:" >&5
30269 sed 's/^/| /' conftest.
$ac_ext >&5
30271 ac_header_compiler
=no
30274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30276 echo "${ECHO_T}$ac_header_compiler" >&6; }
30278 # Is the header present?
30279 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
30280 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
30281 cat >conftest.
$ac_ext <<_ACEOF
30284 cat confdefs.h
>>conftest.
$ac_ext
30285 cat >>conftest.
$ac_ext <<_ACEOF
30286 /* end confdefs.h. */
30289 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30290 case "(($ac_try" in
30291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30292 *) ac_try_echo=$ac_try;;
30294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30297 grep -v '^ *+' conftest.er1 >conftest.err
30299 cat conftest.err >&5
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); } >/dev/null && {
30302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30303 test ! -s conftest.err
30305 ac_header_preproc=yes
30307 echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.$ac_ext >&5
30310 ac_header_preproc=no
30313 rm -f conftest.err conftest.$ac_ext
30314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30315 echo "${ECHO_T}$ac_header_preproc" >&6; }
30317 # So? What about this header?
30318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30320 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30321 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30322 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
30323 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
30324 ac_header_preproc=yes
30327 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
30328 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
30329 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
30330 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
30331 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
30332 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
30333 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
30334 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30335 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
30336 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
30337 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
30338 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
30340 ## ------------------------------- ##
30341 ## Report this to www.asterisk.org ##
30342 ## ------------------------------- ##
30344 ) | sed "s/^/$as_me: WARNING: /" >&2
30347 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30348 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30349 if test "${ac_cv_header_zlib_h+set}" = set; then
30350 echo $ECHO_N "(cached) $ECHO_C" >&6
30352 ac_cv_header_zlib_h=$ac_header_preproc
30354 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30355 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30358 if test $ac_cv_header_zlib_h = yes; then
30359 ZLIB_HEADER_FOUND=1
30361 ZLIB_HEADER_FOUND=0
30366 CPPFLAGS="${saved_cppflags}"
30367 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
30368 if test -n "${ZLIB_MANDATORY}" ;
30370 { echo "$as_me:$LINENO: ***" >&5
30371 echo "$as_me: ***" >&6;}
30372 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
30373 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
30374 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
30375 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
30376 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30377 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30386 cat >>confdefs.h <<_ACEOF
30387 #define HAVE_ZLIB 1
30391 elif test -n "${ZLIB_MANDATORY}";
30393 { echo "$as_me:$LINENO: ***" >&5
30394 echo "$as_me: ***" >&6;}
30395 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
30396 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
30397 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30398 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30399 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30400 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30406 if test "${USE_ZAPTEL}" != "no" && test "x${PBX_DAHDI}" != "x1"; then
30407 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
30408 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
30409 saved_cppflags="${CPPFLAGS}"
30410 if test "x${ZAPTEL_DIR}" != "x"; then
30411 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30413 cat >conftest.$ac_ext <<_ACEOF
30417 cat confdefs.h >>conftest.$ac_ext
30418 cat >>conftest.$ac_ext <<_ACEOF
30419 /* end confdefs.h. */
30420 #include <zaptel/zaptel.h>
30424 int foo = ZT_DIAL_OP_CANCEL;
30430 rm -f conftest.$ac_objext
30431 if { (ac_try="$ac_compile"
30432 case "(($ac_try" in
30433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30434 *) ac_try_echo
=$ac_try;;
30436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437 (eval "$ac_compile") 2>conftest.er1
30439 grep -v '^ *+' conftest.er1
>conftest.err
30441 cat conftest.err
>&5
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); } && {
30444 test -z "$ac_c_werror_flag" ||
30445 test ! -s conftest.err
30446 } && test -s conftest.
$ac_objext; then
30447 { echo "$as_me:$LINENO: result: yes" >&5
30448 echo "${ECHO_T}yes" >&6; }
30449 ac_cv_zaptel_h
="yes"
30452 echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.
$ac_ext >&5
30455 { echo "$as_me:$LINENO: result: no" >&5
30456 echo "${ECHO_T}no" >&6; }
30457 ac_cv_zaptel_h
="no"
30462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30463 CPPFLAGS
="${saved_cppflags}"
30464 if test "${ac_cv_zaptel_h}" = "yes"; then
30465 if test "${ZAPTEL_DIR}" != ""; then
30466 ZAPTEL_INCLUDE
="-I${ZAPTEL_DIR}/include"
30470 cat >>confdefs.h
<<\_ACEOF
30471 #define HAVE_ZAPTEL 1
30474 saved_cppflags
="${CPPFLAGS}"
30475 CPPFLAGS
="${CPPFLAGS} ${ZAPTEL_INCLUDE}"
30476 { echo "$as_me:$LINENO: checking for ZT_PARAMS.chan_alarms" >&5
30477 echo $ECHO_N "checking for ZT_PARAMS.chan_alarms... $ECHO_C" >&6; }
30478 if test "${ac_cv_member_ZT_PARAMS_chan_alarms+set}" = set; then
30479 echo $ECHO_N "(cached) $ECHO_C" >&6
30481 cat >conftest.
$ac_ext <<_ACEOF
30484 cat confdefs.h
>>conftest.
$ac_ext
30485 cat >>conftest.
$ac_ext <<_ACEOF
30486 /* end confdefs.h. */
30487 #include <zaptel/zaptel.h>
30492 static ZT_PARAMS ac_aggr;
30493 if (ac_aggr.chan_alarms)
30499 rm -f conftest.
$ac_objext
30500 if { (ac_try
="$ac_compile"
30501 case "(($ac_try" in
30502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30503 *) ac_try_echo=$ac_try;;
30505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506 (eval "$ac_compile") 2>conftest.er1
30508 grep -v '^ *+' conftest.er1 >conftest.err
30510 cat conftest.err >&5
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); } && {
30513 test -z "$ac_c_werror_flag" ||
30514 test ! -s conftest.err
30515 } && test -s conftest.$ac_objext; then
30516 ac_cv_member_ZT_PARAMS_chan_alarms=yes
30518 echo "$as_me: failed program was:" >&5
30519 sed 's/^/| /' conftest.$ac_ext >&5
30521 cat >conftest.$ac_ext <<_ACEOF
30524 cat confdefs.h >>conftest.$ac_ext
30525 cat >>conftest.$ac_ext <<_ACEOF
30526 /* end confdefs.h. */
30527 #include <zaptel/zaptel.h>
30532 static ZT_PARAMS ac_aggr;
30533 if (sizeof ac_aggr.chan_alarms)
30539 rm -f conftest.$ac_objext
30540 if { (ac_try="$ac_compile"
30541 case "(($ac_try" in
30542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30543 *) ac_try_echo
=$ac_try;;
30545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546 (eval "$ac_compile") 2>conftest.er1
30548 grep -v '^ *+' conftest.er1
>conftest.err
30550 cat conftest.err
>&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); } && {
30553 test -z "$ac_c_werror_flag" ||
30554 test ! -s conftest.err
30555 } && test -s conftest.
$ac_objext; then
30556 ac_cv_member_ZT_PARAMS_chan_alarms
=yes
30558 echo "$as_me: failed program was:" >&5
30559 sed 's/^/| /' conftest.
$ac_ext >&5
30561 ac_cv_member_ZT_PARAMS_chan_alarms
=no
30564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30569 { echo "$as_me:$LINENO: result: $ac_cv_member_ZT_PARAMS_chan_alarms" >&5
30570 echo "${ECHO_T}$ac_cv_member_ZT_PARAMS_chan_alarms" >&6; }
30572 CPPFLAGS
="${saved_cppflags}"
30573 if test "${ac_cv_member_ZT_PARAMS_chan_alarms}" = "yes"; then
30575 cat >>confdefs.h
<<\_ACEOF
30576 #define HAVE_ZAPTEL_CHANALARMS 1
30581 cat >>confdefs.h
<<\_ACEOF
30582 #define HAVE_ZAPTEL_CHANALARMS 0
30586 elif test -n "${ZAPTEL_MANDATORY}";
30588 { echo "$as_me:$LINENO: ***" >&5
30589 echo "$as_me: ***" >&6;}
30590 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
30591 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
30592 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30593 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30594 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
30595 echo "$as_me: *** including --without-zaptel." >&6;}
30600 if test "${PBX_ZAPTEL}" = 1 && test "x${PBX_DAHDI}" != "x1"; then
30601 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
30602 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
30603 saved_cppflags
="${CPPFLAGS}"
30604 if test "x${ZAPTEL_DIR}" != "x"; then
30605 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30607 cat >conftest.
$ac_ext <<_ACEOF
30611 cat confdefs.h
>>conftest.
$ac_ext
30612 cat >>conftest.
$ac_ext <<_ACEOF
30613 /* end confdefs.h. */
30614 #include <zaptel/zaptel.h>
30618 int foo = ZT_EVENT_REMOVED;
30624 rm -f conftest.
$ac_objext
30625 if { (ac_try
="$ac_compile"
30626 case "(($ac_try" in
30627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30628 *) ac_try_echo=$ac_try;;
30630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30631 (eval "$ac_compile") 2>conftest.er1
30633 grep -v '^ *+' conftest.er1 >conftest.err
30635 cat conftest.err >&5
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); } && {
30638 test -z "$ac_c_werror_flag" ||
30639 test ! -s conftest.err
30640 } && test -s conftest.$ac_objext; then
30641 { echo "$as_me:$LINENO: result: yes" >&5
30642 echo "${ECHO_T}yes" >&6; }
30643 ac_cv_zaptel_vldtmf="yes"
30646 echo "$as_me: failed program was:" >&5
30647 sed 's/^/| /' conftest.$ac_ext >&5
30649 { echo "$as_me:$LINENO: result: no" >&5
30650 echo "${ECHO_T}no" >&6; }
30651 ac_cv_zaptel_vldtmf="no"
30656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30657 CPPFLAGS="${saved_cppflags}"
30658 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
30659 PBX_ZAPTEL_VLDTMF=1
30661 { echo "$as_me:$LINENO: checking for zt_transcoder_info in zaptel/zaptel.h" >&5
30662 echo $ECHO_N "checking for zt_transcoder_info in zaptel/zaptel.h... $ECHO_C" >&6; }
30663 saved_cppflags="${CPPFLAGS}"
30664 if test "x${ZAPTEL_DIR}" != "x"; then
30665 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30667 cat >conftest.$ac_ext <<_ACEOF
30671 cat confdefs.h >>conftest.$ac_ext
30672 cat >>conftest.$ac_ext <<_ACEOF
30673 /* end confdefs.h. */
30674 #include <zaptel/zaptel.h>
30678 int foo = sizeof(struct zt_transcoder_info);
30684 rm -f conftest.$ac_objext
30685 if { (ac_try="$ac_compile"
30686 case "(($ac_try" in
30687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30688 *) ac_try_echo
=$ac_try;;
30690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30691 (eval "$ac_compile") 2>conftest.er1
30693 grep -v '^ *+' conftest.er1
>conftest.err
30695 cat conftest.err
>&5
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697 (exit $ac_status); } && {
30698 test -z "$ac_c_werror_flag" ||
30699 test ! -s conftest.err
30700 } && test -s conftest.
$ac_objext; then
30701 { echo "$as_me:$LINENO: result: yes" >&5
30702 echo "${ECHO_T}yes" >&6; }
30703 ac_cv_zaptel_transcode
="yes"
30706 echo "$as_me: failed program was:" >&5
30707 sed 's/^/| /' conftest.
$ac_ext >&5
30709 { echo "$as_me:$LINENO: result: no" >&5
30710 echo "${ECHO_T}no" >&6; }
30711 ac_cv_zaptel_transcode
="no"
30716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30717 CPPFLAGS
="${saved_cppflags}"
30718 if test "${ac_cv_zaptel_transcode}" = "yes"; then
30719 PBX_DAHDI_TRANSCODE
=1
30725 if test "x${PBX_ZAPTEL}" = "x1" ; then
30727 DAHDI_INCLUDE
=${ZAPTEL_INCLUDE}
30728 DAHDI_LIB
=${ZAPTEL_LIB}
30735 if test "x$TERMCAP_LIB" != "x" ; then
30736 EDITLINE_LIB
="$TERMCAP_LIB"
30737 elif test "x$TINFO_LIB" != "x" ; then
30738 EDITLINE_LIB
="$TINFO_LIB"
30739 elif test "x$CURSES_LIB" != "x" ; then
30740 EDITLINE_LIB
="$CURSES_LIB"
30741 elif test "x$NCURSES_LIB" != "x" ; then
30742 EDITLINE_LIB
="$NCURSES_LIB"
30744 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
30745 echo "$as_me: error: *** termcap support not found" >&2;}
30746 { (exit 1); exit 1; }; }
30750 if test "${ac_cv_header_h323_h+set}" = set; then
30751 { echo "$as_me:$LINENO: checking for h323.h" >&5
30752 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30753 if test "${ac_cv_header_h323_h+set}" = set; then
30754 echo $ECHO_N "(cached) $ECHO_C" >&6
30756 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30757 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30759 # Is the header compilable?
30760 { echo "$as_me:$LINENO: checking h323.h usability" >&5
30761 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
30762 cat >conftest.
$ac_ext <<_ACEOF
30765 cat confdefs.h
>>conftest.
$ac_ext
30766 cat >>conftest.
$ac_ext <<_ACEOF
30767 /* end confdefs.h. */
30768 $ac_includes_default
30771 rm -f conftest.
$ac_objext
30772 if { (ac_try
="$ac_compile"
30773 case "(($ac_try" in
30774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30775 *) ac_try_echo=$ac_try;;
30777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30778 (eval "$ac_compile") 2>conftest.er1
30780 grep -v '^ *+' conftest.er1 >conftest.err
30782 cat conftest.err >&5
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); } && {
30785 test -z "$ac_c_werror_flag" ||
30786 test ! -s conftest.err
30787 } && test -s conftest.$ac_objext; then
30788 ac_header_compiler=yes
30790 echo "$as_me: failed program was:" >&5
30791 sed 's/^/| /' conftest.$ac_ext >&5
30793 ac_header_compiler=no
30796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30798 echo "${ECHO_T}$ac_header_compiler" >&6; }
30800 # Is the header present?
30801 { echo "$as_me:$LINENO: checking h323.h presence" >&5
30802 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
30803 cat >conftest.$ac_ext <<_ACEOF
30806 cat confdefs.h >>conftest.$ac_ext
30807 cat >>conftest.$ac_ext <<_ACEOF
30808 /* end confdefs.h. */
30811 if { (ac_try="$ac_cpp conftest.$ac_ext"
30812 case "(($ac_try" in
30813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30814 *) ac_try_echo
=$ac_try;;
30816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30819 grep -v '^ *+' conftest.er1
>conftest.err
30821 cat conftest.err
>&5
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); } >/dev
/null
&& {
30824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30825 test ! -s conftest.err
30827 ac_header_preproc
=yes
30829 echo "$as_me: failed program was:" >&5
30830 sed 's/^/| /' conftest.
$ac_ext >&5
30832 ac_header_preproc
=no
30835 rm -f conftest.err conftest.
$ac_ext
30836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30837 echo "${ECHO_T}$ac_header_preproc" >&6; }
30839 # So? What about this header?
30840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30842 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30843 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30844 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
30845 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
30846 ac_header_preproc
=yes
30849 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
30850 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
30851 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
30852 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
30853 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
30854 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
30855 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
30856 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30857 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
30858 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
30859 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
30860 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
30862 ## ------------------------------- ##
30863 ## Report this to www.asterisk.org ##
30864 ## ------------------------------- ##
30866 ) |
sed "s/^/$as_me: WARNING: /" >&2
30869 { echo "$as_me:$LINENO: checking for h323.h" >&5
30870 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30871 if test "${ac_cv_header_h323_h+set}" = set; then
30872 echo $ECHO_N "(cached) $ECHO_C" >&6
30874 ac_cv_header_h323_h
=$ac_header_preproc
30876 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30877 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30880 if test $ac_cv_header_h323_h = yes; then
30889 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
30890 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
30891 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
30892 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
30893 echo $ECHO_N "(cached) $ECHO_C" >&6
30895 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
30896 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
30898 # Is the header compilable?
30899 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
30900 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
30901 cat >conftest.
$ac_ext <<_ACEOF
30904 cat confdefs.h
>>conftest.
$ac_ext
30905 cat >>conftest.
$ac_ext <<_ACEOF
30906 /* end confdefs.h. */
30907 $ac_includes_default
30908 #include <linux/compiler.h>
30910 rm -f conftest.
$ac_objext
30911 if { (ac_try
="$ac_compile"
30912 case "(($ac_try" in
30913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30914 *) ac_try_echo=$ac_try;;
30916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30917 (eval "$ac_compile") 2>conftest.er1
30919 grep -v '^ *+' conftest.er1 >conftest.err
30921 cat conftest.err >&5
30922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923 (exit $ac_status); } && {
30924 test -z "$ac_c_werror_flag" ||
30925 test ! -s conftest.err
30926 } && test -s conftest.$ac_objext; then
30927 ac_header_compiler=yes
30929 echo "$as_me: failed program was:" >&5
30930 sed 's/^/| /' conftest.$ac_ext >&5
30932 ac_header_compiler=no
30935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30937 echo "${ECHO_T}$ac_header_compiler" >&6; }
30939 # Is the header present?
30940 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
30941 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
30942 cat >conftest.$ac_ext <<_ACEOF
30945 cat confdefs.h >>conftest.$ac_ext
30946 cat >>conftest.$ac_ext <<_ACEOF
30947 /* end confdefs.h. */
30948 #include <linux/compiler.h>
30950 if { (ac_try="$ac_cpp conftest.$ac_ext"
30951 case "(($ac_try" in
30952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30953 *) ac_try_echo
=$ac_try;;
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30958 grep -v '^ *+' conftest.er1
>conftest.err
30960 cat conftest.err
>&5
30961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962 (exit $ac_status); } >/dev
/null
&& {
30963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30964 test ! -s conftest.err
30966 ac_header_preproc
=yes
30968 echo "$as_me: failed program was:" >&5
30969 sed 's/^/| /' conftest.
$ac_ext >&5
30971 ac_header_preproc
=no
30974 rm -f conftest.err conftest.
$ac_ext
30975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30976 echo "${ECHO_T}$ac_header_preproc" >&6; }
30978 # So? What about this header?
30979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30981 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
30982 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30983 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
30984 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
30985 ac_header_preproc
=yes
30988 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
30989 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
30990 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
30991 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
30992 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
30993 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
30994 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
30995 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
30996 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
30997 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
30998 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
30999 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
31001 ## ------------------------------- ##
31002 ## Report this to www.asterisk.org ##
31003 ## ------------------------------- ##
31005 ) |
sed "s/^/$as_me: WARNING: /" >&2
31008 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
31009 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
31010 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
31011 echo $ECHO_N "(cached) $ECHO_C" >&6
31013 ac_cv_header_linux_compiler_h
=$ac_header_preproc
31015 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
31016 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
31019 if test $ac_cv_header_linux_compiler_h = yes; then
31021 cat >>confdefs.h
<<_ACEOF
31022 #define HAVE_LINUX_COMPILER_H 1
31029 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
31030 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
31031 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
31032 echo $ECHO_N "(cached) $ECHO_C" >&6
31034 cat >conftest.
$ac_ext <<_ACEOF
31037 cat confdefs.h
>>conftest.
$ac_ext
31038 cat >>conftest.
$ac_ext <<_ACEOF
31039 /* end confdefs.h. */
31041 #include <linux/version.h>
31042 #ifdef HAVE_LINUX_COMPILER_H
31043 #include <linux/compiler.h>
31047 #include <linux/ixjuser.h>
31049 rm -f conftest.
$ac_objext
31050 if { (ac_try
="$ac_compile"
31051 case "(($ac_try" in
31052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31053 *) ac_try_echo=$ac_try;;
31055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31056 (eval "$ac_compile") 2>conftest.er1
31058 grep -v '^ *+' conftest.er1 >conftest.err
31060 cat conftest.err >&5
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); } && {
31063 test -z "$ac_c_werror_flag" ||
31064 test ! -s conftest.err
31065 } && test -s conftest.$ac_objext; then
31066 ac_cv_header_linux_ixjuser_h=yes
31068 echo "$as_me: failed program was:" >&5
31069 sed 's/^/| /' conftest.$ac_ext >&5
31071 ac_cv_header_linux_ixjuser_h=no
31074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31076 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
31077 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
31078 if test $ac_cv_header_linux_ixjuser_h = yes; then
31087 if test "${cross_compiling}" = "no";
31089 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
31090 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
31091 if test "${ac_cv_file__sbin_launchd+set}" = set; then
31092 echo $ECHO_N "(cached) $ECHO_C" >&6
31094 test "$cross_compiling" = yes &&
31095 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
31096 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
31097 { (exit 1); exit 1; }; }
31098 if test -r "/sbin/launchd"; then
31099 ac_cv_file__sbin_launchd=yes
31101 ac_cv_file__sbin_launchd=no
31104 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
31105 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
31106 if test $ac_cv_file__sbin_launchd = yes; then
31108 cat >>confdefs.h <<\_ACEOF
31109 #define HAVE_SBIN_LAUNCHD 1
31117 if test -n "$ac_tool_prefix"; then
31118 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
31119 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
31120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31122 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
31123 echo $ECHO_N "(cached) $ECHO_C" >&6
31125 if test -n "$GTKCONFIG"; then
31126 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
31128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31129 for as_dir in $PATH
31132 test -z "$as_dir" && as_dir=.
31133 for ac_exec_ext in '' $ac_executable_extensions; do
31134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31135 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
31136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31145 GTKCONFIG=$ac_cv_prog_GTKCONFIG
31146 if test -n "$GTKCONFIG"; then
31147 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
31148 echo "${ECHO_T}$GTKCONFIG" >&6; }
31150 { echo "$as_me:$LINENO: result: no" >&5
31151 echo "${ECHO_T}no" >&6; }
31156 if test -z "$ac_cv_prog_GTKCONFIG"; then
31157 ac_ct_GTKCONFIG=$GTKCONFIG
31158 # Extract the first word of "gtk-config", so it can be a program name with args.
31159 set dummy gtk-config; ac_word=$2
31160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31162 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
31163 echo $ECHO_N "(cached) $ECHO_C" >&6
31165 if test -n "$ac_ct_GTKCONFIG"; then
31166 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
31168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31169 for as_dir in $PATH
31172 test -z "$as_dir" && as_dir=.
31173 for ac_exec_ext in '' $ac_executable_extensions; do
31174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31175 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
31176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31185 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
31186 if test -n "$ac_ct_GTKCONFIG"; then
31187 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
31188 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
31190 { echo "$as_me:$LINENO: result: no" >&5
31191 echo "${ECHO_T}no" >&6; }
31194 if test "x$ac_ct_GTKCONFIG" = x; then
31197 case $cross_compiling:$ac_tool_warned in
31199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31200 whose name does not start with the host triplet. If you think this
31201 configuration is useful to you, please write to autoconf@gnu.org." >&5
31202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31203 whose name does not start with the host triplet. If you think this
31204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31205 ac_tool_warned=yes ;;
31207 GTKCONFIG=$ac_ct_GTKCONFIG
31210 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
31213 if test ! "x${GTKCONFIG}" = xNo; then
31214 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
31215 GTK_LIB=$(${GTKCONFIG} --libs gthread)
31218 cat >>confdefs.h <<\_ACEOF
31228 if test -n "$ac_tool_prefix"; then
31229 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31230 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31233 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
31234 echo $ECHO_N "(cached) $ECHO_C" >&6
31236 if test -n "$PKGCONFIG"; then
31237 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
31239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31240 for as_dir in $PATH
31243 test -z "$as_dir" && as_dir=.
31244 for ac_exec_ext in '' $ac_executable_extensions; do
31245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31246 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
31247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31256 PKGCONFIG=$ac_cv_prog_PKGCONFIG
31257 if test -n "$PKGCONFIG"; then
31258 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
31259 echo "${ECHO_T}$PKGCONFIG" >&6; }
31261 { echo "$as_me:$LINENO: result: no" >&5
31262 echo "${ECHO_T}no" >&6; }
31267 if test -z "$ac_cv_prog_PKGCONFIG"; then
31268 ac_ct_PKGCONFIG=$PKGCONFIG
31269 # Extract the first word of "pkg-config", so it can be a program name with args.
31270 set dummy pkg-config; ac_word=$2
31271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31273 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31276 if test -n "$ac_ct_PKGCONFIG"; then
31277 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
31279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31280 for as_dir in $PATH
31283 test -z "$as_dir" && as_dir=.
31284 for ac_exec_ext in '' $ac_executable_extensions; do
31285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31286 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
31287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31296 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
31297 if test -n "$ac_ct_PKGCONFIG"; then
31298 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
31299 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
31301 { echo "$as_me:$LINENO: result: no" >&5
31302 echo "${ECHO_T}no" >&6; }
31305 if test "x$ac_ct_PKGCONFIG" = x; then
31308 case $cross_compiling:$ac_tool_warned in
31310 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31311 whose name does not start with the host triplet. If you think this
31312 configuration is useful to you, please write to autoconf@gnu.org." >&5
31313 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31314 whose name does not start with the host triplet. If you think this
31315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31316 ac_tool_warned=yes ;;
31318 PKGCONFIG=$ac_ct_PKGCONFIG
31321 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
31324 if test ! "x${PKGCONFIG}" = xNo; then
31325 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
31326 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
31329 cat >>confdefs.h <<\_ACEOF
31330 #define HAVE_GTK2 1
31338 if test "${USE_CURL}" != "no"; then
31339 if test -n "$ac_tool_prefix"; then
31340 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
31341 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
31342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31344 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
31345 echo $ECHO_N "(cached) $ECHO_C" >&6
31347 case $CURL_CONFIG in
31349 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
31352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31353 for as_dir in $PATH
31356 test -z "$as_dir" && as_dir=.
31357 for ac_exec_ext in '' $ac_executable_extensions; do
31358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31359 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31370 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
31371 if test -n "$CURL_CONFIG"; then
31372 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
31373 echo "${ECHO_T}$CURL_CONFIG" >&6; }
31375 { echo "$as_me:$LINENO: result: no" >&5
31376 echo "${ECHO_T}no" >&6; }
31381 if test -z "$ac_cv_path_CURL_CONFIG"; then
31382 ac_pt_CURL_CONFIG=$CURL_CONFIG
31383 # Extract the first word of "curl-config", so it can be a program name with args.
31384 set dummy curl-config; ac_word=$2
31385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31387 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
31388 echo $ECHO_N "(cached) $ECHO_C" >&6
31390 case $ac_pt_CURL_CONFIG in
31392 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
31395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31396 for as_dir in $PATH
31399 test -z "$as_dir" && as_dir=.
31400 for ac_exec_ext in '' $ac_executable_extensions; do
31401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31402 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31413 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
31414 if test -n "$ac_pt_CURL_CONFIG"; then
31415 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
31416 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
31418 { echo "$as_me:$LINENO: result: no" >&5
31419 echo "${ECHO_T}no" >&6; }
31422 if test "x$ac_pt_CURL_CONFIG" = x; then
31425 case $cross_compiling:$ac_tool_warned in
31427 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31428 whose name does not start with the host triplet. If you think this
31429 configuration is useful to you, please write to autoconf@gnu.org." >&5
31430 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31431 whose name does not start with the host triplet. If you think this
31432 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31433 ac_tool_warned=yes ;;
31435 CURL_CONFIG=$ac_pt_CURL_CONFIG
31438 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
31441 if test ! x"${CURL_CONFIG}" = xNo; then
31442 # check for version
31443 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
31444 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
31445 CURL_LIB=$(${CURL_CONFIG} --libs)
31447 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
31448 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
31449 saved_cppflags="${CPPFLAGS}"
31450 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
31451 cat >conftest.$ac_ext <<_ACEOF
31454 cat confdefs.h >>conftest.$ac_ext
31455 cat >>conftest.$ac_ext <<_ACEOF
31456 /* end confdefs.h. */
31457 #include <curl/curl.h>
31467 rm -f conftest.$ac_objext
31468 if { (ac_try="$ac_compile"
31469 case "(($ac_try" in
31470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31471 *) ac_try_echo
=$ac_try;;
31473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31474 (eval "$ac_compile") 2>conftest.er1
31476 grep -v '^ *+' conftest.er1
>conftest.err
31478 cat conftest.err
>&5
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); } && {
31481 test -z "$ac_c_werror_flag" ||
31482 test ! -s conftest.err
31483 } && test -s conftest.
$ac_objext; then
31485 { echo "$as_me:$LINENO: result: yes" >&5
31486 echo "${ECHO_T}yes" >&6; }
31490 echo "$as_me: failed program was:" >&5
31491 sed 's/^/| /' conftest.
$ac_ext >&5
31494 { echo "$as_me:$LINENO: result: no" >&5
31495 echo "${ECHO_T}no" >&6; }
31501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31502 CPPFLAGS
="${saved_cppflags}"
31503 if test "${ac_cv_curl_h}" = "yes"; then
31506 cat >>confdefs.h
<<\_ACEOF
31507 #define HAVE_CURL 1
31515 ac_config_files
="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
31517 cat >confcache
<<\_ACEOF
31518 # This file is a shell script that caches the results of configure
31519 # tests run on this system so they can be shared between configure
31520 # scripts and configure runs, see configure's option --config-cache.
31521 # It is not useful on other systems. If it contains results you don't
31522 # want to keep, you may remove or edit it.
31524 # config.status only pays attention to the cache file if you give it
31525 # the --recheck option to rerun configure.
31527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31529 # following values.
31533 # The following way of writing the cache mishandles newlines in values,
31534 # but we know of no workaround that is simple, portable, and efficient.
31535 # So, we kill variables containing newlines.
31536 # Ultrix sh set writes to stderr and can't be redirected directly,
31537 # and sets the high bit in the cache file unless we assign to the vars.
31539 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31540 eval ac_val
=\$
$ac_var
31544 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31545 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31548 _ | IFS | as_nl
) ;; #(
31549 *) $as_unset $ac_var ;;
31555 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31556 *${as_nl}ac_space
=\
*)
31557 # `set' does not quote correctly, so add quotes (double-quote
31558 # substitution turns \\\\ into \\, and sed turns \\ into \).
31561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31564 # `set' quotes correctly as required by POSIX, so do not add quotes.
31565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31574 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31576 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31578 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31579 if test -w "$cache_file"; then
31580 test "x$cache_file" != "x/dev/null" &&
31581 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31582 echo "$as_me: updating cache $cache_file" >&6;}
31583 cat confcache
>$cache_file
31585 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31586 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31591 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31592 # Let make expand exec_prefix.
31593 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31595 DEFS
=-DHAVE_CONFIG_H
31599 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31600 # 1. Remove the extension, and $U if already installed.
31601 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31602 ac_i
=`echo "$ac_i" | sed "$ac_script"`
31603 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31604 # will be set to the directory where LIBOBJS objects are built.
31605 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31606 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31608 LIBOBJS
=$ac_libobjs
31610 LTLIBOBJS
=$ac_ltlibobjs
31614 : ${CONFIG_STATUS=./config.status}
31615 ac_clean_files_save
=$ac_clean_files
31616 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31617 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31618 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31619 cat >$CONFIG_STATUS <<_ACEOF
31621 # Generated by $as_me.
31622 # Run this file to recreate the current configuration.
31623 # Compiler output produced by configure, useful for debugging
31624 # configure, is in config.log if it exists.
31627 ac_cs_recheck=false
31629 SHELL=\${CONFIG_SHELL-$SHELL}
31632 cat >>$CONFIG_STATUS <<\_ACEOF
31633 ## --------------------- ##
31634 ## M4sh Initialization. ##
31635 ## --------------------- ##
31637 # Be more Bourne compatible
31638 DUALCASE
=1; export DUALCASE
# for MKS sh
31639 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
31642 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31643 # is contrary to our usage. Disable this feature.
31644 alias -g '${1+"$@"}'='"$@"'
31645 setopt NO_GLOB_SUBST
31647 case `(set -o) 2>/dev/null` in
31648 *posix
*) set -o posix
;;
31657 # Avoid depending upon Character Ranges.
31658 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31659 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31660 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31661 as_cr_digits
='0123456789'
31662 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31664 # The user is always right.
31665 if test "${PATH_SEPARATOR+set}" != set; then
31666 echo "#! /bin/sh" >conf$$.sh
31667 echo "exit 0" >>conf$$.sh
31669 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
31677 # Support unset when possible.
31678 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
31686 # We need space, tab and new line, in precisely that order. Quoting is
31687 # there to prevent editors from complaining about space-tab.
31688 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31689 # splitting by setting IFS to empty value.)
31694 # Find who we are. Look in the path if we contain no directory separator.
31696 *[\\/]* ) as_myself
=$0 ;;
31697 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31698 for as_dir
in $PATH
31701 test -z "$as_dir" && as_dir
=.
31702 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
31708 # We did not find ourselves, most probably we were run as `sh COMMAND'
31709 # in which case we are not to be found in the path.
31710 if test "x$as_myself" = x
; then
31713 if test ! -f "$as_myself"; then
31714 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31715 { (exit 1); exit 1; }
31718 # Work around bugs in pre-3.0 UWIN ksh.
31719 for as_var
in ENV MAIL MAILPATH
31720 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
31728 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31729 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31730 LC_TELEPHONE LC_TIME
31732 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31733 eval $as_var=C
; export $as_var
31735 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
31739 # Required to use basename.
31740 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31741 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31747 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31748 as_basename
=basename
31754 # Name of the executable.
31755 as_me
=`$as_basename -- "$0" ||
31756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31757 X"$0" : 'X\(//\)$' \| \
31758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31760 sed '/^.*\/\([^/][^/]*\)\/*$/{
31779 as_lineno_1
=$LINENO
31780 as_lineno_2
=$LINENO
31781 test "x$as_lineno_1" != "x$as_lineno_2" &&
31782 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
31784 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31785 # uniformly replaced by the line number. The first 'sed' inserts a
31786 # line-number line after each line using $LINENO; the second 'sed'
31787 # does the real work. The second script uses 'N' to pair each
31788 # line-number line with the line containing $LINENO, and appends
31789 # trailing '-' during substitution so that $LINENO is not a special
31790 # case at line end.
31791 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31792 # scripts with optimization help from Paolo Bonzini. Blame Lee
31793 # E. McMahon (1931-1989) for sed's syntax. :-)
31805 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31808 ' >$as_me.lineno
&&
31809 chmod +x
"$as_me.lineno" ||
31810 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31811 { (exit 1); exit 1; }; }
31813 # Don't try to exec as it changes $[0], causing all sort of problems
31814 # (the dirname of $[0] is not the place where we might find the
31815 # original and so on. Autoconf is especially sensitive to this).
31816 .
"./$as_me.lineno"
31817 # Exit status is that of the last command.
31822 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31828 ECHO_C
= ECHO_N
= ECHO_T
=
31829 case `echo -n x` in
31831 case `echo 'x\c'` in
31832 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31839 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31840 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31846 rm -f conf$$ conf$$.exe conf$$.
file
31847 if test -d conf$$.dir
; then
31848 rm -f conf$$.dir
/conf$$.
file
31854 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31856 # ... but there are two gotchas:
31857 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31858 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31859 # In both cases, we have to default to `cp -p'.
31860 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31862 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31867 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31868 rmdir conf$$.dir
2>/dev
/null
31870 if mkdir
-p .
2>/dev
/null
; then
31873 test -d .
/-p && rmdir .
/-p
31877 if test -x / >/dev
/null
2>&1; then
31878 as_test_x
='test -x'
31880 if ls -dL / >/dev
/null
2>&1; then
31887 if test -d "$1"; then
31893 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31894 ???[sx]*):;;*)false;;esac;fi
31898 as_executable_p
=$as_test_x
31900 # Sed expression to map a string onto a valid CPP name.
31901 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31903 # Sed expression to map a string onto a valid variable name.
31904 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31909 # Save the log message, to keep $[0] and so on meaningful, and to
31910 # report actual input values of CONFIG_FILES etc. instead of their
31911 # values after options handling.
31913 This file was extended by asterisk $as_me 1.4, which was
31914 generated by GNU Autoconf 2.61. Invocation command line was
31916 CONFIG_FILES = $CONFIG_FILES
31917 CONFIG_HEADERS = $CONFIG_HEADERS
31918 CONFIG_LINKS = $CONFIG_LINKS
31919 CONFIG_COMMANDS = $CONFIG_COMMANDS
31922 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31927 cat >>$CONFIG_STATUS <<_ACEOF
31928 # Files that config.status was made for.
31929 config_files="$ac_config_files"
31930 config_headers="$ac_config_headers"
31934 cat >>$CONFIG_STATUS <<\_ACEOF
31936 \`$as_me' instantiates files from templates according to the
31937 current configuration.
31939 Usage: $0 [OPTIONS] [FILE]...
31941 -h, --help print this help, then exit
31942 -V, --version print version number and configuration settings, then exit
31943 -q, --quiet do not print progress messages
31944 -d, --debug don't remove temporary files
31945 --recheck update $as_me by reconfiguring in the same conditions
31946 --file=FILE[:TEMPLATE]
31947 instantiate the configuration file FILE
31948 --header=FILE[:TEMPLATE]
31949 instantiate the configuration header FILE
31951 Configuration files:
31954 Configuration headers:
31957 Report bugs to <bug-autoconf@gnu.org>."
31960 cat >>$CONFIG_STATUS <<_ACEOF
31962 asterisk config.status 1.4
31963 configured by $0, generated by GNU Autoconf 2.61,
31964 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31966 Copyright (C) 2006 Free Software Foundation, Inc.
31967 This config.status script is free software; the Free Software Foundation
31968 gives unlimited permission to copy, distribute and modify it."
31975 cat >>$CONFIG_STATUS <<\_ACEOF
31976 # If no file are specified by the user, then we need to provide default
31977 # value. By we need to know if files were specified by the user.
31983 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31984 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31995 # Handling of the options.
31996 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31998 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31999 echo "$ac_cs_version"; exit ;;
32000 --debug |
--debu |
--deb |
--de |
--d |
-d )
32002 --file |
--fil |
--fi |
--f )
32004 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
32005 ac_need_defaults
=false
;;
32006 --header |
--heade |
--head |
--hea )
32008 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
32009 ac_need_defaults
=false
;;
32011 # Conflict between --help and --header
32012 { echo "$as_me: error: ambiguous option: $1
32013 Try \`$0 --help' for more information." >&2
32014 { (exit 1); exit 1; }; };;
32015 --help |
--hel |
-h )
32016 echo "$ac_cs_usage"; exit ;;
32017 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
32018 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
32021 # This is an error.
32022 -*) { echo "$as_me: error: unrecognized option: $1
32023 Try \`$0 --help' for more information." >&2
32024 { (exit 1); exit 1; }; } ;;
32026 *) ac_config_targets
="$ac_config_targets $1"
32027 ac_need_defaults
=false
;;
32033 ac_configure_extra_args
=
32035 if $ac_cs_silent; then
32037 ac_configure_extra_args
="$ac_configure_extra_args --silent"
32041 cat >>$CONFIG_STATUS <<_ACEOF
32042 if \$ac_cs_recheck; then
32043 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32044 CONFIG_SHELL=$SHELL
32045 export CONFIG_SHELL
32046 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32050 cat >>$CONFIG_STATUS <<\_ACEOF
32054 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32055 ## Running $as_me. ##
32061 cat >>$CONFIG_STATUS <<_ACEOF
32064 cat >>$CONFIG_STATUS <<\_ACEOF
32066 # Handling of arguments.
32067 for ac_config_target
in $ac_config_targets
32069 case $ac_config_target in
32070 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
32071 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
32072 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
32073 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
32075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32077 { (exit 1); exit 1; }; };;
32082 # If the user did not use the arguments to specify the items to instantiate,
32083 # then the envvar interface is used. Set only those that are not.
32084 # We use the long form for the default assignment because of an extremely
32085 # bizarre bug on SunOS 4.1.3.
32086 if $ac_need_defaults; then
32087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32091 # Have a temporary directory for convenience. Make it in the build tree
32092 # simply because there is no reason against having it here, and in addition,
32093 # creating and moving files from /tmp can sometimes cause problems.
32094 # Hook for its removal unless debugging.
32095 # Note that there is a small window in which the directory will not be cleaned:
32096 # after its creation but before its name has been assigned to `$tmp'.
32100 trap 'exit_status=$?
32101 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32103 trap '{ (exit 1); exit 1; }' 1 2 13 15
32105 # Create a (secure) tmp directory for tmp files.
32108 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32109 test -n "$tmp" && test -d "$tmp"
32112 tmp
=.
/conf$$
-$RANDOM
32113 (umask 077 && mkdir
"$tmp")
32116 echo "$me: cannot create a temporary directory in ." >&2
32117 { (exit 1); exit 1; }
32121 # Set up the sed scripts for CONFIG_FILES section.
32124 # No need to generate the scripts if there are no CONFIG_FILES.
32125 # This happens for instance when ./config.status config.h
32126 if test -n "$CONFIG_FILES"; then
32133 for ac_last_try
in false false false false false
:; do
32134 cat >conf$
$subs.
sed <<_ACEOF
32135 SHELL!$SHELL$ac_delim
32136 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32137 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32138 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32139 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32140 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32141 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32142 exec_prefix!$exec_prefix$ac_delim
32143 prefix!$prefix$ac_delim
32144 program_transform_name!$program_transform_name$ac_delim
32145 bindir!$bindir$ac_delim
32146 sbindir!$sbindir$ac_delim
32147 libexecdir!$libexecdir$ac_delim
32148 datarootdir!$datarootdir$ac_delim
32149 datadir!$datadir$ac_delim
32150 sysconfdir!$sysconfdir$ac_delim
32151 sharedstatedir!$sharedstatedir$ac_delim
32152 localstatedir!$localstatedir$ac_delim
32153 includedir!$includedir$ac_delim
32154 oldincludedir!$oldincludedir$ac_delim
32155 docdir!$docdir$ac_delim
32156 infodir!$infodir$ac_delim
32157 htmldir!$htmldir$ac_delim
32158 dvidir!$dvidir$ac_delim
32159 pdfdir!$pdfdir$ac_delim
32160 psdir!$psdir$ac_delim
32161 libdir!$libdir$ac_delim
32162 localedir!$localedir$ac_delim
32163 mandir!$mandir$ac_delim
32164 DEFS!$DEFS$ac_delim
32165 ECHO_C!$ECHO_C$ac_delim
32166 ECHO_N!$ECHO_N$ac_delim
32167 ECHO_T!$ECHO_T$ac_delim
32168 LIBS!$LIBS$ac_delim
32169 build_alias!$build_alias$ac_delim
32170 host_alias!$host_alias$ac_delim
32171 target_alias!$target_alias$ac_delim
32172 build!$build$ac_delim
32173 build_cpu!$build_cpu$ac_delim
32174 build_vendor!$build_vendor$ac_delim
32175 build_os!$build_os$ac_delim
32176 host!$host$ac_delim
32177 host_cpu!$host_cpu$ac_delim
32178 host_vendor!$host_vendor$ac_delim
32179 host_os!$host_os$ac_delim
32181 CFLAGS!$CFLAGS$ac_delim
32182 LDFLAGS!$LDFLAGS$ac_delim
32183 CPPFLAGS!$CPPFLAGS$ac_delim
32184 ac_ct_CC!$ac_ct_CC$ac_delim
32185 EXEEXT!$EXEEXT$ac_delim
32186 OBJEXT!$OBJEXT$ac_delim
32188 GREP!$GREP$ac_delim
32189 EGREP!$EGREP$ac_delim
32190 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
32191 BUILD_CPU!$BUILD_CPU$ac_delim
32192 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
32193 BUILD_OS!$BUILD_OS$ac_delim
32194 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
32195 HOST_CPU!$HOST_CPU$ac_delim
32196 HOST_VENDOR!$HOST_VENDOR$ac_delim
32197 HOST_OS!$HOST_OS$ac_delim
32198 OSARCH!$OSARCH$ac_delim
32199 UNAME!$UNAME$ac_delim
32200 PBX_OSREV!$PBX_OSREV$ac_delim
32203 RANLIB!$RANLIB$ac_delim
32204 CXXFLAGS!$CXXFLAGS$ac_delim
32205 ac_ct_CXX!$ac_ct_CXX$ac_delim
32206 CXXCPP!$CXXCPP$ac_delim
32209 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32210 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32211 INSTALL_DATA!$INSTALL_DATA$ac_delim
32212 LN_S!$LN_S$ac_delim
32213 GNU_MAKE!$GNU_MAKE$ac_delim
32214 STRIP!$STRIP$ac_delim
32216 GNU_LD!$GNU_LD$ac_delim
32217 FIND!$FIND$ac_delim
32218 COMPRESS!$COMPRESS$ac_delim
32219 BASENAME!$BASENAME$ac_delim
32221 DIRNAME!$DIRNAME$ac_delim
32224 WGET!$WGET$ac_delim
32225 FETCH!$FETCH$ac_delim
32226 DOWNLOAD!$DOWNLOAD$ac_delim
32227 SOXMIX!$SOXMIX$ac_delim
32228 acx_pthread_config!$acx_pthread_config$ac_delim
32229 PTHREAD_CC!$PTHREAD_CC$ac_delim
32230 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
32231 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
32234 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32236 elif $ac_last_try; then
32237 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32238 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32239 { (exit 1); exit 1; }; }
32241 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
32245 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32246 if test -n "$ac_eof"; then
32247 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
32248 ac_eof
=`expr $ac_eof + 1`
32251 cat >>$CONFIG_STATUS <<_ACEOF
32252 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32256 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32257 s/^/s,@/; s/!/@,|#_!!_#|/
32260 s/'"$ac_delim"'$/,g/; t
32262 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32263 ' >>$CONFIG_STATUS <conf$
$subs.
sed
32264 rm -f conf$
$subs.
sed
32265 cat >>$CONFIG_STATUS <<_ACEOF
32271 for ac_last_try
in false false false false false
:; do
32272 cat >conf$
$subs.
sed <<_ACEOF
32273 AST_DEVMODE!$AST_DEVMODE$ac_delim
32274 ALSA_LIB!$ALSA_LIB$ac_delim
32275 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
32276 ALSA_DIR!$ALSA_DIR$ac_delim
32277 PBX_ALSA!$PBX_ALSA$ac_delim
32278 CURL_LIB!$CURL_LIB$ac_delim
32279 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
32280 CURL_DIR!$CURL_DIR$ac_delim
32281 PBX_CURL!$PBX_CURL$ac_delim
32282 CAP_LIB!$CAP_LIB$ac_delim
32283 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
32284 CAP_DIR!$CAP_DIR$ac_delim
32285 PBX_CAP!$PBX_CAP$ac_delim
32286 CURSES_LIB!$CURSES_LIB$ac_delim
32287 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
32288 CURSES_DIR!$CURSES_DIR$ac_delim
32289 PBX_CURSES!$PBX_CURSES$ac_delim
32290 DAHDI_LIB!$DAHDI_LIB$ac_delim
32291 DAHDI_INCLUDE!$DAHDI_INCLUDE$ac_delim
32292 DAHDI_DIR!$DAHDI_DIR$ac_delim
32293 PBX_DAHDI!$PBX_DAHDI$ac_delim
32294 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
32295 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
32296 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
32297 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
32298 GSM_LIB!$GSM_LIB$ac_delim
32299 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
32300 GSM_DIR!$GSM_DIR$ac_delim
32301 PBX_GSM!$PBX_GSM$ac_delim
32302 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
32303 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
32304 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
32305 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
32306 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
32307 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
32308 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
32309 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
32310 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
32311 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
32312 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
32313 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
32314 KDE_LIB!$KDE_LIB$ac_delim
32315 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
32316 KDE_DIR!$KDE_DIR$ac_delim
32317 PBX_KDE!$PBX_KDE$ac_delim
32318 LTDL_LIB!$LTDL_LIB$ac_delim
32319 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
32320 LTDL_DIR!$LTDL_DIR$ac_delim
32321 PBX_LTDL!$PBX_LTDL$ac_delim
32322 MISDN_LIB!$MISDN_LIB$ac_delim
32323 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
32324 MISDN_DIR!$MISDN_DIR$ac_delim
32325 PBX_MISDN!$PBX_MISDN$ac_delim
32326 NBS_LIB!$NBS_LIB$ac_delim
32327 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
32328 NBS_DIR!$NBS_DIR$ac_delim
32329 PBX_NBS!$PBX_NBS$ac_delim
32330 NCURSES_LIB!$NCURSES_LIB$ac_delim
32331 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
32332 NCURSES_DIR!$NCURSES_DIR$ac_delim
32333 PBX_NCURSES!$PBX_NCURSES$ac_delim
32334 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
32335 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
32336 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
32337 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
32338 NEWT_LIB!$NEWT_LIB$ac_delim
32339 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
32340 NEWT_DIR!$NEWT_DIR$ac_delim
32341 PBX_NEWT!$PBX_NEWT$ac_delim
32342 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
32343 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
32344 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
32345 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
32346 OGG_LIB!$OGG_LIB$ac_delim
32347 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
32348 OGG_DIR!$OGG_DIR$ac_delim
32349 PBX_OGG!$PBX_OGG$ac_delim
32350 OSPTK_LIB!$OSPTK_LIB$ac_delim
32351 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
32352 OSPTK_DIR!$OSPTK_DIR$ac_delim
32353 PBX_OSPTK!$PBX_OSPTK$ac_delim
32354 OSS_LIB!$OSS_LIB$ac_delim
32355 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
32356 OSS_DIR!$OSS_DIR$ac_delim
32357 PBX_OSS!$PBX_OSS$ac_delim
32358 POPT_LIB!$POPT_LIB$ac_delim
32359 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
32360 POPT_DIR!$POPT_DIR$ac_delim
32361 PBX_POPT!$PBX_POPT$ac_delim
32362 PGSQL_LIB!$PGSQL_LIB$ac_delim
32363 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
32364 PGSQL_DIR!$PGSQL_DIR$ac_delim
32365 PBX_PGSQL!$PBX_PGSQL$ac_delim
32366 PRI_LIB!$PRI_LIB$ac_delim
32367 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
32368 PRI_DIR!$PRI_DIR$ac_delim
32369 PBX_PRI!$PBX_PRI$ac_delim
32372 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32374 elif $ac_last_try; then
32375 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32376 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32377 { (exit 1); exit 1; }; }
32379 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
32383 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32384 if test -n "$ac_eof"; then
32385 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
32386 ac_eof
=`expr $ac_eof + 1`
32389 cat >>$CONFIG_STATUS <<_ACEOF
32390 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32394 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32395 s/^/s,@/; s/!/@,|#_!!_#|/
32398 s/'"$ac_delim"'$/,g/; t
32400 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32401 ' >>$CONFIG_STATUS <conf$
$subs.
sed
32402 rm -f conf$
$subs.
sed
32403 cat >>$CONFIG_STATUS <<_ACEOF
32409 for ac_last_try
in false false false false false
:; do
32410 cat >conf$
$subs.
sed <<_ACEOF
32411 PWLIB_LIB!$PWLIB_LIB$ac_delim
32412 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
32413 PWLIB_DIR!$PWLIB_DIR$ac_delim
32414 PBX_PWLIB!$PBX_PWLIB$ac_delim
32415 OPENH323_LIB!$OPENH323_LIB$ac_delim
32416 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
32417 OPENH323_DIR!$OPENH323_DIR$ac_delim
32418 PBX_OPENH323!$PBX_OPENH323$ac_delim
32419 RADIUS_LIB!$RADIUS_LIB$ac_delim
32420 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
32421 RADIUS_DIR!$RADIUS_DIR$ac_delim
32422 PBX_RADIUS!$PBX_RADIUS$ac_delim
32423 SPEEX_LIB!$SPEEX_LIB$ac_delim
32424 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
32425 SPEEX_DIR!$SPEEX_DIR$ac_delim
32426 PBX_SPEEX!$PBX_SPEEX$ac_delim
32427 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
32428 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
32429 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
32430 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
32431 SQLITE_LIB!$SQLITE_LIB$ac_delim
32432 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
32433 SQLITE_DIR!$SQLITE_DIR$ac_delim
32434 PBX_SQLITE!$PBX_SQLITE$ac_delim
32435 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
32436 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
32437 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
32438 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
32439 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
32440 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
32441 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
32442 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
32443 FREETDS_LIB!$FREETDS_LIB$ac_delim
32444 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
32445 FREETDS_DIR!$FREETDS_DIR$ac_delim
32446 PBX_FREETDS!$PBX_FREETDS$ac_delim
32447 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
32448 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
32449 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
32450 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
32451 TINFO_LIB!$TINFO_LIB$ac_delim
32452 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
32453 TINFO_DIR!$TINFO_DIR$ac_delim
32454 PBX_TINFO!$PBX_TINFO$ac_delim
32455 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
32456 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
32457 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
32458 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
32459 USB_LIB!$USB_LIB$ac_delim
32460 USB_INCLUDE!$USB_INCLUDE$ac_delim
32461 USB_DIR!$USB_DIR$ac_delim
32462 PBX_USB!$PBX_USB$ac_delim
32463 VORBIS_LIB!$VORBIS_LIB$ac_delim
32464 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
32465 VORBIS_DIR!$VORBIS_DIR$ac_delim
32466 PBX_VORBIS!$PBX_VORBIS$ac_delim
32467 VPB_LIB!$VPB_LIB$ac_delim
32468 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
32469 VPB_DIR!$VPB_DIR$ac_delim
32470 PBX_VPB!$PBX_VPB$ac_delim
32471 ZLIB_LIB!$ZLIB_LIB$ac_delim
32472 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
32473 ZLIB_DIR!$ZLIB_DIR$ac_delim
32474 PBX_ZLIB!$PBX_ZLIB$ac_delim
32475 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
32476 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
32477 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
32478 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
32479 ALLOCA!$ALLOCA$ac_delim
32480 LIBOBJS!$LIBOBJS$ac_delim
32481 POW_LIB!$POW_LIB$ac_delim
32482 GC_CFLAGS!$GC_CFLAGS$ac_delim
32483 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
32484 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
32485 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
32486 PBX_DAHDI_TRANSCODE!$PBX_DAHDI_TRANSCODE$ac_delim
32487 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
32488 KDEINIT!$KDEINIT$ac_delim
32489 KDEDIR!$KDEDIR$ac_delim
32490 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
32491 PG_CONFIG!$PG_CONFIG$ac_delim
32492 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
32493 PWLIBDIR!$PWLIBDIR$ac_delim
32494 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
32495 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
32496 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
32497 OPENH323DIR!$OPENH323DIR$ac_delim
32498 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
32499 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
32500 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
32501 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
32502 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
32503 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
32504 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
32505 PBX_H323!$PBX_H323$ac_delim
32506 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
32507 GTKCONFIG!$GTKCONFIG$ac_delim
32510 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32512 elif $ac_last_try; then
32513 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32514 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32515 { (exit 1); exit 1; }; }
32517 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
32521 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32522 if test -n "$ac_eof"; then
32523 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
32524 ac_eof
=`expr $ac_eof + 1`
32527 cat >>$CONFIG_STATUS <<_ACEOF
32528 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
32529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32532 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32533 s/^/s,@/; s/!/@,|#_!!_#|/
32536 s/'"$ac_delim"'$/,g/; t
32538 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32539 ' >>$CONFIG_STATUS <conf$
$subs.
sed
32540 rm -f conf$
$subs.
sed
32541 cat >>$CONFIG_STATUS <<_ACEOF
32547 for ac_last_try
in false false false false false
:; do
32548 cat >conf$
$subs.
sed <<_ACEOF
32549 PBX_GTK!$PBX_GTK$ac_delim
32550 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
32551 GTK_LIB!$GTK_LIB$ac_delim
32552 PKGCONFIG!$PKGCONFIG$ac_delim
32553 PBX_GTK2!$PBX_GTK2$ac_delim
32554 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
32555 GTK2_LIB!$GTK2_LIB$ac_delim
32556 CURL_CONFIG!$CURL_CONFIG$ac_delim
32557 LTLIBOBJS!$LTLIBOBJS$ac_delim
32560 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
32562 elif $ac_last_try; then
32563 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32564 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32565 { (exit 1); exit 1; }; }
32567 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
32571 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32572 if test -n "$ac_eof"; then
32573 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
32574 ac_eof
=`expr $ac_eof + 1`
32577 cat >>$CONFIG_STATUS <<_ACEOF
32578 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
32579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32582 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32583 s/^/s,@/; s/!/@,|#_!!_#|/
32586 s/'"$ac_delim"'$/,g/; t
32588 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32589 ' >>$CONFIG_STATUS <conf$
$subs.
sed
32590 rm -f conf$
$subs.
sed
32591 cat >>$CONFIG_STATUS <<_ACEOF
32598 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32599 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32600 # trailing colons and then remove the whole line if VPATH becomes empty
32601 # (actually we leave an empty line to preserve line numbers).
32602 if test "x$srcdir" = x.
; then
32603 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
32604 s/:*\$(srcdir):*/:/
32605 s/:*\${srcdir}:*/:/
32607 s/^\([^=]*=[ ]*\):*/\1/
32613 cat >>$CONFIG_STATUS <<\_ACEOF
32614 fi # test -n "$CONFIG_FILES"
32617 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
32620 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32622 case $ac_mode$ac_tag in
32624 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32625 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32626 { (exit 1); exit 1; }; };;
32627 :[FH
]-) ac_tag
=-:-;;
32628 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32645 -) ac_f
="$tmp/stdin";;
32646 *) # Look for the file first in the build tree, then in the source tree
32647 # (if the path is not absolute). The absolute path cannot be DOS-style,
32648 # because $ac_f cannot contain `:'.
32652 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32654 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32655 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32656 { (exit 1); exit 1; }; };;
32658 ac_file_inputs
="$ac_file_inputs $ac_f"
32661 # Let's still pretend it is `configure' which instantiates (i.e., don't
32662 # use $as_me), people would be surprised to read:
32663 # /* config.h. Generated by config.status. */
32664 configure_input
="Generated from "`IFS=:
32665 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32666 if test x
"$ac_file" != x-
; then
32667 configure_input
="$ac_file. $configure_input"
32668 { echo "$as_me:$LINENO: creating $ac_file" >&5
32669 echo "$as_me: creating $ac_file" >&6;}
32673 *:-:* |
*:-) cat >"$tmp/stdin";;
32678 ac_dir
=`$as_dirname -- "$ac_file" ||
32679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32680 X"$ac_file" : 'X\(//\)[^/]' \| \
32681 X"$ac_file" : 'X\(//\)$' \| \
32682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32688 /^X\(\/\/\)[^/].*/{
32703 -*) as_dir
=.
/$as_dir;;
32705 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
32709 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32710 *) as_qdir
=$as_dir;;
32712 as_dirs
="'$as_qdir' $as_dirs"
32713 as_dir
=`$as_dirname -- "$as_dir" ||
32714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32715 X"$as_dir" : 'X\(//\)[^/]' \| \
32716 X"$as_dir" : 'X\(//\)$' \| \
32717 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32723 /^X\(\/\/\)[^/].*/{
32736 test -d "$as_dir" && break
32738 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32739 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32740 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32741 { (exit 1); exit 1; }; }; }
32745 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32747 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32748 # A ".." for each directory in $ac_dir_suffix.
32749 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32750 case $ac_top_builddir_sub in
32751 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32752 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32755 ac_abs_top_builddir
=$ac_pwd
32756 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32757 # for backward compatibility:
32758 ac_top_builddir
=$ac_top_build_prefix
32761 .
) # We are building in place.
32763 ac_top_srcdir
=$ac_top_builddir_sub
32764 ac_abs_top_srcdir
=$ac_pwd ;;
32765 [\\/]* | ?
:[\\/]* ) # Absolute name.
32766 ac_srcdir
=$srcdir$ac_dir_suffix;
32767 ac_top_srcdir
=$srcdir
32768 ac_abs_top_srcdir
=$srcdir ;;
32769 *) # Relative name.
32770 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32771 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32772 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32774 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32784 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32785 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32789 cat >>$CONFIG_STATUS <<\_ACEOF
32790 # If the template does not know about datarootdir, expand it.
32791 # FIXME: This hack should be removed a few years after 2.60.
32792 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32794 case `sed -n '/datarootdir/ {
32803 ' $ac_file_inputs` in
32804 *datarootdir
*) ac_datarootdir_seen
=yes;;
32805 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32806 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32807 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32809 cat >>$CONFIG_STATUS <<_ACEOF
32810 ac_datarootdir_hack='
32811 s&@datadir@&$datadir&g
32812 s&@docdir@&$docdir&g
32813 s&@infodir@&$infodir&g
32814 s&@localedir@&$localedir&g
32815 s&@mandir@&$mandir&g
32816 s&\\\${datarootdir}&$datarootdir&g' ;;
32820 # Neutralize VPATH when `$srcdir' = `.'.
32821 # Shell code in configure.ac might set extrasub.
32822 # FIXME: do we really want to maintain this feature?
32823 cat >>$CONFIG_STATUS <<_ACEOF
32827 cat >>$CONFIG_STATUS <<\_ACEOF
32829 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32830 s
&@configure_input@
&$configure_input&;t t
32831 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32832 s
&@srcdir@
&$ac_srcdir&;t t
32833 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32834 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32835 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32836 s
&@builddir@
&$ac_builddir&;t t
32837 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32838 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32839 s
&@INSTALL@
&$ac_INSTALL&;t t
32840 $ac_datarootdir_hack
32841 " $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
32843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32844 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
32845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
32846 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32847 which seems to be undefined. Please make sure it is defined." >&5
32848 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32849 which seems to be undefined. Please make sure it is defined." >&2;}
32853 -) cat "$tmp/out"; rm -f "$tmp/out";;
32854 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32863 # Transform confdefs.h into a sed script `conftest.defines', that
32864 # substitutes the proper values into config.h.in to produce config.h.
32865 rm -f conftest.defines conftest.
tail
32866 # First, append a space to every undef/define line, to ease matching.
32867 echo 's/$/ /' >conftest.defines
32868 # Then, protect against being on the right side of a sed subst, or in
32869 # an unquoted here document, in config.status. If some macros were
32870 # called several times there might be several #defines for the same
32871 # symbol, which is useless. But do not sort them, since the last
32872 # AC_DEFINE must be honored.
32873 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
32874 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32875 # NAME is the cpp macro being defined, VALUE is the value it is being given.
32876 # PARAMS is the parameter list in the macro definition--in most cases, it's
32877 # just an empty string.
32878 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
32879 ac_dB
='\\)[ (].*,\\1define\\2'
32887 s/^[ ]*#[ ]*define[ ][ ]*//
32892 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32893 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32894 ' >>conftest.defines
32896 # Remove the space that was appended to ease matching.
32897 # Then replace #undef with comments. This is necessary, for
32898 # example, in the case of _POSIX_SOURCE, which is predefined and required
32899 # on some systems where configure will not decide to define it.
32900 # (The regexp can be short, since the line contains either #define or #undef.)
32902 s,^[ #]*u.*,/* & */,' >>conftest.defines
32904 # Break up conftest.defines:
32905 ac_max_sed_lines
=50
32907 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32908 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32909 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32911 ac_in
='$ac_file_inputs'
32912 ac_out
='"$tmp/out1"'
32913 ac_nxt
='"$tmp/out2"'
32917 # Write a here document:
32918 cat >>$CONFIG_STATUS <<_ACEOF
32919 # First, check the format of the line:
32920 cat >"\$tmp/defines.sed" <<\\CEOF
32921 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
32922 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
32926 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
32928 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32929 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
32930 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
32931 grep . conftest.
tail >/dev
/null ||
break
32932 rm -f conftest.defines
32933 mv conftest.
tail conftest.defines
32935 rm -f conftest.defines conftest.
tail
32937 echo "ac_result=$ac_in" >>$CONFIG_STATUS
32938 cat >>$CONFIG_STATUS <<\_ACEOF
32939 if test x
"$ac_file" != x-
; then
32940 echo "/* $configure_input */" >"$tmp/config.h"
32941 cat "$ac_result" >>"$tmp/config.h"
32942 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
32943 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32944 echo "$as_me: $ac_file is unchanged" >&6;}
32947 mv "$tmp/config.h" $ac_file
32950 echo "/* $configure_input */"
32962 { (exit 0); exit 0; }
32964 chmod +x
$CONFIG_STATUS
32965 ac_clean_files
=$ac_clean_files_save
32968 # configure is writing to config.log, and then calls config.status.
32969 # config.status does its own redirection, appending to config.log.
32970 # Unfortunately, on DOS this fails, as config.log is still kept open
32971 # by configure, so config.status won't be able to write to it; its
32972 # output is simply discarded. So we exec the FD to /dev/null,
32973 # effectively closing config.log, so it can be properly (re)opened and
32974 # appended to by config.status. When coming back to configure, we
32975 # need to make the FD available again.
32976 if test "$no_create" != yes; then
32978 ac_config_status_args
=
32979 test "$silent" = yes &&
32980 ac_config_status_args
="$ac_config_status_args --quiet"
32982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32985 # would make configure fail if this is the last instruction.
32986 $ac_cs_success ||
{ (exit 1); exit 1; }
32990 if test "x${silent}" != "xyes" ; then
32992 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
32993 echo " .\$7\$7.. .7\$\$7:. "
32994 echo " .\$\$:. ,\$7.7 "
32995 echo " .\$7. 7\$\$\$\$ .\$\$77 "
32996 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
32997 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
32998 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
32999 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
33000 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
33001 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
33002 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
33003 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
33004 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
33005 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
33006 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
33007 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
33008 echo " \$\$\$\$\$ \$\$\$ "
33009 echo " \$\$\$\$7. \$\$ (TM) "
33010 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
33011 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
33012 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
33016 { echo "$as_me:$LINENO: Package configured for: " >&5
33017 echo "$as_me: Package configured for: " >&6;}
33018 { echo "$as_me:$LINENO: OS type : $host_os" >&5
33019 echo "$as_me: OS type : $host_os" >&6;}
33020 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
33021 echo "$as_me: Host CPU : $host_cpu" >&6;}
33022 if test "${cross_compiling}" = "yes"; then
33023 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
33024 echo "$as_me: Cross Compilation = YES" >&6;}